﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --border: #e5e7eb;
    --radius: 18px;
    --sidebarW: 280px;
    --contentPad: 18px;
    --accent: #ef5526;
    --accentSoft: rgba(239,85,38,.10);
    --text: #111827;
    --acc-font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Inter fontunu Account sayfası boyunca uygula */
.account-shell,
.account-shell h1,
.account-shell h2,
.account-shell h3,
.account-shell h4,
.account-shell h5,
.account-shell h6,
.account-shell p,
.account-shell span,
.account-shell a,
.account-shell button,
.account-shell input,
.account-shell select,
.account-shell textarea,
.account-shell label {
    font-family: var(--acc-font);
}

.account-shell {
    display: grid;
    grid-template-columns: var(--sidebarW) minmax(0,1fr);
    gap: 26px;
    align-items: start;
}

@media (max-width: 992px) {
    .account-shell {
        grid-template-columns: 1fr;
    }
}

.modern-account-tabs {
    margin: 0 !important;
    padding: 10px !important;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    position: sticky;
    top: 18px;
}

@media (max-width: 992px) {
    .modern-account-tabs {
        position: static;
    }
}

.modern-account-tabs .nav-item {
    margin: 0;
}

.modern-account-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 645;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
}

    .modern-account-tabs .nav-link i {
        width: 18px;
        text-align: center;
        opacity: .9;
    }

    .modern-account-tabs .nav-link.active {
        background: var(--accentSoft);
        border-color: rgba(239,85,38,.28);
        color: var(--text);
    }

.account-content {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: var(--contentPad);
}

    .account-content .tab-content {
        margin: 0 !important;
    }

    .account-content .tab-pane {
        padding: 0 !important;
    }

        .account-content .tab-pane > .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

.acc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

    .acc-head .acc-head-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(17,24,39,.06);
        color: var(--text);
        flex: 0 0 auto;
    }

    .acc-head .acc-head-title {
        margin: 0;
        letter-spacing: .2px;
        color: var(--text);
    }

.icon-box .icon-box-icon {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-box .icon-box-icon .account-mail-icon {
        width: 24px;
        height: 24px;
        display: block;
    }

.send-address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--border);
    margin: 0 0 14px;
}

    .send-address-title h4 {
        margin: 0;
        color: var(--text);
    }

#account-addresses .ecommerce-address,
#invoce-addresses .ecommerce-address {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

#account-addresses .pr-lg-8,
#invoce-addresses .pr-lg-8 {
    padding-right: 0 !important;
}

#account-addresses .address-list,
#invoce-addresses .address-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

@media (max-width: 992px) {
    #account-addresses .address-list,
    #invoce-addresses .address-list {
        grid-template-columns: 1fr !important;
    }
}

.account-details-form .form-group {
    margin-bottom: 14px;
}

.account-details-form label {
    font-weight: 800;
    color: var(--text);
}

.account-details-form .form-control-md {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    min-height: 44px;
    background: #fff;
}

.support-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s ease-in-out;
}

.gender-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .gender-options {
        grid-template-columns: 1fr;
    }
}

