/* ==========================================================================
   ELITE THEME — SGC GAME
   --------------------------------------------------------------------------
   Mobile-first digital-store skin. Navy app bar, rounded banner carousel,
   pill search, 3-up square category grid, full-height slide-in drawer.

   Palette (aligned to the storefront light design system):
     navy        #0F172A    deep app bar / drawer head / support button
     navy soft   #1E293B    login card
     royal       #2563EB    primary action / links
     gold        #EAB308    balance-chip accent (app bar / drawer)
     surface     #EEF2F7    welcome strip / search field / current nav row
     ink         #1E293B    body text

   Layout rules that must not regress:
     - no horizontal scrolling at any width (320px → desktop)
     - category names wrap to 2 lines and are never clipped
     - images keep their aspect ratio, never stretched
     - touch targets >= 44px
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
    --elite-navy: #0F172A;
    --elite-navy-soft: #1E293B;      /* login card */
    --elite-blue: #2563EB;
    --elite-green: #2563EB;          /* primary action (royal) — name kept for compatibility */
    --elite-green-dark: #1D4ED8;    /* royal hover */
    --elite-text: #1E293B;
    --elite-ink: #0F172A;        /* display/heading ink; flips to light in dark mode */           /* body / category labels */
    --elite-surface-alt: #EEF2F7;    /* welcome strip / search field / current nav row */
    --elite-page-bg: #F4F6F9;    /* page canvas (matches classic) */
    --elite-white: #FFFFFF;

    --elite-ink-soft: #475569;
    --elite-line: #E2E8F0;
    --elite-radius-sm: 10px;
    --elite-radius: 16px;
    --elite-radius-lg: 22px;
    --elite-shadow-sm: 0 2px 8px rgba(15, 23, 42, .07);
    --elite-shadow: 0 6px 22px rgba(15, 23, 42, .10);
    --elite-shadow-lg: 0 14px 38px rgba(15, 23, 42, .18);

    --elite-appbar-h: 56px;   /* measured from the reference */
    --elite-drawer-width: 72vw;
    --elite-gutter: 15px;     /* measured side padding */

    --elite-font: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Gear glyph for the light/dark knob (inline SVG, no extra request). */
    --elite-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-1.8-.3 1.6 1.6 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.6 1.6 0 0 0-1-1.5 1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0 .3-1.8 1.6 1.6 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.6 1.6 0 0 0 1.5-1 1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 1.8.3H9a1.6 1.6 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 1 1.5 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0-.3 1.8V9a1.6 1.6 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1z'/%3E%3C/svg%3E");
}

/* Dark mode: same structure, inverted surfaces. Triggered by the drawer
   switch and persisted in localStorage. */
html[data-elite-mode="dark"] {
    --elite-page-bg: #0B1120;   /* dark canvas (matches classic) */
    --elite-surface-alt: #16203A;
    --elite-white: #111A2E;
    --elite-text: #e8eef6;
    --elite-ink: #e8eef6;
    --elite-ink-soft: #9fb0c4;
    --elite-line: #22304E;
    /* royal accents lifted for contrast on dark surfaces (navy stays constant, like classic) */
    --elite-blue: #7FB0FF;
    --elite-green: #7FB0FF;
    --elite-shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
    --elite-shadow: 0 6px 22px rgba(0, 0, 0, .5);
    --elite-shadow-lg: 0 14px 38px rgba(0, 0, 0, .6);
}

/* Dark mode: navy fills would vanish on the dark card, so lift primary
   actions to the royal accent (white text on royal passes contrast). */
html[data-elite-mode="dark"] .elite-btn--navy,
html[data-elite-mode="dark"] .elite-auth-submit {
    background: #2563EB;
    color: #fff;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    /* Hard guarantee: the elite surface never scrolls sideways. */
    overflow-x: hidden;
    max-width: 100%;
}

.elite-body {
    font-family: var(--elite-font);
    font-size: var(--elite-font-size, 15px);
    background: var(--elite-page-bg);
    color: var(--elite-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-font-smoothing: antialiased;
}

/* Hide the classic theme chrome when ELITE is active. The classic layout and
   its CSS stay untouched on disk; these rules only apply to body.elite-body. */
.elite-body .main-header,
.elite-body .mobile-bottom-nav,
.elite-body .mobile-nav-drawer,
.elite-body .drawer-backdrop,
.elite-body .animated-red-glass-glow,
.elite-body > .main-footer { display: none !important; }

.elite-body .page-wrapper {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.elite-skip {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--elite-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--elite-radius-sm) 0;
}
.elite-skip:focus { inset-inline-start: 0; }

/* ---------------------------------------------------------------- app bar */
.elite-appbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--elite-navy);
    padding-top: env(safe-area-inset-top, 0);
    /* The reference has a clean hard edge, not a floating shadow. */
    box-shadow: none;
}

.elite-appbar-inner {
    height: var(--elite-appbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--elite-gutter);
    max-width: 1180px;
    margin: 0 auto;
}

.elite-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
}

.elite-brand-logo {
    height: var(--elite-logo-height);
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.elite-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1rem, 4.2vw, 1.22rem);
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-appbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.elite-balance-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(234, 179, 8, .16);
    border: 1px solid rgba(234, 179, 8, .45);
    color: #FDE68A;
    font-weight: 800;
    font-size: .78rem;
    padding: 5px 10px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    margin-inline-end: 4px;
}

.elite-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, transform .12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}
.elite-icon-btn:hover,
.elite-icon-btn:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.elite-icon-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- scrim */
.elite-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity .26s ease;
}
.elite-scrim.is-open { opacity: 1; }
.elite-scrim[hidden] { display: none; }

/* ---------------------------------------------------------------- drawer */
.elite-drawer {
    position: fixed;
    top: 0;
    /* RTL: `inset-inline-start` is the right edge, so the drawer opens from the
       right and slides out to the right (translateX(+100%) below). */
    inset-inline-start: 0;
    height: 100dvh;
    height: 100vh;
    width: var(--elite-drawer-width);
    max-width: 420px;
    min-width: 264px;
    background: var(--elite-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 8px 0 40px rgba(15, 23, 42, .25);
    overflow: hidden;
    visibility: hidden;
}
/* LTR sites mirror the whole thing. */
html[dir="ltr"] .elite-drawer { inset-inline-start: auto; inset-inline-end: 0; }

.elite-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}
.elite-drawer[aria-hidden="true"] { visibility: hidden; }
.elite-drawer.is-open[aria-hidden="false"] { visibility: visible; }

.elite-drawer-head {
    background: var(--elite-navy);
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
}

.elite-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
}
.elite-drawer-logo {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}
.elite-drawer-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-drawer-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, transform .12s ease;
    padding: 0;
}
.elite-drawer-close:hover { background: rgba(255, 255, 255, .24); }
.elite-drawer-close:active { transform: scale(.9); }

.elite-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(22px + env(safe-area-inset-bottom, 0px));
}

