/* =========================================================
   NexaPay — glass / iOS style layer (works with Tailwind CDN)
   ========================================================= */

:root {
  --brand: #10b981;
  --brand-600: #059669;
  --ink: #0f172a;
  --muted: #64748b;
  --hairline: rgba(15, 23, 42, .07);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: #eef2f7; -webkit-tap-highlight-color: transparent; }
body { overflow-x: clip; }
[x-cloak] { display: none !important; }
::selection { background: rgba(16, 185, 129, .25); }

/* ---------- Ambient background ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 0% -10%, #dff3ff 0%, transparent 60%),
    radial-gradient(900px 520px at 110% 5%, #dcfce7 0%, transparent 55%),
    linear-gradient(180deg, #f5f7fb 0%, #edf1f7 100%);
}
.orb { position: absolute; border-radius: 9999px; filter: blur(72px); opacity: .5; animation: orb-float 20s ease-in-out infinite; }
.orb-1 { width: 340px; height: 340px; background: #6ee7b7; top: -90px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #93c5fd; top: 38%; right: -120px; animation-delay: -7s; }
.orb-3 { width: 280px; height: 280px; background: #c4b5fd; bottom: -100px; left: 18%; opacity: .38; animation-delay: -13s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(28px, -24px) scale(1.08); }
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 12px 40px -16px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.glass-solid {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, .35);
}
.glass-dark {
  background: linear-gradient(160deg, rgba(15, 23, 42, .94), rgba(17, 24, 39, .86));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 50px -22px rgba(15, 23, 42, .6);
  color: #fff;
}
.glass-bar {
  background: rgba(245, 247, 251, .74);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.chip-glass {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff;
}

/* ---------- Brand bits ---------- */
.logo-tile {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(16, 185, 129, .26), transparent 65%), linear-gradient(135deg, #1e293b, #0b1220);
  box-shadow: 0 8px 18px -8px rgba(14, 165, 233, .6), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.logo-tile img { width: 76%; height: 76%; display: block; }
.logo-tile.lg { width: 64px; height: 64px; border-radius: 20px; }

.icon-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--hairline); color: var(--ink);
  transition: transform .15s ease, background .2s ease;
}
.icon-btn:hover { background: #fff; }
.icon-btn:active { transform: scale(.92); }

.nav-link { padding: .5rem .8rem; border-radius: 9999px; color: #475569; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav-link.is-active { background: var(--ink); color: #fff; }

.section-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 16px; padding: .85rem 1.25rem; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(5, 150, 105, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .8); }
.btn-dark:hover { background: #1e293b; }
.btn-secondary { background: rgba(255, 255, 255, .85); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-danger { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.btn-danger:hover { background: #ffe4e6; }
.btn-sm { padding: .55rem .9rem; font-size: 13px; border-radius: 12px; }

/* ---------- Form fields ---------- */
.field-label { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 600; color: #334155; }
.field-wrap { position: relative; }
.field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px; pointer-events: none; }
.field-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.field {
  width: 100%; height: 52px; border-radius: 16px; padding: 0 16px 0 44px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(15, 23, 42, .09);
  font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: #94a3b8; }
.field.no-icon { padding-left: 16px; }
.field.has-action { padding-right: 52px; }
textarea.field { height: auto; padding: 12px 16px; resize: vertical; }
select.field { appearance: none; -webkit-appearance: none; }
.field:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.field.is-invalid { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .1); }
.field-error { margin: 6px 0 0 4px; font-size: 12.5px; font-weight: 500; color: #e11d48; }
.field-hint { margin: 6px 0 0 4px; font-size: 12px; color: var(--muted); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.dropzone {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed rgba(15, 23, 42, .15); background: rgba(255, 255, 255, .55); transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: var(--brand); background: rgba(236, 253, 245, .7); }

/* ---------- Steps & choices ---------- */
.step-label { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 15px; }
.step-label > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--ink); color: #fff; font-size: 12px; }
.method-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .72); border: 1.5px solid rgba(15, 23, 42, .07); transition: all .2s;
}
.method-opt:hover { border-color: rgba(16, 185, 129, .45); }
.method-opt.is-selected { border-color: var(--brand); background: #ecfdf5; box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }

.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(15, 23, 42, .06); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented > * { padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; transition: all .2s; }
.segmented > .is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18); }

/* ---------- iOS-style lists ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.list-row + .list-row { border-top: 1px solid var(--hairline); }
a.list-row { transition: background .15s; }
a.list-row:hover { background: rgba(255, 255, 255, .55); }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; font-size: 15px; }

/* ---------- Live settlements & reviews ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9999px; background: rgba(16, 185, 129, .12); color: #047857; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--brand); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.feed-box { height: 344px; }
.feed-box-lg { height: 432px; }
@media (min-width: 768px) { .feed-box-lg { height: 470px; } }
.feed-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 12px 14px; border-radius: 20px;
            background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); }
.live-panel { box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .55); }
.live-glow { position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%; border-radius: 9999px; pointer-events: none;
             background: radial-gradient(closest-side, rgba(16, 185, 129, .22), transparent); filter: blur(10px); }

/* ---------- Profile: liquid-glass wallet + service cards ---------- */
.wallet-glass {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .04) 35%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(16, 185, 129, .82), rgba(14, 165, 233, .72));
  -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 30px 60px -28px rgba(14, 165, 233, .7), inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(255, 255, 255, .2);
}
.wallet-disc { position: absolute; z-index: -1; border-radius: 9999px; pointer-events: none;
               background: linear-gradient(145deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .04));
               border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wallet-disc-a { width: 210px; height: 210px; right: -95px; top: -120px; }
.wallet-disc-b { width: 140px; height: 140px; left: -70px; bottom: -80px; opacity: .8; }
.wallet-glass .btn-glass { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.service-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .3); transition: transform .15s, background .15s;
}
.service-card { min-width: 0; }
.service-label-wrap { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 1280px) and (max-width: 1440px) { .nav-link { padding: .5rem .65rem; } }
.service-card .badge-count { position: absolute; top: -6px; right: -4px; box-shadow: 0 0 0 2px #fff; }
.service-card:hover { background: rgba(255, 255, 255, .8); }
.service-card:active { transform: scale(.97); }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; color: #fff; font-size: 17px;
                box-shadow: 0 8px 16px -8px rgba(15, 23, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ---------- Landing footer (glass) ---------- */
.site-footer {
  background: linear-gradient(140deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 30px 70px -35px rgba(15, 23, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.footer-glow { position: absolute; border-radius: 9999px; filter: blur(60px); opacity: .55; }
.footer-glow-a { width: 340px; height: 340px; left: -120px; top: -160px; background: #6ee7b7; }
.footer-glow-b { width: 300px; height: 300px; right: -100px; bottom: -170px; background: #93c5fd; }
.footer-heading { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.footer-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px;
               font-size: 14px; font-weight: 600; color: #334155; transition: background .15s; }
.footer-link:hover { background: rgba(255, 255, 255, .7); }
.footer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px;
               background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9); }
.brand-tagline { background: linear-gradient(90deg, #059669, #0284c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-dot { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 9999px;
            background: #0f172a; color: #fff; font-size: 12px; font-weight: 800; }
.feed-track { animation: scroll-y var(--dur, 40s) linear infinite; }
.feed-box:hover .feed-track { animation-play-state: paused; }
@keyframes scroll-y { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.marquee-track { display: flex; width: max-content; animation: scroll-x var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mask-y { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); }
.mask-x { -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }

/* ---------- Hero & cards ---------- */
.hero-fallback {
  background:
    radial-gradient(circle at 18% 22%, rgba(16, 185, 129, .6), transparent 45%),
    radial-gradient(circle at 82% 28%, rgba(14, 165, 233, .55), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(139, 92, 246, .5), transparent 55%),
    #0f172a;
}
.balance-card {
  background:
    radial-gradient(circle at 88% -5%, rgba(16, 185, 129, .6), transparent 45%),
    radial-gradient(circle at -5% 105%, rgba(14, 165, 233, .5), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 26px 50px -22px rgba(15, 23, 42, .7);
}
.cta-glow { position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 9999px; background: radial-gradient(circle, rgba(16, 185, 129, .35), transparent 70%); pointer-events: none; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
          backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px -16px rgba(15, 23, 42, .18);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  padding: 8px 0 7px; min-height: 58px; color: #64748b; font-size: 10.5px; font-weight: 600; transition: color .2s;
}
.tab-icon { display: grid; place-items: center; height: 24px; font-size: 19px; line-height: 1; transition: transform .2s; }
.tab.is-active { color: var(--brand-600); }
.tab-badge {
  position: absolute; top: -4px; right: -9px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9999px; border: 2px solid #fff; background: #ec4899; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1;
}
.tab-center .tab-badge { top: -3px; right: -3px; }
.tab:active .tab-icon { transform: scale(.86); }
.tab-center .tab-icon {
  width: 50px; height: 50px; margin-top: -26px; border-radius: 17px; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, #10b981, #0ea5e9); border: 3px solid #fff;
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, .75);
}

/* ---------- Member home: service center ---------- */
.service-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  padding: 14px 4px 12px; border-radius: 20px; text-align: center; transition: background .15s, transform .15s;
}
.service-tile:hover { background: rgba(255, 255, 255, .6); }
.service-tile:active { transform: scale(.95); }
.service-label { font-size: 12px; font-weight: 600; line-height: 1.25; color: #334155; }
@media (min-width: 768px) {
  .service-tile { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; text-align: left; }
  .service-label { font-size: 13.5px; }
}
[dir=rtl] .service-tile { text-align: right; }

/* ---------- Admin ---------- */
.admin-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #475569; transition: background .2s, color .2s; }
.admin-link:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.admin-link.is-active { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .65); }
.badge-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 700; }
.kv dt { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.kv dd { margin-top: 3px; color: var(--ink); }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .orb, .feed-track, .marquee-track { animation: none !important; }
}

/* ---------- Language menu & right-to-left (Arabic) ---------- */
.lang-menu { right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] body { font-family: 'Inter', 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; }
[dir="rtl"] .field-icon { left: auto; right: 16px; }
[dir="rtl"] .field { padding: 0 44px 0 16px; }
[dir="rtl"] .field.no-icon { padding: 0 16px; }
[dir="rtl"] .field.has-action { padding-left: 52px; }
[dir="rtl"] textarea.field { padding: 12px 16px; }
[dir="rtl"] .field-action { right: auto; left: 6px; }
[dir="rtl"] .field-label, [dir="rtl"] .field-error, [dir="rtl"] .field-hint { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .fa-chevron-right, [dir="rtl"] .fa-chevron-left, [dir="rtl"] .fa-arrow-right, [dir="rtl"] .fa-arrow-up-right-from-square { transform: scaleX(-1); }
[dir="rtl"] .bell-dot { right: auto; left: -4px; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .marquee-track.reverse { animation-direction: normal; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .font-mono, [dir="rtl"] input[type="url"], [dir="rtl"] input[name="txid"], [dir="rtl"] input[name="wallet_address"] { direction: ltr; text-align: right; }

/* ---------- Live support chat ---------- */
.chat-card { height: calc(100dvh - 190px); min-height: 420px; }
@media (min-width: 768px) { .chat-card { height: calc(100dvh - 150px); } }
.chat-scroller {
  background-color: rgba(241, 245, 249, .55);
  background-image: radial-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 18px 18px;
  overscroll-behavior: contain;
}
.bubble { position: relative; max-width: min(78%, 520px); padding: 8px 12px 6px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.bubble-me { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble-them { background: #fff; color: #0f172a; border-radius: 18px 18px 18px 6px; }
[dir="rtl"] .bubble-me { border-radius: 18px 18px 18px 6px; }
[dir="rtl"] .bubble-them { border-radius: 18px 18px 6px 18px; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; opacity: .75; }
.typing-dots { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 9999px; background: #94a3b8; animation: typing-bounce 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input {
  flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; font-size: 16px; line-height: 1.35;
  background: #fff; border: 1px solid rgba(15, 23, 42, .1); outline: none; transition: border-color .2s, box-shadow .2s;
}
.chat-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.chat-send {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 9999px; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .8); transition: transform .15s, opacity .2s;
}
.chat-send:active { transform: scale(.9); }
.chat-send[disabled] { opacity: .45; }
[dir="rtl"] .chat-send i { transform: scaleX(-1); }
.chat-fab {
  position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 9999px; color: #fff; font-size: 22px;
  background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 14px 30px -10px rgba(14, 165, 233, .7); transition: transform .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
@media (min-width: 768px) { .chat-fab { bottom: 28px; right: 28px; } }
[dir="rtl"] .chat-fab { right: auto; left: 16px; }
@media (min-width: 768px) { [dir="rtl"] .chat-fab { left: 28px; } }
.chat-fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px;
  background: #f43f5e; border: 2px solid #fff; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.chat-thread { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; transition: background .15s; }
.chat-thread:hover { background: rgba(255, 255, 255, .6); }
.chat-thread.is-active { background: rgba(16, 185, 129, .1); }
.chat-thread + .chat-thread { border-top: 1px solid var(--hairline); }
.admin-chat { height: calc(100dvh - 120px); min-height: 480px; }
@media (min-width: 768px) { .admin-chat { height: calc(100dvh - 64px); } }
.admin-chat > * { min-height: 0; }

/* ---------- Orders page: VIP tabs + order cards ---------- */
.vip-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; min-width: 84px; justify-content: center;
  padding: 11px 18px; border-radius: 16px; font-size: 14px; font-weight: 700; color: #475569;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--hairline); box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .25);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.vip-tab:active { transform: scale(.97); }
@media (max-width: 639px) {
  /* Phones: All · VIP 1 · VIP 2 · VIP 3 fit on one row (scrolls if there are more levels). */
  .vip-tab { flex: 1 0 auto; min-width: 0; gap: 5px; padding: 10px 12px; font-size: 13px; border-radius: 14px; }
  .vip-tab-count { display: none; }
}
.vip-tab.is-active { color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #10b981, #0d9488); box-shadow: 0 12px 24px -12px rgba(5, 150, 105, .75); }
.vip-tab-count { min-width: 20px; padding: 1px 6px; border-radius: 9999px; font-size: 11px; line-height: 16px;
  background: rgba(15, 23, 42, .07); color: #64748b; }
.vip-tab.is-active .vip-tab-count { background: rgba(255, 255, 255, .25); color: #fff; }

.order-card { display: flex; width: 100%; align-items: stretch; gap: 14px; padding: 14px; border-radius: 24px; text-align: left;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--hairline);
  box-shadow: 0 12px 32px -20px rgba(15, 23, 42, .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: transform .2s, box-shadow .2s; }
.order-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .45); }
.order-card:active { transform: scale(.99); }
.order-card.is-locked { background: rgba(255, 255, 255, .6); }
.order-card.is-locked p { color: #475569; }

/* =========================================================
   DARK MODE — same glass / iOS look on a deep night background.
   Toggled by the moon/sun button (html.dark). Overrides the light
   palette above plus the common Tailwind colour utilities.
   ========================================================= */
.theme-when-dark { display: none !important; }
html.dark .theme-when-dark { display: inline-block !important; }
html.dark .theme-when-light { display: none !important; }
html.dark span.theme-when-dark { display: inline !important; }

html.dark {
  color-scheme: dark;
  --ink: #e8edf5;
  --muted: #94a3b8;
  --hairline: rgba(255, 255, 255, .08);
}
html.dark body { background: #0b1120; color: #e8edf5; }
body, .glass, .glass-bar, .tabbar, .field, .icon-btn, .btn-secondary { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
html.dark ::selection { background: rgba(52, 211, 153, .35); }

/* Background scene: navy night with soft colour glows */
html.dark .bg-scene {
  background:
    radial-gradient(1100px 600px at 0% -10%, rgba(16, 185, 129, .16) 0%, transparent 60%),
    radial-gradient(900px 520px at 110% 5%, rgba(56, 189, 248, .14) 0%, transparent 55%),
    linear-gradient(180deg, #0b1120 0%, #0a0f1c 100%);
}
html.dark .orb { opacity: .22; }
html.dark .orb-3 { opacity: .16; }

/* Glass surfaces */
html.dark .glass {
  background: rgba(30, 41, 59, .5);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 14px 44px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html.dark .glass-solid { background: rgba(20, 28, 44, .94); border-color: rgba(255, 255, 255, .09); box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .8); }
html.dark .glass-dark { background: linear-gradient(160deg, rgba(2, 6, 23, .9), rgba(15, 23, 42, .78)); border-color: rgba(255, 255, 255, .07); }
html.dark .glass-bar { background: rgba(11, 17, 32, .72); border-bottom-color: rgba(255, 255, 255, .07); }
html.dark .tabbar { background: rgba(13, 19, 34, .82); border-top-color: rgba(255, 255, 255, .07); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .7); }
html.dark .tab { color: #8391a7; }
html.dark .tab.is-active { color: #34d399; }
html.dark .tab-badge, html.dark .tab-center .tab-icon { border-color: #0d1322; }
html.dark .site-footer {
  background: linear-gradient(140deg, rgba(30, 41, 59, .6), rgba(15, 23, 42, .45));
  border-color: rgba(255, 255, 255, .08); box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html.dark .footer-glow { opacity: .22; }
html.dark .footer-heading { color: #8391a7; }
html.dark .footer-link { color: #cbd5e1; }
html.dark .footer-link:hover { background: rgba(255, 255, 255, .06); }
html.dark .footer-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); }
html.dark .brand-tagline { background-image: linear-gradient(90deg, #34d399, #38bdf8); }

/* Controls */
html.dark .icon-btn { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: #e8edf5; }
html.dark .icon-btn:hover { background: rgba(255, 255, 255, .13); }
html.dark .nav-link { color: #a3b0c2; }
html.dark .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
html.dark .nav-link.is-active { background: #e8edf5; color: #0b1120; }
html.dark .btn-dark { background: #e8edf5; color: #0b1120; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
html.dark .btn-dark:hover { background: #fff; }
html.dark .btn-secondary { background: rgba(255, 255, 255, .07); color: #e8edf5; border-color: rgba(255, 255, 255, .1); }
html.dark .btn-secondary:hover { background: rgba(255, 255, 255, .13); }
html.dark .btn-light { background: #f1f5f9; color: #0b1120; }
html.dark .btn-danger { background: rgba(244, 63, 94, .12); color: #fb7185; border-color: rgba(244, 63, 94, .3); }
html.dark .btn-danger:hover { background: rgba(244, 63, 94, .2); }
html.dark .step-dot, html.dark .step-label > span { background: #e8edf5; color: #0b1120; }

/* Form fields */
html.dark .field-label { color: #cbd5e1; }
html.dark .field { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: #e8edf5; }
html.dark .field::placeholder { color: #64748b; }
html.dark .field:focus { background: rgba(255, 255, 255, .08); border-color: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
html.dark select.field option { background: #111827; color: #e8edf5; }
html.dark .field-icon { color: #64748b; }
html.dark .dropzone { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
html.dark .dropzone:hover { background: rgba(16, 185, 129, .08); }
html.dark .method-opt { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .09); }
html.dark .method-opt.is-selected { background: rgba(16, 185, 129, .12); border-color: #34d399; }
html.dark .segmented { background: rgba(255, 255, 255, .06); }
html.dark .segmented > * { color: #a3b0c2; }
html.dark .segmented > .is-active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

/* Lists, cards, tiles */
html.dark a.list-row:hover, html.dark .service-tile:hover, html.dark .chat-thread:hover { background: rgba(255, 255, 255, .05); }
html.dark .service-label { color: #cbd5e1; }
html.dark .service-card { background: rgba(30, 41, 59, .5); border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
html.dark .service-card:hover { background: rgba(30, 41, 59, .72); }
html.dark .service-card .badge-count { box-shadow: 0 0 0 2px #0b1120; }
html.dark .wallet-glass { border-color: rgba(255, 255, 255, .25); box-shadow: 0 30px 60px -28px rgba(14, 165, 233, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
html.dark .live-pill { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
html.dark .admin-link { color: #a3b0c2; }
html.dark .admin-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html.dark .admin-link.is-active { background: #e8edf5; color: #0b1120; }
html.dark .kv dt { color: #7c8aa0; }
html.dark .vip-tab { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .09); color: #a3b0c2; }
html.dark .vip-tab-count { background: rgba(255, 255, 255, .1); color: #a3b0c2; }
html.dark .vip-tab.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #10b981, #0d9488); box-shadow: 0 12px 24px -12px rgba(16, 185, 129, .6); }
html.dark .vip-tab.is-active .vip-tab-count { background: rgba(255, 255, 255, .25); color: #fff; }
html.dark .order-card { background: rgba(30, 41, 59, .5); border-color: rgba(255, 255, 255, .08); box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .8); }
html.dark .order-card.is-locked { background: rgba(30, 41, 59, .32); }
html.dark .order-card.is-locked p { color: #a3b0c2; }

/* Support chat */
html.dark .chat-scroller { background-color: rgba(2, 6, 23, .35); background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); }
html.dark .bubble-them { background: #1e293b; color: #e8edf5; }
html.dark .chat-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #e8edf5; }

/* ---- Tailwind colour utilities used across the pages ---- */
html.dark .text-slate-900, html.dark .text-slate-800 { color: #e8edf5; }
html.dark .text-slate-700 { color: #cbd5e1; }
html.dark .text-slate-600 { color: #aab6c7; }
html.dark .text-slate-500 { color: #94a3b8; }
html.dark .text-slate-400 { color: #7c8aa0; }
html.dark .text-slate-300 { color: #56657c; }
html.dark .text-brand-600, html.dark .text-emerald-600, html.dark .text-brand-500 { color: #34d399; }
html.dark .text-brand-700, html.dark .text-emerald-700 { color: #6ee7b7; }
html.dark .text-brand-800, html.dark .text-emerald-800 { color: #a7f3d0; }
html.dark .text-sky-600 { color: #38bdf8; }   html.dark .text-sky-700 { color: #7dd3fc; }
html.dark .text-rose-600, html.dark .text-rose-500 { color: #fb7185; }   html.dark .text-rose-700 { color: #fda4af; }
html.dark .text-pink-600, html.dark .text-pink-500 { color: #f472b6; }   html.dark .text-pink-700 { color: #f9a8d4; }
html.dark .text-violet-600 { color: #a78bfa; } html.dark .text-violet-700 { color: #c4b5fd; }
html.dark .text-amber-600, html.dark .text-amber-500 { color: #fbbf24; }
html.dark .text-amber-700 { color: #fcd34d; } html.dark .text-amber-800, html.dark .text-amber-900 { color: #fde68a; }
html.dark .text-teal-600 { color: #2dd4bf; }   html.dark .text-yellow-600 { color: #facc15; }

html.dark .bg-white, html.dark .bg-white\/95, html.dark .bg-white\/90, html.dark .bg-white\/80, html.dark .bg-white\/70 { background-color: rgba(30, 41, 59, .78); }
html.dark .bg-white\/60, html.dark .bg-white\/50 { background-color: rgba(255, 255, 255, .05); }
html.dark .hover\:bg-white:hover { background-color: rgba(255, 255, 255, .12); }
html.dark .bg-slate-900\/\[\.04\], html.dark .bg-slate-900\/5, html.dark .bg-slate-900\/\[\.045\],
html.dark .bg-slate-900\/\[\.06\], html.dark .bg-slate-900\/\[\.07\] { background-color: rgba(255, 255, 255, .06); }
html.dark .bg-slate-900 { background-color: #334155; }
html.dark .bg-slate-100 { background-color: rgba(255, 255, 255, .07); }
html.dark .bg-slate-200 { background-color: rgba(255, 255, 255, .1); }
html.dark .bg-slate-300 { background-color: rgba(255, 255, 255, .18); }
html.dark .bg-emerald-50, html.dark .bg-emerald-100, html.dark .bg-brand-50\/70 { background-color: rgba(16, 185, 129, .14); }
html.dark .bg-amber-50, html.dark .bg-amber-50\/70, html.dark .bg-amber-50\/90, html.dark .bg-amber-100 { background-color: rgba(245, 158, 11, .14); }
html.dark .bg-rose-50, html.dark .bg-rose-100 { background-color: rgba(244, 63, 94, .14); }
html.dark .bg-sky-100 { background-color: rgba(14, 165, 233, .14); }
html.dark .bg-pink-100 { background-color: rgba(236, 72, 153, .14); }
html.dark .bg-violet-100 { background-color: rgba(139, 92, 246, .16); }

html.dark .border-slate-900\/5, html.dark .border-slate-900\/10 { border-color: rgba(255, 255, 255, .08); }
html.dark .border-slate-900\/15 { border-color: rgba(255, 255, 255, .14); }
html.dark .border-white { border-color: #0f172a; }
html.dark .border-white\/60 { border-color: rgba(255, 255, 255, .1); }
html.dark .divide-slate-900\/5 > * + * { border-color: rgba(255, 255, 255, .07); }
html.dark .ring-slate-900\/5, html.dark .ring-slate-900\/10 { --tw-ring-color: rgba(255, 255, 255, .08); }
html.dark .ring-white, html.dark .ring-white\/80, html.dark .ring-white\/70, html.dark .ring-white\/60 { --tw-ring-color: rgba(255, 255, 255, .1); }
html.dark .ring-amber-200\/60, html.dark .ring-amber-200\/70 { --tw-ring-color: rgba(245, 158, 11, .25); }
html.dark .keep-white { background-color: #fff !important; }   /* QR code, slider dots, progress on coloured cards */

/* ---------- Glass confirm modal ---------- */
.ui-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.ui-modal.is-open { visibility: visible; pointer-events: auto; }
.ui-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .30); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s ease; }
.ui-modal.is-open .ui-modal-backdrop { opacity: 1; }
.ui-modal-card { position: relative; width: 100%; max-width: 380px; padding: 26px 22px 20px; border-radius: 30px; text-align: center;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .22s ease, transform .26s cubic-bezier(.2, .9, .3, 1.2); }
.ui-modal.is-open .ui-modal-card { opacity: 1; transform: none; }
.ui-modal-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 20px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, #10b981, #0d9488); box-shadow: 0 14px 28px -12px rgba(16, 185, 129, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ui-modal-card.is-danger .ui-modal-icon { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 14px 28px -12px rgba(225, 29, 72, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ui-modal-title { margin-top: 16px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.ui-modal-text { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.ui-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.ui-modal-actions .btn { width: 100%; padding: .8rem 1rem; }
.btn-danger-solid { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; box-shadow: 0 10px 24px -10px rgba(225, 29, 72, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-danger-solid:hover { box-shadow: 0 14px 30px -10px rgba(225, 29, 72, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
html.ui-modal-lock, html.ui-modal-lock body { overflow: hidden; }
html.dark .ui-modal-backdrop { background: rgba(2, 6, 23, .6); }
@media (prefers-reduced-motion: reduce) { .ui-modal-card, .ui-modal-backdrop { transition: none; } }

/* ---------- Live admin toasts ---------- */
.live-toasts { position: fixed; top: 14px; right: 14px; z-index: 110; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.live-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 22px;
  opacity: 0; transform: translateX(24px) scale(.97); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.live-toast.is-in { opacity: 1; transform: none; }
.live-toast-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 14px; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #10b981, #0d9488); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.live-toast.is-withdrawal .live-toast-icon { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.live-toast.is-sale .live-toast-icon { background: linear-gradient(135deg, #f472b6, #db2777); }
.live-toast.is-message .live-toast-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.live-toast-title { display: block; font-size: 14px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast-text { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast-x { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 9999px; color: var(--muted); }
.live-toast-x:hover { background: rgba(15, 23, 42, .06); }
.live-pill-refresh { position: fixed; left: 50%; top: 14px; z-index: 105; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .6);
  transform: translate(-50%, -20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.live-pill-refresh.is-in { transform: translate(-50%, 0); opacity: 1; }
html.dark .live-pill-refresh { background: #e8edf5; color: #0b1120; }
@media (min-width: 768px) { .live-pill-refresh { left: calc(50% + 144px); } }

/* ---------- Live wallet (member) ---------- */
.wallet-bump { display: inline-block; animation: wallet-bump 1.1s cubic-bezier(.2, .9, .3, 1.2); }
.wallet-bump.is-up { text-shadow: 0 0 18px rgba(52, 211, 153, .85); }
.wallet-bump.is-down { text-shadow: 0 0 18px rgba(251, 113, 133, .8); }
@keyframes wallet-bump { 0% { transform: scale(1); } 18% { transform: scale(1.12); } 45% { transform: scale(.98); } 100% { transform: scale(1); } }
.wallet-delta { position: fixed; z-index: 130; transform: translate(-50%, 0); pointer-events: none; padding: 4px 10px; border-radius: 9999px;
  font-size: 14px; font-weight: 800; color: #fff; animation: wallet-delta 1.6s ease-out forwards; box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .5); }
.wallet-delta.is-up { background: linear-gradient(135deg, #10b981, #059669); }
.wallet-delta.is-down { background: linear-gradient(135deg, #fb7185, #e11d48); }
@keyframes wallet-delta { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
.live-toasts.is-member { top: 74px; }
.live-toast.is-ok .live-toast-icon { background: linear-gradient(135deg, #10b981, #0d9488); }
.live-toast.is-bad .live-toast-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.live-toast.is-info .live-toast-icon { background: linear-gradient(135deg, #f472b6, #db2777); }
.live-pill-refresh.is-member { top: 74px; }
@media (min-width: 768px) { .live-pill-refresh.is-member { left: 50%; } }
@media (prefers-reduced-motion: reduce) { .wallet-bump, .wallet-delta { animation: none; } }

/* ---------- Store page header ---------- */
.store-hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(circle at 90% -10%, rgba(52, 211, 153, .55), transparent 45%),
    radial-gradient(circle at -10% 110%, rgba(56, 189, 248, .45), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 26px 50px -22px rgba(15, 23, 42, .7);
}
.store-stat { padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.store-stat-label { margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.badge-count.hidden, [data-live-dot].hidden { display: none; }
.store-banner { aspect-ratio: 2 / 1; max-height: 280px; width: 100%; background: #fff; }
@media (min-width: 768px) { .store-banner { aspect-ratio: 3 / 1; } }
.store-card-img { aspect-ratio: 2 / 1; width: 100%; background: #fff; }
.store-card { display: block; overflow: hidden; border-radius: 26px; background: rgba(255, 255, 255, .78); border: 1px solid var(--hairline);
  box-shadow: 0 14px 34px -20px rgba(15, 23, 42, .4); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .2s, box-shadow .2s; }
.store-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .5); }
.store-card:active { transform: scale(.99); }
.store-card.is-locked { background: rgba(255, 255, 255, .6); }
html.dark .store-card { background: rgba(30, 41, 59, .5); border-color: rgba(255, 255, 255, .08); box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .8); }
.store-img-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2); transform: scale(1.25); opacity: .85; }
.combined-card { position: relative; background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 55%, #0ea5e9 100%);
  box-shadow: 0 26px 50px -24px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.combined-card::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .35), transparent 45%); }
.combined-card > * { position: relative; }

/* ---------- Store order modal: centred on every screen, background dimmed 30% + blurred ---------- */
.order-modal-backdrop { background: rgba(15, 23, 42, .30); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.dark .order-modal-backdrop { background: rgba(2, 6, 23, .45); }

/* Small quick-pick chips (Admin → Assigned orders) */
.chip-btn { border-radius: 999px; padding: .35rem .75rem; font-weight: 600; background: rgba(15, 23, 42, .05); color: #334155; transition: background .15s, color .15s; }
.chip-btn:hover { background: rgba(16, 185, 129, .12); color: #047857; }
html.dark .chip-btn { background: rgba(255, 255, 255, .08); color: #cbd5e1; }
html.dark .chip-btn:hover { background: rgba(16, 185, 129, .18); color: #6ee7b7; }

/* Admin → Assigned orders: one row per combo order number */
.combo-row { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.combo-row > .cr-num, .combo-row > .cr-product { grid-column: span 2; }
@media (min-width: 640px) {
  .combo-row { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); }
  .combo-row > .cr-num { grid-column: span 1; }
  .combo-row > .cr-product { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .combo-row { grid-template-columns: 56px 110px 100px 90px 72px minmax(0, 1fr) minmax(0, 1fr); }
  .combo-row > .cr-product { grid-column: span 1; }
}
.fill-input { width: 7rem; }

/* Order screen: the order card reaches down to the bottom menu (no empty space under it) */
.order-fill { display: flex; flex-direction: column; min-height: calc(100dvh - 250px); }
.order-fill-body { flex: 1 1 auto; }
@media (min-width: 768px) { .order-fill { min-height: calc(100dvh - 200px); } }
.order-totals { margin: 4px 20px 0; border-top: 1px solid rgba(15, 23, 42, .1); }
.order-totals > div { padding: 13px 0; }
.order-totals > div + div { border-top: 1px solid rgba(15, 23, 42, .05); }
html.dark .order-totals, html.dark .order-totals > div + div { border-color: rgba(255, 255, 255, .08); }

/* Combo order: max two products — their pictures grow with the screen so no empty space is left */
.combo-list { display: flex; flex-direction: column; justify-content: space-evenly; }
.combo-list > li { padding: 10px 0; }
.combo-list > li + li { border-top: 1px solid rgba(15, 23, 42, .06); }
.combo-thumb { width: clamp(96px, calc(50dvh - 300px), 200px); height: clamp(96px, calc(50dvh - 300px), 200px); }
.combo-list.is-single .combo-thumb { width: clamp(130px, calc(100dvh - 560px), 300px); height: clamp(130px, calc(100dvh - 560px), 300px); }
html.dark .combo-list > li + li { border-color: rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .combo-thumb { width: 170px; height: 170px; } .combo-list.is-single .combo-thumb { width: 240px; height: 240px; } }

/* Credit score chip next to the VIP badge (home page) */
.credit-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.4;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .7); }
.credit-chip i { font-size: 10px; }
.credit-chip.is-good { color: #059669; }
.credit-chip.is-mid  { color: #d97706; }
.credit-chip.is-low  { color: #e11d48; background: rgba(255, 228, 230, .7); }
html.dark .credit-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
html.dark .credit-chip.is-good { color: #34d399; } html.dark .credit-chip.is-mid { color: #fbbf24; } html.dark .credit-chip.is-low { color: #fb7185; background: rgba(244, 63, 94, .15); }
