/* ================================================================
   Customer Account — auth pages, dashboard, sidebar
   ================================================================ */

/* --- Header account button + dropdown ---------------------------- */

.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn-account i {
    font-size: 18px;
    line-height: 1;
}

.btn-account:hover,
.btn-account:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.dynamic-menu .btn-account {
    color: #0b3a5e;
    background: #f2f6fb;
    border-color: #d5e2ee;
}

.dynamic-menu .btn-account:hover {
    background: #e6eef7;
}

.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e6ecf2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 34, 54, 0.10);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1051;
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a,
.account-dropdown-logout {
    display: block;
    width: 100%;
    padding: 10px 14px;
    color: #0b3a5e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown-logout:hover {
    background: #f2f6fb;
    color: #0b3a5e;
}

.account-dropdown-logout {
    color: #b32424;
    border-top: 1px solid #eef1f5;
    margin-top: 6px;
    padding-top: 12px;
    border-radius: 0 0 8px 8px;
}

/* --- Auth pages (login/register/forgot/reset) -------------------- */

.account-auth-wrap {
    min-height: 60vh;
    padding: 60px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, #f7fafd 0%, #eef2f7 100%);
}

.account-auth-card {
    background: #fff;
    border: 1px solid #e6ecf2;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(15, 34, 54, 0.06);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.account-auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0b3a5e;
    margin: 0 0 8px;
}

.account-auth-card p.lead {
    color: #4a6a86;
    font-size: 15px;
    margin: 0 0 28px;
}

.account-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0b3a5e;
    margin: 0 0 6px;
}

.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"],
.account-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5e0ec;
    border-radius: 10px;
    font-size: 15px;
    color: #0b3a5e;
    background: #fbfcfd;
    transition: border-color .15s, background .15s;
}

.account-form input:focus {
    outline: none;
    border-color: #4a90c8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 200, 0.15);
}

.account-form .form-row {
    margin-bottom: 18px;
}

.account-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4a6a86;
    margin: 0 0 14px;
}

.account-form .form-consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 3px;
}

.account-form .form-consent a {
    color: #4a90c8;
    text-decoration: underline;
}

.account-form .btn-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: #0b3a5e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.account-form .btn-submit:hover {
    background: #062a49;
}

.account-form .remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.account-form .remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0;
    color: #4a6a86;
}

.account-form .remember-row a {
    color: #4a90c8;
    text-decoration: none;
}

.account-form .remember-row a:hover {
    text-decoration: underline;
}

.account-auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #4a6a86;
}

.account-auth-card .auth-footer a {
    color: #0b3a5e;
    font-weight: 600;
    text-decoration: none;
}

.account-auth-card .auth-footer a:hover {
    text-decoration: underline;
}

.account-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.account-alert.error {
    background: #fdecec;
    border-color: #f2b6b6;
    color: #90201a;
}

.account-alert.success {
    background: #e8f5ec;
    border-color: #b1dcbe;
    color: #1e6b34;
}

/* --- Dashboard layout ------------------------------------------- */

.account-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    min-height: 60vh;
}

@media (max-width: 900px) {
    .account-shell {
        grid-template-columns: 1fr;
    }
}

.account-sidebar {
    background: #fff;
    border: 1px solid #e6ecf2;
    border-radius: 16px;
    padding: 24px 16px;
    height: fit-content;
    box-shadow: 0 6px 18px rgba(15, 34, 54, 0.04);
}

.account-sidebar-header {
    padding: 0 8px 20px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 16px;
}

.account-sidebar-header .name {
    font-size: 16px;
    font-weight: 700;
    color: #0b3a5e;
    margin: 0 0 4px;
}

.account-sidebar-header .email {
    font-size: 13px;
    color: #6a89a3;
    word-break: break-word;
}

.account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #4a6a86;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s;
}

.account-nav li a i {
    font-size: 17px;
    color: #6a89a3;
}

.account-nav li a:hover {
    background: #f2f6fb;
    color: #0b3a5e;
}

.account-nav li a.active {
    background: #0b3a5e;
    color: #fff;
}

.account-nav li a.active i {
    color: #fff;
}

.account-nav .logout-form {
    margin: 8px 0 0;
    border-top: 1px solid #eef1f5;
    padding-top: 10px;
}