/* ---- account card (guest) ---- */
/* Reference: a flat, deep-navy card with a large radius and soft shadow. */
.elite-account-card {
    background: var(--elite-navy-soft);
    border-radius: 22px;
    padding: 22px 18px 18px;
    box-shadow: 0 8px 24px rgba(9, 44, 74, .22);
    color: #fff;
    margin-bottom: 20px;
}

.elite-account-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-align: center;
}

.elite-account-desc {
    margin: 0 0 18px;
    font-size: .86rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    text-align: center;
}

.elite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;   /* pill, as in the reference */
    border: 0;
    font-family: inherit;
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, filter .16s ease, background .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.elite-btn:active { transform: scale(.975); }

.elite-btn--navy { background: var(--elite-navy, #0F172A); color: #fff; }
.elite-btn--block { display: flex; width: 100%; }
.elite-btn--block + .elite-btn--block { margin-top: 10px; }

.elite-btn--green {
    background: var(--elite-green);
    color: #fff;
}
.elite-btn--green:hover { background: var(--elite-green-dark); }

.elite-btn--google {
    background: #fff;
    color: #1f2937;
    box-shadow: var(--elite-shadow-sm);
}
.elite-btn--google:hover { background: #f4f6f8; }

.elite-btn--ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.elite-btn--ghost:hover { background: rgba(255, 255, 255, .2); }

.elite-account-links {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
}
.elite-account-links a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-weight: 700;
}
.elite-account-links a:hover { text-decoration: underline; }

/* ---- signed-in profile block (drawer) ---- */

.elite-icon-btn--badge { position: relative; }

.elite-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F6D365 0%, #D9A32B 100%);
    color: #4A3300;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

.elite-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    text-decoration: none;
}

.elite-balance-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDE047, #EAB308);
    color: #422006;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.elite-balance-amount {
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
    min-width: 0;
    overflow-wrap: anywhere;
}

.elite-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0 18px;
}

.elite-profile-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #E8EDF2;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #E2E8EF;
}

.elite-profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.elite-profile-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--elite-navy-soft, #1E293B);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.elite-profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--elite-text, #1E293B);
}

.elite-profile-tier {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #EFF3F7;
    color: var(--elite-text, #1E293B);
    font-size: 11px;
    font-weight: 700;
}

.elite-profile-sep { color: #C3CED8; }
.elite-profile-name { font-weight: 700; }
.elite-profile-id { color: #7A8C99; direction: ltr; }

.elite-profile-info {
    display: inline-flex;
    align-items: center;
    color: #9AAAB6;
    text-decoration: none;
}

.elite-profile-balance {
    display: block;
    max-width: 100%;
    font-size: 20px;
    font-weight: 800;
    color: var(--elite-blue, #2563EB);
    text-decoration: none;
    text-align: center;
    direction: ltr;
    overflow-wrap: anywhere; /* preserve 30 decimal places without widening the drawer */
}

.elite-profile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 4px 0 2px;
}

.elite-profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--elite-ink-soft, #475569);
    text-decoration: none;
    background: transparent;
}

.elite-profile-action--heart { color: #E5484D; }

.elite-currency-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #FBEBB5;
    color: #6B5312;
    font-size: 11px;
    font-weight: 700;
}

.elite-currency-pill__label { flex: 1; text-align: right; }
.elite-currency-pill__value { direction: ltr; font-weight: 800; }

/* ---- account card (signed in) ---- */
.elite-account-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.elite-account-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .28);
    flex: 0 0 auto;
}
.elite-account-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--elite-green);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.elite-account-meta { min-width: 0; }
.elite-account-name {
    display: block;
    font-size: .98rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.elite-account-sub {
    display: block;
    font-size: .76rem;
    color: rgba(255, 255, 255, .66);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: start;
}

.elite-account-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(234, 179, 8, .14);
    border: 1px solid rgba(234, 179, 8, .3);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 12px;
}
.elite-account-balance strong { color: #FDE68A; font-size: .96rem; }

.elite-account-actions { display: flex; gap: 8px; }
.elite-account-actions .elite-btn { flex: 1 1 auto; min-height: 42px; font-size: .84rem; }

/* ---- separators & nav ---- */
.elite-drawer-rule {
    border: 0;
    border-top: 1px solid var(--elite-line);
    margin: 14px 0;
}

.elite-drawer-section-title {
    margin: 0 0 8px;
    font-size: .74rem;
    font-weight: 800;
    color: var(--elite-ink-soft);
    letter-spacing: .3px;
}

.elite-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.elite-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--elite-text);
    font-size: .93rem;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: start;
    width: 100%;
    transition: background .16s ease, color .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.elite-drawer-link:hover { background: var(--elite-surface-alt); }
.elite-drawer-link:active { background: var(--elite-surface-alt); }
.elite-drawer-link.is-current {
    background: var(--elite-surface-alt);
    color: var(--elite-ink);
}

.elite-drawer-link-icon {
    width: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Leading icon takes the accent colour; label uses the ink token. */
    color: var(--elite-green);
    font-size: 1.05rem;
}

.elite-drawer-link-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    color: var(--elite-ink);
}

/* ---- appearance row ---- */
.elite-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px;
}

.elite-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--elite-text);
}

.elite-mode-gear {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--elite-white);
    box-shadow: var(--elite-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--elite-ink);
    flex: 0 0 auto;
}

/* Reference: a wide soft track with a raised white knob that carries a gear. */
.elite-switch {
    position: relative;
    width: 82px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: #e6e9ee;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}
.elite-switch[aria-checked="true"] { background: var(--elite-green); }

.elite-switch-knob {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
    transition: inset-inline-start .2s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.elite-switch-knob::before {
    content: '';
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: var(--elite-gear) center / contain no-repeat;
    mask: var(--elite-gear) center / contain no-repeat;
}
.elite-switch[aria-checked="true"] .elite-switch-knob { inset-inline-start: 44px; }

/* ---- socials ---- */
.elite-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 4px 8px;
}

.elite-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .14s ease, filter .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.elite-social:hover { transform: translateY(-2px); filter: brightness(1.08); }
.elite-social:active { transform: scale(.93); }

.elite-social { position: relative; }

/* Number badge on the 2nd/3rd WhatsApp line (as in the reference). */
.elite-social-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--elite-green);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .25);
}