.gender-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all .18s ease;
    font-weight: 500;
    color: #4b5563;
    font-size: 14px;
    min-height: 48px;
    text-align: center;
}

    .gender-option:hover {
        border-color: rgba(239, 85, 38, .35);
        background: #fff7f2;
        color: var(--text);
    }

    /* Radio'yu tamamen gizle - artık radio dairesi yok */
    .gender-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 0;
        height: 0;
    }

    /* Eski .checkmark (radio dairesi) artık görünmeyecek */
    .gender-option .checkmark {
        display: none;
    }

    /* Cinsiyet ikonu (::before) */
    .gender-option::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 14px;
        color: #9ca3af;
        transition: color .18s ease;
    }

    /* İlk seçenek = Kadın, ikinci = Erkek, üçüncü = Belirtmek istemiyorum */
    .gender-option:nth-child(1)::before {
        content: "\f221"; /* venus */
    }

    .gender-option:nth-child(2)::before {
        content: "\f222"; /* mars */
    }

    .gender-option:nth-child(3)::before {
        content: "\f128"; /* question */
    }

    /* Seçili state */
    .gender-option:has(input[type="radio"]:checked) {
        border-color: var(--accent);
        background: rgba(239, 85, 38, .08);
        color: var(--text);
        font-weight: 600;
        box-shadow: 0 0 0 3px rgba(239, 85, 38, .10);
    }

        .gender-option:has(input[type="radio"]:checked)::before {
            color: var(--accent);
        }

    /* Sağ üst köşede checkmark rozeti (seçili olduğunda) */
    .gender-option:has(input[type="radio"]:checked)::after {
        content: "\f00c"; /* check */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 6px;
        right: 8px;
        font-size: 9px;
        color: #fff;
        background: var(--accent);
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

.order-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.btn-primary-action,
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary-action {
    background: var(--accent);
    color: #fff;
}

    .btn-primary-action:hover {
        background: #e04816;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(239,85,38,.25);
    }

.btn-secondary-action {
    background: #fff;
    color: var(--text);
    border: 1.5px solid #e5e7eb;
}

    .btn-secondary-action:hover {
        background: var(--text);
        color: #fff;
        border-color: var(--text);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(17,24,39,.18);
    }

    .btn-secondary-action i {
        font-size: 14px;
    }

.toggle-details .toggle-icon {
    font-size: 11px;
    transition: transform .2s;
}

.order-detail-thumb {
    width: 60px;
    height: auto;
    border-radius: 5px;
}

.return-status {
    font-weight: 600;
}

.return-pending {
    color: #ffc107;
}

.return-approved {
    color: #28a745;
}

    .return-approved small {
        font-size: 13px;
    }

.return-rejected {
    color: #dc3545;
}

.bank-logo-wrap {
    margin-bottom: 15px;
    text-align: center;
}

    .bank-logo-wrap img {
        max-width: 120px;
    }

.cargo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cargo-modal-box {
    width: min(560px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    animation: cargoModalIn .35s cubic-bezier(.2,.9,.3,1.1);
}

@keyframes cargoModalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cargo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

    .cargo-modal-close:hover {
        background: var(--accent);
        color: #fff;
        transform: rotate(90deg);
    }

.cargo-modal-header {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 22px;
}

.cargo-modal-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff2ed, #ffe5d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 32px;
    position: relative;
}

    .cargo-modal-badge::before,
    .cargo-modal-badge::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid var(--accent);
        opacity: 0;
        animation: cargoPulse 2s ease-out infinite;
    }

    .cargo-modal-badge::after {
        animation-delay: 1s;
    }

@keyframes cargoPulse {
    0% {
        transform: scale(.9);
        opacity: .6;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.cargo-modal-header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.cargo-modal-header p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.cargo-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff5f0, #ffe7d8);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.cargo-status-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0;
}

.cargo-status-pill {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239,85,38,.3);
}

    .cargo-status-pill.cargo-status-error {
        background: #dc3545;
        box-shadow: 0 4px 12px rgba(220,53,69,.3);
    }

.cargo-vertical-timeline {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.cargo-tl-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
    position: relative;
}

    .cargo-tl-step:last-child {
        padding-bottom: 0;
    }

    .cargo-tl-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 21px;
        top: 44px;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
        transition: background .3s ease;
    }

    .cargo-tl-step.active:not(:last-child)::after {
        background: var(--accent);
    }

.cargo-tl-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    transition: all .3s ease;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.cargo-tl-step.active .cargo-tl-dot {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 2px var(--accent), 0 8px 20px rgba(239,85,38,.35);
    transform: scale(1.05);
}

.cargo-tl-content {
    padding-top: 6px;
    flex: 1;
}

    .cargo-tl-content strong {
        display: block;
        font-size: 15px;
        color: #6b7280;
        font-weight: 700;
        margin-bottom: 2px;
        transition: color .3s ease;
    }

    .cargo-tl-content span {
        font-size: 12px;
        color: #9ca3af;
    }

