:root {
  --bg: #0a0b14;
  --ivory: #f3ecdf;
  --ivory-soft: rgba(243, 236, 223, 0.72);
  --txt: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.55);
  --faint: rgba(244, 246, 251, 0.28);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffb547;
  --gold-rgb: 255, 181, 71;
  --gold-hi: #ffd27a;
  --gold-lo: #ff7a3d;
  --accent: #ff9a3f;
  --accent-rgb: 255, 154, 63;
  --sunrise: linear-gradient(to top, #070c18 0%, #101a30 14%, #1d2c4a 28%, #33456a 42%, #5a637c 54%, #8f8a86 64%, #c3a072 74%, #e8a95a 84%, #ff9a3f 93%, #ffc94d 100%);
  --green: #5fe3a1;
  --red: #ff6b7a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-caption: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ui: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font: var(--font-ui);
}
html[data-lang="fa"], html[data-lang="ar"] { --font: 'Vazirmatn', 'Segoe UI', Tahoma, var(--font-ui); --font-caption: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif; }
html[data-lang="he"] { --font: 'Noto Sans Hebrew', 'Segoe UI', Arial, var(--font-ui); --font-caption: 'Noto Sans Hebrew', Arial, sans-serif; }
html[data-lang="zh"] { --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', var(--font-ui); --font-caption: 'Noto Sans SC', 'PingFang SC', sans-serif; }
html[data-lang="ja"] { --font: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', var(--font-ui); --font-caption: 'Noto Sans JP', 'Hiragino Sans', sans-serif; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 500;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
button { font-family: inherit; color: inherit; }
input, select { font-family: inherit; }

/* ================= INTRO (scroll film) ================= */
.scroller { width: 100%; height: 400vh; pointer-events: none; }
.intro {
  position: fixed; inset: 0; overflow: hidden; background: var(--bg);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.intro.leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.42) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.28), transparent 22%, transparent 74%, rgba(0,0,0,0.42));
}
.captions { position: absolute; inset: 0; pointer-events: none; }
.cap {
  position: absolute; left: 0; right: 0;
  padding: 0 clamp(20px, 7vw, 40px);
  text-align: center; color: var(--ivory);
  font-family: var(--font-caption);
  text-transform: uppercase; font-weight: 300;
  font-size: clamp(15px, 4.4vw, 22px); line-height: 1.55; letter-spacing: 0.22em;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55), 0 0 30px rgba(0,0,0,0.35);
  opacity: 0; transform: translate3d(0, 6px, 0); will-change: opacity, transform;
}
html[dir="rtl"] .cap, html[data-lang="zh"] .cap, html[data-lang="ja"] .cap { letter-spacing: 0.06em; text-transform: none; font-weight: 400; }
html[data-lang="zh"] .cap, html[data-lang="ja"] .cap { letter-spacing: 0.18em; }
.cap.top { top: calc(env(safe-area-inset-top, 0px) + 14vh); }
.cap.bottom { bottom: calc(env(safe-area-inset-bottom, 0px) + 20vh); }
.cap.final { bottom: calc(env(safe-area-inset-bottom, 0px) + 128px); font-size: clamp(15px, 4.5vw, 22px); text-shadow: 0 1px 16px rgba(0,0,0,0.7), 0 0 36px rgba(0,0,0,0.5); }

.scroll-hint {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--ivory-soft); font-family: var(--font-caption);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.7s var(--ease); pointer-events: none;
}
html[dir="rtl"] .scroll-hint, html[data-lang="zh"] .scroll-hint, html[data-lang="ja"] .scroll-hint { letter-spacing: 0.12em; text-transform: none; font-size: 12px; }
.scroll-hint.show { opacity: 1; }
.scroll-hint .chev { width: 10px; height: 10px; border-right: 1px solid var(--ivory-soft); border-bottom: 1px solid var(--ivory-soft); transform: rotate(45deg); animation: chev 2.2s var(--ease) infinite; }
@keyframes chev { 0%,100% { transform: translateY(-4px) rotate(45deg); opacity: .35 } 50% { transform: translateY(4px) rotate(45deg); opacity: 1 } }

.progress-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(243,236,223,0.55), var(--gold)); }
html[dir="rtl"] .progress-bar i { margin-inline-start: auto; }

.start-wrap {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  display: flex; justify-content: center;
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease); pointer-events: none;
}
.start-wrap.show { opacity: 1; transform: none; pointer-events: auto; }
.start-btn {
  appearance: none; border: 1px solid rgba(243,236,223,0.55);
  background: rgba(10,12,16,0.38);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  color: var(--ivory); font-family: var(--font-caption); font-weight: 400;
  font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase;
  padding: 16px 46px 16px 52px; border-radius: 999px; cursor: pointer; position: relative;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
  animation: breathe 3.4s ease-in-out infinite;
}
html[dir="rtl"] .start-btn, html[data-lang="zh"] .start-btn, html[data-lang="ja"] .start-btn { letter-spacing: 0.14em; text-transform: none; font-size: 15px; padding: 15px 48px; }
.start-btn:active { transform: scale(0.965); background: rgba(243,236,223,0.14); }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(230,197,138,0), 0 10px 40px rgba(0,0,0,0.35) } 50% { box-shadow: 0 0 0 6px rgba(230,197,138,0.08), 0 10px 40px rgba(0,0,0,0.35) } }