.account-nav .logout-form button {
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    color: #b32424;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-nav .logout-form button:hover {
    background: #fdecec;
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-card {
    background: #fff;
    border: 1px solid #e6ecf2;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(15, 34, 54, 0.04);
}

.account-card h1,
.account-card h2 {
    color: #0b3a5e;
    margin: 0 0 8px;
}

.account-card h1 { font-size: 26px; font-weight: 700; }
.account-card h2 { font-size: 20px; font-weight: 700; }

.account-card .subtitle {
    color: #6a89a3;
    font-size: 14px;
    margin-bottom: 20px;
}

.account-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    transition: border-color .15s;
}

.account-order-row:hover {
    border-color: #cddbe7;
    background: #fbfcfd;
}

.account-order-row .info .title {
    font-weight: 700;
    color: #0b3a5e;
    font-size: 15px;
    margin: 0 0 4px;
}

.account-order-row .info .meta {
    font-size: 13px;
    color: #6a89a3;
}

.account-order-row .total {
    font-weight: 700;
    color: #0b3a5e;
    font-size: 15px;
}

.account-order-row .actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-account-secondary,
.btn-account-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.btn-account-secondary i,
.btn-account-primary i {
    font-size: 14px;
    line-height: 1;
}

/* Secondary action — outline / muted */
.btn-account-secondary {
    background: #fff;
    border: 1px solid #d5e0ec;
    color: #0b3a5e;
}

.btn-account-secondary:hover,
.btn-account-secondary:focus {
    background: #f2f6fb;
    border-color: #cddbe7;
    color: #0b3a5e;
    text-decoration: none;
}

/* Primary action — LBT navy, high contrast, with a subtle lift on hover */
.btn-account-primary {
    background: #0b3a5e;
    border: 1px solid #0b3a5e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 58, 94, 0.18);
}

.btn-account-primary:hover,
.btn-account-primary:focus {
    background: #062a49;
    border-color: #062a49;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 58, 94, 0.25);
}

.btn-account-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(11, 58, 94, 0.20);
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
}

.status-pill.paid       { background: #e8f5ec; color: #1e6b34; }
.status-pill.pending    { background: #fff4dc; color: #8a5b13; }
.status-pill.cancelled  { background: #fdecec; color: #90201a; }
.status-pill.other      { background: #eef1f5; color: #4a6a86; }

.account-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6a89a3;
}

.account-empty i {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
    color: #cddbe7;
}

.account-empty a.btn-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    background: #0b3a5e;
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.account-empty a.btn-cta:hover { background: #062a49; color: #fff; }

@media (max-width: 640px) {
    .account-order-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .account-order-row .total { text-align: left; }
    .account-order-row .actions { flex-wrap: wrap; }
    .account-auth-card { padding: 24px; }
}

/* --- Recommendations ------------------------------------------- */

.account-recs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.account-rec-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: #0b3a5e;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.account-rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 34, 54, 0.08);
    border-color: #cddbe7;
    color: #0b3a5e;
    text-decoration: none;
}

.account-rec-card__img {
    aspect-ratio: 16 / 10;
    background: #f2f6fb center/cover no-repeat;
}

.account-rec-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #cddbe7;
}

.account-rec-card__body {
    padding: 12px 14px;
}

.account-rec-card__name {
    font-weight: 700;
    font-size: 14px;
    color: #0b3a5e;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-rec-card__meta {
    font-size: 13px;
    color: #4a6a86;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-rec-card__price {
    font-weight: 700;
    color: #0b3a5e;
}

/* --- Discount codes on dashboard -------------------------------- */

.account-discount-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.account-discount {
    padding: 16px;
    border: 1px dashed #4a90c8;
    background: #f2f8fd;
    border-radius: 12px;
}

.account-discount__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.account-discount__code code {
    font-size: 18px;
    font-weight: 700;
    color: #0b3a5e;
    background: transparent;
    letter-spacing: 0.5px;
}

.account-discount__copy {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0b3a5e;
    background: #fff;
    border: 1px solid #cddbe7;
    border-radius: 100px;
    cursor: pointer;
}

.account-discount__copy:hover {
    background: #e6eef7;
}

.account-discount__meta {
    color: #4a6a86;
    font-size: 13px;
}

/* ==================================================================
   Cookie consent banner + preferences modal
   ================================================================== */

.lbt-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    background: #ffffff;
    border-top: 1px solid #e6ecf2;
    box-shadow: 0 -12px 32px rgba(15, 34, 54, 0.10);
    padding: 20px 16px;
    animation: lbtCookieIn .3s ease;
}

@keyframes lbtCookieIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.lbt-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .lbt-cookie-banner__inner { grid-template-columns: 1fr; }
}

