/* NyxTap — "night sky" design. One stylesheet for every member page.
   Tokens first; components below. Dark by design (the brand is the night), contrast-checked. */
:root {
  --bg: #0b0a1a;
  --bg-2: #100e24;
  --surface: #15132e;
  --surface-2: #1c1a3b;
  --surface-3: #252249;
  --line: #2c2957;
  --line-2: #3a3670;
  --text: #eeecff;
  --muted: #a3a0cc;
  --faint: #6f6ca0;
  --violet: #8b7bff;
  --violet-2: #6c56ff;
  --violet-soft: rgba(139, 123, 255, .14);
  --moon: #ffd27a;
  --moon-2: #f5b941;
  --moon-soft: rgba(255, 210, 122, .13);
  --mint: #43e2b0;
  --mint-soft: rgba(67, 226, 176, .13);
  --rose: #ff6f86;
  --rose-soft: rgba(255, 111, 134, .13);
  --sky: #6cc7ff;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 10px 40px rgba(4, 3, 16, .55);
  --glow: 0 0 0 1px rgba(139, 123, 255, .35), 0 8px 30px rgba(108, 86, 255, .25);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Sora", "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page sideways (a wide element makes phones zoom the whole page out). */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.55 var(--font); color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(108, 86, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 210, 122, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
body::before { /* faint stars */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, #cfc8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, #bdb5ff 50%, transparent 51%);
  background-size: 600px 600px;
}
img { max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: #b3a8ff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.center { text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page { padding: 18px 0 110px; }
@media (min-width: 900px) { .page { padding-bottom: 60px; } }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 10, 26, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--text); font: 800 1.2rem var(--head); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { color: var(--moon); font-weight: 800; }
.nav { display: none; gap: 2px; margin-left: 10px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--violet-soft); }
@media (min-width: 900px) { .nav { display: flex; } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-bal { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 600 .9rem var(--mono); }
.chip-bal .luna { width: 20px; height: 20px; color: var(--moon); }
.lvl { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--head); color: var(--text);
  background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--surface-3) 0); }
.lvl::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-2); }
.lvl span { position: relative; }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.acct summary::-webkit-details-marker { display: none; }
.acct[open] summary { color: var(--text); border-color: var(--line-2); }
.acct-menu { position: absolute; right: 0; top: 46px; width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; }
.acct-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .85rem; color: var(--muted); word-break: break-all; }
.acct-menu a, .acct-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font: 500 .93rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }

/* ── Bottom tabs (phones) ── */
.tabs-m { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(16, 14, 36, .96); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
.tabs-m a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--faint); font: 600 .72rem var(--font); }
.tabs-m a[aria-current="page"] { color: var(--moon); }
.tabs-m .mid { margin-top: -22px; }
.tabs-m .mid span:first-child { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: var(--glow); }
@media (min-width: 900px) { .tabs-m { display: none; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font: 700 .95rem var(--font); cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; text-align: center; color: var(--text); background: var(--surface-2); white-space: nowrap; }
.btn:hover { color: var(--text); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.off { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 6px 22px rgba(108, 86, 255, .35); }
.btn-primary:hover { background: linear-gradient(135deg, #9d8fff, #7a66ff); color: #fff; }
.btn-moon { background: linear-gradient(135deg, var(--moon), var(--moon-2)); color: #241a00; box-shadow: 0 6px 22px rgba(245, 185, 65, .3); }
.btn-moon:hover { background: linear-gradient(135deg, #ffe0a0, #f7c560); color: #241a00; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 10px; }
.btn-xs { padding: 4px 9px; font-size: .78rem; border-radius: 8px; }
.btn-xl { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

/* ── Panels & layout ── */
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.head h1 { margin: 0; }
.head p { margin: 4px 0 0; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .75rem var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--moon); }

/* ── Messages ── */
.msg { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: .93rem; margin: 0 0 14px; }
.msg-ok { border-color: rgba(67, 226, 176, .4); background: var(--mint-soft); color: #c9fff0; }
.msg-err { border-color: rgba(255, 111, 134, .45); background: var(--rose-soft); color: #ffd7de; }
.msg-info { border-color: rgba(139, 123, 255, .4); background: var(--violet-soft); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font: 700 .74rem var(--font); background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.chip-ok { background: var(--mint-soft); color: var(--mint); }
.chip-warn { background: var(--moon-soft); color: var(--moon); }
.chip-bad { background: var(--rose-soft); color: var(--rose); }
.chip-v { background: var(--violet-soft); color: #c3baff; }

/* ── Forms ── */
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 .97rem var(--font); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
label.lbl { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 200px; }

/* ── Coin strip (member pages) ── */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 700 .82rem var(--font); }
.strip a .t { font: 600 .76rem var(--mono); color: var(--muted); }
.strip a.ready { border-color: rgba(67, 226, 176, .5); }
.strip a.ready .t { color: var(--mint); }
.strip a.claimed, .strip a.done, .strip a.empty { opacity: .5; }
.coin-ico { border-radius: 50%; background: #fff1; flex: none; }

/* ── Ads (max 3 per page) ── */
.ad-slot { display: flex; justify-content: center; margin: 14px auto; overflow: hidden; }
.ad-fit { width: 100%; overflow: hidden; position: relative; }
.ad-fit-inner { transform-origin: top left; }
.ad-float { position: fixed; z-index: 44; right: 12px; bottom: 80px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); max-width: calc(100vw - 24px); }
@media (min-width: 900px) { .ad-float { bottom: 16px; } }
.ad-float-x { position: absolute; top: -12px; left: -12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }

/* ── Landing ── */
.hero { position: relative; padding-top: 34px; padding-bottom: 10px; display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 50px; padding-bottom: 20px; } }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--moon), #ffe8b5 40%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: min(380px, 100%); margin: 0 auto; width: 100%; overflow: hidden; }
.hero-art .moon { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--moon) 40%, var(--moon-2) 75%); box-shadow: 0 0 80px rgba(255, 210, 122, .35), inset -30px -20px 60px rgba(150, 90, 0, .35); }
.hero-art .moon::after { content: ""; position: absolute; inset: -2% -2% -2% 22%; border-radius: 50%; background: var(--bg); box-shadow: inset 20px 0 40px rgba(108, 86, 255, .25); }
.hero-art .orbit { position: absolute; inset: 24px; border: 1px dashed rgba(139, 123, 255, .35); border-radius: 50%; animation: spin 40s linear infinite; }
.hero-art .orbit img { position: absolute; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .orbit { animation: none; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font: 800 1.4rem var(--head); color: var(--text); }
.stat span { color: var(--muted); font-size: .84rem; }
.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 18px 18px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-soft); color: #c3baff; font: 800 1rem var(--head); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.feat { display: grid; gap: 12px; }
@media (min-width: 800px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat a { display: block; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.feat a:hover { border-color: var(--line-2); box-shadow: var(--glow); }
.feat .ico-lg { color: var(--moon); margin-bottom: 8px; }
.feat p { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.section { margin-top: 34px; }
.section > h2 { margin-bottom: 14px; }

/* ── Coin grid ── */
.coins { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.coin { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.coin:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--glow); transform: translateY(-2px); }
.coin-top { display: flex; align-items: center; gap: 10px; }
.coin-top b { font: 800 1rem var(--head); display: block; }
.coin-top small { color: var(--muted); font-size: .8rem; }
.coin-amt { font: 600 .92rem var(--mono); color: var(--moon); word-break: break-all; }
.coin-amt small { color: var(--faint); font-family: var(--font); }
.coin-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; }
.coin.is-ready { border-color: rgba(67, 226, 176, .45); }
.coin.is-claimed, .coin.is-done, .coin.is-empty { opacity: .6; }
.coin .state { font: 700 .74rem var(--font); }
.coin.is-ready .state { color: var(--mint); }

/* ── Faucet page ── */
.fau { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .fau { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.fau-card { text-align: center; padding: 26px 20px; position: relative; overflow: hidden; }
.fau-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 260px; background: radial-gradient(closest-side, rgba(139, 123, 255, .25), transparent); pointer-events: none; }
.fau-coin { position: relative; display: inline-flex; padding: 6px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 6px rgba(139, 123, 255, .12); margin-bottom: 10px; }
.fau-reward { position: relative; margin: 14px auto 18px; padding: 14px 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: inline-block; min-width: 260px; }
.fau-reward .k { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fau-reward .v { font: 700 1.5rem var(--mono); color: var(--moon); word-break: break-all; }
.fau-reward .u { font: 800 1rem var(--head); margin-left: 6px; }
.fau-reward .usd { display: block; color: var(--faint); font-size: .82rem; margin-top: 2px; }
.fau-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 auto 18px; max-width: 460px; }
.fau-meta div { padding: 10px; border-radius: 12px; background: var(--surface-2); }
.fau-meta .k { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fau-meta .v { font: 700 1rem var(--mono); }
.fau-cta { position: relative; max-width: 420px; margin: 0 auto; }
.timer { font: 700 1.6rem var(--mono); color: var(--sky); }
.fine { color: var(--faint); font-size: .82rem; margin: 10px 0 0; }

/* ── Tables / lists ── */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--faint); font: 700 .74rem var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--mono); }
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .when { color: var(--faint); font-size: .8rem; white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.pager a, .pager span { padding: 6px 11px; border-radius: 9px; background: var(--surface-2); font-size: .86rem; color: var(--muted); }
.pager .cur { background: var(--violet); color: #fff; }
.pager .off { opacity: .4; }

/* ── Dashboard ── */
.bal-card { position: relative; overflow: hidden; background: radial-gradient(500px 220px at 100% 0, rgba(255, 210, 122, .16), transparent 60%), linear-gradient(160deg, #221d55, var(--surface)); }
.bal-big { font: 800 2.2rem var(--head); display: flex; align-items: center; gap: 10px; }
.bal-big .luna { width: 34px; height: 34px; color: var(--moon); }
.bal-sub { color: var(--muted); font-size: .9rem; }
.lvl-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 8px 0 6px; }
.lvl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--moon)); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(11, 10, 26, .5); border: 1px solid var(--line); }
.kpis b { display: block; font: 700 1.05rem var(--mono); }
.kpis span { color: var(--muted); font-size: .76rem; }
.wd-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.wd-coins label { cursor: pointer; }
.wd-coins input { position: absolute; opacity: 0; pointer-events: none; }
.wd-coins span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font: 700 .82rem var(--font); }
.wd-coins input:checked + span { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet-soft); background: var(--surface-2); }
.wd-coins input:focus-visible + span { outline: 2px solid var(--violet); }
.wd-quote { font: 600 .95rem var(--mono); color: var(--moon); }

/* ── PTC ── */
.ptabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.ptabs a { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font: 700 .86rem var(--font); }
.ptabs a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.ptabs a .lock { margin-left: 4px; font-size: .74rem; }
.tasks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.task { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.task-top { display: flex; gap: 10px; align-items: flex-start; }
.task-top img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.task-title { font-weight: 700; line-height: 1.3; word-break: break-word; }
.task-desc { color: var(--muted); font-size: .84rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.task-luna { font: 700 .95rem var(--mono); color: var(--moon); }
.task.is-pending { opacity: .75; border-style: dashed; }
.task.is-done { border-color: rgba(67, 226, 176, .45); }

/* ── Contest ── */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; margin: 6px 0 16px; }
.podium div { text-align: center; padding: 14px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.podium .p1 { border-color: rgba(255, 210, 122, .55); padding-top: 24px; box-shadow: 0 0 40px rgba(255, 210, 122, .12); }
.podium .medal { font-size: 1.8rem; display: block; }
.podium .who { font-size: .82rem; color: var(--muted); word-break: break-all; }
.podium .prize { font: 700 .9rem var(--mono); color: var(--moon); }
.countdown { font: 700 1.1rem var(--mono); color: var(--sky); }
.me-row { background: var(--violet-soft); }

/* ── FAQ ── */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 14px; color: var(--muted); }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 120px; color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }
.foot .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { color: var(--text); font-size: .9rem; margin-bottom: 8px; }
.foot a { display: block; color: var(--muted); padding: 3px 0; }
.foot a:hover { color: var(--text); }

/* ── Popup (claim, results) ── */
dialog.nx-pop { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 0; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.nx-pop::backdrop { background: rgba(5, 4, 15, .72); backdrop-filter: blur(3px); }
.nx-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nx-pop-title { font-size: 1.05rem; margin: 0; }
.nx-pop-x { border: 0; background: var(--surface-2); color: var(--text); width: 32px; height: 32px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.nx-pop-body { padding: 16px; text-align: center; }
.nx-pop-ad { display: flex; justify-content: center; padding: 0 0 14px; }
.nx-pop-ad iframe { border: 0; max-width: 100%; border-radius: 8px; background: var(--bg-2); }
.nx-ok-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--mint-soft); color: var(--mint); }
.nx-amount { font: 800 1.3rem var(--mono); color: var(--moon); word-break: break-all; }
.nx-pop .btn + .btn { margin-top: 8px; }
.nx-count { font: 700 .9rem var(--mono); color: var(--muted); margin: 6px 0 10px; }

/* ── Toasts ── */
.toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 88px; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .92rem; transition: opacity .4s, transform .4s; }
.toast.ok { border-color: rgba(67, 226, 176, .45); }
.toast.bad { border-color: rgba(255, 111, 134, .5); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ── Tooltips ── */
.tip { position: relative; cursor: help; color: var(--faint); font-size: .85em; }
.tip-box { display: none; position: absolute; z-index: 1000; white-space: normal; text-align: left; overflow-wrap: break-word; bottom: 130%; left: 50%; transform: translateX(-50%); width: 240px; padding: 9px 11px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font: 500 .82rem/1.45 var(--font); text-transform: none; letter-spacing: 0; box-shadow: var(--shadow); }
.tip:hover .tip-box, .tip:focus .tip-box, .tip.open .tip-box { display: block; }

/* ── Ad-block notice ── */
.adb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 4, 15, .8); padding: 16px; }
.adb > div { max-width: 420px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; text-align: center; }

/* ── Referral banners ── */
.banners { display: grid; gap: 18px; }
.banner-item { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.banner-item:last-child { border-bottom: 0; padding-bottom: 0; }
.banner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.banner-img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.banner-code { font-size: .78rem; resize: none; color: var(--muted); }

/* Phone "More" tab + slide-up menu (views/partials/more.ejs, public/js/common.js) — member site and admin */
.tabs-m .more-btn { appearance: none; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--faint); font: 600 .72rem var(--font); cursor: pointer; }
.tabs-m .more-btn[aria-current="page"], .tabs-m .more-btn[aria-expanded="true"] { color: var(--moon); }
.more-back { position: fixed; inset: 0; z-index: 46; background: rgba(5, 4, 15, .6); }
.more-panel { position: fixed; z-index: 47; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); max-height: min(72vh, 560px); overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; padding: 14px 16px 18px; box-shadow: var(--shadow); }
.more-back[hidden], .more-panel[hidden] { display: none; }
.more-head { display: flex; align-items: center; justify-content: space-between; font: 700 1rem var(--head); }
.more-x { appearance: none; border: 0; background: none; color: var(--muted); padding: 4px; cursor: pointer; }
.more-sec { font: 700 .7rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 14px 2px 7px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.more-grid form { display: contents; }
.more-head + .more-grid { margin-top: 12px; }
.more-tile { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 600 .78rem var(--font); text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.more-tile[aria-current="page"] { border-color: var(--violet); background: var(--violet-soft); }
@media (min-width: 900px) { .more-back, .more-panel { display: none !important; } }