.elite-social--telegram  { background: #229ED9; }
.elite-social--whatsapp  { background: #25D366; }
.elite-social--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.elite-social--facebook  { background: #1877F2; }

/* ---- drawer footer ---- */
.elite-drawer-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--elite-line);
    text-align: center;
}

.elite-developer-logo {
    max-height: 44px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
    object-fit: contain;
}

.elite-copyright {
    margin: 0 0 8px;
    font-size: .76rem;
    color: var(--elite-ink-soft);
    line-height: 1.6;
}

.elite-legal-links {
    margin: 0;
    font-size: .74rem;
    color: var(--elite-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.elite-legal-links a { color: var(--elite-blue); text-decoration: none; font-weight: 700; }
.elite-legal-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- main */
.elite-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px var(--elite-gutter) 30px;
}

/* keep classic inner pages readable inside the elite shell */
.elite-main > * { max-width: 100%; }

.elite-flash {
    margin: 10px 0 0;
    padding: 11px 14px;
    border-radius: var(--elite-radius-sm);
    font-size: .86rem;
    font-weight: 700;
}
.elite-flash--ok   { background: #e6f9ef; color: #146c43; border: 1px solid #b7e9cd; }
.elite-flash--err  { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.elite-flash--warn { background: #fff6e5; color: #8a5a00; border: 1px solid #f5dfb0; }

/* ---------------------------------------------------------------- hero */
.elite-hero {
    border-radius: var(--elite-banner-radius, 14px);
    position: relative;
    margin-top: 14px;
    border-radius: var(--elite-radius);
    overflow: hidden;
    box-shadow: var(--elite-shadow);
    background: var(--elite-navy);
}

.elite-hero-track {
    position: relative;
    width: 100%;
    /* 16:9 box; images use object-fit: cover so nothing is squashed. */
    aspect-ratio: 16 / 9;
}

.elite-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
    text-decoration: none;
    display: block;
    pointer-events: none;
}
.elite-hero-slide.is-active { opacity: 1; pointer-events: auto; }

.elite-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
}

.elite-hero-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 26px 16px 14px;
    background: linear-gradient(to top, rgba(15, 23, 42, .85), transparent);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.5;
}

.elite-hero-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    z-index: 3;
}

.elite-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.elite-hero-dot.is-active { width: 20px; background: #fff; }

/* ---------------------------------------------------------------- welcome */
.elite-welcome {
    background: var(--elite-welcome-bg, #EEF2F7);
    color: var(--elite-welcome-ink, #1E293B);
    border-radius: var(--elite-welcome-radius, 999px);
    margin-top: 14px;
    background: var(--elite-surface-alt);
    border-radius: var(--elite-radius-sm);
    overflow: hidden;
    border: 1px solid var(--elite-line);
}

.elite-welcome-track {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 11px 14px;
    white-space: nowrap;
    min-height: 44px;
}

.elite-welcome-text {
    font-size: .86rem;
    font-weight: 600;
    color: var(--elite-text);
    flex: 0 0 auto;
}

.elite-welcome.is-marquee .elite-welcome-track {
    animation: elite-marquee 26s linear infinite;
    width: max-content;
    padding-inline: 0;
}
.elite-welcome.is-marquee .elite-welcome-text { padding-inline: 18px; }

@keyframes elite-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .elite-welcome.is-marquee .elite-welcome-track { animation: none; }
    .elite-hero-slide { transition: none; }
}

/* ---------------------------------------------------------------- search */
.elite-search {
    position: relative;
    margin-top: 12px;
}

.elite-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--elite-surface-alt);
    border: 1px solid var(--elite-line);
    border-radius: 999px;
    padding: 0 16px;
    min-height: 52px;
    transition: border-color .16s ease, background .16s ease;
}
.elite-search-field:focus-within {
    border-color: var(--elite-blue);
    background: var(--elite-white);
}

.elite-search-icon { color: var(--elite-ink-soft); display: inline-flex; flex: 0 0 auto; }

.elite-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: .95rem;
    color: var(--elite-text);
    padding: 14px 0;
    text-align: start;
}
.elite-search-input::placeholder { color: var(--elite-ink-soft); }
.elite-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.elite-search-results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    background: var(--elite-white);
    border-radius: var(--elite-radius);
    box-shadow: var(--elite-shadow-lg);
    border: 1px solid var(--elite-line);
    overflow: hidden;
    z-index: 60;
    max-height: 60vh;
    overflow-y: auto;
}

.elite-search-group-title {
    padding: 10px 14px 6px;
    font-size: .72rem;
    font-weight: 800;
    color: var(--elite-ink-soft);
    background: var(--elite-surface-alt);
}

.elite-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--elite-text);
    font-size: .86rem;
    border-bottom: 1px solid var(--elite-line);
}
.elite-search-row:last-child { border-bottom: 0; }
.elite-search-row:hover { background: var(--elite-surface-alt); }

.elite-search-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 34px;
    background: var(--elite-surface-alt);
}

.elite-search-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.elite-search-row-price { flex: 0 0 auto; font-weight: 800; color: var(--elite-blue); font-size: .8rem; }
.elite-search-empty { padding: 16px 14px; font-size: .85rem; color: var(--elite-ink-soft); text-align: center; }

/* ---------------------------------------------------------------- sections */
.elite-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 24px 2px 14px;
}

.elite-section-title {
    font-weight: var(--elite-heading-weight, 800);
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--elite-ink);
    position: relative;
    padding-inline-start: 12px;
}
.elite-section-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 17px;
    border-radius: 999px;
    background: var(--elite-green);
}
html[data-elite-mode="dark"] .elite-section-title { color: #dfe9f5; }

/* ---------------------------------------------------------------- category grid */
.elite-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--elite-cat-cols-mobile, 2), minmax(0, 1fr));
    gap: 20px 14px;   /* measured: roomy vertical rhythm between rows */
}

/* Reference: the card is the image itself — no white panel, no drop shadow.
   Only the artwork and its label sit on the white page. */
.elite-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    background: transparent;
    padding: 0;
    transition: transform .16s ease;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}
.elite-cat-card:hover { transform: translateY(-2px); }
.elite-cat-card:active { transform: scale(.97); }

.elite-cat-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;          /* square, per spec */
    border-radius: 10px;          /* gentle rounding, as in the reference */
    overflow: hidden;
    background: linear-gradient(150deg, #0a1a44 0%, #123a7a 55%, #0a1a44 100%);
    display: block;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .14);
}

.elite-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* never distorted */
    display: block;
}

.elite-cat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--elite-navy) 0%, var(--elite-blue) 100%);
    color: #fff;
}
.elite-cat-emoji { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1; }
.elite-cat-initial { font-size: clamp(1.4rem, 6vw, 1.9rem); font-weight: 800; }

.elite-cat-name {
    font-size: clamp(.76rem, 3.2vw, .88rem);
    font-weight: 700;
    color: var(--elite-text);
    text-align: center;
    line-height: 1.35;
    /* Exactly two lines max, and never clipped mid-glyph. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: 2.7em;
    width: 100%;
}
html[data-elite-mode="dark"] .elite-cat-name { color: #e8eef6; }

/* ---------------------------------------------------------------- product grid */
.elite-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.elite-product-card {
    display: flex;
    flex-direction: column;
    background: var(--elite-white);
    border-radius: var(--elite-radius-sm);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--elite-shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}
.elite-product-card:hover { transform: translateY(-2px); box-shadow: var(--elite-shadow); }
.elite-product-card:active { transform: scale(.985); }

.elite-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--elite-surface-alt);
    display: block;
    overflow: hidden;
}
.elite-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elite-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--elite-navy) 0%, var(--elite-blue) 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}