.lbt-cookie-banner__title {
    font-size: 16px;
    font-weight: 700;
    color: #0b3a5e;
    margin: 0 0 6px;
}

.lbt-cookie-banner__body {
    font-size: 13px;
    line-height: 1.55;
    color: #4a6a86;
    margin: 0;
}

.lbt-cookie-banner__body a {
    color: #0b3a5e;
    font-weight: 600;
    text-decoration: underline;
}

.lbt-cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lbt-cookie-btn {
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.lbt-cookie-btn--primary   { background: #0b3a5e; color: #fff; border-color: #0b3a5e; }
.lbt-cookie-btn--primary:hover { background: #062a49; }
.lbt-cookie-btn--secondary { background: #fff; color: #0b3a5e; border-color: #d5e2ee; }
.lbt-cookie-btn--secondary:hover { background: #f2f6fb; }

/* Modal */

.lbt-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lbt-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 58, 94, 0.45);
    backdrop-filter: blur(2px);
}

.lbt-cookie-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 34, 54, 0.25);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.lbt-cookie-modal__title {
    color: #0b3a5e;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.lbt-cookie-modal__lead {
    color: #4a6a86;
    font-size: 14px;
    margin: 0 0 20px;
}

.lbt-cookie-cat {
    border-top: 1px solid #eef1f5;
    padding: 16px 0;
}

.lbt-cookie-cat__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lbt-cookie-cat__name {
    font-size: 15px;
    font-weight: 700;
    color: #0b3a5e;
    margin-bottom: 4px;
}

.lbt-cookie-cat__desc {
    font-size: 13px;
    color: #4a6a86;
    line-height: 1.5;
}

.lbt-cookie-cat__pill {
    padding: 4px 10px;
    background: #e8f5ec;
    color: #1e6b34;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: .3px;
    white-space: nowrap;
    align-self: center;
}

/* Toggle switch */

.lbt-cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    align-self: center;
    cursor: pointer;
    display: inline-block;
}

.lbt-cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lbt-cookie-slider {
    position: absolute;
    inset: 0;
    background: #d5e0ec;
    border-radius: 100px;
    transition: background .2s;
}

.lbt-cookie-slider::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lbt-cookie-toggle input:checked + .lbt-cookie-slider {
    background: #0b3a5e;
}

.lbt-cookie-toggle input:checked + .lbt-cookie-slider::before {
    transform: translateX(20px);
}

.lbt-cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

/* ==================================================================
   Modern dashboard v2 — hero, statistics, cards
   Design language: soft glassmorphism accents, gradient hero, primary
   metric hierarchy (3x weight), healthcare-appropriate calm palette.
   ================================================================== */

:root {
    --acc-navy:      #0b3a5e;
    --acc-navy-dk:   #062a49;
    --acc-navy-lt:   #4a6a86;
    --acc-mist:      #f4f8fc;
    --acc-mist-2:    #e6f0fb;
    --acc-border:    #e6ecf2;
    --acc-border-2:  #d5e2ee;
    --acc-success:   #1e8a4f;
    --acc-success-l: #e8f5ec;
    --acc-warn:      #a35a00;
    --acc-warn-l:    #fff3e0;
    --acc-danger:    #b32424;
    --acc-danger-l:  #fdecec;
    --acc-accent:    #4a90c8;
    --acc-radius:    18px;
    --acc-shadow-sm: 0 2px 8px rgba(15, 34, 54, 0.05);
    --acc-shadow-md: 0 6px 20px rgba(15, 34, 54, 0.07);
    --acc-shadow-lg: 0 20px 45px rgba(15, 34, 54, 0.10);
}

/* Shell overrides */
.account-shell {
    max-width: 1280px;
    padding: 32px 20px 96px;
    gap: 40px;
}

.account-main { gap: 28px; }

/* Hero */
.acc-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 40px;
    border-radius: var(--acc-radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(74, 144, 200, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(11, 58, 94, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #0b3a5e 0%, #124a76 55%, #1c5e91 100%);
    color: #fff;
    box-shadow: var(--acc-shadow-md);
}

.acc-hero__decor {
    position: absolute;
    top: -40%; right: -10%;
    width: 55%; height: 180%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18) 0%, transparent 55%);
    filter: blur(30px);
    pointer-events: none;
}

.acc-hero__body { position: relative; z-index: 1; max-width: 620px; }

.acc-hero__eyebrow {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.acc-hero__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    color: #fff;
}

.acc-hero__lead {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
    max-width: 500px;
}

.acc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.acc-btn i { font-size: 16px; line-height: 1; }

.acc-btn--primary {
    background: #fff;
    color: var(--acc-navy);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.acc-btn--primary:hover, .acc-btn--primary:focus {
    background: #fff;
    color: var(--acc-navy);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
    text-decoration: none;
}

.acc-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.acc-btn--ghost:hover, .acc-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
}

/* Statistics grid */
.stat-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    text-decoration: none;
    color: var(--acc-navy);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 160px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--acc-shadow-lg);
    border-color: var(--acc-border-2);
    color: var(--acc-navy);
    text-decoration: none;
}

