/* ═══════════════════════════════════════════════════════════
   AUTH MODAL + ACCOUNT PAGE — Chut HaShani
   ═══════════════════════════════════════════════════════════ */

/* ── HEADER HEART ICON ──────────────────────────────────────── */
.header-heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s;
}
.header-heart-icon:hover { background: rgba(197,168,128,0.1); }
.header-heart-icon svg {
    stroke: currentColor;
    transition: fill 0.2s, stroke 0.2s;
}
.header-heart-icon.has-items svg {
    fill: var(--color-gold, #C5A880);
    stroke: var(--color-gold, #C5A880);
}

/* ── AUTH HINT BANNER (shown when opening modal from heart) ─── */
.auth-hint-banner {
    background: linear-gradient(135deg, #fff9ec, #fdf5e0);
    border: 1px solid #f0e4c4;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #7a6030;
    font-family: 'Heebo', sans-serif;
    text-align: center;
    line-height: 1.6;
}

/* ── USER AVATAR IN HEADER ─────────────────────────────────── */
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    font-family: 'Assistant', sans-serif;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase;
    pointer-events: none;
}

/* ── PROFILE DROPDOWN ──────────────────────────────────────── */
.profile-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.profile-dropdown-wrap .profile-drop-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.profile-dropdown {
    position: absolute;
    top: 100%;
    /* padding-top bridges the hover gap — mouse stays within this element */
    padding-top: 8px;
    /* center under the avatar */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 500;
}
.profile-dropdown-inner {
    background: #fff;
    border: 1px solid #ece8df;
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
    overflow: hidden;
}
.profile-dropdown-wrap:hover .profile-dropdown,
.profile-dropdown-wrap:focus-within .profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/*
 * Use .profile-dropdown .profile-drop-item (specificity 20) to beat
 * .header-actions a (specificity 11) which sets width:40px/height:40px/
 * border-radius:50%/justify-content:center on all <a> inside the header.
 */
.profile-dropdown .profile-drop-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    padding: 12px 16px;
    font-family: 'Assistant', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: none !important;
    border: none;
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    transition: background 0.18s ease, color 0.18s ease;
}
.profile-dropdown .profile-drop-item:hover {
    background: linear-gradient(135deg, #fff8ec, #fdf3dd) !important;
    color: var(--color-gold, #D4AF37) !important;
}
.profile-dropdown .profile-drop-item svg {
    flex-shrink: 0;
    width: 16px !important;
    height: 16px !important;
    color: var(--color-gold, #D4AF37);
    stroke: currentColor;
    transition: transform 0.18s ease;
}
.profile-dropdown .profile-drop-item:hover svg {
    transform: scale(1.15);
}
.profile-dropdown .profile-drop-item + .profile-drop-item {
    border-top: 1px solid #f4f0e8;
}
.profile-dropdown .profile-drop-sep + .profile-drop-item {
    border-top: none;
}
.profile-drop-sep {
    border: none;
    border-top: 1px solid #f0ece8;
    margin: 4px 12px;
}
.profile-drop-logout {
    color: #c0392b !important;
}
.profile-drop-logout svg {
    color: #c0392b !important;
}
.profile-drop-logout:hover {
    background: linear-gradient(90deg, #fff5f5, #fdecea) !important;
    color: #a93226 !important;
}

/* ── ACCOUNT PAGE LOGOUT BUTTON ────────────────────────────── */
.acc-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
    padding: 9px 18px;
    background: transparent;
    border: 1.5px solid rgba(192,57,43,0.35);
    border-radius: 8px;
    color: #c0392b;
    font-family: 'Assistant', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.acc-logout-btn:hover {
    background: #fff5f5;
    border-color: #c0392b;
    color: #a93226;
}
.acc-logout-btn svg { flex-shrink: 0; }

/* ── DOB INCENTIVE HINT ────────────────────────────────────── */
.af-dob-hint {
    font-size: 12px;
    color: #999;
    margin: -8px 0 14px;
    text-align: right;
    font-family: 'Assistant', sans-serif;
}

/* ── AUTH MODAL BACKDROP ───────────────────────────────────── */
#auth-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
#auth-modal-backdrop.open {
    opacity: 1; pointer-events: auto;
}

/* ── MODAL CARD ─────────────────────────────────────────────── */
.auth-card {
    background: #fff;
    border-radius: 22px;
    width: 100%; max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 28px 72px rgba(0,0,0,0.2);
    transform: translateY(22px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    scrollbar-width: none;
    direction: rtl;
}
.auth-card::-webkit-scrollbar { display: none; }
#auth-modal-backdrop.open .auth-card {
    transform: translateY(0) scale(1);
}

/* ── CARD HEADER ────────────────────────────────────────────── */
.auth-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 0;
}
.auth-logo {
    height: 36px; width: auto;
}
.auth-close {
    width: 32px; height: 32px;
    border-radius: 50%; border: none;
    background: #f4f4f4; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #888; line-height: 1;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.auth-close:hover { background: #e8e8e8; color: #333; }

/* ── TAB BAR ────────────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    gap: 0;
    padding: 20px 24px 0;
    border-bottom: 1.5px solid #f0ece8;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-family: 'Assistant', sans-serif;
    font-size: 16px; font-weight: 600;
    color: #aaa;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}
.auth-tab.active {
    color: var(--color-ink);
    border-bottom-color: var(--color-gold);
}
.auth-tab:hover:not(.active) { color: var(--color-ink); }

/* ── SCREEN WRAPPER ─────────────────────────────────────────── */
.auth-screen {
    display: none;
    padding: 24px 24px 28px;
    flex-direction: column;
    gap: 16px;
}
.auth-screen.active { display: flex; }

/* ── SOCIAL BUTTON (Google) ─────────────────────────────────── */
.auth-social-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    background: #fff;
    font-family: 'Heebo', sans-serif;
    font-size: 15px; font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.auth-social-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.auth-social-btn svg { flex-shrink: 0; }

/* ── OR DIVIDER ─────────────────────────────────────────────── */
.auth-or {
    display: flex; align-items: center; gap: 12px;
    color: #bbb; font-size: 13px;
    margin: 0;
}
.auth-or::before, .auth-or::after {
    content: ''; flex: 1;
    height: 1px; background: #e8e4e0;
}

/* ── FLOATING LABEL FIELDS ──────────────────────────────────── */
.af-wrap { position: relative; margin-bottom: 0; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.af-wrap input, .af-wrap select {
    width: 100%;
    padding: 20px 14px 6px;
    border: 1.5px solid #e4ddd6;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    background: #fdfbf9;
    outline: none;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none; appearance: none;
    direction: rtl;
}
.af-wrap input:focus, .af-wrap select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
    background: #fff;
}
.af-wrap label {
    position: absolute;
    top: 50%; right: 14px;
    transform: translateY(-50%);
    font-size: 14px; color: #a09080;
    transition: all 0.2s; pointer-events: none;
    font-family: 'Heebo', sans-serif;
}
.af-wrap input:focus ~ label,
.af-wrap input:not(:placeholder-shown) ~ label,
.af-wrap select:focus ~ label,
.af-wrap select:not([value=""]) ~ label {
    top: 7px; transform: none;
    font-size: 10px; color: var(--color-gold);
    font-weight: 600; letter-spacing: 0.5px;
}
.af-wrap.af-error input { border-color: #d94f4f; }
.af-err-msg {
    font-size: 11px; color: #d94f4f; margin-top: 4px;
    display: none;
}
.af-wrap.af-error .af-err-msg { display: block; }
.af-google-hint-btn {
    display: inline;
    color: #C5A880;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.af-google-hint-btn:hover { color: #a8895f; }

/* password eye toggle */
.af-eye {
    position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #bbb; padding: 4px;
    display: flex; align-items: center;
    transition: color 0.2s;
}
.af-eye:hover { color: #888; }

/* ── REQUIRED STAR ─────────────────────────────────────────── */
.af-required {
    color: #d94f4f;
    font-size: 13px;
    margin-right: 2px;
    line-height: 1;
}

/* ── OPTIONAL BADGE ─────────────────────────────────────────── */
.af-optional {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 10px; color: #c0b0a0;
    pointer-events: none;
    font-family: 'Heebo', sans-serif;
    transition: opacity 0.2s;
}
.af-wrap input:focus ~ .af-optional,
.af-wrap input:not(:placeholder-shown) ~ .af-optional { opacity: 0; }

/* ── NEWSLETTER CHECKBOX ─────────────────────────────────────── */
.auth-checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #888;
    line-height: 1.5; cursor: pointer;
}
.auth-checkbox-row input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0;
    accent-color: var(--color-gold);
    cursor: pointer; margin-top: 1px;
}

/* ── PRIMARY BUTTON ─────────────────────────────────────────── */
.auth-btn {
    width: 100%; padding: 14px;
    background: var(--color-gold);
    color: #fff;
    border: none; border-radius: 14px;
    font-family: 'Assistant', sans-serif;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 4px;
}
.auth-btn:hover {
    background: var(--color-gold-hover, #B8962E);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── TEXT LINKS ─────────────────────────────────────────────── */
.auth-switch-row {
    text-align: center; font-size: 14px; color: #888; margin-top: 0;
}
.auth-switch-row a, .auth-link {
    color: var(--color-gold); font-weight: 600; cursor: pointer;
    text-decoration: none; border: none; background: none;
    font-family: 'Heebo', sans-serif; font-size: inherit;
}
.auth-link-small {
    font-size: 13px; color: var(--color-gold);
    cursor: pointer; background: none; border: none;
    font-family: 'Heebo', sans-serif; text-align: start;
}
.auth-link-small:hover { text-decoration: underline; }

/* ── VERIFY / FORGOT SCREENS ────────────────────────────────── */
.auth-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff8ec;
    border: 2px solid var(--color-gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
}
.auth-icon-circle svg { stroke: var(--color-gold); }

@keyframes verify-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.35); }
    70%  { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}
.verify-pulse { animation: verify-pulse-ring 2s ease-out infinite; }

/* ── OTP ICON WRAP ──────────────────────────────────────────── */
.otp-icon-wrap {
    position: relative;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #fff8ec;
    border: 2px solid var(--color-gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    animation: verify-pulse-ring 2.2s ease-out infinite;
    transition: background 0.4s, border-color 0.4s;
}
.otp-icon-wrap svg { stroke: var(--color-gold); transition: stroke 0.3s; }
.otp-icon-ring {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(197,168,128,0.25);
    pointer-events: none;
}

/* Success state */
.otp-icon-wrap.otp-success {
    background: #edf7ed;
    border-color: #2e7d32;
    animation: otp-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.otp-icon-wrap.otp-success svg { stroke: #2e7d32; }
@keyframes otp-pop {
    0%   { transform: scale(0.8); }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ── OTP DIGIT BOXES ────────────────────────────────────────── */
.otp-box-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 8px;
}
.otp-box {
    width: 44px; height: 54px;
    border: 2px solid #e4ddd6;
    border-radius: 12px;
    font-size: 22px; font-weight: 700;
    text-align: center;
    color: var(--color-ink, #222);
    background: #fdfbf9;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: 'Heebo', monospace;
    -webkit-appearance: none;
    appearance: none;
}
.otp-box:focus {
    border-color: var(--color-gold, #C5A880);
    box-shadow: 0 0 0 3px rgba(197,168,128,0.2);
    background: #fff;
}
.otp-box.filled { border-color: var(--color-gold, #C5A880); background: #fffdf8; }
.otp-box.error  { border-color: #d94f4f; background: #fff5f5; }
.otp-box:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes otp-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.otp-shake { animation: otp-shake 0.45s ease; }

/* ── RESEND ROW ─────────────────────────────────────────────── */
.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
}
.otp-resend-label { color: #888; }
.otp-resend-btn {
    background: none; border: none;
    color: var(--color-gold, #C5A880);
    font-weight: 600; font-size: 13px;
    cursor: pointer; padding: 0;
    font-family: inherit;
    transition: color 0.2s, opacity 0.2s;
}
.otp-resend-btn:disabled { color: #bbb; cursor: default; }
.otp-resend-btn:not(:disabled):hover { color: var(--color-gold-hover, #A68A5E); text-decoration: underline; }
.otp-timer {
    color: #999; font-size: 13px;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
}

/* ── SECURITY NOTE ──────────────────────────────────────────── */
.otp-security-note {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 11.5px; color: #aaa;
    margin-top: 14px; text-align: center;
}
.otp-security-note svg { stroke: #bbb; flex-shrink: 0; }
.otp-hint-sub { margin-top: 4px; font-size: 12px; }

.verify-email-pill {
    background: #faf6ee;
    border: 1px solid #e8dfc8;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-ink, #222);
    text-align: center;
    direction: ltr;
    word-break: break-all;
    margin: 6px auto 0;
    max-width: 100%;
}
.auth-screen-title {
    font-family: 'Assistant', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--color-ink); text-align: center;
}
.auth-screen-sub {
    font-size: 14px; color: #888; text-align: center; line-height: 1.6;
}
.auth-screen-sub strong { color: var(--color-ink); }
.auth-btn-ghost {
    width: 100%; padding: 12px;
    background: transparent;
    border: 1.5px solid #e4ddd6;
    border-radius: 14px;
    font-family: 'Heebo', sans-serif;
    font-size: 15px; color: #666;
    cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.auth-btn-ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ── ERROR BANNER ───────────────────────────────────────────── */
.auth-error-banner {
    background: rgba(217,79,79,0.08);
    border: 1px solid rgba(217,79,79,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px; color: #d94f4f;
    display: none;
}
.auth-error-banner.show { display: block; }

/* ── SUCCESS BANNER ─────────────────────────────────────────── */
.auth-success-banner {
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px; color: #388e3c;
    display: none; text-align: center;
}
.auth-success-banner.show { display: block; }

/* ══════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── GREETING STRIP ─────────────────────────────────────────── */
.acc-greeting {
    background: linear-gradient(135deg, #FAF6EE 0%, #FFF9EC 100%);
    border-bottom: 1px solid #f0e8d8;
    padding: 32px 40px;
    display: flex; align-items: center; gap: 20px;
}
.acc-avatar-lg {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    font-family: 'Assistant', sans-serif;
    font-size: 24px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; text-transform: uppercase;
}
.acc-greeting-text h2 {
    font-family: 'Assistant', sans-serif;
    font-size: 24px; font-weight: 700;
    color: var(--color-ink); margin-bottom: 2px;
}
.acc-greeting-text p {
    font-size: 14px; color: #9a8a78;
}

/* ── TAB BAR ────────────────────────────────────────────────── */
.acc-tabs {
    display: flex; gap: 0;
    border-bottom: 1.5px solid #f0ece8;
    padding: 0 40px;
    background: #fff;
    position: sticky; top: var(--header-height, 80px); z-index: 10;
}
.acc-tab {
    padding: 16px 20px;
    font-family: 'Assistant', sans-serif;
    font-size: 15px; font-weight: 600;
    color: #aaa; cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
}
.acc-tab.active { color: var(--color-ink); border-bottom-color: var(--color-gold); }
.acc-tab:hover:not(.active) { color: var(--color-ink); }

/* ── CONTENT AREA ───────────────────────────────────────────── */
.acc-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* ── PANELS ─────────────────────────────────────────────────── */
.acc-panel { display: none; }
.acc-panel.active { display: block; }

.acc-section-title {
    font-family: 'Assistant', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ece8;
}

/* ── PROFILE FORM ───────────────────────────────────────────── */
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-form .af-row { gap: 14px; }

/* City autocomplete (account + checkout) */
.af-city-ac-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0; left: 0;
    background: #fff;
    border: 1.5px solid var(--color-gold, #C5A880);
    border-radius: 10px;
    max-height: 210px;
    overflow-y: auto;
    z-index: 300;
    margin: 0; padding: 4px 0;
    list-style: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.af-city-ac-list.open { display: block; }
.af-city-ac-list li {
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-ink, #2a1f14);
    transition: background 0.12s;
}
.af-city-ac-list li:hover,
.af-city-ac-list li.ac-active {
    background: rgba(197,168,128,0.13);
    color: var(--color-gold, #C5A880);
}
.af-city-ac-list li .ac-match { font-weight: 700; }

.email-verified-badge {
    position: absolute;
    bottom: 10px;
    left: 14px;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: #2e7d32;
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 20px; padding: 2px 8px;
    pointer-events: none;
}
.email-verified-badge svg { width: 10px; height: 10px; stroke: #2e7d32; fill: none; stroke-width: 2.5; }

.acc-save-btn {
    align-self: flex-start;
    padding: 12px 32px;
    background: var(--color-gold);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Assistant', sans-serif;
    font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}
.acc-save-btn:hover { background: var(--color-gold-hover, #B8962E); transform: translateY(-1px); }

/* ── ORDERS ─────────────────────────────────────────────────── */
.order-card {
    border: 1px solid #f0ece8;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 20px;
    background: #fdfbf9;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-color: #e8ddd0; }
.order-num {
    font-family: 'Assistant', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--color-ink);
}
.order-meta {
    font-size: 13px; color: #888; margin-top: 2px;
}
.order-total {
    font-family: 'Assistant', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--color-gold); margin-right: auto;
}
.order-status {
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
}
.order-status.delivered { background: rgba(76,175,80,0.1); color: #2e7d32; }
.order-status.processing { background: rgba(212,175,55,0.12); color: #8a6e00; }
.order-status.shipped { background: rgba(33,150,243,0.1); color: #1565c0; }

.acc-empty {
    text-align: center; padding: 60px 20px;
    color: #bbb;
}
.acc-empty svg { stroke: #ddd; margin-bottom: 16px; }
.acc-empty p { font-size: 15px; }
.acc-empty a { color: var(--color-gold); font-weight: 600; text-decoration: none; }

/* ── WISHLIST GRID ──────────────────────────────────────────── */
.acc-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* ── SETTINGS ───────────────────────────────────────────────── */
.acc-settings-section {
    background: #fdfbf9;
    border: 1px solid #f0ece8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}
.acc-settings-section h3 {
    font-family: 'Assistant', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--color-ink); margin-bottom: 16px;
}
.acc-setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0ece8;
    font-size: 14px; color: #555;
}
.acc-setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.acc-toggle {
    width: 44px; height: 24px;
    background: #ddd; border-radius: 12px;
    position: relative; cursor: pointer;
    transition: background 0.2s; border: none;
    flex-shrink: 0;
}
.acc-toggle.on { background: var(--color-gold); }
.acc-toggle::after {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; top: 3px; right: 3px;
    transition: right 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.acc-toggle.on::after { right: calc(100% - 21px); }

.acc-danger-btn {
    background: none; border: none; cursor: pointer;
    color: #d94f4f; font-size: 14px; font-weight: 600;
    font-family: 'Heebo', sans-serif;
    padding: 0; transition: color 0.2s;
}
.acc-danger-btn:hover { color: #b71c1c; }

.acc-danger-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: transparent;
    border: 1.5px solid rgba(217,79,79,0.4);
    border-radius: 10px;
    color: #d94f4f;
    font-size: 13px; font-weight: 600;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.acc-danger-pill-btn:hover {
    background: #fff5f5;
    border-color: #d94f4f;
    color: #b71c1c;
}

.acc-ghost-btn {
    background: none;
    border: 1.5px solid #e4ddd6;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px; color: #555;
    cursor: pointer; font-family: 'Heebo', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}
.acc-ghost-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Greeting strip ── */
    .acc-greeting {
        padding: 16px 14px;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }
    .acc-avatar-lg {
        width: 44px; height: 44px;
        font-size: 18px;
        flex-shrink: 0;
    }
    .acc-greeting-text { flex: 1; min-width: 0; }
    .acc-greeting-text h2 { font-size: 16px; }
    .acc-greeting-text p  { font-size: 12px; word-break: break-all; }
    .acc-logout-btn {
        flex-shrink: 0;
        margin-inline-start: 0;
        padding: 7px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 8px;
    }
    .acc-logout-btn span { display: none; }

    /* ── Tab bar ── */
    .acc-tabs {
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
        top: 62px; /* mobile header height */
    }
    .acc-tabs::-webkit-scrollbar { display: none; }
    .acc-tab { padding: 12px 12px; font-size: 13px; }

    /* ── Content ── */
    .acc-content { padding: 20px 14px 80px; }

    /* ── Forms ── */
    .acc-form .af-row { grid-template-columns: 1fr; }
    .af-row { grid-template-columns: 1fr; }
    .acc-save-btn { width: 100%; text-align: center; justify-content: center; }

    /* ── Wishlist — 2-column vertical cards ── */
    .wl-summary { font-size: 13px; padding: 10px 14px; }
    .wl-sort-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 14px;
        padding-bottom: 2px;
    }
    .wl-sort-bar::-webkit-scrollbar { display: none; }
    .wl-sort-btn { font-size: 12px; padding: 6px 12px; }

    .wl-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .wl-card {
        flex-direction: column;
        border-radius: 14px;
        transform: none !important;
    }
    .wl-card-img {
        aspect-ratio: 3/4;
        width: 100%;
        border-radius: 0;
    }
    .wl-card-trash {
        top: 8px; right: 8px;
        width: 28px; height: 28px;
    }
    .wl-card-trash svg { width: 13px; height: 13px; }
    .wl-card-body {
        padding: 10px 12px 12px;
        gap: 5px;
    }
    .wl-card-name { font-size: 13px; }
    .wl-card-price { font-size: 14px; }
    .wl-btn-cart {
        font-size: 12px;
        padding: 8px 4px;
        border-radius: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Orders ── */
    .order-card { flex-wrap: wrap; gap: 10px; }
    .order-total { margin-right: 0; }
    .ord-card-main { flex-wrap: wrap; gap: 10px; }
    .ord-thumbs { display: none; }
    .ord-stepper { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .ord-stepper::-webkit-scrollbar { display: none; }
    .ord-card { padding: 14px; }
    .ord-reorder-btn { width: 100%; text-align: center; margin-top: 8px; }

    /* ── Settings ── */
    .acc-settings-section { padding: 16px; }
    .acc-setting-row {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }
    .acc-setting-row .acc-toggle,
    .acc-setting-row .acc-danger-btn,
    .acc-setting-row .acc-danger-pill-btn,
    .acc-setting-row .acc-ghost-btn,
    .acc-setting-row .acc-setting-badge {
        flex-shrink: 0;
        margin-inline-start: auto;
    }
    .acc-setting-row .acc-danger-pill-btn {
        width: 100%;
        margin-inline-start: 0;
        justify-content: center;
    }

    /* Delete account confirm — full width stack */
    .acc-danger-confirm {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .acc-danger-confirm button { width: 100%; text-align: center; }

    /* ── Auth modal ── */
    .auth-card { border-radius: 18px; }
    .acc-wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   WISHLIST PANEL
   ══════════════════════════════════════════════════════════════ */
.wl-summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    background: linear-gradient(135deg, #fff9ec, #fdf5e0);
    border: 1px solid #f0e4c4;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-family: 'Heebo', sans-serif;
}
.wl-summary-left {
    display: flex; align-items: center; gap: 10px;
}
.wl-summary-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff3d6; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wl-summary-icon svg { stroke: var(--color-gold); }
.wl-summary-count {
    font-size: 14px; font-weight: 600; color: #5a4520;
}
.wl-summary-sub {
    font-size: 12px; color: #a0874a; margin-top: 1px;
}
.wl-add-all-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--color-gold);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}
.wl-add-all-btn:hover { background: #b8962e; transform: translateY(-1px); }
.wl-add-all-btn.all-in-cart { background: #2e7d32; }
.wl-add-all-btn.all-in-cart:hover { background: #1b5e20; }
.wl-summary-dot { color: #c0a878; margin: 0 4px; }

/* ── WISHLIST SORT BAR ──────────────────────────────────────── */
.wl-sort-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.wl-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e8ddd0;
    background: #fff;
    color: #888;
    font-family: 'Heebo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    white-space: nowrap;
}
.wl-sort-btn svg { stroke: currentColor; flex-shrink: 0; }
.wl-sort-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: #fffcf5;
}
.wl-sort-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
    font-weight: 600;
}
.wl-sort-btn.active svg { stroke: #fff; }
.wl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.wl-card {
    background: #fff;
    border: 1px solid #f0ece8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.wl-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    border-color: #e8ddd0;
    transform: translateY(-2px);
}
.wl-card-img {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #faf8f5;
}
.wl-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.wl-card:hover .wl-card-img img { transform: scale(1.05); }

/* Trash icon button — replaces heart on wishlist page */
.wl-card-trash {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
}
.wl-card-trash:hover {
    background: #fff0f0;
    color: #d94f4f;
    transform: scale(1.12);
}

.wl-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.wl-card-name {
    font-family: 'Assistant', sans-serif;
    font-size: 14px; font-weight: 600;
    color: var(--color-ink);
    line-height: 1.3;
    flex: 1;
}
.wl-card-price {
    font-family: 'Heebo', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--color-gold);
}
.wl-btn-cart {
    width: 100%;
    padding: 9px 10px;
    background: var(--color-gold);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    margin-top: auto;
}
.wl-btn-cart:hover { background: var(--color-gold-hover, #B8962E); transform: translateY(-1px); }
.wl-btn-cart.in-cart {
    background: #2e7d32;
    color: #fff;
}
.wl-btn-cart.in-cart:hover { background: #1b5e20; }
.wl-btn-remove {
    padding: 9px 12px;
    background: none;
    border: 1.5px solid rgba(217,79,79,0.3);
    border-radius: 10px;
    color: #d94f4f;
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.wl-btn-remove:hover { background: #fff5f5; border-color: #d94f4f; }

/* ══════════════════════════════════════════════════════════════
   ORDERS PANEL
   ══════════════════════════════════════════════════════════════ */
.ord-filters {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.ord-filter {
    padding: 8px 18px;
    background: none;
    border: 1.5px solid #e4ddd6;
    border-radius: 20px;
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #888; cursor: pointer;
    transition: all 0.2s;
}
.ord-filter:hover { border-color: var(--color-gold); color: var(--color-gold); }
.ord-filter.active { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.ord-card {
    border: 1px solid #f0ece8;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 14px;
    background: #fdfbf9;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ord-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-color: #e8ddd0; }
.ord-card-main {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.ord-card-info { flex: 1; min-width: 0; }
.ord-num {
    font-family: 'Assistant', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--color-ink);
}
.ord-meta { font-size: 13px; color: #888; margin-top: 2px; }
.ord-thumbs {
    display: flex; gap: 6px; align-items: center;
    flex-shrink: 0;
}
.ord-thumbs img {
    width: 42px; height: 42px;
    border-radius: 8px; object-fit: cover;
    border: 1.5px solid #f0ece8;
}
.ord-thumb-more {
    width: 42px; height: 42px;
    border-radius: 8px;
    background: #f5f0eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #888;
}
.ord-card-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    flex-shrink: 0;
}
.ord-total {
    font-family: 'Assistant', sans-serif;
    font-size: 18px; font-weight: 700; color: var(--color-gold);
}
.ord-stepper {
    display: flex; align-items: flex-start;
    margin-bottom: 12px;
    padding: 14px 0 6px;
    border-top: 1px solid #f5f0eb;
}
.ord-step {
    display: flex; flex-direction: column; align-items: center;
    font-size: 11px; color: #bbb; flex-shrink: 0;
    min-width: 60px; text-align: center;
}
.ord-step.active { color: #1565c0; }
.ord-step.done { color: #2e7d32; }
.ord-step-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f0ece8;
    border: 2px solid #e4ddd6;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.2s;
}
.ord-step.active .ord-step-circle {
    background: rgba(33,150,243,0.12);
    border-color: #1565c0;
    color: #1565c0;
}
.ord-step.done .ord-step-circle {
    background: rgba(76,175,80,0.12);
    border-color: #2e7d32;
    color: #2e7d32;
}
.ord-step-label {
    font-family: 'Heebo', sans-serif;
    font-size: 11px; font-weight: 500;
    line-height: 1.2;
}
.ord-step-line {
    flex: 1;
    height: 2px;
    background: #e4ddd6;
    margin-top: 13px;
    align-self: flex-start;
}
.ord-step-line.done { background: rgba(76,175,80,0.4); }
.ord-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f5f0eb;
}
.ord-reorder-btn {
    padding: 8px 18px;
    background: none;
    border: 1.5px solid var(--color-gold);
    border-radius: 10px;
    color: var(--color-gold);
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ord-reorder-btn:hover { background: var(--color-gold); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   SETTINGS ENHANCEMENTS
   ══════════════════════════════════════════════════════════════ */
.acc-settings-section h3 { display: flex; align-items: center; gap: 8px; }
.acc-settings-section h3 svg { flex-shrink: 0; color: var(--color-gold); }
.acc-setting-label {
    font-family: 'Heebo', sans-serif;
    font-size: 14px; font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 2px;
}
.acc-setting-desc {
    font-family: 'Heebo', sans-serif;
    font-size: 12px; color: #9a8a78;
    line-height: 1.4;
}
.acc-setting-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    color: var(--color-gold);
    font-family: 'Heebo', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}
.acc-danger-confirm {
    display: none;
    align-items: center; gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #fff5f5;
    border: 1px solid rgba(217,79,79,0.2);
    border-radius: 12px;
    margin-top: 8px;
    font-size: 14px; color: #d94f4f;
    font-family: 'Heebo', sans-serif;
}
.acc-danger-confirm button {
    padding: 8px 18px;
    border-radius: 8px;
    border: none; cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 13px; font-weight: 600;
}
.acc-danger-confirm button:first-of-type { background: #d94f4f; color: #fff; }
.acc-danger-confirm button:first-of-type:hover { background: #b71c1c; }
.acc-danger-confirm button:last-of-type { background: #f0ece8; color: #555; }
.acc-danger-confirm button:last-of-type:hover { background: #e4ddd6; }

/* ── TOAST NOTIFICATION ─────────────────────────────────────── */
.page-toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222; color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    font-family: 'Heebo', sans-serif;
    font-size: 14px; font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}
.page-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