.cargo-tl-step.active .cargo-tl-content strong {
    color: var(--text);
}

.cargo-tl-step.active .cargo-tl-content span {
    color: var(--accent);
    font-weight: 600;
}

.cargo-info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
    border-radius: 16px;
    padding: 14px;
}

.cargo-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all .2s ease;
}

    .cargo-info-card:hover {
        border-color: rgba(239,85,38,.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,.04);
    }

.cargo-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(239,85,38,.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.cargo-info-text {
    flex: 1;
    min-width: 0;
}

    .cargo-info-text small {
        display: block;
        font-size: 12px;
        color: #9ca3af;
        margin-bottom: 2px;
        letter-spacing: 0;
        font-weight: 600;
    }

    .cargo-info-text strong {
        display: block;
        font-size: 14px;
        color: var(--text);
        font-weight: 600;
        word-break: break-word;
        line-height: 1.4;
    }

@media (max-width: 576px) {
    .cargo-modal-box {
        padding: 24px 18px 18px;
        border-radius: 20px;
    }

    .cargo-modal-badge {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .cargo-modal-header h3 {
        font-size: 18px;
    }

    .cargo-tl-dot {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .cargo-tl-step:not(:last-child)::after {
        left: 19px;
        top: 40px;
    }

    .cargo-info-card {
        padding: 10px 12px;
    }
}

#account-details {
    overflow: visible;
}

    #account-details .account-details-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        padding: 0 24px;
        box-sizing: border-box;
    }

    #account-details .row {
        margin-left: 0;
        margin-right: 0;
    }

    #account-details [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    #account-details .form-control {
        width: 100%;
        box-sizing: border-box;
    }

@media (max-width: 768px) {
    #account-details .account-details-form {
        padding: 0 10px;
    }
}

.toggle-password {
    cursor: pointer;
}

.review-count-text {
    color: var(--accent);
}

.star-filled {
    color: #9e001a;
}

.star-empty {
    color: #ccc;
}

.rating-points {
    color: #9e001a;
}

.brand-highlight {
    color: red;
}

.review-comment p {
    white-space: pre-line;
}

.rating-star {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
}

/* ==========================================================
   MODERN ACCOUNT REDESIGN — additions, no breaking changes
   ========================================================== */

/* -- Shared section card -- */
.acc-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 20px 22px;
    margin-bottom: 18px;
}

    .acc-section + .acc-section {
        margin-top: 0;
    }

.acc-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eef0f3;
}

    .acc-section-head .acc-section-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--accentSoft);
        color: var(--accent);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 14px;
    }

    .acc-section-head h5 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
    }

.acc-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

@media (max-width: 768px) {
    .acc-section-grid {
        grid-template-columns: 1fr;
    }
}

.acc-section-grid .acc-grid-full {
    grid-column: 1 / -1;
}

/* -- Empty states -- */
.acc-empty {
    padding: 36px 20px;
    border: 1px dashed #e5e7eb;
    border-radius: 16px;
    background: #fafafa;
    text-align: center;
    color: #6b7280;
}

    .acc-empty .acc-empty-ico {
        width: 56px;
        height: 56px;
        margin: 0 auto 12px;
        border-radius: 16px;
        background: var(--accentSoft);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .acc-empty h5 {
        color: var(--text);
        margin: 0 0 6px;
        font-weight: 700;
    }

    .acc-empty p {
        margin: 0;
        font-size: 14px;
    }

/* ==========================================================
   DASHBOARD TILES (icon-box overrides)
   ========================================================== */
#account-dashboard .greeting {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--text);
}

#account-dashboard .row {
    margin-left: -8px;
    margin-right: -8px;
}

#account-dashboard [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

#account-dashboard .link-to-tab {
    display: block;
    text-decoration: none;
}

