/* =====================================================================
   AdRewards — design system (light UI, dark cards, gold accent)
   ===================================================================== */
:root {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --card: #ffffff;
  --line: #e6e8ec;
  --line-2: #d9dce2;
  --ink: #15171c;
  --ink-2: #3d424d;
  --muted: #7a808c;
  --dark: #1f232c;
  --dark-2: #2a2f3a;
  --dark-3: #353b48;
  --gold: #e8b93c;
  --gold-2: #f6d46b;
  --gold-soft: #fdf3d6;
  --gold-ink: #3a2c05;
  --green: #16a34a;
  --green-soft: #e3f6ea;
  --red: #dc2626;
  --red-soft: #fde8e8;
  --blue: #2563eb;
  --blue-soft: #e5edfd;
  --orange: #ea7a0c;
  --orange-soft: #fdeedd;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 8px 24px rgba(16, 20, 28, .06);
  --shadow-lg: 0 20px 60px rgba(16, 20, 28, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mt { margin-top: 18px; } .mt-sm { margin-top: 10px; } .mt-lg { margin-top: 30px; }
.hide-mobile { }
.hide-desktop-only { display: none !important; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo b { font-weight: 700; color: var(--ink); }
.logo-light, .logo-light b { color: #fff; }
.logo svg { transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { --h: 36px; padding: 0 13px; border-radius: 11px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; border-radius: 16px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--dark); box-shadow: 0 6px 18px rgba(232, 185, 60, .35); }
.btn-gold:hover { background: #edc24e; box-shadow: 0 10px 26px rgba(232, 185, 60, .45); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); box-shadow: 0 10px 24px rgba(31, 35, 44, .25); }
.btn-soft { background: var(--bg-2); color: var(--ink); }
.btn-soft:hover { background: #e3e6eb; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .14); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg-2);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: #e2e5ea; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.spin { animation: spin 1s linear infinite; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.card-tight { padding: 16px; }
.card h3 { font-size: 18px; }
.card-dark {
  background: var(--dark); color: #fff; border: 0; border-radius: var(--r-lg); padding: 24px;
  position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(31, 35, 44, .22);
}
.card-dark::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(232, 185, 60, .18), transparent 70%); pointer-events: none;
}
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.card-dark .eyebrow { color: rgba(255, 255, 255, .55); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600;
}
.pill-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.gold { color: var(--gold); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-neutral { background: var(--bg-2); color: var(--ink-2); }
.badge-gold { background: var(--gold-soft); color: #8a6408; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-dark { background: var(--dark); color: #fff; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #fbfbfc; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(232, 185, 60, .18); }
.has-error .input { border-color: var(--red); }
.input-group { position: relative; }
.input-group .input { padding-inline-end: 46px; }
.input-group .icon-btn { position: absolute; inset-inline-end: 4px; top: 4px; width: 40px; height: 40px; background: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.pw-rules span { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.pw-rules span.ok { color: var(--green); }
.pw-rules svg { width: 14px; height: 14px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 0; }
.toggle-track { width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .25s; flex: none; }
.toggle-thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .25s var(--ease); }
.toggle.on .toggle-track { background: var(--green); }
.toggle.on .toggle-thumb { inset-inline-start: 21px; }
.toggle-label { font-weight: 500; }

.segmented { display: inline-flex; background: var(--bg-2); border-radius: 14px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ---------- toasts ---------- */
.toaster { position: fixed; z-index: 100; top: 18px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; max-width: 460px;
  background: var(--dark); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .35s var(--ease);
}
.toast svg { width: 19px; height: 19px; flex: none; }
.toast-ok svg { color: #4ade80; } .toast-err svg { color: #f87171; } .toast-info svg { color: var(--gold); }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 17, 22, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: popIn .35s var(--ease); }
.modal-wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 10px 20px 22px; }

/* ---------- misc ---------- */
.skeleton { display: block; background: linear-gradient(90deg, #eceef1 0%, #f6f7f9 40%, #eceef1 80%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 16px; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 16px; }
.empty-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--gold-soft); color: #b8860b; display: grid; place-items: center; animation: float 3.5s ease-in-out infinite; }
.empty-icon svg { width: 26px; height: 26px; }
.progress { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .8s var(--ease); }
.card-dark .progress { background: rgba(255,255,255,.1); }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { position: absolute; inset: 0; }
.ring-center { position: relative; text-align: center; }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 120; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kbd { font-family: ui-monospace, monospace; background: var(--bg-2); border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.copy-box { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 14px; padding: 6px 6px 6px 14px; }
[dir="rtl"] .copy-box { padding: 6px 14px 6px 6px; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; direction: ltr; text-align: start; }

/* ---------- week bars ---------- */
.weekbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 190px; align-items: end; }
.wb-col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.wb-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wb-bar { width: min(28px, 70%); border-radius: 99px; background: #f6e3b0; transform-origin: bottom; animation: barGrow .9s var(--ease) both; }
.wb-col.today .wb-bar, .wb-bar[title]:not([title="0"]) { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.wb-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.wb-col.today .wb-label { color: var(--ink); font-weight: 700; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { animation: fadeUp .6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .07s; }
.stagger > *:nth-child(3) { animation-delay: .12s; } .stagger > *:nth-child(4) { animation-delay: .17s; }
.stagger > *:nth-child(5) { animation-delay: .22s; } .stagger > *:nth-child(6) { animation-delay: .27s; }
.stagger > *:nth-child(7) { animation-delay: .32s; } .stagger > *:nth-child(8) { animation-delay: .37s; }
.stagger > *:nth-child(n+9) { animation-delay: .42s; }

/* =====================================================================
   LANDING
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(244, 245, 247, .82); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-btn svg { width: 16px; height: 16px; }

.hero { position: relative; padding: 36px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; inset-inline-end: -320px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 185, 60, .28), transparent 70%); animation: glow 9s ease-in-out infinite alternate; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: -4px; bottom: 6px; height: 14px; background: var(--gold-2); opacity: .55; z-index: -1; border-radius: 6px; transform-origin: left; animation: underline 1s .5s var(--ease) both; }
[dir="rtl"] .hero h1 .hl::after { transform-origin: right; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--ink-2); font-size: 14px; }
.hero-trust div { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 16px; background: var(--dark); color: #fff; transition: transform .2s var(--ease), box-shadow .25s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,35,44,.3); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; opacity: .7; line-height: 1; }
.store-btn strong { display: block; font-size: 17px; line-height: 1.2; }

.phone-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 46px; background: #0d0f13; padding: 12px;
  box-shadow: 0 50px 100px rgba(31, 35, 44, .35), inset 0 0 0 2px #2c313c; animation: floatPhone 6s ease-in-out infinite;
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #0d0f13; z-index: 2; }
.ph-title { font-weight: 700; font-size: 18px; margin-top: 22px; }
.ph-card { background: var(--dark); color: #fff; border-radius: 22px; padding: 16px; }
.ph-card .eyebrow { font-size: 9.5px; }
.ph-bal { font-size: 30px; font-weight: 700; color: var(--gold); margin-top: 6px; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ph-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; font-size: 10px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ph-tile i { width: 28px; height: 28px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; }
.ph-tile svg { width: 15px; height: 15px; }
.ph-btn { margin-top: 10px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--dark); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; animation: pulseGlow 2.4s ease-in-out infinite; }
.ph-btn svg { width: 15px; height: 15px; }
.ph-bars { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.ph-bars .weekbars { height: 92px; gap: 5px; }
.ph-bars .wb-label { font-size: 9px; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: floatChip 5s ease-in-out infinite;
}
.float-chip i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.float-chip svg { width: 18px; height: 18px; }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chip-a { top: 70px; inset-inline-start: 0; }
.chip-b { bottom: 110px; inset-inline-end: -6px; animation-delay: -2.5s; }
.chip-c { bottom: 24px; inset-inline-start: 30px; animation-delay: -1.2s; }
.coin { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #b98a12); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 8px 18px rgba(185,138,18,.35); animation: coinFloat 7s ease-in-out infinite; }
.coin::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: rgba(58,44,5,.55); font-size: 16px; }
.coin.c1 { top: 30px; inset-inline-end: 40px; }
.coin.c2 { top: 260px; inset-inline-start: 18px; width: 24px; height: 24px; animation-delay: -3s; }
.coin.c2::after { font-size: 12px; }
.coin.c3 { bottom: 60px; inset-inline-end: 70px; width: 28px; height: 28px; animation-delay: -5s; }

.stats-band { margin-top: 10px; }
.stats-band .card { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 10px; }
.stat-cell { text-align: center; padding: 0 10px; border-inline-start: 1px solid var(--line); }
.stat-cell:first-child { border-inline-start: 0; }
.stat-cell b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat-cell > span { color: var(--muted); font-size: 14px; }

.section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.025em; }
.section-head p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.section-dark { background: var(--dark); color: #fff; border-radius: 40px; margin: 0 12px; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.way:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(16,20,28,.1); border-color: transparent; }
.way-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; transition: transform .4s var(--ease); }
.way:hover .way-icon { transform: rotate(-8deg) scale(1.08); }
.way-icon svg { width: 24px; height: 24px; }
.way h3 { font-size: 17px; }
.way p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.way .badge { position: absolute; top: 18px; inset-inline-end: 18px; }
.tone-gold { background: var(--gold-soft); color: #a77a08; }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-orange { background: var(--orange-soft); color: var(--orange); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-violet { background: #efe9fe; color: #7c3aed; }
.tone-dark { background: var(--dark); color: var(--gold); }
.tone-cyan { background: #e0f7fa; color: #0891b2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 24px; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--gold); color: var(--dark); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { color: rgba(255,255,255,.7); margin-top: 8px; }
.rate-box { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: 18px; }
.rate-box b { color: var(--gold); font-size: 26px; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.method.active { cursor: pointer; }
.method.active:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.method.selected { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,185,60,.18); }
.method.soon { opacity: .6; cursor: not-allowed; }
.method-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; flex: none; }
.method-logo svg { width: 22px; height: 22px; }
.method strong { display: block; }
.method span { color: var(--muted); font-size: 13px; }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.payout-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; white-space: nowrap; }
.payout-chip b { color: var(--green); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.split p.lead { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.demo-card .input { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg); }

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: none; border: 0; font-weight: 600; font-size: 16px; text-align: start; cursor: pointer; }
.faq-q svg { width: 20px; height: 20px; transition: transform .3s var(--ease); flex: none; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--ink-2); }

.cta-band { position: relative; overflow: hidden; border-radius: 34px; background: var(--dark); color: #fff; padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.72); margin: 12px auto 26px; max-width: 560px; font-size: 17px; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(232,185,60,.35), transparent 70%); width: 420px; height: 420px; animation: glow 7s ease-in-out infinite alternate; }
.cta-band::before { top: -220px; inset-inline-start: -120px; }
.cta-band::after { bottom: -240px; inset-inline-end: -100px; animation-delay: -3s; }
.cta-band > * { position: relative; }

.footer { padding: 50px 0 34px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer h4 { color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   AUTH
   ===================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--dark); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 600px; height: 600px; bottom: -300px; inset-inline-end: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232,185,60,.3), transparent 70%); animation: glow 8s ease-in-out infinite alternate; }
.auth-side h2 { font-size: 40px; font-weight: 700; max-width: 440px; position: relative; z-index: 1; }
.auth-side p { color: rgba(255,255,255,.7); margin-top: 14px; max-width: 420px; position: relative; z-index: 1; }
.auth-side .lang-btn, .side-foot .lang-btn { align-self: flex-start; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 30px 20px; }
.auth-box { width: 100%; max-width: 420px; animation: fadeUp .6s var(--ease); }
.auth-box h1 { font-size: 30px; font-weight: 700; }
.auth-box > p.muted { margin-top: 6px; }
.google-btn { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.google-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.notice-info { background: var(--gold-soft); color: #6b4f07; border: 1px solid #f3dc99; }
.notice-ok { background: var(--green-soft); color: #11632f; }
.share-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line, #e5e7eb); }
.share-bar span { display: block; height: 100%; transition: width .35s var(--ease, ease); }
.notice-err { background: var(--red-soft); color: #8f1d1d; }
.notice-blue { background: var(--blue-soft); color: #1d3f91; }

/* =====================================================================
   APP SHELL (user dashboard + admin)
   ===================================================================== */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; }
.sidebar .logo { padding: 4px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: rgba(255,255,255,.66); font-weight: 500; transition: background .2s, color .2s; }
.side-link svg { width: 20px; height: 20px; flex: none; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(232,185,60,.14); color: var(--gold); }
.side-link.active::before { content: ""; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
[dir="rtl"] .side-link.active::before { border-radius: 4px 0 0 4px; }
.side-link .count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-sep { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin: 16px 12px 6px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; background: rgba(244,245,247,.86); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-title { font-size: 22px; font-weight: 700; }
.balance-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; transition: transform .2s; }
[dir="rtl"] .balance-pill { padding: 6px 6px 6px 14px; }
.balance-pill:hover { transform: translateY(-1px); }
.balance-pill i { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--dark); }
.balance-pill svg { width: 16px; height: 16px; }
.content { padding: 8px 28px 60px; width: 100%; max-width: 1180px; }
.page-anim { animation: pageIn .45s var(--ease); }
.page-head { margin: 10px 0 20px; }
.page-head h1 { font-size: 28px; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }

.bottom-nav { display: none; }

/* home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.balance-big { font-size: 46px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; margin-top: 4px; }
.balance-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; background: rgba(255,255,255,.06); border-radius: 16px; padding: 12px 16px; }
.balance-row > span, .balance-row .sub { color: rgba(255,255,255,.65); font-size: 14px; }
.balance-row .balance-big { margin-top: 0; line-height: 1.1; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 18px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.quick-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-tile:active { transform: scale(.97); }
.quick-tile i { width: 48px; height: 48px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; }
.quick-tile:hover i { transform: scale(1.08) rotate(-6deg); background: var(--gold-soft); }
.quick-tile svg { width: 23px; height: 23px; }
.quick-tile strong { font-size: 14px; }
.quick-tile small { color: var(--muted); font-size: 12px; margin-top: -6px; }
.quick-tile .dot { position: absolute; top: 12px; inset-inline-end: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.15); animation: ping 1.6s ease-out infinite; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.streak span { height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .3s; }
.streak span.done { background: var(--gold); color: var(--dark); }
.streak span.next { background: var(--gold-soft); color: #8a6408; outline: 2px dashed var(--gold); outline-offset: -2px; animation: pulseSoft 2s ease-in-out infinite; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.stat-tile .eyebrow { font-size: 11px; }
.stat-tile b { display: block; font-size: 26px; font-weight: 700; margin-top: 8px; }
.mission { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mission:last-child { border-bottom: 0; }
.mission-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.mission-icon svg { width: 20px; height: 20px; }
.mission-body { flex: 1; min-width: 0; }
.mission-body strong { display: block; font-size: 14.5px; }
.mission-body .progress { margin-top: 7px; height: 6px; }
.compare { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 16px; padding: 14px; margin-top: 14px; }
.compare svg { width: 24px; height: 24px; flex: none; }

/* earn */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.offer-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; text-align: start; }
.offer-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,20,28,.1); }
.offer-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease); pointer-events: none; }
.offer-card:hover::after { transform: translateX(100%); }
.offer-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; overflow: hidden; }
.offer-logo img { width: 100%; height: 100%; object-fit: cover; }
.offer-card h3 { font-size: 17px; }
.offer-card p { color: var(--muted); font-size: 13.5px; }
.offer-card .badge { position: absolute; top: 16px; inset-inline-end: 16px; }
.offer-frame { width: 100%; height: calc(100vh - 170px); min-height: 520px; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.watch-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.promo-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.promo-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-row .promo-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.promo-row .promo-ico svg { width: 20px; height: 20px; }
.promo-row .grow { flex: 1; min-width: 0; }
.promo-row .grow strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* lists */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--bg-2); }
.list-ico svg { width: 19px; height: 19px; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main span { font-size: 12.5px; color: var(--muted); }
.amount-pos { color: var(--green); font-weight: 700; white-space: nowrap; }
.amount-neg { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.unread { position: relative; }
.unread::before { content: ""; position: absolute; inset-inline-start: -10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); }

/* leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.podium-col { text-align: center; }
.podium-avatar { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: #fff; border: 3px solid var(--line); }
.podium-block { border-radius: 18px 18px 8px 8px; background: var(--dark); color: #fff; padding: 14px 8px; animation: rise .8s var(--ease) both; transform-origin: bottom; }
.podium-col:nth-child(1) .podium-block { height: 96px; animation-delay: .15s; }
.podium-col:nth-child(2) .podium-block { height: 130px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--dark); }
.podium-col:nth-child(3) .podium-block { height: 78px; animation-delay: .3s; }
.podium-col:nth-child(2) .podium-avatar { border-color: var(--gold); width: 68px; height: 68px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; }
.rank-row:nth-child(odd) { background: var(--bg); }
.rank-row.me { background: var(--gold-soft); outline: 1px solid #f0d58a; }
.rank-num { width: 30px; font-weight: 800; color: var(--muted); text-align: center; }

/* wheel */
.wheel-wrap { position: relative; width: min(340px, 82vw); aspect-ratio: 1; margin: 6px auto 18px; }
.wheel-svg { width: 100%; height: 100%; transition: transform 5s cubic-bezier(.12, .8, .1, 1); filter: drop-shadow(0 18px 30px rgba(16,20,28,.18)); }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 26px solid var(--dark); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.wheel-hub { position: absolute; inset: 41%; border-radius: 50%; background: var(--dark); border: 5px solid #fff; display: grid; place-items: center; color: var(--gold); font-weight: 800; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 82%; padding: 12px 14px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; animation: fadeUp .35s var(--ease); }
.bubble small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .65; }
.bubble.me { align-self: flex-end; background: var(--dark); color: #fff; border-end-end-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--bg-2); border-end-start-radius: 6px; }

/* tables (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; transition: background .15s; }
.table tr.clickable:hover { background: #fafbfc; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.kpi .eyebrow { font-size: 11px; }
.kpi b { display: block; font-size: 26px; font-weight: 700; margin-top: 6px; }
.kpi small { color: var(--muted); }
.kpi.dark { background: var(--dark); color: #fff; border-color: transparent; }
.kpi.dark b { color: var(--gold); }
.bars-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding-top: 10px; }
.bars-chart .bc-col { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; position: relative; }
.bars-chart .bc-col span { flex: 1; border-radius: 6px 6px 2px 2px; animation: barGrow .8s var(--ease) both; transform-origin: bottom; min-height: 2px; }
.bars-chart .bc-rev { background: var(--gold); }
.bars-chart .bc-cost { background: var(--dark-3); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,17,22,.45); z-index: 80; animation: fadeIn .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(620px, 100vw); background: var(--bg); z-index: 81; overflow-y: auto; box-shadow: var(--shadow-lg); animation: drawerIn .35s var(--ease); }
[dir="rtl"] .drawer { animation-name: drawerInRtl; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 20px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.json-editor { font-family: ui-monospace, monospace; font-size: 13px; min-height: 160px; }
.settings-group { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.settings-group > *, .settings-group .stack-sm { min-width: 0; }
.settings-group .sg-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 12px; align-items: center; }
.settings-group .sg-row > * { min-width: 0; }
.settings-group .sg-nested { border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.chip-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: #fbfbfc; }
.chip-input .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--bg-2); font-size: 13px; }
.chip-input .chip button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 2px; color: var(--muted); }
.chip-input input { border: 0; outline: none; background: transparent; min-width: 120px; flex: 1; padding: 4px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--gold); }

/* short link page */
.sl-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 40px; gap: 18px; }
.sl-card { width: 100%; max-width: 560px; text-align: center; }
.ad-slot { width: 100%; max-width: 728px; min-height: 90px; display: grid; place-items: center; border-radius: 16px; overflow: hidden; }
.ad-slot:empty { display: none; }

/* maintenance / centered */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.big-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floatPhone { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes coinFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(25deg); } }
@keyframes glow { from { transform: scale(1) translate(0, 0); opacity: .8; } to { transform: scale(1.15) translate(-30px, 20px); opacity: 1; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,185,60,.45); } 50% { box-shadow: 0 0 0 10px rgba(232,185,60,0); } }
@keyframes pulseSoft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 100% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerInRtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.bump { animation: bump .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .ways { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .phone-wrap { min-height: 520px; }
  .nav-links { display: none; }
  .ways { grid-template-columns: repeat(2, 1fr); }
  .steps, .methods { grid-template-columns: minmax(0, 1fr); }
  .stats-band .card { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat-cell:nth-child(3) { border-inline-start: 0; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; }
  .content { padding: 4px 16px 110px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11.5px; color: var(--muted); font-weight: 500; position: relative; }
  .bottom-nav a svg { width: 23px; height: 23px; transition: transform .3s var(--ease); }
  .bottom-nav a.active { color: var(--ink); font-weight: 700; }
  .bottom-nav a.active svg { color: #c99412; transform: translateY(-2px) scale(1.08); }
  .bottom-nav .count { position: absolute; top: 2px; inset-inline-end: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-group .sg-row { grid-template-columns: 1fr; gap: 6px; }
  .hide-mobile { display: none !important; }
  .hide-desktop-only { display: flex !important; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .nav .lang-text { display: none; }
  .nav-actions { gap: 6px; }
  .nav-inner { height: 64px; }
  .section { padding: 60px 0; }
  .section-dark { border-radius: 28px; margin: 0 8px; }
  .ways { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-tile { padding: 14px 6px; border-radius: 18px; }
  .quick-tile i { width: 42px; height: 42px; }
  .stat-tiles { gap: 8px; }
  .stat-tile { padding: 12px; border-radius: 16px; }
  .stat-tile b { font-size: 22px; }
  .card { padding: 18px; border-radius: 22px; }
  .card-dark { padding: 20px; }
  .balance-big { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 20px; border-radius: 26px; }
  .phone { transform: scale(.9); }
  .float-chip { font-size: 12.5px; padding: 8px 11px; }
  .chip-a { inset-inline-start: -6px; }
  .chip-b { inset-inline-end: -8px; }
  .page-head h1 { font-size: 24px; }
  .weekbars { height: 150px; gap: 5px; }
  .pw-rules { grid-template-columns: 1fr; }
  .watch-card { grid-template-columns: 1fr; }
  .kpi b { font-size: 22px; }
}

/* App download buttons (controlled from the panel) */
.store-soon { opacity: .62; cursor: default; }
.store-soon:hover { transform: none; box-shadow: none; }
.store-apk { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--dark); }
.store-apk:hover { box-shadow: 0 12px 28px rgba(232, 185, 60, .4); }

/* Download page */
.dl-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.dl-hero h1 { color: #fff; font-size: 30px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dl-meta span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dl-big { height: 58px; padding: 0 26px; font-size: 17px; }
.dl-steps { counter-reset: step; display: grid; gap: 14px; }
.dl-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.dl-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--gold-soft, #FBF3DC); color: var(--dark); }
.dl-step h4 { font-size: 16px; margin-bottom: 2px; }
.dl-step p { color: var(--ink-2); font-size: 14.5px; }
.dl-logo { animation: dlFloat 4s ease-in-out infinite; }
@keyframes dlFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@media (max-width: 640px) {
  .dl-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .dl-meta, .dl-actions { justify-content: center; }
  .dl-big { width: 100%; justify-content: center; }
}
.upload-drop { border: 2px dashed var(--line-2, #d9dce3); border-radius: 18px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.upload-drop:hover { border-color: var(--gold); background: rgba(232, 185, 60, .06); }
.upload-drop input { display: none; }
.ic-22 { display: inline-flex; }
.ic-22 svg { width: 22px; height: 22px; }

/* Language menu */
.lang-menu { position: relative; display: inline-flex; }
.lang-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 210px; background: var(--card, #fff); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 18, 25, .18); padding: 6px; display: grid; gap: 2px;
  animation: popIn .16s var(--ease) both; max-height: 70vh; overflow: auto; }
.lang-pop button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.lang-pop button small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.lang-pop button:hover { background: var(--bg-2); }
.lang-pop button.on { background: var(--gold-soft); }
.side-foot .lang-pop { top: auto; bottom: calc(100% + 8px); inset-inline-end: auto; inset-inline-start: 0; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
