/* ============================================================
   CryptoDrip FULL — premium dark fintech theme
   Single stylesheet, no frameworks, mobile-first.
   Re-theme the whole site by editing the CSS variables below.
   ============================================================ */
:root {
    --bg0: #060a15;            /* page background (deep navy-black) */
    --bg1: #0a1120;            /* alt section background */
    --surface: rgba(255, 255, 255, 0.035);   /* glass card */
    --surface-2: rgba(255, 255, 255, 0.065);
    --surface-solid: #0d1626;  /* solid card (dropdowns, modals) */
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #edf1f9;
    --muted: #97a3bb;
    --faint: #64748b;
    --accent: #10d9a3;         /* emerald */
    --accent-deep: #0aa87e;
    --accent-dim: rgba(16, 217, 163, 0.12);
    --gold: #f2b544;           /* secondary accent */
    --gold-dim: rgba(242, 181, 68, 0.12);
    --sky: #38bdf8;
    --sky-dim: rgba(56, 189, 248, 0.12);
    --danger: #f87171;
    --danger-dim: rgba(248, 113, 113, 0.12);
    --violet: #a78bfa;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --glow: 0 0 24px rgba(16, 217, 163, 0.35);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 85% -5%, rgba(16, 217, 163, 0.07), transparent 60%),
        radial-gradient(800px 500px at 8% 0%, rgba(56, 189, 248, 0.06), transparent 60%),
        var(--bg0);
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(16, 217, 163, 0.35); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 750; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #5ee9c0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.page-title { margin-bottom: 0.35em; }
.section-title { text-align: center; margin-bottom: 0.3em; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2em; }
.grad-text {
    background: linear-gradient(100deg, var(--accent) 10%, var(--sky) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
code {
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 2px 7px; border-radius: 6px; font-size: 0.85em; color: var(--gold);
}
hr { border: none; border-top: 1px solid var(--border); margin: 1.6em 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mt { margin-top: 22px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #060a15;
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-coin {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.1rem; color: #06281c;
    background: linear-gradient(135deg, #5ee9c0, var(--accent) 60%, var(--accent-deep));
    box-shadow: var(--glow);
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
    color: var(--muted); padding: 9px 13px; border-radius: 9px;
    font-size: 0.94rem; font-weight: 550; transition: all 0.18s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
    color: #052e21 !important; font-weight: 700 !important;
    box-shadow: 0 4px 18px rgba(16, 217, 163, 0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(16, 217, 163, 0.5); }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 340px at 78% 18%, rgba(16, 217, 163, 0.14), transparent 65%),
        radial-gradient(520px 380px at 12% 82%, rgba(56, 189, 248, 0.10), transparent 65%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(720px 480px at 50% 20%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(720px 480px at 50% 20%, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr 0.9fr; } }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim); border: 1px solid rgba(16, 217, 163, 0.35);
    color: var(--accent); font-size: 0.82rem; font-weight: 650;
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.hero-text h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 0.5em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.hero-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}
.hero-card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.hero-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 18px; text-align: center;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(100deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.86rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.stat-card { background: linear-gradient(180deg, #0f1830 0%, #0b1222 100%); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 16px; transition: transform 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .num { font-size: 1.55rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.stat-card .lbl, .stat-cards .lbl { font-size: 0.85rem; color: var(--muted); }
a.stat-card { color: var(--text); }
a.stat-card:hover .num { color: #5ee9c0; }

/* ---------- Challenge strip (per-task challenge progress on earning pages) ---------- */
.challenge-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 16px;
    background: linear-gradient(180deg, #0f1830 0%, #0b1222 100%);
    border: 1px solid rgba(242, 181, 68, 0.35); border-radius: var(--radius-sm);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4); }
.challenge-strip .earn-ico { width: 44px; height: 44px; flex-shrink: 0; }
.challenge-strip .cs-body { flex: 1; min-width: 0; }
.challenge-strip .cs-title { font-weight: 700; font-size: 0.95rem; }
.challenge-strip .cs-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.challenge-strip .cs-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 99px; transition: width 0.4s ease; }
.challenge-strip .cs-num { font-weight: 800; color: var(--gold); font-size: 1.05rem; white-space: nowrap; }
.challenge-strip .cs-done { color: var(--accent); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }

/* ---------- Cards ---------- */
.card {
    background: linear-gradient(180deg, #0f1830 0%, #0b1222 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius); padding: 24px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card h3 { margin-top: 0; }
.grid-2 { display: grid; gap: 18px; }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.step-num {
    width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.15rem; color: #052e21;
    background: linear-gradient(135deg, var(--accent), #34d399);
    box-shadow: var(--glow); margin-bottom: 14px;
}
.cta-card { border: 1px solid rgba(16, 217, 163, 0.3); background: linear-gradient(180deg, rgba(16, 217, 163, 0.07), var(--surface)); }
.auth-card { max-width: 460px; margin: 12px auto; }
.info-card { border-left: 3px solid var(--accent); }
.trust-list { display: grid; gap: 12px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 18px; }
.trust-item strong { color: var(--accent); }

/* ---------- Earn cards ---------- */
.earn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.earn-card {
    display: block; padding: 22px; border-radius: var(--radius);
    background: linear-gradient(180deg, #0f1830 0%, #0b1222 100%);
    border: 1px solid var(--border-strong); color: var(--text);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.earn-card:hover { transform: translateY(-4px); border-color: rgba(16, 217, 163, 0.45); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 217, 163, 0.2); color: var(--text); }
.earn-card h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.earn-card p { margin: 0 0 4px; }
.earn-ico { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-dim); border: 1px solid rgba(16, 217, 163, 0.3); }
.earn-ico svg { width: 24px; height: 24px; stroke: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: var(--font);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #2fe8b0, var(--accent) 55%, var(--accent-deep)); color: #04281c; box-shadow: 0 6px 22px rgba(16, 217, 163, 0.32); }
.btn-primary:hover { color: #04281c; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 217, 163, 0.45); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(148, 163, 184, 0.45); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 13px; }
.btn-small { padding: 7px 14px; font-size: 0.84rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; }

/* ---------- Forms ---------- */
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem; }
.form input[type="text"], .form input[type="email"], .form input[type="url"],
.form input[type="number"], .form input[type="password"], .form select, .form textarea,
input.ref-link {
    width: 100%; margin-top: 7px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border-strong);
    color: var(--text); font-size: 0.96rem; font-family: var(--font);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 217, 163, 0.18);
}
.form select option { background: var(--surface-solid); }
.form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-right: 8px; vertical-align: -3px; }
.captcha-label { display: block; margin: 14px 0; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.ref-link { cursor: text; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.inline-form { display: inline; }
.inline-form input[type="text"] { width: 110px; display: inline-block; padding: 7px 10px; border-radius: 8px;
    background: rgba(255,255,255,.045); border: 1px solid var(--border-strong); color: var(--text); font-size: 0.85rem; }
.inline-form select { width: auto; display: inline-block; padding: 7px 10px; border-radius: 8px;
    background: rgba(255,255,255,.045); border: 1px solid var(--border-strong); color: var(--text); font-size: 0.85rem; }
.inline-form select option { background: var(--surface-solid); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; padding: 13px 14px; color: var(--muted); font-weight: 650; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

/* ---------- Pills & badges ---------- */
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
.pill.pending { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(242, 181, 68, 0.35); }
.pill.sent, .pill.credited, .pill.approved, .pill.active { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(16, 217, 163, 0.35); }
.pill.rejected, .pill.banned { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.35); }
.pill.paused { background: var(--sky-dim); color: var(--sky); border: 1px solid rgba(56, 189, 248, 0.35); }
.pill.completed { background: rgba(148, 163, 184, 0.14); color: var(--muted); border: 1px solid var(--border); }
.coin-badge {
    display: inline-block; padding: 3px 10px; border-radius: 7px; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.04em; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(242, 181, 68, 0.35);
}
.coin-lg { font-size: 1rem; padding: 8px 16px; border-radius: 10px; }

/* ---------- Alerts ---------- */
.alert { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-size: 0.94rem; }
.alert-error { background: var(--danger-dim); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.alert-info { background: var(--sky-dim); border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.alert-success { background: var(--accent-dim); border-color: rgba(16, 217, 163, 0.4); color: #5ee9c0; }
.alert a { font-weight: 700; text-decoration: underline; }

/* ---------- Faucet ---------- */
.coin-card { text-align: center; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.coin-card:hover { transform: translateY(-5px); border-color: rgba(242, 181, 68, 0.4); box-shadow: 0 16px 38px rgba(0,0,0,.45); }
.coin-card .coin-lg { margin-bottom: 12px; display: inline-block; }
.coin-meta { list-style: none; padding: 0; margin: 16px 0; color: var(--muted); font-size: 0.9rem; }
.coin-meta li { padding: 5px 0; border-top: 1px dashed var(--border); }
.coin-meta li:first-child { border-top: none; }
.coin-meta strong { color: var(--text); }
.coin-list { list-style: none; padding: 0; margin: 0 0 18px; }
.coin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.coin-list li:last-child { border-bottom: none; }
.coin-list strong { margin-left: auto; color: var(--accent); }
.claim-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.claim-head h1 { margin: 0; font-size: 1.7rem; }
.claim-card { text-align: center; }
.timer-wrap { margin: 8px 0 20px; }
.timer { font-size: 3.4rem; font-weight: 850; letter-spacing: -0.03em;
    background: linear-gradient(100deg, var(--accent), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.claim-meta { margin-top: 16px; }

/* ---------- Countdown / bonus ---------- */
.countdown-box { text-align: center; padding: 26px 10px; }
.countdown-num { font-size: 3.2rem; font-weight: 850; color: var(--accent); text-shadow: 0 0 30px rgba(16,217,163,.4); }
.streak-row { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.streak-day { width: 56px; height: 60px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--faint); font-size: 0.72rem; gap: 2px; }
.streak-day.done { background: var(--accent-dim); border-color: rgba(16,217,163,.4); color: var(--accent); }
.streak-day.today { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #04281c; font-weight: 700; }
.streak-day b { font-size: 1.05rem; }
.progress { height: 10px; background: rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 6px; transition: width 0.6s ease; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.admin-nav a { padding: 8px 14px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: all 0.18s ease; }
.admin-nav a.on, .admin-nav a:hover { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #04281c; }

/* ---------- Blog / articles ---------- */
.post-card h3 { margin-bottom: 6px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-row { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.article-body { font-size: 1.04rem; line-height: 1.8; color: #d6dce9; }
.article-body h2 { color: var(--text); margin-top: 2em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--text); }
.article-meta { margin-bottom: 1.4em; }
.with-sidebar { display: grid; gap: 26px; }
@media (min-width: 900px) { .with-sidebar { grid-template-columns: 1fr 300px; } }
.sidebar .card { position: sticky; top: 90px; }

/* ---------- Tools ---------- */
.tool-card p { color: var(--muted); }
.tool-result { background: rgba(16, 217, 163, 0.06); border: 1px solid rgba(16, 217, 163, 0.3);
    border-radius: var(--radius-sm); padding: 18px; margin-top: 16px; font-size: 1.05rem; }
.result-grid { display: grid; gap: 10px; margin-top: 12px; }
.profit-pos { color: var(--accent); font-weight: 700; }
.profit-neg { color: var(--danger); font-weight: 700; }

/* ---------- Feed / misc ---------- */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.feed li:last-child { border-bottom: none; }
.footer-grid { display: grid; gap: 26px; padding: 44px 0 10px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: #060a15; }
.footer-links { list-style: none; padding: 0; margin: 10px 0 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 0 26px; border-top: 1px solid var(--border); margin-top: 12px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.8em; }

/* ---------- Empty states & loading ---------- */
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.6rem; margin-bottom: 10px; opacity: 0.7; }
.spinner { width: 34px; height: 34px; margin: 18px auto; border-radius: 50%;
    border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Misc ---------- */
.g-recaptcha { margin: 14px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--surface-solid); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; gap: 2px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 10px; }
    .header-inner { position: relative; flex-wrap: wrap; }
    .section { padding: 40px 0; }
    .hero { padding: 56px 0 48px; }
    .table { font-size: 0.85rem; }
    .table th, .table td { padding: 10px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Rich-text editor (admin) ---------- */
.rte { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.03); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.rte-toolbar button {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 7px; padding: 6px 11px; font-size: 0.82rem; font-weight: 650; cursor: pointer;
    transition: all 0.15s ease; font-family: var(--font);
}
.rte-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.rte-area { min-height: 280px; max-height: 560px; overflow-y: auto; padding: 18px; outline: none; line-height: 1.75; }
.rte-area:focus { box-shadow: inset 0 0 0 2px rgba(16,217,163,.25); }
.rte-area h2 { margin-top: 1.2em; }
.rte-area h3 { margin-top: 1em; }
.rte-area img { max-width: 100%; border-radius: 10px; }
.rte-area blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: 0.6em 1em; color: var(--muted); background: var(--surface); border-radius: 0 8px 8px 0; }

/* ================= Professional + delight layer ================= */

/* Announcement bar */
.announce-bar { background: linear-gradient(90deg, #0d3b2e, #0a2f3b); border-bottom: 1px solid var(--border);
    padding: 9px 0; font-size: 0.88rem; text-align: center; color: #d7f5e9; }
.announce-bar a { color: #7de3f0; font-weight: 650; }

/* Trust stats */
.trust-note { margin-top: 10px; opacity: 0.75; }
.paid-stat strong { font-size: 1.02rem; }

/* Rank badges + progress rings */
.rank-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; color: #060a15; background: var(--rank-color, #cd7f32);
    box-shadow: 0 0 14px color-mix(in srgb, var(--rank-color, #cd7f32) 55%, transparent); }
.rank-card { display: flex; gap: 18px; align-items: center; }
.ring-bg { fill: none; stroke: var(--border-strong); stroke-width: 8; }
.ring-fg { fill: none; stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-txt { fill: var(--text); font-size: 15px; font-weight: 800; }

/* Leaderboard */
.leaderboard-table .lb-pos { font-weight: 800; font-size: 1.1rem; width: 44px; }
.leaderboard-table tr.top-1 .lb-pos { color: #f5b301; }
.leaderboard-table tr.top-2 .lb-pos { color: #c0c8d4; }
.leaderboard-table tr.top-3 .lb-pos { color: #cd7f32; }
.leaderboard-table tr.top-1 { background: rgba(245, 179, 1, 0.06); }

/* Contest */
.contest-card { border: 1px solid rgba(245, 179, 1, 0.35); background: linear-gradient(180deg, rgba(245,179,1,0.07), transparent); }
.contest-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.countdown-live { font-variant-numeric: tabular-nums; color: var(--gold, #f5b301); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 20px 0; }
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: rgba(245, 179, 1, 0.5); box-shadow: 0 8px 32px rgba(245, 179, 1, 0.12); }
.pricing-card .price { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: 8px 0 2px; }
.check-list { list-style: none; padding: 0; margin: 12px 0; text-align: left; }
.check-list li { padding: 6px 0 6px 28px; position: relative; font-size: 0.92rem; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.check-list.small li { font-size: 0.85rem; padding-top: 4px; padding-bottom: 4px; }

/* FAQ accordion */
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin: 10px 0; overflow: hidden; transition: border-color 0.2s ease; }
details.faq[open] { border-color: var(--accent); }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex;
    justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 800; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { color: var(--accent); }
details.faq > *:not(summary) { padding: 0 18px; }
details.faq > p:last-child, details.faq > ol:last-child { padding-bottom: 16px; }

/* Empty states */
.empty-state { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px dashed var(--border-strong);
    border-radius: var(--radius); margin: 16px 0; }
.empty-state h3 { margin: 14px 0 6px; }
.empty-illo { width: 96px; height: 96px; color: var(--accent); opacity: 0.75; }
.error-404 .code-404 { font-size: 4.5rem; font-weight: 900; letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #7de3f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Inbox */
.row-unread { background: rgba(16, 185, 129, 0.05); }
.dot-unread { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 8px var(--accent); }
.msg-body { max-width: 420px; white-space: pre-wrap; }

/* Claim success celebration */
@keyframes pop-in { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.claim-success { animation: pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.claim-success .big-amount { font-size: 2rem; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
@keyframes float-up { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }
.reward-float { display: inline-block; animation: float-up 1.4s ease-out forwards; font-weight: 800; color: var(--accent); }
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* Animated counters */
.count-up { font-variant-numeric: tabular-nums; }

/* Card entrance */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-1 { animation-delay: 0.05s; } .rise-2 { animation-delay: 0.12s; } .rise-3 { animation-delay: 0.19s; }

/* Buttons: tactile feedback */
.btn { transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary:hover { box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35); }

/* Countdown box pulse when running */
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.25); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
.countdown-box.running { animation: soft-pulse 2s ease-in-out infinite; border-color: var(--accent); }

/* Admin nav: scrollable on small screens */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 20px; }
.admin-nav a { padding: 8px 13px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
    font-size: 0.86rem; font-weight: 600; color: var(--text); }
.admin-nav a.on { background: var(--accent); border-color: var(--accent); color: #060a15; }
.admin-nav a:hover:not(.on) { border-color: var(--accent); }

@media (max-width: 640px) {
    .rank-card { flex-direction: column; text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ==================== v2: app layout — slim topbar + left sidebar ==================== */
body.has-sidebar { background: var(--bg0); }
.topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; background: #060a15;
    border-bottom: 1px solid var(--border); }
.topbar .logo { font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 8px; }
.logo-coin { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: linear-gradient(135deg, #f5b301, #ff8a00); color: #1a1200; font-weight: 800; }
.topbar-spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.side-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* Balance widget + dropdown */
.bal-widget { position: relative; }
.bal-btn { display: flex; align-items: center; gap: 8px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; cursor: pointer; color: var(--text); }
.bal-btn:hover { border-color: var(--accent); }
.bal-tokens { font-weight: 800; font-variant-numeric: tabular-nums; }
.bal-conv { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.bal-caret { color: var(--muted); font-size: 0.75rem; }
.bal-backdrop { position: fixed; inset: 0; background: rgba(4, 8, 16, 0.72); z-index: 90; }
.bal-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow-y: auto;
    background: #111a2e; border: 1px solid var(--border); border-radius: 16px; padding: 20px;
    z-index: 95; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); color: var(--text); }
.bal-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0;
    color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.bal-close:hover { color: var(--text); }
.bal-modal-title { margin: 0 0 10px; font-size: 1.05rem; }
.bal-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0;
    font-size: 0.9rem; }
.bal-row strong { font-variant-numeric: tabular-nums; }
.bal-note { background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.35); color: #f5c542;
    border-radius: 8px; padding: 8px 10px; font-size: 0.78rem; margin: 10px 0; }
.bal-cur-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
    margin: 6px 0; font-weight: 700; }
.bal-search { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.bal-cur-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.bal-cur-item { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent;
    border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; text-align: left; font-size: 0.9rem; }
.bal-cur-item:hover { background: rgba(255, 255, 255, 0.04); }
.bal-cur-item.on { border-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
.coin-badge { display: inline-block; min-width: 52px; text-align: center; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.04em; background: rgba(16, 185, 129, 0.14); color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 6px; padding: 2px 6px; }

/* App shell */
.app-wrap { display: flex; align-items: stretch; min-height: calc(100vh - 57px); }
.sidebar { width: 248px; flex-shrink: 0; background: #060a15; border-right: 1px solid var(--border);
    padding: 14px 10px; display: flex; flex-direction: column; gap: 2px;
    align-self: stretch; }
/* Full-height sidebar: the column stretches down to the footer, while the
   nav itself stays sticky at the top during scroll. */
.side-nav { position: sticky; top: 57px; max-height: calc(100vh - 57px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
    color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.05); }
.side-nav a.on { background: rgba(16, 185, 129, 0.14); color: var(--accent); }
.side-ico { width: 20px; text-align: center; opacity: 0.9; }
.side-ico svg { width: 20px; height: 20px; display: block; }
.side-badge { margin-left: auto; background: var(--accent); color: #060a15; font-size: 0.7rem; font-weight: 800;
    border-radius: 20px; padding: 1px 8px; }
.side-hot { margin-left: auto; background: linear-gradient(135deg, #ff5a5a, #ff8a00); color: #fff;
    font-size: 0.65rem; font-weight: 800; border-radius: 4px; padding: 2px 6px; letter-spacing: 0.05em; }
.side-badge + .side-hot { margin-left: 6px; }
.side-section { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.side-sec-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
    background: transparent; border: none; border-radius: 9px; color: var(--text); cursor: pointer;
    font-size: 0.92rem; font-weight: 700; }
.side-sec-toggle:hover { background: rgba(255, 255, 255, 0.05); }
.side-caret { margin-left: auto; color: var(--muted); font-size: 0.75rem; transition: transform 0.2s; }
.side-sec-toggle.open .side-caret { transform: rotate(180deg); }
.side-sub { display: none; flex-direction: column; gap: 2px; padding: 4px 0 4px 18px; }
.side-sub.open { display: flex; }
.side-sub a { font-size: 0.87rem; font-weight: 500; }
.side-promo { margin-top: auto; display: block; text-align: center; background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.18), rgba(125, 227, 240, 0.12)); border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px; padding: 14px 10px; color: var(--text); text-decoration: none; font-weight: 700;
    font-size: 0.85rem; }
.app-main { flex: 1; min-width: 0; padding: 0 18px 40px; }
.app-foot { text-align: center; padding: 18px; border-top: 1px solid var(--border); background: #060a15; }
.sidebar-scrim { display: none; }

/* Balance card */
.balance-card { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(125, 227, 240, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.35); margin: 18px 0; }
.bal-big-label { font-weight: 700; letter-spacing: 0.08em; }
.bal-big-num { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0; }
.bal-big-unit { font-size: 1rem; color: var(--accent); }
.bal-big-usd { font-size: 1rem; }

/* Faucet v2 */
.faucet-cards .stat-card .num { font-size: 1.5rem; }
.claim-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.claim-head h1 { margin: 0; font-size: 1.5rem; }
.hh-banner { font-size: 1rem; }
.sound-toggle { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.88rem;
    color: var(--muted); cursor: pointer; }
.sound-toggle input { width: auto; }

/* Antilinks ordered-click captcha */
.antilinks { background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--border); border-radius: 12px;
    padding: 14px; margin: 12px 0; }
.antilink-exprs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.antilink-expr { background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 14px; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.antilink-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    border-radius: 50%; background: var(--accent); color: #060a15; font-size: 0.8rem; margin-right: 8px; }
.antilink-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.antilink-btn { min-width: 56px; min-height: 48px; font-size: 1.2rem; font-weight: 800; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
    font-variant-numeric: tabular-nums; position: relative; }
.antilink-btn:hover { border-color: var(--accent); }
.antilink-btn.picked { border-color: var(--accent); background: rgba(16, 185, 129, 0.14); color: var(--accent); }
.pick-n { position: absolute; top: -9px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: #060a15; font-size: 0.7rem; display: inline-flex;
    align-items: center; justify-content: center; }
.antilink-picked { margin-top: 6px; }

/* Settings hub */
.fld-help { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.form label .fld-help { margin-bottom: 2px; }

/* Mobile: sidebar becomes an off-canvas drawer */
@media (max-width: 900px) {
    .side-toggle { display: inline-block; }
    .sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 80; transform: translateX(-105%);
        transition: transform 0.25s ease; width: 270px; background: #060a15; overflow-y: auto; }
    body.side-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 75;
        opacity: 0; pointer-events: none; transition: opacity 0.25s; }
    body.side-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
    .app-main { padding: 0 12px 40px; }
    .user-chip .muted { display: none; }
    .bal-conv { display: none; }
}

/* ============ Shortlinks redesign (v2) ============ */
.sl-controls {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}
.sl-search {
    flex: 1 1 220px; padding: 10px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
    color: var(--text); font-size: 0.95rem;
}
.sl-sort {
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
    color: var(--text); font-size: 0.9rem;
}
.sl-hide { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.sl-count { margin-left: auto; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sl-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column;
    transition: opacity 0.25s ease, border-color 0.2s ease;
}
.sl-card:hover { border-color: var(--accent); }
.sl-name { font-weight: 700; font-size: 1.05rem; }
.sl-sub { margin: 2px 0 12px; }
.sl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sl-badge { font-size: 0.78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.01em; }
.sl-tokens { background: rgba(16, 217, 163, 0.14); color: #34d399; border: 1px solid rgba(16, 217, 163, 0.3); }
.sl-views { background: rgba(242, 181, 68, 0.14); color: var(--gold); border: 1px solid rgba(242, 181, 68, 0.3); }
.sl-exp { background: rgba(56, 189, 248, 0.14); color: var(--sky); border: 1px solid rgba(56, 189, 248, 0.3); }
.sl-reset { margin-bottom: 14px; }
.sl-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.sl-card.sl-done { opacity: 0.55; }
.sl-verify { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.sl-verify-text { margin: 0 0 8px; }
.sl-timer { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 10px; color: var(--gold); }
.sl-err { color: var(--danger); margin: 8px 0 0; }
.sl-done-msg { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-ad { grid-column: 1 / -1; text-align: center; padding: 6px 0; overflow: hidden; }
.sl-ad:empty { display: none; }

/* Offerwall cards: provider logo-text, star rating, Visit button. */
.ow-card { text-align: center; padding-top: 26px; }
.ow-logo { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text); }
.ow-rating { margin-bottom: 10px; }
.ow-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }

/* ============================================================
   v3 — Daily gate modal (centered, NOT fullscreen), FAQ, captcha boxes
   ============================================================ */
.gate-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(3, 6, 13, 0.82);
}
.gate-modal {
    position: fixed; z-index: 201;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(660px, calc(100vw - 28px));
    max-height: calc(100vh - 40px); overflow-y: auto;
    background: #0e1628;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    color: var(--text);
}
.gate-inner { padding: 26px; }
.gate-title { margin: 0 0 6px; font-size: 1.35rem; }
.gate-line {
    margin: 0 0 18px; padding: 10px 14px;
    background: var(--gold-dim); border: 1px solid rgba(242, 181, 68, 0.4);
    border-radius: 10px; color: #f5d58a; font-size: 0.95rem;
}
.gate-ad {
    position: relative; margin: 10px 0;
    background: #080d18; border: 1px dashed var(--border-strong);
    border-radius: 10px; min-height: 60px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.gate-ad-overlay {
    position: absolute; inset: 0; z-index: 2; cursor: pointer;
    background: transparent;
}
.gate-mid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gate-mid-info { text-align: center; padding: 6px 4px; }
.gate-status {
    display: inline-block; margin-top: 6px; padding: 8px 14px;
    background: var(--sky-dim); border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px; font-size: 0.85rem; color: #9fdcfb;
}
.gate-timer-box { text-align: center; padding: 26px 10px; }
.gate-timer-num {
    font-size: 4rem; font-weight: 800; color: var(--accent);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.gate-scroll-note { margin: 12px 0; color: #f5d58a; }
.gate-progress {
    height: 12px; background: #080d18; border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 14px;
}
.gate-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
    transition: width 0.9s linear;
}
@media (min-width: 640px) {
    .gate-mid { grid-template-columns: 1fr 220px 1fr; align-items: stretch; }
    .gate-ad-side { min-height: 180px; }
}
body.gate-locked { overflow: hidden; }

/* Homepage FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: linear-gradient(180deg, #0f1830 0%, #0b1222 100%);
    border: 1px solid var(--border-strong); border-radius: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 16px 18px; background: transparent; border: 0;
    color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer;
    text-align: left;
}
.faq-q:hover { color: var(--accent); }
.faq-plus { font-size: 1.4rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-q.open .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* Dynamic captcha boxes inside claim flows */
.sl-captcha, #rdCaptcha, #wtCaptcha { margin: 14px 0; }
.sl-captcha .antilinks, #rdCaptcha .antilinks, #wtCaptcha .antilinks { margin: 0; }

/* Guide / CMS prose */
.prose { line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose .lead { font-size: 1.08rem; color: var(--text); }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }

/* ---- FaucetPay checkout deposit ---- */
.amt-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.amt-pick.active { border-color: var(--acc); color: var(--acc); }
.co-preview { font-size: 26px; font-weight: 800; color: var(--acc); margin-top: 4px; }

/* ============================================================
   PTC Campaign Wizard + view page + user-side PTC (v3.6)
   ============================================================ */

/* --- Wizard --- */
.wiz-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.wiz-step { flex: 1; min-width: 90px; text-align: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; background: var(--surface); text-decoration: none; }
.wiz-step.done { border-color: var(--accent-deep); color: var(--accent); }
.wiz-step.current { border-color: var(--accent); color: var(--text); background: var(--accent-dim); font-weight: 700; }
.wiz-step .n { display: block; font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.wiz-pane { animation: fadeUp .25s ease; }
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.type-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; }
.type-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.type-card.sel { border-color: var(--accent); background: var(--accent-dim); box-shadow: var(--glow); }
.type-card .ticon { font-size: 26px; }
.type-card h4 { margin: 8px 0 4px; }
.type-card p { color: var(--muted); font-size: 12px; margin: 0; }
.badge-rec { display: inline-block; background: var(--gold-dim); color: var(--gold); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-left: 6px; }
.rules-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.rules-list li { margin: 4px 0; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.cost-preview { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; background: var(--surface); }
.cost-preview .big { font-size: 22px; font-weight: 800; color: var(--accent); }
.cost-preview .row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check-row input[type=checkbox] { margin-top: 4px; }
.geo-tools { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin: 10px 0; }
.geo-item { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 8px; border-radius: 6px; }
.geo-item:hover { background: var(--surface-2); }
.summary-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row .k { color: var(--muted); }
.sum-row .v { font-weight: 600; text-align: right; }

/* --- Campaigns tab filters --- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.pill-filter { padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--muted); text-decoration: none; }
.pill-filter.on, .pill-filter:hover { border-color: var(--accent); color: var(--accent); }
.search-form { display: flex; gap: 8px; margin-left: auto; }
.search-input { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 8px 12px; font-size: 14px; }

/* --- PTC view page --- */
.ad-frame-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ptc-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg1); flex-wrap: wrap; }
.pv-logo { font-weight: 800; font-size: 18px; color: var(--text); }
.pv-logo .dot { color: var(--accent); }
.pv-right { display: flex; align-items: center; gap: 12px; }
.pv-ad { max-width: 340px; }
.pv-ad img { max-width: 100%; height: auto; border-radius: 6px; }
.pv-timer { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dim); border: 1px solid var(--accent-deep); color: var(--accent); font-weight: 800; padding: 6px 16px; border-radius: 20px; font-size: 15px; }
.coin-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); display: inline-block; }
.pv-frame { width: 100%; border: 0; background: #fff; min-height: 70vh; display: block; }
.pv-frame iframe { width: 100%; height: calc(100vh - 210px); min-height: 65vh; border: 0; display: block; background: #fff; }
.pv-window-msg { padding: 60px 20px; text-align: center; color: var(--muted); }

/* --- User-side PTC card grid --- */
.ptc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 16px 0; }
.ptc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform .15s, border-color .15s; }
.ptc-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.ptc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.type-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 14px; background: var(--sky-dim); color: var(--sky); }
.type-badge.ad-video { background: var(--violet); color: #fff; }
.type-badge.ad-frame { background: var(--gold-dim); color: var(--gold); }
.reward-badge { font-size: 14px; font-weight: 800; color: var(--accent); }
.ptc-card h4 { margin: 6px 0; font-size: 16px; }
.ptc-card .desc { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.ptc-meta { display: flex; gap: 12px; color: var(--faint); font-size: 12px; margin-bottom: 12px; }
.ptc-actions { display: flex; gap: 8px; align-items: center; }
.report-link { font-size: 12px; color: var(--faint); margin-left: auto; cursor: pointer; }
.report-link:hover { color: var(--danger); }
.ptc-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.ptc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.ptc-stat .num { font-size: 22px; font-weight: 800; color: var(--accent); }
.ptc-stat .lbl { font-size: 12px; color: var(--muted); }
.progress-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }

/* --- Modals (kept renderable for captcha widgets: opacity/visibility, never display:none) --- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(3, 6, 14, 0.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box { background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 440px; width: 100%; padding: 26px; transform: translateY(8px); transition: transform .2s ease; }
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-box h3 { margin: 0 0 6px; }

@media (max-width: 640px) {
    .type-cards { grid-template-columns: 1fr; }
    .wiz-nav { flex-direction: column-reverse; }
    .ptc-viewbar { flex-direction: column; align-items: flex-start; }
}

/* --- PTC ad wall (card grid) --- */
.ptc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.ptc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.ptc-stat-num { display: block; font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.ptc-stat-label { font-size: 0.75rem; color: var(--muted); }
.ptc-stat-wide { text-align: left; }
.ptc-progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.ptc-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.ptc-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.ptc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ptc-tab { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 0.85rem; text-decoration: none; background: var(--surface); }
.ptc-tab:hover { border-color: var(--accent); }
.ptc-tab.on { background: var(--accent); border-color: var(--accent); color: #04110c; font-weight: 700; }
.ptc-tab-count { opacity: 0.75; font-size: 0.78rem; }
.ptc-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ptc-search, .ptc-sort { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 8px 10px; font-size: 0.85rem; }
.ptc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 6px 0 30px; }
.ptc-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ptc-card:hover { transform: translateY(-3px); border-color: rgba(16, 217, 163, 0.45); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.ptc-type { position: absolute; top: 12px; right: 12px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 999px; background: rgba(90, 140, 255, 0.16); color: #8fb4ff; border: 1px solid rgba(90, 140, 255, 0.4); }
.ptc-card-title { margin: 0; padding-right: 76px; font-size: 1.02rem; line-height: 1.35; }
.ptc-card-desc { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.ptc-card-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.ptc-reward { font-weight: 800; color: var(--accent); font-size: 0.95rem; }
.ptc-time { font-size: 0.8rem; color: var(--muted); }
.ptc-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ptc-report-link { background: none; border: none; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.ptc-report-link:hover { color: var(--danger); }
