/* =========================================================
   EarNova — calm design system
   Dark: soft near-black · Light: warm off-white
   Brand gradient reserved for primary actions & key numbers
   ========================================================= */
:root {
  --bg: #111015;
  --bg-2: #17161d;
  --surface: #1c1b23;
  --surface-2: #24232c;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #e9e7ef;
  --muted: #9a96a6;
  --primary: #a77bf3;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(167, 123, 243, .12);
  --accent: #5fc9d4;
  --success: #5ccf9f;
  --danger: #ec8a8a;
  --warn: #e6bd62;
  --grad: linear-gradient(120deg, #b56cf0 0%, #8b5cf6 55%, #4fb8c9 100%);
  --grad-soft: linear-gradient(135deg, rgba(167,123,243,.10), rgba(95,201,212,.07));
  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .4);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Poppins", "Cairo", system-ui, sans-serif;
  --fs: 16px;
  --lh: 1.65;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f6f2;
  --bg-2: #f1eee8;
  --surface: #fffdf9;
  --surface-2: #f4f1eb;
  --border: rgba(40, 30, 60, .08);
  --border-strong: rgba(40, 30, 60, .15);
  --text: #2a2733;
  --muted: #6d6979;
  --primary: #7c4fd6;
  --primary-2: #6a3fc4;
  --primary-soft: rgba(124, 79, 214, .09);
  --accent: #2b9fae;
  --success: #2f9d72;
  --danger: #c95454;
  --warn: #b7862a;
  --grad: linear-gradient(120deg, #9c55e0 0%, #7c4fd6 55%, #3aa3b3 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,79,214,.06), rgba(43,159,174,.05));
  --shadow: 0 10px 28px -16px rgba(60, 40, 90, .22);
  --shadow-sm: 0 2px 8px -4px rgba(60, 40, 90, .14);
  color-scheme: light;
}
html[lang="ar"] { --font: "Cairo", "Poppins", system-ui, sans-serif; --fs: 17px; --lh: 1.85; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--fs); overflow-x: clip; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: var(--lh); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(700px 420px at 85% -10%, rgba(139,92,246,.08), transparent 65%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.3rem; border-radius: 12px; font-weight: 600; font-size: .95rem;
  transition: background .2s, border-color .2s, box-shadow .2s, opacity .2s, filter .2s; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:not(:disabled):hover { filter: brightness(1.08); box-shadow: 0 8px 22px -10px rgba(139,92,246,.55); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { min-height: 36px; padding: .4rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(236,138,138,.12); color: var(--danger); border: 1px solid rgba(236,138,138,.3); }
.link-btn { color: var(--primary); font-size: .82rem; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { height: 38px; width: auto; }
.brand .nova { color: var(--primary); }
.nav { display: flex; gap: 1.6rem; margin-inline-start: 1.5rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: .93rem; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; position: relative;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-wrap, .notif-wrap { position: relative; }
.lang-btn { width: auto; padding: 0 .7rem; gap: .35rem; display: flex; font-weight: 600; font-size: .85rem; }
.lang-menu, .notif-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 160px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: .35rem; box-shadow: var(--shadow); display: none; z-index: 60;
}
.lang-menu.open, .notif-menu.open { display: block; animation: fade .18s; }
.lang-menu button { width: 100%; text-align: start; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; display: flex; gap: .5rem; }
.lang-menu button:hover, .lang-menu button.active { background: var(--surface-2); color: var(--primary); }
.menu-toggle { display: none; }
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-light { display: block; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
.balance-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--text); font-weight: 700; font-size: .9rem;
}
.balance-pill svg { width: 16px; height: 16px; color: var(--primary); }

/* Notifications */
.notif-badge {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.notif-menu { width: min(340px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
#notif-list { max-height: 360px; overflow-y: auto; }
.notif { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.notif:last-child { border-bottom: 0; }
.notif small { color: var(--muted); font-size: .75rem; }
.notif.unread { background: var(--primary-soft); }
.notif.unread p::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-inline-end: .45rem; vertical-align: middle; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; gap: .7rem; padding: .5rem 0; width: max-content; animation: scroll 60s linear infinite; }
html[dir="rtl"] .ticker-track { animation-name: scroll-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes scroll-rtl { to { transform: translateX(50%); } }
.tick { display: flex; align-items: center; gap: .5rem; padding: .25rem .75rem .25rem .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; }
.tick .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .68rem; color: #fff; }
.tick .amt { font-weight: 700; color: var(--success); }
.tick .coin { color: var(--muted); font-size: .72rem; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; overflow-x: clip; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--primary-soft); font-size: .82rem; font-weight: 600; color: var(--primary);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.15; letter-spacing: -.025em; margin: 1rem 0; font-weight: 800; }
html[lang="ar"] .hero h1 { line-height: 1.45; letter-spacing: 0; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.hero-cta { display: flex; gap: .8rem; margin: 2rem 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.45rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo { width: min(360px, 100%); animation: float 8s ease-in-out infinite; }
.hero-logo img { width: 100%; filter: drop-shadow(0 20px 40px rgba(139,92,246,.22)); }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-visual::before {
  content: ""; position: absolute; inset: 15%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(139,92,246,.22), rgba(95,201,212,.08) 55%, transparent 72%); filter: blur(30px);
}
.orbit { position: absolute; inset: 0; border: 1px dashed var(--border-strong); border-radius: 50%; animation: rot 60s linear infinite; pointer-events: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: .6rem .9rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .6rem; font-size: .82rem;
}
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); font-size: 1rem; }
.hero-visual { padding-bottom: 8.5rem; }
.fc-1 { bottom: 0; inset-inline-start: 0; }
.fc-2 { top: -2%; inset-inline-end: 0; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.75rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; margin: .5rem 0; letter-spacing: -.015em; }
.section-head p { color: var(--muted); }
.grid-3, .steps, .extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-strong); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.35rem; margin-bottom: 1rem; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .93rem; }
.step { padding: 1.8rem 1.5rem 1.5rem; }
.step .num { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); margin-bottom: 1rem; }
.center { text-align: center; margin-top: 2.5rem; }
.extra { background: var(--grad-soft); }
.coins { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.coin-chip { display: flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.coin-chip i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; color: #fff; font-weight: 800; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: .6rem; font-size: .93rem; }
.cta-box { text-align: center; padding: 3.25rem 2rem; border-radius: 24px; background: var(--grad); color: #fff; }
.cta-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .5rem; }
.cta-box p { opacity: .92; margin-bottom: 1.5rem; }
.cta-box .btn { background: #fff; color: #5b34b0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.25rem 0; margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer a:hover { color: var(--primary); }

/* ---------- Modal & forms ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 6, 12, .6); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal.open { display: grid; }
.modal-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 2rem; width: min(420px, 100%); position: relative; box-shadow: var(--shadow); animation: fade .2s; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-box h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.modal-box .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 8px; font-size: 1.3rem; color: var(--muted); }
.modal-close:hover { background: var(--surface-2); }
.tabs { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 1.2rem; }
.tabs button { flex: 1; padding: .55rem; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field small { display: block; margin-top: .3rem; font-size: .8rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: .65rem .9rem; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .8rem; text-align: center; }
.error { color: var(--danger); font-size: .82rem; min-height: 1.1em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(150%);
  background: var(--surface); border: 1px solid var(--border-strong); border-inline-start: 4px solid var(--primary);
  border-radius: 12px; padding: .75rem 1.1rem; box-shadow: var(--shadow); z-index: 200; transition: transform .3s;
  font-weight: 600; font-size: .92rem; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast[data-type="success"] { border-inline-start-color: var(--success); }
.toast[data-type="error"] { border-inline-start-color: var(--danger); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.75rem; padding: 1.5rem 0 3rem; }
.sidebar { position: sticky; top: 86px; align-self: start; display: grid; gap: 1rem; }
.side-group { display: grid; gap: .15rem; }
.side-group > small { padding: 0 .85rem .25rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
html[lang="ar"] .side-group > small { letter-spacing: 0; font-size: .8rem; }
.sidebar button {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .85rem; border-radius: 10px; color: var(--muted);
  font-weight: 500; font-size: .93rem; width: 100%; text-align: start; transition: background .2s, color .2s;
}
.sidebar button svg, .bottom-nav svg, .more-sheet svg { width: 19px; height: 19px; flex: none; }
.sidebar button:hover { background: var(--surface); color: var(--text); }
.sidebar button.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.panel { display: none; padding: 0; }
.panel.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.page-title { font-size: 1.5rem; margin-bottom: .2rem; line-height: 1.3; }
.page-sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .93rem; }
.card .page-sub:last-child { margin-bottom: 0; }

/* Hero balance card */
.overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.balance-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; position: relative; overflow: hidden; }
.balance-card::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.14), transparent 70%); pointer-events: none; }
.balance-card small { color: var(--muted); font-size: .85rem; }
.balance-card .big { font-size: 2.3rem; font-weight: 800; line-height: 1.2; margin: .2rem 0; }
.balance-card .usd { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.balance-card .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.level-card { display: flex; align-items: center; gap: 1.1rem; }
.lvl-badge { width: 72px; height: 72px; flex: none; border-radius: 18px; background: var(--primary-soft); display: grid; place-items: center; text-align: center; color: var(--primary); }
.lvl-badge small { display: block; font-size: .68rem; color: var(--muted); }
.lvl-badge b { font-size: 1.7rem; line-height: 1; }
.lvl-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat b { display: block; font-size: 1.3rem; margin-top: .15rem; }
.stat.hl b { color: var(--primary); }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: start; }
.card > h3 { font-size: 1.02rem; }
.faucet { text-align: center; padding: 2rem 1.5rem; }
.timer-ring { width: 170px; height: 170px; margin: .5rem auto 1.4rem; position: relative; }
.timer-ring svg { transform: rotate(-90deg); }
html[dir="rtl"] .timer-ring svg { transform: rotate(-90deg) scaleY(-1); }
.timer-ring circle.fg { transition: stroke-dashoffset .5s linear; }
.timer-ring .val { position: absolute; inset: 0; display: grid; place-content: center; font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.timer-ring .val small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.captcha { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; }
.captcha .input { width: 90px; text-align: center; }
.list { display: grid; gap: .5rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; background: var(--bg-2); border-radius: 11px; font-size: .9rem; }
.row > div { min-width: 0; }
.row b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.row small { color: var(--muted); font-size: .78rem; }
.row .plus { color: var(--success); font-weight: 700; white-space: nowrap; }
.row .minus { color: var(--muted); font-weight: 700; white-space: nowrap; }
.badge { padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge.ok { background: rgba(92,207,159,.13); color: var(--success); }
.badge.pending { background: rgba(230,189,98,.13); color: var(--warn); }
.badge.bad { background: rgba(236,138,138,.13); color: var(--danger); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.offer { text-align: center; }
.offer .ic { margin-inline: auto; color: #fff; }
.copy-row { display: flex; gap: .5rem; }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: .6rem 0; }
.progress.sm { height: 6px; margin: .45rem 0 .2rem; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s; }
.mission { align-items: center; }
table.lb { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.lb th, table.lb td { padding: .75rem .6rem; text-align: start; border-bottom: 1px solid var(--border); }
table.lb th { color: var(--muted); font-weight: 600; font-size: .8rem; }
table.lb tr.me td { background: var(--primary-soft); }
.verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1rem; margin-bottom: 1.25rem; border-radius: 12px; font-size: .9rem;
  background: rgba(230,189,98,.1); border: 1px solid rgba(230,189,98,.28);
}
.wall-frame { margin-top: 1.25rem; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.wall-bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid var(--border); }
.wall-frame iframe { width: 100%; height: 75vh; border: 0; background: #fff; }

/* Wheel */
.wheel-card { text-align: center; max-width: 460px; }
.wheel-wrap { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: .5rem auto 1.5rem; }
#wheel { width: 100%; height: 100%; transition: transform 4.5s cubic-bezier(.17,.67,.12,.99); border-radius: 50%; box-shadow: 0 0 0 6px var(--surface-2), var(--shadow); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 13px solid transparent; border-top: 22px solid var(--text); z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.wheel-hub { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 3px solid var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Mobile bottom nav */
.bottom-nav, .more-sheet { display: none; }

/* Skeleton loading */
body.is-loading .panel, body.is-loading .sidebar { visibility: hidden; }
body.is-loading main::before {
  content: ""; display: block; height: 220px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Admin */
.admin-grid { display: grid; gap: 1.25rem; }
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-tabs button { padding: .5rem 1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.admin-tabs button.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.tbl th, table.tbl td { padding: .6rem .55rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; white-space: nowrap; }
table.tbl td .btn { margin-inline-end: .3rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 0 4rem; }
.legal h1 { font-size: 2rem; margin-bottom: .3rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-inline-start: 1.3rem; display: grid; gap: .3rem; }
.legal [data-lang-block] { display: none; }
html[lang="en"] .legal [data-lang-block="en"], html[lang="ar"] .legal [data-lang-block="ar"], html[lang="ru"] .legal [data-lang-block="ru"] { display: block; }

/* ---------- Effects (landing only, kept subtle) ---------- */
#fx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.cursor-glow {
  position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(139,92,246,.07), transparent 65%);
  transform: translate(-50%, -50%); left: -999px; top: -999px;
}
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(124,79,214,.05), transparent 65%); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.tilt { will-change: transform; }
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 72%, rgba(181,108,240,.7), rgba(79,184,201,.7), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; animation: spin 4s linear infinite; }
.dash .card::before { display: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.confetti { position: fixed; width: 8px; height: 12px; z-index: 300; pointer-events: none; border-radius: 2px; animation: fall 1.4s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(720deg); opacity: .2; } }
.coin-pop { position: fixed; z-index: 300; pointer-events: none; font-weight: 800; color: var(--success); font-size: 1.2rem; animation: pop 1.2s ease-out forwards; }
@keyframes pop { to { transform: translateY(-80px); opacity: 0; } }
/* ---------- Hero scene: orbiting coins, sparks, live example card ---------- */
.orbit.o2 { inset: 16%; animation-duration: 38s; animation-direction: reverse; border-style: dotted; opacity: .8; }
.coin-orb { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .85rem/1 Poppins, sans-serif; color: #fff; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent), 0 6px 16px -6px var(--c);
  animation: rot 60s linear infinite reverse; }
.o2 .coin-orb { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: .72rem; animation: rot 38s linear infinite; }
.co-1 { top: 0; left: 50%; } .co-2 { top: 100%; left: 50%; }
.co-3 { top: 50%; left: 0; } .co-4 { top: 50%; left: 100%; }
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--k); box-shadow: 0 0 10px 2px var(--k); opacity: 0; animation: drift var(--d) ease-in-out var(--w) infinite; }
@keyframes drift { 0%, 100% { opacity: 0; transform: translate(0, 0) scale(.6); } 40% { opacity: .9; } 70% { opacity: .5; transform: translate(var(--dx), var(--dy)) scale(1); } }

.bal-card { display: block; width: min(190px, 46vw); padding: .75rem .9rem .5rem; animation: float 7s ease-in-out infinite; }
.bal-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bal-top small { font-size: .72rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.bal-num { display: block; font-size: 1.25rem !important; margin: .15rem 0 .2rem; font-variant-numeric: tabular-nums; }
.bal-num small { font-size: .72rem; font-weight: 500; }
.bal-num.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.08); color: var(--success); } }
.spark { display: block; width: 100%; height: 40px; overflow: visible; }
#hv-line { transition: stroke-dashoffset .9s ease; }
#hv-area { transition: opacity .6s ease; }