/* ================= LOADER ================= */
.loader { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity 0.8s var(--ease); }
.loader.hide { opacity: 0; pointer-events: none; }
.loader-ring { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); border-top-color: var(--gold); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.loader-pct { font-size: 12px; letter-spacing: 0.3em; color: var(--ivory-soft); font-variant-numeric: tabular-nums; font-family: var(--font-caption); }
.loader-label { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(243,236,223,0.4); font-family: var(--font-caption); }
html[dir="rtl"] .loader-label, html[data-lang="zh"] .loader-label, html[data-lang="ja"] .loader-label { letter-spacing: 0.1em; text-transform: none; font-size: 12px; }

/* ================= ANIMATED BACKGROUND ================= */
.aurora {
  position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #121110 0%, #080808 45%, #030303 100%);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.aurora.show { opacity: 1; }
.aurora .blob {
  position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--c), 0.28) 0%, rgba(var(--c), 0.08) 35%, rgba(var(--c), 0) 66%);
  mix-blend-mode: screen; will-change: transform;
  animation: drift var(--d) ease-in-out infinite alternate;
}
.aurora .b1 { --c: 217,181,106; --d: 24s; top: -34vmax; left: -22vmax; }
.aurora .b2 { --c: 217,181,106; --d: 28s; bottom: -34vmax; right: -26vmax; animation-delay: -9s; opacity: 0.6; }
.aurora .b3 { --c: 245,223,166; --d: 32s; top: 28%; left: 22%; width: 52vmax; height: 52vmax; animation-delay: -17s; opacity: 0.22; }
.aurora .b4 { --c: 154,122,58; --d: 36s; top: 55%; right: -20vmax; width: 46vmax; height: 46vmax; animation-delay: -5s; opacity: 0.5; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(11vmax, 7vmax, 0) scale(1.14); }
  100% { transform: translate3d(-9vmax, 13vmax, 0) scale(0.94); }
}
.aurora .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(var(--gold-rgb),0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-rgb),0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
  animation: gridMove 24s linear infinite;
}
@keyframes gridMove { to { background-position: 44px 44px; } }
.aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================= MENU ================= */
.menu {
  position: fixed; inset: 0; z-index: 10;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) 18px calc(env(safe-area-inset-bottom, 0px) + 30px);
  opacity: 0; transition: opacity 0.9s var(--ease);
}
.menu.show { opacity: 1; }
.menu-head { display: flex; align-items: center; gap: 14px; margin: 4px 4px 24px; max-width: 520px; margin-inline: auto; }
.menu-head .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 22px rgba(var(--gold-rgb), 0.85); }
.menu-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.22), transparent); }
html[dir="rtl"] .menu-head .rule { background: linear-gradient(270deg, rgba(255,255,255,0.22), transparent); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin: 0 auto; }

.tile-wrap { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.97); animation: tileIn 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 75ms + 120ms); }
.tile-wrap.wide, .tile-wrap.slim { grid-column: 1 / -1; }
@keyframes tileIn { to { opacity: 1; transform: none } }