.stat-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-navy-lt);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.stat-card__label i { font-size: 14px; opacity: 0.75; }

.stat-card__value {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--acc-navy);
}

.stat-card__value--xxl {
    font-size: clamp(56px, 6vw, 84px);
    letter-spacing: -3px;
}

.stat-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--acc-navy-lt);
}

.stat-card__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stat-card__hint--positive { color: var(--acc-success); font-weight: 600; }

.stat-card--primary {
    background:
        radial-gradient(circle at 100% 100%, rgba(74, 144, 200, 0.08) 0%, transparent 55%),
        linear-gradient(145deg, #ffffff 0%, #fbfcfe 100%);
    border-color: var(--acc-border-2);
}

.stat-card__glow {
    position: absolute;
    top: -30%; right: -20%;
    width: 60%; height: 100%;
    background: radial-gradient(circle at center, rgba(74, 144, 200, 0.12) 0%, transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

.stat-card--warning .stat-card__value { color: var(--acc-warn); }
.stat-card--warning .stat-card__label i { color: var(--acc-warn); opacity: 1; }
.stat-card--danger  .stat-card__value { color: var(--acc-danger); }
.stat-card--danger  .stat-card__label i { color: var(--acc-danger); opacity: 1; }
.stat-card--muted   .stat-card__value { color: var(--acc-navy-lt); font-weight: 600; }

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--acc-success);
    box-shadow: 0 0 0 0 rgba(30, 138, 79, 0.5);
    animation: acc-pulse 2s infinite;
}

@keyframes acc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(30, 138, 79, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(30, 138, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 138, 79, 0); }
}

/* Section cards */
.acc-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    padding: 28px;
    box-shadow: var(--acc-shadow-sm);
}

.acc-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.acc-card__title { display: flex; align-items: center; gap: 14px; min-width: 0; }

.acc-card__title h2 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: var(--acc-navy);
    letter-spacing: -0.3px;
}

.acc-card__sub { margin: 0; font-size: 13px; color: var(--acc-navy-lt); }

.acc-card__title-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--acc-navy) 0%, #1c5e91 100%);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(11, 58, 94, 0.20);
    flex-shrink: 0;
}

.acc-card__title-icon--soft {
    background: linear-gradient(135deg, #e6f0fb 0%, #d5e2ee 100%);
    color: var(--acc-navy);
    box-shadow: none;
}

.acc-card__title-icon--accent {
    background: linear-gradient(135deg, #f8b400 0%, #e69400 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 148, 0, 0.25);
}

.acc-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-navy);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--acc-mist);
    transition: background .15s ease, transform .15s ease;
    white-space: nowrap;
}

.acc-link-arrow:hover { background: var(--acc-mist-2); transform: translateX(2px); color: var(--acc-navy); }