.act-card { animation: float 6s ease-in-out -2s infinite; min-width: 170px; }
.act-card > * { transition: opacity .35s ease, transform .35s ease; }
.act-card.swap > * { opacity: 0; transform: translateY(6px); }
.act-card b { color: var(--success); }

/* CTA: soft glow + a light sweep every few seconds */
.btn-shine { position: relative; overflow: hidden; animation: ctaGlow 3.2s ease-in-out infinite; }
.btn-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: sweep 4.5s ease-in-out 1.2s infinite; }
@keyframes ctaGlow { 50% { box-shadow: 0 0 0 6px rgba(167,123,243,.12), 0 10px 30px -10px rgba(139,92,246,.7); } }
@keyframes sweep { 0% { left: -60%; } 35%, 100% { left: 130%; } }

/* How it works: a line grows between the steps */
.steps-line { position: relative; }
.steps-line::before { content: ""; position: absolute; top: calc(1.8rem + 21px); inset-inline: 16%; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: var(--line-origin, left); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .3s; opacity: .55; }
html[dir="rtl"] .steps-line { --line-origin: right; }
.steps-line.in::before { transform: scaleX(1); }
.steps-line .num { position: relative; z-index: 3; box-shadow: 0 0 0 6px var(--surface); }
.steps-line::before { z-index: 2; inset-inline: calc(1.5rem + 21px) calc((100% - 2.5rem) / 3 - 1.5rem - 21px); }
@media (max-width: 960px) { .steps-line::before { display: none; } }