.tile {
  --c: 230,197,138;
  appearance: none; width: 100%; height: 100%; position: relative; overflow: hidden;
  border-radius: 26px; padding: 20px; min-height: 152px;
  border: 1px solid rgba(var(--c), 0.42);
  background:
    linear-gradient(155deg, rgba(var(--c), 0.10) 0%, rgba(var(--c), 0.02) 45%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, #16150f 0%, #0b0b0c 100%);
  box-shadow:
    inset 0 1px 0 rgba(245,223,166,0.28),
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 22px 40px -26px rgba(var(--c), 0.55),
    0 14px 34px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  color: #fff; text-align: start; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 90% 8%, rgba(var(--c), 0.22), transparent 70%); pointer-events: none; }
.tile.hero { background: linear-gradient(155deg, rgba(var(--c), 0.26) 0%, rgba(var(--c), 0.06) 50%, rgba(0,0,0,0) 100%), linear-gradient(180deg, #1c1a12 0%, #0c0c0d 100%); border-color: rgba(var(--c), 0.75); box-shadow: inset 0 1px 0 rgba(245,223,166,0.45), 0 0 0 1px rgba(0,0,0,0.6), 0 26px 50px -22px rgba(var(--c), 0.7), 0 14px 34px rgba(0,0,0,0.6); }
.tile.hero::before { background: radial-gradient(70% 60% at 90% 8%, rgba(var(--c), 0.45), transparent 70%); }
.tile::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; width: 46%; left: -60%;
  background: linear-gradient(105deg, transparent 20%, rgba(245,223,166,0.14) 50%, transparent 80%);
  transform: rotate(12deg); pointer-events: none;
  animation: sheen 8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.9s + 1s);
}
@keyframes sheen { 0%, 78% { left: -60%; } 100% { left: 140%; } }
.tile:active { transform: scale(0.965); border-color: rgba(var(--c), 0.7); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 4px rgba(var(--c), 0.12), 0 20px 40px -24px rgba(var(--c), 0.8); }
.tile .ico {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; position: relative; z-index: 1;
  background: linear-gradient(145deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  color: #120e05;
  box-shadow: 0 12px 26px -8px rgba(var(--c), 0.75), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -3px 8px rgba(0,0,0,0.25);
  animation: bob 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s);
}
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
.tile .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tile .lbl { position: relative; z-index: 1; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.22; overflow-wrap: anywhere; color: #f7f1e3; }
.tile .arr { position: absolute; z-index: 1; bottom: 22px; inset-inline-end: 20px; width: 18px; height: 18px; opacity: 0.8; color: var(--gold); }
.tile .arr svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .tile .arr svg { transform: scaleX(-1); }
.tile.wide { flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; min-height: 134px; }
.tile.wide .ico { width: 68px; height: 68px; border-radius: 22px; }
.tile.wide .ico svg { width: 30px; height: 30px; }
.tile.wide .lbl { font-size: 22px; }
.tile.wide .arr { bottom: auto; top: 50%; transform: translateY(-50%); }
.tile.slim { flex-direction: row; align-items: center; min-height: 0; padding: 14px 18px; gap: 14px; border-radius: 20px; }
.tile.slim .ico { width: 42px; height: 42px; border-radius: 14px; }
.tile.slim .ico svg { width: 20px; height: 20px; }
.tile.slim .lbl { font-size: 15px; }
.tile.slim .arr { bottom: auto; top: 50%; transform: translateY(-50%); }

/* ================= PANEL ================= */
.panel {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(4, 4, 4, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translate3d(100%, 0, 0); transition: transform 0.55s var(--ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
html[dir="rtl"] .panel { transform: translate3d(-100%, 0, 0); }
.panel.open { transform: none; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; max-width: 520px; margin-inline: auto; }
.back-btn { appearance: none; border: 1px solid var(--line); background: var(--glass); color: var(--txt); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.back-btn:active { transform: scale(0.92); background: var(--glass-strong); }
.back-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .back-btn svg { transform: scaleX(-1); }
.panel-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.panel-body { max-width: 520px; margin: 0 auto; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 10px, 0) } to { opacity: 1; transform: none } }

/* ================= SHARED COMPONENTS ================= */
.card { border: 1px solid var(--line); background: var(--glass); border-radius: 22px; padding: 18px; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.empty { color: var(--faint); text-align: center; padding: 70px 20px; font-weight: 700; font-size: 16px; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--glass); color: var(--txt); border-radius: 16px; padding: 14px 20px; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s; }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #120e05; box-shadow: 0 14px 30px -14px rgba(var(--gold-rgb), 0.9); }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(var(--gold-rgb), 0.14); color: var(--gold); border: 1px solid rgba(var(--gold-rgb), 0.35); }
.chip.gray { background: rgba(255,255,255,0.06); color: var(--faint); border-color: var(--line); }
.chip.green { background: rgba(95,227,161,0.12); color: var(--green); border-color: rgba(95,227,161,0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* plans (calculator + status) */
.plans { display: grid; gap: 10px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan-h { display: flex; flex-direction: column; gap: 6px; }
.plan-l { font-size: 14px; font-weight: 800; }
.plan-r { font-size: 12px; color: var(--muted); font-weight: 700; }
.plan-r b { color: var(--gold); font-weight: 800; }
.plan-v { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; text-align: end; }
.plan-v .frac { font-size: 12px; opacity: 0.55; margin-inline-start: 2px; font-weight: 700; }
.plan.lit { border-color: rgba(var(--gold-rgb), 0.6); background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.22), rgba(var(--gold-rgb), 0.06)); box-shadow: 0 16px 34px -20px rgba(var(--gold-rgb), 0.8), inset 0 1px 0 rgba(255,255,255,0.18); }
.plan.dim { opacity: 0.42; }
.plan.lit .plan-v { color: var(--gold); }

/* amount field */
.amount {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  border-radius: 22px; border: 1px solid rgba(var(--gold-rgb), 0.45); background: rgba(255,255,255,0.05);
  padding: 8px 10px 8px 20px; transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  direction: ltr;
}
.amount:focus-within { border-color: rgba(var(--gold-rgb), 0.9); box-shadow: 0 0 0 5px rgba(var(--gold-rgb), 0.14), 0 20px 40px -24px rgba(var(--gold-rgb), 0.8); }
.amount .cur { font-size: 28px; font-weight: 800; color: var(--gold); flex: none; }
.amount input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--txt);
  font-size: 30px; font-weight: 800; letter-spacing: -0.01em; padding: 10px 6px; font-variant-numeric: tabular-nums;
  text-align: left;
}
.amount input::placeholder { color: var(--faint); }

/* quiz */
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; font-size: 13px; font-weight: 800; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); transition: background 0.4s, transform 0.4s; }
.dots i.done { background: var(--green); }
.dots i.now { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.9); }
.quiz-card {
  border-radius: 26px; padding: 22px 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)), rgba(12,15,24,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 24px 50px -30px rgba(0,0,0,0.9);
}
.quiz-card.shake { animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both; border-color: rgba(255,107,122,0.6); }
@keyframes shake { 10%,90% { transform: translate3d(-2px,0,0) } 20%,80% { transform: translate3d(4px,0,0) } 30%,50%,70% { transform: translate3d(-7px,0,0) } 40%,60% { transform: translate3d(7px,0,0) } }
.quiz-card.pop { animation: pop 0.5s var(--ease); }
@keyframes pop { 0% { transform: scale(1) } 40% { transform: scale(1.02) } 100% { transform: scale(1) } }
.q { margin: 0 0 18px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.opts { display: grid; gap: 10px; }
.opt {
  appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  font-size: 15px; font-weight: 700; line-height: 1.4; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.opt:active { transform: scale(0.98); }
.opt .k { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255,255,255,0.08); color: var(--muted); transition: background 0.35s, color 0.35s; }
.opt.ok { border-color: rgba(95,227,161,0.7); background: rgba(95,227,161,0.14); box-shadow: 0 0 0 4px rgba(95,227,161,0.12); }
.opt.ok .k { background: var(--green); color: #05130c; }
.opt.bad { border-color: rgba(255,107,122,0.7); background: rgba(255,107,122,0.14); }
.opt.bad .k { background: var(--red); color: #1c060a; }
.opt.locked { pointer-events: none; }
.quiz-msg { min-height: 22px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.quiz-msg.bad { color: var(--red); }
.quiz-msg.ok { color: var(--green); }
.pass { text-align: center; padding: 30px 10px 10px; }
.pass .check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(95,227,161,0.35), rgba(95,227,161,0.08)); border: 1px solid rgba(95,227,161,0.5); box-shadow: 0 0 60px -10px rgba(95,227,161,0.6); animation: pop 0.7s var(--ease); }
.pass .check svg { width: 38px; height: 38px; stroke: var(--green); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pass h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }

/* cashier */
.cash-actions { display: grid; gap: 14px; }
.big-btn {
  --c: 95,227,161;
  appearance: none; display: flex; align-items: center; gap: 16px; width: 100%; text-align: start;
  padding: 20px 20px; border-radius: 24px; border: 1px solid rgba(var(--c), 0.45);
  background: linear-gradient(150deg, rgba(var(--c), 0.22), rgba(var(--c), 0.05) 60%, rgba(0,0,0,0)), linear-gradient(180deg, #1a1810, #0b0b0c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 26px 44px -26px rgba(var(--c), 0.7);
  color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease);
}
.big-btn:active { transform: scale(0.97); }
.big-btn .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #120e05; box-shadow: 0 12px 26px -8px rgba(var(--c), 0.9); flex: none; }
.big-btn .ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.big-btn.gold { --c: 217,181,106; }
.big-btn.dark { --c: 217,181,106; background: linear-gradient(150deg, rgba(var(--c), 0.08), rgba(var(--c), 0.02) 60%, rgba(0,0,0,0)), linear-gradient(180deg, #121211, #0a0a0b); }

/* language */
.lang-list { display: grid; gap: 10px; }
.lang-row { appearance: none; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; width: 100%; text-align: center; padding: 15px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); font-size: 16px; font-weight: 800; cursor: pointer; transition: transform 0.3s var(--ease), border-color 0.35s, background 0.35s; }
.lang-row:active { transform: scale(0.98); }
.lang-row.on { border-color: rgba(var(--gold-rgb), 0.7); background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.05)); }
.lang-row .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); grid-column: 3; }
.lang-row .nm { grid-column: 2; }
.lang-row.on .tick { background: var(--gold); border-color: var(--gold); }
.lang-row .tick svg { width: 13px; height: 13px; stroke: #1a1408; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.lang-row.on .tick svg { opacity: 1; }

/* history */
.hx { display: grid; gap: 10px; }
.hx-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.hx-row .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(95,227,161,0.15); color: var(--green); }
.hx-row.out .ico { background: rgba(var(--gold-rgb), 0.16); color: var(--gold); }
.hx-row .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-row .t { flex: 1; min-width: 0; }
.hx-row .t b { display: block; font-size: 15px; font-weight: 800; }
.hx-row .t span { font-size: 12px; color: var(--muted); font-weight: 700; }
.hx-row .amt { font-size: 17px; font-weight: 800; }

