/* Streamer side: landing page, sign-up/login, dashboard. */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.svg-i svg, .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge.dark { background: var(--ink); color: #fff; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 19, 15, 0.92); backdrop-filter: blur(10px); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.top .brand img { height: 20px; filter: brightness(0) invert(1); }
.top .brand span { padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.25); font-size: 15px; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a.link { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a.link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.top .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.top .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
@media (max-width: 700px) { .top nav a.link { display: none; } .top .brand span { display: none; } }

/* ---------- landing ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255,105,0,0.35), transparent 60%), #17130f; color: #fff; padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb27a; }
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 4px rgba(255,59,48,0.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,59,48,0); } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.hero .proof { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero .proof div { display: grid; }
.hero .proof strong { font-size: 26px; letter-spacing: -0.02em; }
.hero .proof small { color: rgba(255,255,255,0.6); font-weight: 600; }
.phone { justify-self: center; width: 300px; aspect-ratio: 9 / 17; border-radius: 38px; background: linear-gradient(160deg, #2a221b, #120e0b); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 0 6px #0d0a08; position: relative; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.phone .live-tag { align-self: flex-start; background: #ff3b30; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 6px; letter-spacing: 0.05em; }
.phone .viewers { position: absolute; top: 22px; right: 18px; background: rgba(255,255,255,0.12); padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.phone .chart { flex: 1; border-radius: 18px; background: rgba(255,255,255,0.04); display: grid; place-items: center; }
.phone .chart svg { width: 85%; }
.phone .earn { background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; }
.phone .earn small { color: var(--muted); font-weight: 700; font-size: 12px; }
.phone .earn strong { display: block; font-size: 24px; letter-spacing: -0.02em; }
.phone .earn .bar { margin-top: 8px; }
.phone .chat { display: grid; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.75); }
.phone .chat b { color: #ffb27a; }

.sec { padding: 80px 0; }
.sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head .eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; margin: 8px 0 10px; }
.sec-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.tier { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.tier .name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier .name h3 { margin: 0; font-size: 20px; }
.tier .price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.tier li { display: flex; gap: 8px; align-items: flex-start; }
.tier li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--green); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tier .req { border-top: 1px dashed var(--line); padding-top: 12px; }
.tier .req b { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tier.hot { border: 2px solid var(--orange); box-shadow: 0 10px 30px rgba(255,105,0,0.15); }
.tier.top { background: #17130f; color: #fff; border-color: #17130f; }
.tier.top ul, .tier.top .price small { color: rgba(255,255,255,0.75); }
.tier.top .req { border-color: rgba(255,255,255,0.2); }
.tier.top .req b { color: rgba(255,255,255,0.55); }
.rate-table { margin-top: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.rate-table .row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.rate-table .row strong { font-size: 22px; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.calc .in { padding: 28px; display: grid; gap: 18px; }
.calc .out { padding: 28px; background: #17130f; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.calc .out small { color: rgba(255,255,255,0.6); font-weight: 700; }
.calc .out .big { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.calc .out .lines { margin-top: 14px; display: grid; gap: 6px; font-size: 14.5px; color: rgba(255,255,255,0.8); }
.calc .out .lines div { display: flex; justify-content: space-between; gap: 10px; }
.range { display: grid; gap: 6px; }
.range label { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; }
.range label output { color: var(--orange-ink); }
input[type=range] { width: 100%; accent-color: var(--orange); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--orange-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.final { background: var(--orange); color: #fff; text-align: center; padding: 72px 0; }
.final h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.025em; }
.final p { font-size: 18px; opacity: 0.9; margin: 0 0 24px; }
.final .btn { background: #fff; color: var(--orange-ink); border-color: #fff; }
.foot { background: #17130f; color: rgba(255,255,255,0.55); font-size: 13px; padding: 28px 0; }
.foot p { margin: 0 0 8px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { display: none; }
  .steps, .tiers { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .tiers { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  .sec { padding: 56px 0; }
}

/* ---------- auth pages ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 40px 16px 80px; }
.auth .card { width: 100%; max-width: 560px; padding: 28px; }
.auth .card.narrow { max-width: 420px; }
.auth h1 { font-size: 26px; }
.auth .sub { color: var(--muted); margin: -4px 0 20px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.uid-help { background: var(--orange-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.uid-help a { font-weight: 700; }
.chan-row { display: grid; grid-template-columns: 140px 1fr 110px 40px; gap: 8px; margin-bottom: 8px; }
.chan-row .input { min-height: 42px; font-size: 15px; }
.chan-row button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; }
@media (max-width: 520px) { .chan-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.alt-link { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* ---------- dashboard ---------- */
.dash { padding: 24px 0 100px; }
.tabsbar { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabsbar a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.tabsbar a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabsbar a:hover { background: #efe8e0; }
.tabsbar a.on { background: var(--ink); color: #fff; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hello h1 { font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.hello p { margin: 2px 0 0; color: var(--muted); }

.tier-card { padding: 24px; background: #17130f; color: #fff; border: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-bottom: 16px; overflow: hidden; position: relative; }
.tier-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,105,0,0.45), transparent 70%); }
.tier-card .lbl { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.tier-card .tier-name { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tier-card .rate { font-size: 17px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.tier-card .rate strong { color: var(--orange); font-size: 22px; }
.tier-card .earn { position: relative; z-index: 1; text-align: right; align-self: center; }
.tier-card .earn strong { display: block; font-size: 40px; letter-spacing: -0.03em; }
.tier-card .earn small { color: rgba(255,255,255,0.6); font-weight: 600; }
.tier-card .lock { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; background: rgba(18,128,92,0.25); color: #7ee2bb; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
@media (max-width: 640px) { .tier-card { grid-template-columns: 1fr; } .tier-card .earn { text-align: left; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; }
.stat small { color: var(--muted); font-weight: 700; font-size: 13px; }
.stat strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.goal { padding: 18px 20px; }
.goal h3 { font-size: 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.goal .meter { margin: 12px 0 6px; }
.goal .meter + small { color: var(--muted); font-size: 13.5px; }
.goal .row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-top: 10px; }
.goal .bar { height: 10px; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; } }

.panel { padding: 20px; margin-bottom: 16px; }
.panel > h2 { font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ref { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ref code { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; overflow-wrap: anywhere; }

.lives { display: grid; gap: 10px; }
.live { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.live .pf { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.live .pf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.live .pf.tiktok { background: #111; color: #fff; }
.live .pf.youtube { background: #ffe9e9; color: #e01e1e; }
.live .pf.instagram { background: #fdeaf3; color: #c1357b; }
.live .pf.facebook { background: #e8f0fe; color: #1a5fd0; }
.live .meta { min-width: 0; }
.live .meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live .meta small { color: var(--muted); font-size: 13.5px; }
.live .num { text-align: right; }
.live .num strong { display: block; font-size: 18px; }
.live .note { grid-column: 2 / -1; font-size: 13.5px; background: var(--red-soft); color: var(--red); padding: 6px 10px; border-radius: 8px; }
.live .note.info { background: var(--amber-soft); color: var(--amber); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty svg { width: 40px; height: 40px; stroke: #cbbfb2; fill: none; stroke-width: 1.6; margin-bottom: 8px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
table.list .r { text-align: right; }
.scroll { overflow-x: auto; }

.status-hero { padding: 32px; text-align: center; max-width: 640px; margin: 20px auto; }
.status-hero .big-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--amber-soft); color: var(--amber); }
.status-hero .big-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-hero.rejected .big-ic { background: var(--red-soft); color: var(--red); }
.timeline { text-align: left; display: grid; gap: 10px; margin: 20px 0; }
.timeline div { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.timeline i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #efe8e0; font-style: normal; font-size: 13px; font-weight: 800; flex: none; }
.timeline .done i { background: var(--green); color: #fff; }
.timeline .now i { background: var(--orange); color: #fff; }

/* ---------- modal (shared with admin) ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(29, 26, 23, 0.5); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; }
.modal.wide { max-width: 820px; }
.modal h2 { font-size: 20px; }
.modal .foot-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; }
.seg span svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.seg input:checked + span { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-ink); }
.seg input:focus-visible + span { outline: 3px solid rgba(255, 105, 0, 0.45); }
.hint { font-size: 13.5px; background: var(--blue-soft); color: var(--blue); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.shot-thumb { max-height: 120px; border-radius: 8px; border: 1px solid var(--line); margin-top: 6px; }