#account-dashboard .icon-box {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 22px 16px 18px;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    #account-dashboard .icon-box:hover {
        border-color: rgba(239, 85, 38, .35);
        box-shadow: 0 10px 26px rgba(17, 24, 39, .08);
        transform: translateY(-2px);
    }

    #account-dashboard .icon-box .icon-box-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        background: var(--accentSoft);
        color: var(--accent);
        font-size: 24px;
        margin-bottom: 4px;
    }

        #account-dashboard .icon-box .icon-box-icon i {
            font-size: 24px;
        }

    #account-dashboard .icon-box .icon-box-content {
        text-align: center;
    }

        #account-dashboard .icon-box .icon-box-content .text {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: 0;
            text-transform: none;
        }

/* ==========================================================
   PROFILE TAB
   ========================================================== */
#account-details {
    overflow: visible;
}

    #account-details .account-details-form {
        padding: 0 !important;
    }

    #account-details .form-group {
        margin-bottom: 0;
    }

    #account-details .form-group > label {
        font-size: 12.5px;
        font-weight: 700;
        color: #4b5563;
        margin-bottom: 6px;
        display: block;
    }

    #account-details .form-control-md,
    #account-details .form-control {
        height: 46px;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0 14px;
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        #account-details .form-control-md:focus,
        #account-details .form-control:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(239, 85, 38, .12);
            outline: none;
        }

    #account-details .form-control[readonly] {
        background: #f9fafb;
        color: #6b7280;
        cursor: not-allowed;
    }

    #account-details .title-password,
    #account-details .title {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 10px;
        color: var(--text);
        border: 0;
        padding: 0;
    }

    /* Save button override */
    #account-details #save {
        background: var(--accent);
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none !important;
        font-size: 14px;
        font-family: var(--acc-font);
        transition: all .2s ease;
        box-shadow: 0 6px 16px rgba(239, 85, 38, .25);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

        #account-details #save:hover {
            background: #e04816;
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(239, 85, 38, .35);
            color: #fff;
        }

        #account-details #save i {
            font-size: 13px;
        }

    /* Şifre alanı için göz ikonu — input içine gömülü görsel */
    #account-details .input-group {
        position: relative;
        display: block;
    }

        #account-details .input-group .form-control {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding-right: 46px;
            height: 46px;
            width: 100%;
        }

        #account-details .input-group .input-group-append {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            display: flex;
            align-items: center;
        }

        #account-details .input-group .input-group-text {
            background: transparent;
            border: 0;
            padding: 0 14px;
            color: #9ca3af;
            cursor: pointer;
            height: 100%;
            display: flex;
            align-items: center;
            border-radius: 0;
        }

            #account-details .input-group .input-group-text:hover {
                color: var(--accent);
            }

        #account-details .input-group .toggle-password {
            font-size: 16px;
            line-height: 1;
        }

/* Modern checkbox used inside #account-details (e.g. "Şifreyi Otomatik Oluştur") */
.acc-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    padding: 8px 0;
}

    .acc-check input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .acc-check .acc-check-mark {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        border: 2px solid #cbd5e1;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all .15s ease;
        flex: 0 0 auto;
        color: transparent;
        font-size: 11px;
    }

    .acc-check input[type="checkbox"]:checked + .acc-check-mark {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        box-shadow: 0 0 0 4px rgba(239, 85, 38, .12);
    }

/* ==========================================================
   ORDERS TAB
   ========================================================== */
.account-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 16px !important;
}

    .account-orders-table thead th {
        background: #f9fafb;
        border: 0;
        padding: 12px 14px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
        color: #6b7280;
    }

        .account-orders-table thead th:first-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .account-orders-table thead th:last-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

    .account-orders-table tbody tr.order-summary > td {
        background: #fff;
        border: 1px solid var(--border);
        border-left: 0;
        border-right: 0;
        padding: 14px;
        vertical-align: middle;
        font-size: 14px;
        color: var(--text);
    }

        .account-orders-table tbody tr.order-summary > td:first-child {
            border-left: 1px solid var(--border);
            border-radius: 12px 0 0 12px;
            font-weight: 700;
            color: var(--accent);
        }

        .account-orders-table tbody tr.order-summary > td:last-child {
            border-right: 1px solid var(--border);
            border-radius: 0 12px 12px 0;
        }

    .account-orders-table tbody tr.order-details > td {
        background: #f9fafb;
        border-radius: 12px;
        padding: 16px;
    }