/* account */
.acct-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #120e05; background: linear-gradient(145deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 16px 34px -14px rgba(var(--gold-rgb), 0.9); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-top h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.acct-top .u { color: var(--muted); font-weight: 700; font-size: 14px; }
.kv { display: grid; gap: 8px; margin-bottom: 18px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); font-size: 14px; }
.kv-row span { color: var(--muted); font-weight: 700; }
.kv-row b { font-weight: 800; }
.field-l { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 4px 8px; }
.phone-row { display: flex; gap: 8px; direction: ltr; }
.sel-wrap { position: relative; flex: none; }
.sel-wrap select { appearance: none; -webkit-appearance: none; height: 54px; padding: 0 30px 0 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--txt); font-size: 15px; font-weight: 800; outline: 0; max-width: 150px; }
.sel-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tel-wrap { position: relative; flex: 1; min-width: 0; }
.tel-wrap .ghost { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 16px; pointer-events: none; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--faint); white-space: pre; border: 1px solid transparent; }
.tel-wrap .ghost i { font-style: normal; visibility: hidden; }
.tel { width: 100%; min-width: 0; height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--txt); font-size: 18px; font-weight: 800; outline: 0; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; transition: border-color 0.3s, box-shadow 0.3s; }
.tel:focus { border-color: rgba(var(--gold-rgb), 0.8); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.14); }
.tel::placeholder { color: var(--faint); }
.hint { font-size: 12px; color: var(--faint); font-weight: 700; margin: 8px 4px 14px; }
.msg { font-size: 13px; font-weight: 700; margin-top: 12px; min-height: 18px; }
.msg.bad { color: var(--red); }
.msg.ok { color: var(--green); }