.elite-product-badge {
    position: absolute;
    top: 7px;
    inset-inline-start: 7px;
    background: var(--elite-green);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1.5;
}
.elite-product-badge--out { background: #8b9aa8; inset-inline-start: auto; inset-inline-end: 7px; }

.elite-product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px 11px;
    flex: 1 1 auto;
    min-width: 0;
}

.elite-product-cat {
    font-size: .66rem;
    color: var(--elite-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-product-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--elite-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 2.3em;
}
html[data-elite-mode="dark"] .elite-product-name { color: #e8eef6; }

.elite-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.elite-product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: .84rem;
    font-weight: 800;
    color: var(--elite-blue);
    min-width: 0;
}
.elite-product-price-label {
    font-size: .62rem;
    font-weight: 600;
    color: var(--elite-ink-soft);
}
.elite-product-price--na { color: var(--elite-ink-soft); }

.elite-product-cta {
    flex: 0 0 auto;
    background: var(--elite-navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- empty state */
.elite-empty {
    text-align: center;
    padding: 46px 18px;
    color: var(--elite-ink-soft);
    background: var(--elite-white);
    border-radius: var(--elite-radius);
    margin-top: 16px;
}
.elite-empty p { margin: 0 0 6px; font-weight: 700; }
.elite-empty-hint { font-size: .82rem; font-weight: 500; opacity: .8; }

/* ---------------------------------------------------------------- footer */
.elite-footer {
    background: var(--elite-navy);
    color: rgba(255, 255, 255, .8);
    margin-top: auto;
    padding: 22px var(--elite-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}

.elite-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.elite-footer-brand { margin: 0; font-weight: 800; color: #fff; font-size: .98rem; }

.elite-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}
.elite-footer-links a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
}
.elite-footer-links a:hover { color: #fff; }

.elite-footer-copy { margin: 0; font-size: .74rem; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- floating support */
.elite-support {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 14px;   /* reference: bottom-right in RTL */
    z-index: 880;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Reference: a navy squircle (large rounded square), not a circle. */
.elite-support--bottom-left {
    right: auto !important;
    left: var(--elite-gutter, 15px) !important;
}

.elite-support-btn {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 0;
    background: #1C1E57;
    box-shadow: 0 6px 18px rgba(28, 30, 87, .34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform .14s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.elite-support-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .45); }
.elite-support-btn:active { transform: scale(.93); }

.elite-support-dots {
    display: inline-flex;
    flex-direction: row;      /* three dots in a row, as in the reference */
    gap: 4px;
    align-items: center;
}
.elite-support-dots i {
    width: 5.5px;
    height: 5.5px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.elite-support-menu {
    background: var(--elite-white);
    border-radius: var(--elite-radius);
    box-shadow: var(--elite-shadow-lg);
    border: 1px solid var(--elite-line);
    padding: 6px;
    min-width: 186px;
    max-width: calc(100vw - 32px);
    transform-origin: bottom left;
    animation: elite-pop .18s ease-out;
}
.elite-support-menu[hidden] { display: none; }

@keyframes elite-pop {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.elite-support-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--elite-radius-sm);
    text-decoration: none;
    color: var(--elite-text);
    font-size: .85rem;
    font-weight: 700;
    min-height: 44px;
}
.elite-support-item:hover { background: var(--elite-surface-alt); }

.elite-support-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 30px;
    background: var(--elite-blue);
}
.elite-support-item-icon--whatsapp { background: #25D366; }
.elite-support-item-icon--telegram { background: #229ED9; }
.elite-support-item-icon--email    { background: var(--elite-blue); }
.elite-support-item-icon--phone    { background: var(--elite-navy); }
.elite-support-item-icon--ticket   { background: var(--elite-navy-soft); }
.elite-support-item-icon--faq      { background: var(--elite-green); }

/* ---------------------------------------------------------------- classic page skin
   Internal pages (login, product, wallet, orders…) are the shipped views. They
   are re-skinned here — without editing those files — so the whole storefront
   reads as one theme. Selectors are scoped to .elite-body to stay inert when
   another theme is active. */

.elite-body .glass-card,
.elite-body .account-page-layout > div > .glass-card {
    background: var(--elite-white) !important;
    border: 1px solid var(--elite-line) !important;
    border-radius: var(--elite-radius) !important;
    box-shadow: var(--elite-shadow-sm) !important;
    color: var(--elite-text) !important;
    backdrop-filter: none !important;
}

.elite-body .glass-card h1,
.elite-body .glass-card h2,
.elite-body .glass-card h3,
.elite-body .glass-card h4,
.elite-body .glass-card strong,
.elite-body .glass-card label {
    color: var(--elite-text) !important;
}

.elite-body .glass-card p,
.elite-body .glass-card span,
.elite-body .glass-card li,
.elite-body .glass-card small { color: var(--elite-ink-soft); }

.elite-body .glass-card .btn,
.elite-body .btn-primary {
    background: var(--elite-green) !important;
    border-color: var(--elite-green) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}
.elite-body .glass-card .btn:hover,
.elite-body .btn-primary:hover { background: var(--elite-green-dark) !important; }

.elite-body .btn-secondary {
    background: var(--elite-surface-alt) !important;
    color: var(--elite-ink) !important;
    border-color: var(--elite-line) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.elite-body input[type="text"],
.elite-body input[type="email"],
.elite-body input[type="password"],
.elite-body input[type="number"],
.elite-body input[type="tel"],
.elite-body input[type="search"],
.elite-body select,
.elite-body textarea {
    background: var(--elite-surface-alt) !important;
    border: 1px solid var(--elite-line) !important;
    border-radius: 12px !important;
    color: var(--elite-text) !important;
    font-family: inherit !important;
    min-height: 46px;
}
.elite-body input:focus,
.elite-body select:focus,
.elite-body textarea:focus {
    border-color: var(--elite-blue) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(20, 91, 145, .14) !important;
}

.elite-body .alert { border-radius: 12px !important; font-weight: 700; }
.elite-body .alert-success { background: #e6f9ef !important; color: #146c43 !important; border-color: #b7e9cd !important; }
.elite-body .alert-danger  { background: #fdecec !important; color: #9b1c1c !important; border-color: #f5c2c2 !important; }

.elite-body .account-page-layout {
    display: block !important;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 10px;
}

/* The classic customer sidebar (account card + balance + nav links) is
   removed inside ELITE; the theme's drawer and account menu already provide
   the same destinations, styled natively. */
.elite-body .account-sidebar,
.elite-body .customer-sidebar {
    display: none !important;
}

/* product page bits */
.elite-body .package-card,
.elite-body .packages-grid > * {
    border-radius: var(--elite-radius-sm) !important;
    border-color: var(--elite-line) !important;
    background: var(--elite-white) !important;
}
.elite-body .package-card.active,
.elite-body .package-card:hover {
    border-color: var(--elite-green) !important;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, .18) !important;
}

.elite-body .breadcrumb,
.elite-body .breadcrumbs { font-size: .8rem; color: var(--elite-ink-soft); }
.elite-body .breadcrumb a,
.elite-body .breadcrumbs a { color: var(--elite-blue); text-decoration: none; }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 480px) {
    :root { --elite-gutter: 18px; }
    .elite-cat-grid { gap: 12px; }
    .elite-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 600px) {
    .elite-cat-grid { grid-template-columns: repeat(var(--elite-cat-cols-tablet, 2), minmax(0, 1fr)); }
    .elite-hero-track { aspect-ratio: 21 / 9; }
}

@media (min-width: 768px) {
    :root { --elite-appbar-h: 66px; --elite-gutter: 24px; }
    .elite-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .elite-hero { border-radius: var(--elite-radius-lg); }
    .elite-hero-track { aspect-ratio: 24 / 9; }
    .elite-main { padding-top: 16px; }
    .elite-support { inset-inline-start: 26px; bottom: 26px; }
}

@media (min-width: 1024px) {
    .elite-cat-grid { grid-template-columns: repeat(var(--elite-cat-cols-desktop, 2), minmax(0, 1fr)); }
    .elite-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .elite-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Very small phones (320px): tighten everything, never overflow. */
@media (max-width: 340px) {
    :root { --elite-gutter: 10px; }
    .elite-cat-grid { gap: 7px; }
    .elite-cat-card { padding: 6px 4px 8px; }
    .elite-cat-name { font-size: .66rem; }
    .elite-product-grid { gap: 8px; }
    .elite-appbar-inner { gap: 6px; }
    .elite-balance-chip { font-size: .68rem; padding: 4px 7px; }
    .elite-icon-btn { width: 40px; height: 40px; }
}

/* Landscape phones: shrink the hero so content stays above the fold. */
@media (max-height: 430px) and (orientation: landscape) {
    .elite-hero-track { aspect-ratio: 32 / 9; }
}

/* ---------------------------------------------------------------- a11y */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

.elite-drawer:focus { outline: none; }
.elite-body :focus-visible {
    outline: 2px solid var(--elite-blue);
    outline-offset: 2px;
}

/* Prevent the page behind an open drawer from scrolling (iOS-safe). */
.elite-body.elite-drawer-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Auth pages — floating white card on the page, pill fields, navy CTA.
   Measured from the login/register references (1220x2712 @2x).
   -------------------------------------------------------------------------- */
.elite-auth {
    display: flex;
    justify-content: center;
    padding: 22px var(--elite-gutter, 15px) 40px;
    background: var(--elite-page-bg, #fff);
    min-height: calc(100vh - 56px);
}

.elite-auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 30px 22px 26px;
    border-radius: 28px;
    background: var(--elite-white, #fff);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .10), 0 2px 8px rgba(15, 23, 42, .04);
}

.elite-auth-close {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--elite-ink, #0F172A);
    text-decoration: none;
    background: rgba(15, 23, 42, .05);
}

.elite-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 6px auto 16px;
    border-radius: 22px;
    background: var(--elite-navy, #0F172A);
    box-shadow: 0 0 0 9px rgba(15, 23, 42, .06), 0 8px 22px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.elite-auth-logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}

.elite-auth-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.elite-auth-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--elite-ink, #0F172A);
}

.elite-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.elite-auth-alert--error { background: #FDECEC; color: #B42318; }
.elite-auth-alert--success { background: #E8F8EF; color: #0E7A45; }

.elite-auth-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.elite-field {
    position: relative;
    display: flex;
    align-items: center;
}

.elite-field-row {
    display: flex;
    gap: 10px;
}

.elite-field-row .elite-field { flex: 1; }

.elite-input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--elite-surface-alt, #EEF2F7);
    color: var(--elite-ink, #0F172A);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: box-shadow .16s ease, background .16s ease;
}

.elite-field-row .elite-input { padding: 0 16px; }

.elite-input::placeholder {
    color: #8A97A6;
    font-weight: 500;
}

.elite-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--elite-navy, #0F172A) inset;
}

.elite-field-icon {
    position: absolute;
    right: 16px;
    display: inline-flex;
    color: #8A97A6;
    pointer-events: none;
}

.elite-field-toggle {
    position: absolute;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8A97A6;
    cursor: pointer;
}

.elite-select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 40px;
    cursor: pointer;
}

.elite-field-chevron {
    position: absolute;
    left: 16px;
    display: inline-flex;
    color: #8A97A6;
    pointer-events: none;
}

.elite-auth-inline {
    display: flex;
    justify-content: flex-start;
    padding: 0 6px;
}

.elite-auth-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--elite-blue, #2563EB);
    text-decoration: none;
}

.elite-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--elite-text, #1E293B);
    cursor: pointer;
}

.elite-auth-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--elite-ink, #0F172A);
}

.elite-auth-check a {
    color: var(--elite-blue, #2563EB);
    font-weight: 700;
}

.elite-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--elite-navy, #0F172A);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .14s ease, opacity .14s ease;
}

.elite-auth-submit:hover { opacity: .93; }
.elite-auth-submit:active { transform: scale(.985); }

.elite-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9AAAB6;
    font-size: 12.5px;
    font-weight: 600;
}

.elite-auth-divider::before,
.elite-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E6EBF0;
}

.elite-auth-switch {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--elite-text, #1E293B);
}

.elite-auth-switch a {
    color: var(--elite-ink, #0F172A);
    font-weight: 800;
    text-decoration: none;
}

.elite-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    margin-top: 14px;
    border: 1px solid #E2E8EE;
    border-radius: 999px;
    background: #fff;
    color: var(--elite-ink, #0F172A);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.elite-auth-google:hover { background: #FAFBFC; }

@media (min-width: 640px) {
    .elite-auth { padding-top: 40px; }
    .elite-auth-card { padding: 34px 30px 30px; }
}

/* --------------------------------------------------------------------------
   Inner pages: shared page shell + orders list
   -------------------------------------------------------------------------- */
.elite-page {
    padding: 18px var(--elite-gutter, 15px) 32px;
    background: var(--elite-page-bg, #fff);
    min-height: calc(100vh - 56px);
}

.elite-page-head { margin-bottom: 16px; }

.elite-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--elite-ink, #0F172A);
}

.elite-page-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--elite-ink-soft, #475569);
}

/* ---- filter tabs ---- */
.elite-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.elite-filter-tabs::-webkit-scrollbar { display: none; }

.elite-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: var(--elite-surface-alt, #EEF2F7);
    color: var(--elite-text, #1E293B);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.elite-filter-tab.is-active {
    background: var(--elite-navy, #0F172A);
    color: #fff;
}

.elite-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .09);
    font-size: 10.5px;
    font-weight: 800;
}

.elite-filter-tab.is-active .elite-filter-count {
    background: rgba(255, 255, 255, .22);
}

/* ---- order cards ---- */
.elite-order-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.elite-order-card {
    padding: 15px 16px;
    border: 1px solid var(--elite-line, #E2E8F0);
    border-radius: var(--elite-radius, 16px);
    background: var(--elite-white, #fff);
}

.elite-order-card[hidden] { display: none; }

.elite-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.elite-order-number {
    font-size: 12px;
    font-weight: 800;
    color: var(--elite-ink, #0F172A);
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.elite-order-status {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.elite-order-status--success { background: #E8F8EF; color: #0E7A45; }
.elite-order-status--pending { background: #FEF4E6; color: #A16207; }
.elite-order-status--refunded { background: #E9F1FB; color: #1D4ED8; }
.elite-order-status--failed { background: #FDECEC; color: #B42318; }

.elite-order-product {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--elite-ink, #0F172A);
}

.elite-order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.elite-order-amount {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--elite-blue, #2563EB);
    direction: ltr;
}

.elite-order-items,
.elite-order-date {
    font-size: 11.5px;
    color: var(--elite-ink-soft, #475569);
}

.elite-order-date { direction: ltr; }

.elite-order-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 999px;
    background: var(--elite-surface-alt, #EEF2F7);
    color: var(--elite-ink, #0F172A);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s ease;
}

.elite-order-link:hover { background: #e8ebef; }

.elite-order-none {
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--elite-ink-soft, #475569);
}

/* ---- empty state ---- */
.elite-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 42px 16px;
    color: var(--elite-ink-soft, #475569);
    text-align: center;
}

.elite-empty p { margin: 0; font-size: 13.5px; }

@media (min-width: 768px) {
    .elite-page { padding-top: 26px; }
    .elite-order-list { display: grid; grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Announcement bar (admin-controlled)
   -------------------------------------------------------------------------- */
.elite-announce {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px var(--elite-gutter, 15px);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.elite-announce a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sticky app bar variant */
.elite-appbar--sticky {
    position: sticky;
    top: 0;
}

/* --------------------------------------------------------------------------
   Drawer rows with coloured icons (reference: each row tinted by purpose)
   -------------------------------------------------------------------------- */
.elite-drawer-link--green .elite-drawer-link-icon { color: #12924F; }
.elite-drawer-link--blue  .elite-drawer-link-icon { color: #1E6FD9; }
.elite-drawer-link--amber .elite-drawer-link-icon { color: #D9A32B; }
.elite-drawer-link--red   .elite-drawer-link-icon { color: #E5484D; }
.elite-drawer-link--cyan  .elite-drawer-link-icon { color: #0E9AA7; }

.elite-drawer-link.is-current {
    background: var(--elite-surface-alt, #EEF2F7);
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Bottom navigation (mobile). Hidden on desktop where the app bar suffices.
   -------------------------------------------------------------------------- */
.elite-bottomnav {
    position: fixed;
    z-index: 60;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 2px;
    height: 62px;
    padding: 0 6px env(safe-area-inset-bottom, 0);
    background: var(--elite-white, #fff);
    border-top: 1px solid var(--elite-line, #E2E8F0);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .07);
}

.elite-bottomnav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 100%;
    padding: 6px 2px;
    color: var(--elite-ink-soft, #475569);
    text-decoration: none;
}

.elite-bottomnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.elite-bottomnav-label {
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.elite-bottomnav-item--green .elite-bottomnav-icon { color: #12924F; }
.elite-bottomnav-item--blue  .elite-bottomnav-icon { color: #1E6FD9; }
.elite-bottomnav-item--amber .elite-bottomnav-icon { color: #D9A32B; }
.elite-bottomnav-item--red   .elite-bottomnav-icon { color: #E5484D; }

/* Active item: only the icon pops (the label stays put) — acceptance spec. */
.elite-bottomnav-item.is-current .elite-bottomnav-icon svg {
    transform: scale(1.12);
    transform-origin: center;
    transition: transform .18s ease;
}
@media (prefers-reduced-motion: reduce) {
    .elite-bottomnav-item.is-current .elite-bottomnav-icon svg { transform: none; transition: none; }
}
.elite-bottomnav-item.is-current .elite-bottomnav-label {
    color: var(--elite-ink, #0F172A);
    font-weight: 800;
}

/* Raised centre button: white circle with a navy glyph, lifted above the bar. */
.elite-bottomnav-item.is-centre {
    flex: 0 0 auto;
    width: 62px;
}

.elite-bottomnav-item.is-centre .elite-bottomnav-icon {
    width: 50px;
    height: 50px;
    margin-top: -22px;
    border-radius: 50%;
    background: #fff;
    color: var(--elite-ink, #0F172A);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .22), 0 0 0 5px var(--elite-page-bg, #fff);
}

.elite-bottomnav-item.is-centre .elite-bottomnav-label {
    margin-top: 1px;
}

/* Leave room so the bar never covers the footer or the support FAB. */
@media (max-width: 767px) {
    body.elite-body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .elite-support {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .elite-bottomnav { display: none; }
}

/* Respect the admin animation switch */
html[data-elite-anim="0"] *,
html[data-elite-anim="0"] *::before,
html[data-elite-anim="0"] *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
}

/* ==========================================================================
   Readable prose + inner-page surfaces
   --------------------------------------------------------------------------
   The classic static pages use white text on dark chrome. On the ELITE white
   canvas that is invisible, so every text surface here derives from theme
   tokens and is guaranteed to contrast in light AND dark mode.
   ========================================================================== */
.elite-page--prose {
    max-width: var(--elite-pages-max, 960px);
    margin-inline: auto;
}

.elite-page-icon {
    display: inline-block;
    margin-inline-end: 6px;
    font-size: 1.15em;
    vertical-align: -2px;
}

.elite-prose {
    font-size: var(--elite-font-size, 15px);
    line-height: 1.95;
    color: var(--elite-text, #1E293B);
}

.elite-prose h2 {
    margin: 26px 0 10px;
    font-size: 1.1rem;
    font-weight: var(--elite-heading-weight, 800);
    line-height: 1.5;
    color: var(--elite-ink, #0F172A);
}

.elite-prose h2:first-child { margin-top: 0; }

.elite-prose p {
    margin: 0 0 14px;
    /* Long Arabic paragraphs read badly fully justified; keep natural flow. */
    text-align: start;
}

.elite-prose ul,
.elite-prose ol {
    margin: 0 0 16px;
    padding-inline-start: 22px;
}

.elite-prose li { margin-bottom: 9px; }

.elite-prose strong { color: var(--elite-ink, #0F172A); font-weight: 800; }

.elite-prose a { color: var(--elite-blue, #2563EB); font-weight: 700; }

.elite-prose-note {
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--elite-surface-alt, #EEF2F7);
    font-size: 13px;
    color: var(--elite-ink-soft, #475569);
}

.elite-callout {
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--elite-surface-alt, #EEF2F7);
    color: var(--elite-ink-soft, #475569);
    font-size: 13.5px;
    line-height: 1.7;
}

.elite-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* ---- contact cards ---- */
.elite-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 8px;
}

@media (min-width: 560px) {
    .elite-contact-grid { grid-template-columns: 1fr 1fr; }
}

.elite-contact-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid var(--elite-line, #E2E8F0);
    border-radius: var(--elite-radius, 16px);
    background: var(--elite-white, #fff);
    text-decoration: none;
    color: var(--elite-ink, #0F172A);
    transition: border-color .15s ease, transform .15s ease;
}

.elite-contact-card:hover { transform: translateY(-1px); }

.elite-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.elite-contact-card--wa   .elite-contact-icon { background: #E8F8EF; color: #12924F; }
.elite-contact-card--tg   .elite-contact-icon { background: #E7F1FB; color: #1E6FD9; }
.elite-contact-card--mail .elite-contact-icon { background: #FDECEC; color: #D64545; }
.elite-contact-card--tel  .elite-contact-icon { background: #FEF4E6; color: #A16207; }

.elite-contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.elite-contact-body strong { font-size: 14px; font-weight: 800; }
.elite-contact-body small { font-size: 11.5px; color: var(--elite-ink-soft, #475569); }

/* ---- FAQ ---- */
.elite-faq { display: flex; flex-direction: column; gap: 10px; }

.elite-faq-item {
    border: 1px solid var(--elite-line, #E2E8F0);
    border-radius: var(--elite-radius, 16px);
    background: var(--elite-white, #fff);
    padding: 0 16px;
    overflow: hidden;
}

.elite-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--elite-ink, #0F172A);
    cursor: pointer;
    list-style: none;
}

.elite-faq-item > summary::-webkit-details-marker { display: none; }

.elite-faq-item > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.elite-faq-item[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.elite-faq-item > p {
    margin: 0 0 15px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--elite-text, #1E293B);
}

/* ==========================================================================
   Add balance — gateway cards + single-gateway page
   ========================================================================== */
.elite-page-balance { color: var(--elite-blue, #2563EB); }

.elite-back-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--elite-blue, #2563EB);
    text-decoration: none;
}

/* Two columns at every width — the reference shows image-on-top cards,
   two per row, name centered under the artwork. */
.elite-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* A gateway is a white card: artwork area on top, bold name below. */
.elite-gateway-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 148px;
    padding: 18px 10px 16px;
    border: 1px solid #ECEFF4;
    border-radius: var(--elite-radius-lg, 20px);
    background: var(--elite-white, #fff);
    text-decoration: none;
    text-align: center;
    color: var(--elite-ink, #0F172A);
    box-shadow: 0 1px 3px rgba(16, 43, 82, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.elite-gateway-card:hover {
    transform: translateY(-2px);
    border-color: #D9E1EB;
    box-shadow: 0 10px 24px rgba(16, 43, 82, .13);
}

.elite-gateway-card:active {
    transform: scale(.96);
    box-shadow: 0 2px 6px rgba(16, 43, 82, .10);
}

.elite-gateway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 88px;
    border-radius: 14px;
    background: #F7F8FA;
    color: var(--elite-ink, #0F172A);
    overflow: hidden;
}

.elite-gateway-card--amber .elite-gateway-icon { background: #FEF4E6; color: #A16207; }
.elite-gateway-card--blue  .elite-gateway-icon { background: #E7F1FB; color: #1E6FD9; }
.elite-gateway-card--green .elite-gateway-icon { background: #E8F8EF; color: #12924F; }
.elite-gateway-card--red   .elite-gateway-icon { background: #FDECEC; color: #D64545; }
.elite-gateway-card--navy  .elite-gateway-icon { background: #EAECF7; color: #0F172A; }

.elite-gateway-icon.elite-gateway-icon--media {
    width: 100%;
    height: 88px;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #F7F8FA;
    color: inherit;
}

.elite-gateway-image {
    width: auto;
    height: 76px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
}

.elite-gateway-body { display: flex; flex-direction: column; gap: 2px; max-width: 100%; min-width: 0; }
.elite-gateway-body strong { font-size: .85rem; font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }

.elite-gateway-chevron { display: none; }

/* ---- single gateway page ---- */
.elite-deposit-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: var(--elite-radius, 16px);
    background: var(--elite-surface-alt, #EEF2F7);
}

.elite-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.elite-detail-label {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--elite-ink-soft, #475569);
}

.elite-detail-value,
.elite-detail-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--elite-ink, #0F172A);
    direction: ltr;
    word-break: break-all;
}

.elite-detail-code {
    display: block;
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--elite-white, #fff);
    line-height: 1.7;
    white-space: pre-wrap;
}

.elite-detail-text {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--elite-text, #1E293B);
}

.elite-detail-tips {
    margin: 4px 0 0;
    padding-inline-start: 18px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--elite-text, #1E293B);
}

.elite-detail-qr {
    align-self: center;
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.elite-detail-block { display: flex; flex-direction: column; gap: 4px; }

.elite-copy-btn {
    align-self: flex-start;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--elite-navy, #0F172A);
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.elite-contact-quick {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--elite-blue, #2563EB);
    text-decoration: none;
}

/* ---- deposit form ---- */
.elite-deposit-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elite-form-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--elite-ink, #0F172A);
}

.elite-form-hint { font-weight: 600; color: var(--elite-ink-soft, #475569); font-size: 11px; }

.elite-input--area {
    height: auto;
    min-height: 66px;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.elite-input--file {
    height: auto;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
}

.elite-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.elite-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--elite-line, #E2E8F0);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--elite-ink, #0F172A);
    cursor: pointer;
}

.elite-radio input { accent-color: var(--elite-ink, #0F172A); }

/* ---- inline notes ---- */
.elite-note {
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.elite-note--ok  { background: #E8F8EF; color: #0E7A45; }
.elite-note--err { background: #FDECEC; color: #B42318; }

/* Compact account menu: the app-bar icon opens choices, it does not navigate. */
.elite-account-control { position: relative; display: inline-flex; }
.elite-account-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 9px); z-index: 120;
  width: min(238px, calc(100vw - 24px)); padding: 7px;
  border: 1px solid var(--elite-line, #e2e7ef); border-radius: 14px;
  background: var(--elite-surface, #fff); color: var(--elite-ink, #0F172A);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .18);
}
.elite-account-menu[hidden] { display: none; }
.elite-account-menu-head { display: grid; gap: 3px; padding: 9px 10px 11px; border-bottom: 1px solid var(--elite-line, #e2e7ef); }
.elite-account-menu-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.elite-account-menu-head span { font-size: 12px; color: var(--elite-muted, #667085); }
.elite-account-menu a, .elite-account-menu button {
  display: block; width: 100%; box-sizing: border-box; padding: 10px;
  border: 0; border-radius: 8px; background: transparent; color: inherit;
  font: inherit; font-size: 13px; text-align: start; text-decoration: none; cursor: pointer;
}
.elite-account-menu a:hover, .elite-account-menu button:hover,
.elite-account-menu a:focus-visible, .elite-account-menu button:focus-visible { background: rgba(15, 23, 42, .07); outline: 2px solid var(--elite-gold, #c89b3c); outline-offset: -2px; }
.elite-account-menu form { margin: 4px 0 0; border-top: 1px solid var(--elite-line, #e2e7ef); }
[data-elite-mode="dark"] .elite-account-menu { background: #151a2b; color: #f5f7ff; border-color: #343b52; }
[data-elite-mode="dark"] .elite-account-menu a:hover, [data-elite-mode="dark"] .elite-account-menu button:hover { background: rgba(255,255,255,.08); }

/* ==========================================================================
   App bar (restructured): balance/account on the RIGHT, logo + drawer
   toggle on the LEFT. Logo carries no site-name text.
   ========================================================================== */
.elite-brand-zone {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}
.elite-brand-zone .elite-brand { flex: 0 0 auto; }
.elite-brand-zone .elite-icon-btn { border-radius: 12px; }
@media (max-width: 380px) {
    .elite-brand-logo { max-width: 120px; }
}

/* ==========================================================================
   Account area (حسابي · تيليجرام · كل النماذج المشتركة)
   --------------------------------------------------------------------------
   The classic stylesheet paints these controls for the dark canvas (faint
   white fills, white text). Under ELITE that produced invisible-on-white
   fields, so repaint them with the elite tokens — light and dark modes.
   ========================================================================== */
.elite-body .account-surface { color: var(--elite-text); }
.elite-body .account-heading h1 { color: var(--elite-ink); }
.elite-body[data-elite-mode="dark"] .account-heading h1,
html[data-elite-mode="dark"] .elite-body .account-heading h1 { color: var(--elite-text); }
.elite-body .account-heading p { color: var(--elite-ink-soft); opacity: 1; }

.elite-body .profile-form,
.elite-body .telegram-link-card,
.elite-body .telegram-linked-card,
.elite-body .admin-form {
    background: var(--elite-white);
    border: 1px solid var(--elite-line);
    box-shadow: var(--elite-shadow-sm);
    color: var(--elite-text);
}
.elite-body .profile-form label,
.elite-body .telegram-code-form label,
.elite-body .admin-form label { color: var(--elite-ink); font-weight: 700; }
html[data-elite-mode="dark"] .elite-body .profile-form label,
html[data-elite-mode="dark"] .elite-body .telegram-code-form label,
html[data-elite-mode="dark"] .elite-body .admin-form label { color: var(--elite-text); }

.elite-body .form-input,
.elite-body .form-select,
.elite-body .form-textarea {
    background: var(--elite-surface-alt);
    border: 1px solid var(--elite-line);
    color: var(--elite-text);
    border-radius: var(--elite-radius-sm);
}
.elite-body .form-input:focus,
.elite-body .form-select:focus,
.elite-body .form-textarea:focus {
    border-color: var(--elite-green);
    background: var(--elite-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .28);
}
.elite-body .form-input::placeholder,
.elite-body .form-textarea::placeholder { color: var(--elite-ink-soft); opacity: .8; }

.elite-body .btn-secondary {
    background: var(--elite-white);
    border: 1px solid var(--elite-line);
    color: var(--elite-ink);
}
.elite-body .btn-secondary:hover { background: var(--elite-surface-alt); border-color: #cfd8e3; color: var(--elite-ink); }
html[data-elite-mode="dark"] .elite-body .btn-secondary { color: var(--elite-text); }
html[data-elite-mode="dark"] .elite-body .btn-secondary:hover { color: var(--elite-text); }

.elite-body .btn-primary {
    background: var(--elite-green);
    color: #07301b;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.elite-body .btn-primary:hover,
.elite-body .btn-primary:focus-visible { background: var(--elite-green-dark); color: #fff; box-shadow: 0 6px 20px rgba(37, 99, 235, .4); }

.elite-body .alert-success { background: #EAF9EF; border: 1px solid #B9E8CC; color: #0f6b33; }
.elite-body .alert-danger  { background: #FDECEC; border: 1px solid #F5C2C2; color: #9c1f1f; }
.elite-body .alert-warning { background: #FFF6E0; border: 1px solid #F3D9A4; color: #7a5200; }
html[data-elite-mode="dark"] .elite-body .alert-success { background: rgba(234, 179, 8,.14); border-color: rgba(234, 179, 8,.4); color: #FDE68A; }
html[data-elite-mode="dark"] .elite-body .alert-danger  { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); color: #ffb3b3; }
html[data-elite-mode="dark"] .elite-body .alert-warning { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #ffd98a; }

.elite-body .status-pill.status-completed { color: #0f6b33; background: #EAF9EF; border-color: #B9E8CC; }
.elite-body .status-pill.status-pending   { color: #7a5200; background: #FFF6E0; border-color: #F3D9A4; }
.elite-body .field-error { color: #c81e1e; }
.elite-body .account-security-links a { color: var(--elite-blue); }
.elite-body .avatar-upload { color: var(--elite-green-dark); }
.elite-body .telegram-legacy { border-color: var(--elite-line); }
.elite-body .telegram-legacy > summary { color: var(--elite-ink); }
html[data-elite-mode="dark"] .elite-body .telegram-legacy > summary { color: var(--elite-text); }
.elite-body .pay-empty { border-color: var(--elite-line); color: var(--elite-ink-soft); background: var(--elite-white); }
.elite-body .pay-empty h2 { color: var(--elite-ink); }
html[data-elite-mode="dark"] .elite-body .pay-empty h2 { color: var(--elite-text); }

/* Account sidebar (customer-sidebar) is dark glass; soften it to elite navy. */
.elite-body .customer-sidebar { background: var(--elite-navy); }


/* Standalone white pages keep a hairline border on the white elite canvas. */
.elite-body .pay-page,
.elite-body .agents-page,
.elite-body .redeem-page { border: 1px solid var(--elite-line); }

.elite-product-card.is-unavailable { cursor: default; }
.elite-product-card.is-unavailable:hover { transform:none; box-shadow:none; }
.elite-product-card.is-unavailable .elite-product-media img { filter:grayscale(1); }

/* Long exact wallet balances must not push the logo or actions off a phone. */
@media (max-width: 600px) {
    .elite-appbar-inner { gap: 6px; }
    .elite-appbar-actions { min-width: 0; flex: 0 1 auto; }
    .elite-appbar-actions .elite-icon-btn--badge,
    .elite-appbar-actions .elite-vip-badge { display: none; }
    .elite-brand-logo { max-width: min(110px, 28vw); }
    .elite-balance-chip { min-width: 0; max-width: min(148px, 36vw); flex: 0 1 auto; overflow: hidden; }
    .elite-balance-plus { flex: 0 0 20px; }
    .elite-balance-amount {
        display: block;
        min-width: 0;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .elite-balance-amount::-webkit-scrollbar { display: none; }
}