.order-extra-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 992px) {
    .order-extra-wrapper {
        grid-template-columns: 1fr;
    }
}

.order-extra-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.order-extra-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eef0f3;
}

    .order-extra-title i {
        color: var(--accent);
    }

.order-extra-content {
    font-size: 13px;
    color: #4b5563;
}

    .order-extra-content p {
        margin: 0 0 6px;
    }

    .order-extra-content p:last-child {
        margin-bottom: 0;
    }

/* ==========================================================
   SUPPORT TAB
   ========================================================== */
.support-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

    .support-toolbar h5 {
        margin: 0;
        font-size: 14px;
        color: #6b7280;
    }

.support-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(239, 85, 38, .25);
}

    .support-new-btn:hover {
        background: #e04816;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(239, 85, 38, .35);
    }

.support-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all .2s ease;
}

    .support-card:hover {
        border-color: rgba(239, 85, 38, .25);
        box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
        transform: translateY(-1px);
    }

.support-card-body {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.support-card-subject {
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
}

.support-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

    .support-card-date i {
        font-size: 11px;
    }

.support-card-msg {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
}

.support-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.support-status-pending {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.support-status-answered {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.support-status-other {
    background: #f3f4f6;
    color: #4b5563;
}

.support-reply {
    background: linear-gradient(180deg, rgba(16, 185, 129, .06), rgba(16, 185, 129, .02));
    border-top: 1px dashed rgba(16, 185, 129, .25);
    padding: 14px 18px;
    display: flex;
    gap: 12px;
}

.support-reply-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(16, 185, 129, .15);
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.support-reply-content strong {
    display: block;
    color: #047857;
    font-size: 13px;
    margin-bottom: 4px;
}

.support-reply-content p {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 14px;
}

.support-reply-content small {
    color: #6b7280;
    font-size: 12px;
}

/* ==========================================================
   REVIEWS TAB
   ========================================================== */
.review-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .review-summary-cards {
        grid-template-columns: 1fr;
    }
}

.review-summary {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

    .review-summary::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: var(--accent);
    }

    .review-summary h5 {
        font-size: 13px;
        color: #6b7280;
        font-weight: 600;
        margin: 0 0 6px;
    }

    .review-summary .review-count-text {
        font-size: 18px;
        font-weight: 800;
        color: var(--text);
        margin: 0;
    }

        .review-summary .review-count-text strong,
        .review-summary .review-count-text b {
            color: var(--accent);
        }

/* Segmented tabs inside reviews */
#reviewTabs {
    border: 0 !important;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    display: inline-flex !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
}

    #reviewTabs .nav-item {
        margin: 0 !important;
    }

    #reviewTabs .nav-link {
        border: 0 !important;
        background: transparent;
        color: #4b5563;
        font-weight: 600;
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all .2s ease;
    }

        #reviewTabs .nav-link.active {
            background: #fff;
            color: var(--text);
            box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
        }

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all .2s ease;
}

    .review-card:hover {
        border-color: rgba(239, 85, 38, .2);
        box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
    }

.review-product-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f9fafb;
    flex: 0 0 auto;
}

.review-product-info h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.review-product-info .date {
    font-size: 12px;
    color: #9ca3af;
}

