:root {
    --psa-account-navy: #071d49;
    --psa-account-blue: #1769e0;
    --psa-account-cyan: #1c9bea;
    --psa-account-green: #18a957;
    --psa-account-orange: #ff8a00;
    --psa-account-ink: #10203a;
    --psa-account-muted: #66758d;
    --psa-account-line: #dfe7f1;
    --psa-account-surface: #ffffff;
    --psa-account-bg: #f4f7fb;
}

.user-profile-container,
.rtl.text-align-direction:has(.psa-account-nav) {
    max-width: 1320px;
}

.user-profile-container > .row,
.rtl.text-align-direction:has(.psa-account-nav) > .row {
    --bs-gutter-x: 22px;
    align-items: stretch;
}

.psa-account-nav-column {
    position: relative;
}

.psa-account-nav {
    min-height: 100%;
    padding: 18px !important;
    overflow: hidden;
    border: 1px solid var(--psa-account-line) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 50px rgba(7, 29, 73, 0.08) !important;
}

.psa-account-nav::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--psa-account-blue), var(--psa-account-cyan), var(--psa-account-green), var(--psa-account-orange));
}

.psa-account-nav__intro {
    display: grid;
    gap: 5px;
    margin: 5px 2px 17px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(28, 155, 234, 0.35), transparent 42%),
        linear-gradient(145deg, #071d49, #123875);
}

.psa-account-nav__intro span {
    color: #82d8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.psa-account-nav__intro strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.psa-account-nav__intro small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.5;
}

.psa-account-nav .widget-title {
    margin: 3px 0 !important;
}

.psa-account-nav .widget-title > a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 46px;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 13px;
    color: #64738a !important;
    font-size: 14px;
    font-weight: 650;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.psa-account-nav .widget-title > a:hover {
    color: var(--psa-account-blue) !important;
    background: #f2f7ff;
    transform: translateX(2px);
}

.psa-account-nav .widget-title > a svg {
    width: 19px;
    min-width: 19px;
    height: 19px;
}

.psa-account-nav .widget-title > a.active-menu {
    color: var(--psa-account-blue) !important;
    background: linear-gradient(110deg, #eaf3ff, #f4f9ff);
    box-shadow: inset 3px 0 0 var(--psa-account-blue);
}

.psa-account-nav .widget-title > a.active-menu::after {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    content: "";
    background: var(--psa-account-green);
    box-shadow: 0 0 0 4px rgba(24, 169, 87, 0.12);
}

.psa-account-nav .border-bottom {
    border-color: var(--psa-account-line) !important;
}

.user-profile-container:has(.psa-account-nav),
.rtl.text-align-direction:has(.psa-account-nav) {
    position: relative;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}

.user-profile-container:has(.psa-account-nav)::before,
.rtl.text-align-direction:has(.psa-account-nav)::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 6% 28%, rgba(28, 155, 234, 0.07), transparent 24rem),
        radial-gradient(circle at 92% 60%, rgba(24, 169, 87, 0.05), transparent 22rem),
        var(--psa-account-bg);
}

.user-profile-container:has(.psa-account-nav) .__customer-profile > .card,
.user-profile-container:has(.psa-account-nav) .__customer-profile > .card-body,
.rtl.text-align-direction:has(.psa-account-nav) .__customer-profile > .card {
    overflow: hidden;
    border: 1px solid var(--psa-account-line) !important;
    border-radius: 24px !important;
    background: var(--psa-account-surface) !important;
    box-shadow: 0 18px 50px rgba(7, 29, 73, 0.07) !important;
}

.user-profile-container:has(.psa-account-nav) .__customer-profile .card-body {
    padding: clamp(20px, 3vw, 34px);
}

.psa-account-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--psa-account-line);
}

.psa-account-heading__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--psa-account-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.psa-account-heading h1 {
    margin: 0 0 7px;
    color: var(--psa-account-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.psa-account-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--psa-account-muted);
    font-size: 14px;
    line-height: 1.65;
}

.psa-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.psa-account-button:hover {
    transform: translateY(-1px);
}

.psa-account-button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--psa-account-blue), #1355bb);
    box-shadow: 0 10px 25px rgba(23, 105, 224, 0.2);
}

.psa-account-button--danger {
    color: #c73542 !important;
    border-color: #ffd8dc;
    background: #fff5f6;
}

.psa-account-empty {
    display: flex;
    min-height: 410px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 54px 24px;
    text-align: center;
}

.psa-account-empty__icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid #d9e9ff;
    border-radius: 24px;
    color: var(--psa-account-blue);
    font-size: 33px;
    background: linear-gradient(145deg, #f4f9ff, #eaf4ff);
    box-shadow: 0 15px 35px rgba(23, 105, 224, 0.12);
}

.psa-account-empty > span {
    color: var(--psa-account-green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.psa-account-empty h2 {
    margin: 9px 0;
    color: var(--psa-account-ink);
    font-size: clamp(21px, 2.8vw, 28px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.psa-account-empty p {
    max-width: 520px;
    margin: 0 0 22px;
    color: var(--psa-account-muted);
    font-size: 14px;
    line-height: 1.7;
}

.psa-restock-page .row.g-3 {
    row-gap: 18px !important;
}

.psa-restock-item {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--psa-account-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 29, 73, 0.06);
}

.psa-restock-item .wishlist-img {
    overflow: hidden;
    border-radius: 14px;
    background: #f3f6fa;
}

.psa-restock-item .wishlist-img img {
    object-fit: contain;
}

.profile-aside-btn {
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px !important;
}

.psa-account-page .form-control,
.psa-tracking-page .form-control {
    min-height: 46px;
    border-color: var(--psa-account-line);
    border-radius: 12px;
    background: #fbfcfe;
}

.psa-account-page .form-control:focus,
.psa-tracking-page .form-control:focus {
    border-color: var(--psa-account-blue);
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.1);
}

.psa-tracking-page > .card {
    overflow: hidden;
    border: 1px solid var(--psa-account-line) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(28, 155, 234, 0.09), transparent 30rem),
        #fff;
    box-shadow: 0 22px 55px rgba(7, 29, 73, 0.09) !important;
}

.psa-tracking-page .bg-section2 {
    border: 1px solid var(--psa-account-line);
    border-radius: 18px !important;
    background: #f6f9fd !important;
}

.psa-tracking-page .btn--primary {
    min-height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--psa-account-blue), #1355bb);
}

@media (max-width: 991.98px) {
    .psa-account-nav-column {
        position: static;
    }

    .psa-account-nav {
        border-radius: 0 24px 24px 0 !important;
    }

    .psa-account-heading {
        align-items: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    .user-profile-container:has(.psa-account-nav),
    .rtl.text-align-direction:has(.psa-account-nav) {
        padding-inline: 10px !important;
    }

    .psa-account-heading {
        flex-direction: column;
    }

    .psa-account-empty {
        min-height: 360px;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .psa-account-nav .widget-title > a,
    .psa-account-button {
        transition: none;
    }
}