/* feature icons bob on hover */
.card .ic { transition: transform .3s ease; }
.card:hover .ic { transform: translateY(-4px) rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .grid-3, .steps, .extras { grid-template-columns: 1fr 1fr; }
  .two-col, .overview { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; padding-bottom: 6rem; }
  .sidebar, .mobile-tabs { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 80;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .bottom-nav button { display: grid; justify-items: center; gap: .15rem; padding: .35rem 0; min-height: 52px; font-size: .7rem; color: var(--muted); border-radius: 10px; }
  .bottom-nav button.active { color: var(--primary); }
  .more-sheet {
    position: fixed; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 79;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); padding: .4rem;
  }
  .more-sheet.open { display: grid; animation: fade .18s; }
  .more-sheet button { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border-radius: 10px; color: var(--text); font-weight: 500; }
  .more-sheet button:hover, .more-sheet button.active { background: var(--primary-soft); color: var(--primary); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column; gap: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: .5rem 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; }
  .menu-toggle { display: grid; }
  .header-actions .btn-ghost.hide-sm { display: none; }
  .brand span.txt, .brand > span:not(.nova) { display: none; }
  .grid-3, .steps, .extras { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child:nth-child(odd) { grid-column: span 2; }
  .fc-1 { inset-inline-start: 0; } .fc-2 { inset-inline-end: 0; }
  section { padding: 3.25rem 0; }
  .balance-card .big { font-size: 2rem; }
  .copy-row { flex-direction: column; }
  .header .container { gap: .5rem; }
  .header-actions { gap: .35rem; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- PTC / shortlinks ---------- */
.earn-list { display: grid; gap: .75rem; }
.earn-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; }
.earn-item .meta { display: grid; gap: .2rem; min-width: 0; }
.earn-item .meta b { overflow: hidden; text-overflow: ellipsis; }
.earn-item .meta small { color: var(--muted); font-size: .85rem; }
.earn-item .side { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.earn-item.done { opacity: .6; }
.chip { padding: .2rem .65rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.chip.muted { background: var(--surface-2); color: var(--muted); }
@media (max-width: 560px) { .earn-item { flex-direction: column; align-items: stretch; } .earn-item .side { justify-content: space-between; } }

/* ---------- Banner slots ---------- */
.nv-zone { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: 0 auto 1.25rem; max-width: 100%; }
.nv-zone[hidden] { display: none; }
.nv-zone small { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.nv-zone iframe { border: 0; display: block; max-width: 100%; background: transparent; }
.banner-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.adblock-note { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(236,138,138,.1); color: var(--danger); font-size: .9rem; }
.faucet .nv-zone { margin: 0 auto 1rem; }

/* ---------- Held earnings ---------- */
.pending-line { margin-top: .35rem; font-size: .85rem; color: var(--warn); }

/* ---------- Support tickets ---------- */
.tk-list { display: grid; gap: .5rem; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; text-align: start; padding: .75rem .9rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.tk-row:hover { border-color: var(--border-strong); }
.tk-row span { display: grid; gap: .15rem; min-width: 0; }
.tk-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row small { color: var(--muted); font-size: .8rem; }
.tk-row.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-inline-start: .4rem; vertical-align: middle; }
.tk-msgs { display: grid; gap: .7rem; margin: 1rem 0; max-height: 420px; overflow-y: auto; }
.tk-msg { padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); }
.tk-msg.staff { background: var(--primary-soft); }
.tk-msg small { color: var(--muted); font-size: .78rem; }
.tk-msg p { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-actions { display: flex; gap: .5rem; margin-top: .6rem; }
[hidden] { display: none !important; }

/* ---------- Cookie consent ---------- */
.consent-bar { position: fixed; z-index: 90; inset-inline: 1rem; bottom: 1rem; max-width: 720px; margin-inline: auto; display: flex; gap: 1rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.consent-bar p { margin: 0; flex: 1 1 280px; font-size: .9rem; color: var(--muted); }
.consent-bar div { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .consent-bar { bottom: calc(4.6rem + env(safe-area-inset-bottom)); } }

/* ---------- Admin: tickets & revenue ---------- */
.adm-thread { display: grid; gap: .6rem; margin: 1rem 0; max-height: 460px; overflow-y: auto; }
.rev-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1rem; }
.num-pos { color: var(--success); } .num-neg { color: var(--danger); }

/* Clickable feature cards on the landing page */
.feat-link { cursor: pointer; }
.feat-link:hover, .feat-link:focus-visible { border-color: var(--border-strong); }
.feat-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