/* status */
.dep { margin-bottom: 18px; }
.dep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dep-head .amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.dep-head .meta { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }

/* policy */
.policy .meta { font-size: 12px; color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.policy h3 { font-size: 15px; font-weight: 800; color: var(--gold); margin: 22px 0 8px; }
.policy p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: rgba(244,246,251,0.82); }
.policy ul { margin: 6px 0 12px; padding-inline-start: 20px; }
.policy li { font-size: 14px; line-height: 1.75; color: rgba(244,246,251,0.82); }

@media (prefers-reduced-motion: reduce) {
  .tile::after, .tile .ico, .aurora .blob, .aurora .grid, .start-btn, .scroll-hint .chev, .loader-ring { animation: none !important; }
  .tile-wrap { opacity: 1; transform: none; animation: none; }
}

.lang-row .nm[dir="rtl"] { font-size: 18px; font-family: 'Vazirmatn', 'Noto Sans Hebrew', 'Segoe UI', Tahoma, sans-serif; }


/* ================= THEME: VIVID ================= */
.aurora { background: radial-gradient(120% 90% at 50% 0%, #171a33 0%, #0d0f1f 45%, #07080f 100%); }
.aurora .blob { background: radial-gradient(circle at center, rgba(var(--c), 0.55) 0%, rgba(var(--c), 0.18) 35%, rgba(var(--c), 0) 66%); opacity: 1; }
.aurora .b1 { --c: 79,140,255; }
.aurora .b2 { --c: 168,85,247; opacity: 0.9; }
.aurora .b3 { --c: 6,214,200; opacity: 0.55; }
.aurora .b4 { --c: 244,63,142; opacity: 0.6; }
.aurora .grid { background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); }
.menu-head .mark { background: linear-gradient(135deg, #4f8cff, #a855f7); box-shadow: 0 0 22px rgba(122,92,255,0.9); }
.menu-head .rule { background: linear-gradient(90deg, rgba(255,255,255,0.28), transparent); }

.tile, .tile.hero {
  --g1: #4f8cff; --g2: #7a5cff;
  border: 1px solid rgba(255,255,255,0.28);
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.32) 100%),
    radial-gradient(90% 80% at 100% 0%, rgba(255,255,255,0.28), transparent 60%),
    linear-gradient(140deg, var(--g1) 0%, var(--g2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 24px 44px -20px rgba(var(--c), 0.75),
    0 12px 30px rgba(0,0,0,0.45);
}
.tile::before, .tile.hero::before { background: radial-gradient(70% 60% at 85% 10%, rgba(255,255,255,0.22), transparent 70%); }
.tile::after { background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%); }
.tile:active { transform: scale(0.965); border-color: rgba(255,255,255,0.6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 0 4px rgba(255,255,255,0.14), 0 20px 40px -20px rgba(var(--c), 0.9); }
.tile .ico {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 24px -10px rgba(0,0,0,0.5);
}
.tile .lbl { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.25); }
.tile .arr { color: #fff; opacity: 0.85; }
.tile.slim { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%), linear-gradient(140deg, #3b4256 0%, #1f2536 100%); border-color: rgba(255,255,255,0.18); }

.panel { background: rgba(8, 9, 18, 0.66); }
.btn-primary { background: linear-gradient(135deg, #4f8cff, #7a5cff 55%, #a855f7); color: #fff; box-shadow: 0 14px 30px -14px rgba(122,92,255,0.95); }
.big-btn, .big-btn.gold, .big-btn.dark {
  border: 1px solid rgba(255,255,255,0.28); color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3) 100%), radial-gradient(90% 80% at 100% 0%, rgba(255,255,255,0.25), transparent 60%), linear-gradient(140deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 24px 44px -22px rgba(var(--c), 0.8);
}
.big-btn.gold { --c: 34,197,94; --g1: #22c55e; --g2: #0ea5a4; }
.big-btn.dark { --c: 255,181,71; --g1: #ffb547; --g2: #ff6a3d; }
.big-btn .ico { background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.avatar { background: linear-gradient(145deg, #4f8cff, #a855f7); color: #fff; box-shadow: 0 16px 34px -14px rgba(122,92,255,0.9); }
.chip { background: rgba(var(--accent-rgb), 0.16); color: #b9aaff; border-color: rgba(var(--accent-rgb), 0.45); }
.plan.lit { border-color: rgba(var(--accent-rgb), 0.7); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(79,140,255,0.10)); box-shadow: 0 16px 34px -20px rgba(var(--accent-rgb), 0.9), inset 0 1px 0 rgba(255,255,255,0.18); }
.plan.lit .plan-v { color: #cfc4ff; }
.plan-r b { color: #9fb8ff; }
.amount { border-color: rgba(var(--accent-rgb), 0.55); }
.amount:focus-within { border-color: rgba(var(--accent-rgb), 0.95); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.16), 0 20px 40px -24px rgba(var(--accent-rgb), 0.9); }
.amount .cur { color: #9fb8ff; }
.lang-row.on { border-color: rgba(var(--accent-rgb), 0.75); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(79,140,255,0.08)); }
.lang-row.on .tick { background: var(--accent); border-color: var(--accent); }
.lang-row .tick svg { stroke: #fff; }
.dots i.now { background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9); }
.tel:focus { border-color: rgba(var(--accent-rgb), 0.85); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
.policy h3 { color: #9fb8ff; }
.progress-bar i { background: linear-gradient(90deg, rgba(243,236,223,0.55), #ffb547); }
.loader-ring { border-top-color: var(--accent); }


/* ================= THEME: SUNRISE (dark fog at the bottom → sunrise at the top) ================= */
.aurora { background: linear-gradient(to bottom, #2a180a 0%, #17131c 34%, #0a0d18 68%, #05070e 100%); }
.aurora .b1 { --c: 255,166,52; top: -46vmax; left: 8vmax; width: 84vmax; height: 84vmax; opacity: 0.85; }
.aurora .b2 { --c: 38,74,168; opacity: 0.8; }
.aurora .b3 { --c: 120,96,150; opacity: 0.35; }
.aurora .b4 { --c: 24,48,110; opacity: 0.6; }
.menu-head .mark { background: linear-gradient(135deg, #ffd25a, #ff8a3d); box-shadow: 0 0 22px rgba(255,170,60,0.9); }

.tile, .tile.hero, .tile.slim {
  --a: 1;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(8, 12, 22, 0.30);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 18px 40px -22px rgba(0,0,0,0.9),
    0 10px 26px rgba(0,0,0,0.35);
}
.tile .bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to top,
    #070c18 0%,
    #101a30 14%,
    #1d2c4a 28%,
    #33456a 42%,
    #5a637c 54%,
    #8f8a86 64%,
    #c3a072 74%,
    #e8a95a 84%,
    #ff9a3f 93%,
    #ffc94d 100%);
  background-repeat: no-repeat;
  opacity: var(--a);
  transition: opacity 0.6s var(--ease);
}
.tile::before, .tile.hero::before { z-index: 0; background: radial-gradient(80% 70% at 85% 8%, rgba(255,255,255,0.16), transparent 70%); }
.tile::after { z-index: 1; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%); }
.tile:active { transform: scale(0.965); border-color: rgba(255,255,255,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 0 0 4px rgba(255,255,255,0.12), 0 18px 40px -20px rgba(0,0,0,0.9); }
.tile .ico { z-index: 1; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.32); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 24px -10px rgba(0,0,0,0.55); }
.tile .lbl { z-index: 1; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.tile .arr { z-index: 1; color: #fff; opacity: 0.85; }
.tile.hero { border-color: rgba(255,255,255,0.32); }


/* ================= THEME: SUNRISE INSIDE (same gradient for everything inside the sections) ================= */
.grad { position: relative; }
.grad > * { position: relative; }
.grad > *:not(.tile-wrap) { overflow: hidden; }
.grad > * > *:not(.gbg):not(.sheen):not(.arr):not(.bg), .grad .tile > *:not(.gbg):not(.sheen):not(.arr):not(.bg) { position: relative; z-index: 1; }
.tile .arr { z-index: 1; }
.gbg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--sunrise); background-repeat: no-repeat;
  opacity: var(--a, 1); transition: opacity 0.6s var(--ease);
}
.tile .bg { display: none; }
.tile .gbg { border-radius: inherit; }

/* shared base for inner items: dark glass, the .gbg slice supplies the colour */
.big-btn, .big-btn.gold, .big-btn.dark, .plan, .lang-row, .opt, .hx-row, .kv-row {
  --a: 1;
  background: rgba(8, 12, 22, 0.30) !important;
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.25), 0 14px 30px -20px rgba(0,0,0,0.9);
}
.big-btn .ico, .hx-row .ico { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.32); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.plan-l, .plan-v, .kv-row b, .hx-row .t b, .hx-row .amt { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.plan-r, .kv-row span, .hx-row .t span { color: rgba(255,255,255,0.72); }
.plan-r b { color: #fff; }
.plan.lit { border-color: rgba(255,255,255,0.85); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 3px rgba(255,255,255,0.14), 0 18px 40px -18px rgba(255,190,90,0.9); }
.plan.lit .plan-v { color: #fff; }
.plan.dim { opacity: 0.42; }
.lang-row.on { border-color: rgba(255,255,255,0.9); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 3px rgba(255,255,255,0.14); }
.lang-row.on .tick { background: #fff; border-color: #fff; }
.lang-row.on .tick svg { stroke: #2a1608; }
.opt .k { background: rgba(255,255,255,0.18); color: #fff; }
.opt.ok { border-color: rgba(95,227,161,0.95); box-shadow: 0 0 0 4px rgba(95,227,161,0.18); }
.opt.ok .gbg, .opt.bad .gbg { opacity: 0.35; }
.opt.ok { background: rgba(95,227,161,0.22) !important; }
.opt.bad { background: rgba(255,107,122,0.22) !important; border-color: rgba(255,107,122,0.95); }
.btn-primary { background: linear-gradient(135deg, #ff9a3f, #ffc94d); color: #2a1608; box-shadow: 0 14px 30px -14px rgba(255,154,63,0.95); }
.chip { background: rgba(255,154,63,0.18); color: #ffd28a; border-color: rgba(255,154,63,0.5); }
.chip.green { background: rgba(95,227,161,0.12); color: var(--green); border-color: rgba(95,227,161,0.35); }
.chip.gray { background: rgba(255,255,255,0.06); color: var(--faint); border-color: var(--line); }
.amount { border-color: rgba(255,154,63,0.6); }
.amount:focus-within { border-color: rgba(255,201,77,0.95); box-shadow: 0 0 0 5px rgba(255,154,63,0.16), 0 20px 40px -24px rgba(255,154,63,0.9); }
.amount .cur { color: #ffc94d; }
.dots i.now { background: #ffc94d; box-shadow: 0 0 12px rgba(255,201,77,0.9); }
.tel:focus { border-color: rgba(255,201,77,0.85); box-shadow: 0 0 0 4px rgba(255,154,63,0.16); }
.policy h3 { color: #ffc94d; }
.loader-ring { border-top-color: #ffc94d; }
.avatar { background: linear-gradient(145deg, #ffc94d, #ff9a3f 55%, #33456a); color: #fff; box-shadow: 0 16px 34px -14px rgba(255,154,63,0.8); }
.pass .check { background: linear-gradient(145deg, rgba(255,201,77,0.35), rgba(51,69,106,0.3)); border-color: rgba(255,201,77,0.6); box-shadow: 0 0 60px -10px rgba(255,154,63,0.7); }
.pass .check svg { stroke: #ffc94d; }


/* ================= 3D DEPTH + ONE SLOW SHEEN OVER THE WHOLE GROUP ================= */
@property --sweep { syntax: '<number>'; inherits: true; initial-value: 0; }
.grad { --gw: 100vw; --band: calc(var(--gw) * 0.42); animation: sweep 18s linear infinite; }
@keyframes sweep { 0% { --sweep: 0; } 55% { --sweep: 1; } 100% { --sweep: 1; } }
.sheen {
  position: absolute; top: -60%; bottom: -60%; left: 0; width: var(--band); z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.05) 70%, transparent 100%);
  transform: translateX(calc(var(--sweep) * (var(--gw) + var(--band)) - var(--left, 0px) - var(--band))) rotate(12deg);
  will-change: transform;
}
.tile::after, .grad > *::after, .grad .tile::after { animation: none !important; left: auto; width: auto; }

/* volume: light from the top, thick bottom edge, real drop shadow */
.tile, .tile.hero, .tile.slim, .big-btn, .plan, .lang-row, .opt, .hx-row, .kv-row {
  border: 1px solid rgba(255,255,255,0.26);
  border-bottom-color: rgba(0,0,0,0.55);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.38),
    inset 0 -4px 0 rgba(0,0,0,0.40),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 6px 0 rgba(0,0,0,0.42),
    0 14px 24px -6px rgba(0,0,0,0.55),
    0 30px 50px -18px rgba(0,0,0,0.75);
  transform: translateZ(0);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.tile::after, .big-btn::after, .plan::after, .lang-row::after, .opt::after, .hx-row::after, .kv-row::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.05) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.30) 100%);
  transform: none;
}
.tile:active, .big-btn:active, .lang-row:active, .opt:active {
  transform: translateY(4px) scale(0.99);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.30),
    inset 0 -2px 0 rgba(0,0,0,0.35),
    0 2px 0 rgba(0,0,0,0.42),
    0 8px 16px -6px rgba(0,0,0,0.55);
}
.tile .ico, .big-btn .ico, .hx-row .ico {
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.55), inset 0 -3px 0 rgba(0,0,0,0.30), 0 8px 14px -6px rgba(0,0,0,0.6);
  border-bottom-color: rgba(0,0,0,0.4);
}
.menu-grid { gap: 18px; padding-bottom: 10px; }
.plans, .lang-list, .opts, .hx, .kv, .cash-actions { gap: 14px; }


/* ================= DEPOSIT ================= */
.sel-wrap.wide { width: 100%; }
.sel-wrap.wide select { width: 100%; max-width: none; }
.hint.note { color: rgba(244,246,251,0.36); font-weight: 600; font-size: 12.5px; line-height: 1.6; margin: 10px 4px 16px; }
.dep-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dep-top .amt { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.dep-top .meta { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.pay-amt { font-size: 22px; font-weight: 800; margin: 0 0 14px; word-break: break-all; }
.pay-amt b { color: #ffc94d; }
.addr { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); margin-bottom: 14px; direction: ltr; }
.addr code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; word-break: break-all; color: #fff; }
.addr .copy { flex: none; padding: 10px 14px; font-size: 13px; border-radius: 12px; }
.qr { width: 168px; height: 168px; margin: 4px auto 18px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 16px 34px -14px rgba(0,0,0,0.8); }
.qr svg { width: 100%; height: 100%; display: block; }
.countdown { text-align: center; margin: 4px 0 10px; }
.cd-l { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] .cd-l, html[data-lang="zh"] .cd-l, html[data-lang="ja"] .cd-l { letter-spacing: 0; text-transform: none; }
.cd-v { font-size: 40px; font-weight: 800; letter-spacing: 0.02em; margin: 2px 0 8px; color: #ffc94d; }
.cd-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.cd-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff9a3f, #ffc94d); transition: width 1s linear; }
html[dir="rtl"] .cd-bar i { margin-inline-start: auto; }

.plan.pick { cursor: pointer; }
.plan.pick:active { transform: translateY(3px) scale(0.99); }

/* panel visibility is class-driven: .ready = in the DOM flow (offscreen), .open = slid in */
.panel[hidden] { display: block; }
.panel { visibility: hidden; pointer-events: none; }
.panel.ready { visibility: visible; pointer-events: auto; }

/* RTL: the slide-in must win over the RTL offscreen rule */
html[dir="rtl"] .panel.open, .panel.open { transform: none; }


/* ================= LITE MODE (phones): same look, cheap rendering ================= */
html.lite .tile, html.lite .tile.hero, html.lite .tile.slim, html.lite .big-btn, html.lite .plan, html.lite .lang-row, html.lite .opt, html.lite .hx-row, html.lite .kv-row, html.lite .back-btn, html.lite .start-btn, html.lite .tile .ico, html.lite .big-btn .ico {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.lite .tile, html.lite .tile.hero, html.lite .tile.slim { background: rgba(10, 13, 22, 0.92); }
html.lite .big-btn, html.lite .plan, html.lite .lang-row, html.lite .opt, html.lite .hx-row, html.lite .kv-row { background: rgba(10, 13, 22, 0.92) !important; }
html.lite .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7, 8, 14, 0.97); }
html.lite .aurora .blob { mix-blend-mode: normal; animation-duration: 60s; }
html.lite .aurora .b3, html.lite .aurora .b4 { display: none; }
html.lite .aurora .grid { animation: none; }
html.lite .aurora canvas { display: none; }
html.lite .sheen { display: none; }
html.lite .grad { animation: none; }
html.lite .tile .ico { animation: none; }
html.lite .tile, html.lite .tile.hero, html.lite .tile.slim, html.lite .big-btn, html.lite .plan, html.lite .lang-row, html.lite .opt, html.lite .hx-row, html.lite .kv-row {
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.30), inset 0 -4px 0 rgba(0,0,0,0.40), 0 6px 0 rgba(0,0,0,0.42), 0 14px 24px -6px rgba(0,0,0,0.5);
}
html.lite .gbg { transition: none; }
html.lite .start-btn { animation: none; background: rgba(10,12,16,0.7); }
html.lite .intro, html.lite .cap { will-change: auto; }

.linkish { appearance: none; background: none; border: 0; padding: 10px 4px; margin-top: 6px; color: #ffc94d; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:active { opacity: 0.7; }