/* Discount codes v2 */
.acc-card--codes {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-color: #dbe7f2;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dc-card {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(74, 144, 200, 0.06) 0%, rgba(11, 58, 94, 0.03) 100%), #fff;
    border: 1.5px dashed var(--acc-accent);
    transition: transform .15s ease, box-shadow .18s ease;
}

.dc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(74, 144, 200, 0.12); }
.dc-card__label { font-size: 13px; color: var(--acc-navy-lt); font-weight: 500; margin-bottom: 4px; }
.dc-card__pct { font-size: 22px; font-weight: 800; color: var(--acc-navy); letter-spacing: -0.5px; }

.dc-card__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--acc-border-2);
    margin: 12px 0 10px;
}

.dc-card__code code {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--acc-navy);
    background: transparent;
}

.dc-card__copy {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--acc-navy);
    background: var(--acc-mist);
    border: 1px solid var(--acc-border-2);
    border-radius: 100px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.dc-card__copy:hover { background: var(--acc-mist-2); }
.dc-card__copy.copied { background: var(--acc-success); color: #fff; border-color: var(--acc-success); }

.dc-card__meta { font-size: 12px; color: var(--acc-navy-lt); }

/* Order list v2 */
.acc-order-list { display: flex; flex-direction: column; gap: 12px; }

/* Empty state v2 */
.acc-empty--illustrated {
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fbfcfe 0%, transparent 100%);
    border-radius: 12px;
}

.acc-empty__illustration {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e6f0fb 0%, #d5e2ee 100%);
    border-radius: 20px;
    font-size: 36px;
    color: var(--acc-navy);
    box-shadow: var(--acc-shadow-md);
}

.acc-empty__title { font-size: 18px; font-weight: 700; color: var(--acc-navy); margin-bottom: 6px; }
.acc-empty__text { max-width: 380px; margin: 0 auto 20px; font-size: 14px; line-height: 1.55; color: var(--acc-navy-lt); }

/* Recommendations v2 */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.rec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--acc-navy);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--acc-shadow-lg);
    border-color: var(--acc-border-2);
    color: var(--acc-navy);
    text-decoration: none;
}

.rec-card:hover .rec-card__cta { transform: translate(-4px, 4px); background: var(--acc-navy); color: #fff; }

.rec-card__img { aspect-ratio: 16 / 10; background: #f2f6fb center/cover no-repeat; }

.rec-card__img--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    color: rgba(74, 144, 200, 0.4);
    background: linear-gradient(135deg, #e6f0fb 0%, #cddbe7 100%);
}

.rec-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.rec-card__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--acc-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-card__meta { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }

.rec-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--acc-mist-2);
    color: var(--acc-navy);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

.rec-card__tag i { font-size: 10px; }

.rec-card__price { margin-top: auto; font-size: 18px; font-weight: 800; color: var(--acc-navy); letter-spacing: -0.5px; }

.rec-card__cta {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--acc-navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 34, 54, 0.10);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .acc-hero { padding: 24px; }
    .acc-hero__actions .acc-btn { flex: 1 1 auto; justify-content: center; }
    .stat-card { padding: 20px; min-height: 130px; }
    .stat-card__value--xxl { font-size: 48px; letter-spacing: -1.5px; }
    .acc-card { padding: 20px; }
    .acc-card__header { flex-direction: column; align-items: stretch; }
    .rec-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Sidebar polish v2 */
.account-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow-sm);
    border-color: var(--acc-border);
    padding: 20px 12px;
}

.account-sidebar-header {
    padding: 4px 12px 20px;
    border-bottom: 1px solid var(--acc-border);
    margin-bottom: 12px;
}

.account-sidebar-header .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--acc-navy);
    letter-spacing: -0.2px;
}

.account-sidebar-header .email {
    font-size: 12px;
    color: var(--acc-navy-lt);
    word-break: break-word;
}

.account-nav li a {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    transition: background .12s ease, color .12s ease;
}

.account-nav li a i { font-size: 16px; }

.account-nav li a.active {
    background: linear-gradient(135deg, var(--acc-navy) 0%, #1c5e91 100%);
    box-shadow: 0 6px 16px rgba(11, 58, 94, 0.22);
}

.account-nav .logout-form { border-top-color: var(--acc-border); padding-top: 8px; margin-top: 12px; }

.account-nav .logout-form button {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    gap: 12px;
    font-weight: 500;
}