.review-product-info .stars {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .review-product-info .stars .date {
        margin-left: 8px;
    }

.review-card .star-filled {
    color: #f59e0b;
    font-size: 18px;
}

.review-card .star-empty {
    color: #d1d5db;
    font-size: 18px;
}

.review-card .open-rating-modal {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(239, 85, 38, .22);
}

    .review-card .open-rating-modal:hover {
        background: #e04816;
        transform: translateY(-1px);
    }

.review-footer {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #4b5563 !important;
}

    .review-footer .rating-points {
        color: var(--accent);
        font-weight: 800;
    }

.review-comment {
    border-left: 3px solid var(--accent);
    background: rgba(239, 85, 38, .04);
    padding: 10px 12px !important;
    border-radius: 0 10px 10px 0;
    margin-top: 8px !important;
}

    .review-comment strong {
        color: var(--text);
        font-size: 13px;
    }

    .review-comment p {
        font-size: 14px;
        margin: 4px 0 0 !important;
    }

/* ==========================================================
   CORPORATE CONTACT TAB
   ========================================================== */
.contact-box-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .contact-box-container {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 22px 22px 18px;
}

    .contact-info h5 {
        font-size: 15px;
        font-weight: 800;
        color: var(--text);
        margin: 0 0 14px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #eef0f3;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .contact-info h5::before {
            content: "\f1ad"; /* building */
            font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
            font-weight: 900;
            color: var(--accent);
            background: var(--accentSoft);
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
        }

    .contact-info p {
        margin: 0 0 10px;
        font-size: 14px;
        color: #4b5563;
        line-height: 1.6;
    }

        .contact-info p strong {
            color: var(--text);
            font-weight: 700;
        }

    .contact-info a {
        color: var(--accent);
        font-weight: 600;
    }

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}
.company-item {
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.company-item.full { grid-column: 1 / -1; }
.company-item .ci-label {
    font-size: 11.5px;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.company-item .ci-val {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}
.company-item .ci-val a { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) {
    .company-grid { grid-template-columns: 1fr; }
}

.contact-map {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    min-height: 320px;
    display: flex;
}

    .contact-map iframe {
        border: 0;
        width: 100%;
        height: 100% !important;
        min-height: 320px;
        display: block;
    }

/* ==========================================================
   RATE MODAL POLISH
   ========================================================== */
#rateModal .modal-content {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

#rateModal .modal-header {
    border-bottom: 1px dashed #eef0f3;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 20px 14px;
}

#rateModal .modal-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    color: #6b7280;
}

#rateModal #ratingProductTitle {
    font-size: 18px;
    color: var(--text);
    margin: 0;
}

#rateModal .modal-body textarea {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 96px;
    font-size: 14px;
}

    #rateModal .modal-body textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(239, 85, 38, .12);
        outline: 0;
    }

#rateModal .rating-star {
    margin: 0 4px;
    transition: transform .15s ease;
}

    #rateModal .rating-star.selected,
    #rateModal .rating-star.active {
        color: #f59e0b;
    }

    #rateModal .rating-star:hover {
        transform: scale(1.15);
    }

#rateModal .modal-footer {
    border-top: 1px dashed #eef0f3;
    padding: 14px 20px;
}

    #rateModal .modal-footer .btn-dark,
    #rateModal .modal-footer #submitRatingBtn {
        background: var(--accent);
        border: 0;
        font-weight: 700;
        padding: 10px 20px;
        border-radius: 12px;
    }

        #rateModal .modal-footer .btn-dark:hover,
        #rateModal .modal-footer #submitRatingBtn:hover {
            background: #e04816;
        }

    #rateModal .modal-footer .btn-secondary {
        background: #f3f4f6;
        color: var(--text);
        border: 0;
        font-weight: 700;
        padding: 10px 20px;
        border-radius: 12px;
    }

/* ==========================================================
   ADDRESS TAB POLISH (kurgu güzel, küçük rötuş)
   ========================================================== */
.send-address-title h4 {
    font-size: 15px;
    font-weight: 700;
}

.send-address-title .save-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
    text-decoration: none !important;
}

    .send-address-title .save-address:hover {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 6px 16px rgba(239, 85, 38, .25);
        transform: translateY(-1px);
    }

    .send-address-title .save-address .send-address-icon svg {
        width: 14px;
        height: 14px;
        display: block;
    }

/* Responsive tweaks */
@media (max-width: 576px) {
    .acc-section {
        padding: 16px;
    }

    .support-card-body {
        grid-template-columns: 1fr;
    }

    .support-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .support-new-btn {
        justify-content: center;
    }
}

