:root {
  font-family: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f5f7f8;
  background: #0b0d0f;
  font-synthesis: none;
  --lime: #d9ff3f;
  --ink: #0b0d0f;
  --surface: #15191c;
  --raised: #1b2024;
  --line: rgba(255,255,255,.1);
  --muted: rgba(255,255,255,.62);
  --error: #ff7b7b;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 78% -10%, rgba(217,255,63,.08), transparent 31%), var(--ink); }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--lime); }

.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--line); background: rgba(11,13,15,.86); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 128px; height: auto; }
.brand span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.privacy { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 700; }
.privacy i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(217,255,63,.7); }
main { width: min(100%, 1500px); margin: 0 auto; padding: clamp(36px, 5vw, 74px) clamp(18px, 5vw, 72px) 80px; }

.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.boot { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); font-size: 13px; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth { min-height: calc(100vh - 240px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .7fr); align-items: center; gap: clamp(50px, 8vw, 130px); }
.auth-copy h1 { max-width: 780px; margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: .98; letter-spacing: -.06em; }
.auth-copy h1 em { color: var(--lime); font-style: normal; }
.auth-copy > p:not(.eyebrow) { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 27px; }
.program-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 44px; }
.program-facts article { min-height: 116px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025); }
.program-facts b, .program-facts span { display: block; }
.program-facts b { color: var(--lime); font-size: 24px; }
.program-facts span { margin-top: 12px; color: rgba(255,255,255,.5); font-size: 11px; }
.auth-card { width: 100%; max-width: 500px; justify-self: end; padding: clamp(25px, 4vw, 40px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%), var(--surface); box-shadow: 0 32px 100px rgba(0,0,0,.34); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 30px; border-radius: 14px; background: #0e1113; }
.tab { min-height: 44px; border: 0; border-radius: 10px; color: rgba(255,255,255,.5); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.tab.active { color: var(--ink); background: var(--lime); }
.auth-card h2, dialog h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-card > div > p:not(.eyebrow), dialog form > p:not(.eyebrow) { margin: 12px 0 25px; color: var(--muted); font-size: 12px; line-height: 19px; }
label { display: block; margin-top: 15px; }
label > span { display: block; margin: 0 0 8px 2px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 700; }
input, select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; outline: 0; color: #fff; background: #0f1214; font-size: 13px; }
input:focus, select:focus { border-color: rgba(217,255,63,.62); }
input::placeholder { color: rgba(255,255,255,.26); }
.slug-field { display: grid; grid-template-columns: auto minmax(90px, 1fr); align-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: #0f1214; overflow: hidden; }
.slug-field:focus-within { border-color: rgba(217,255,63,.62); }
.slug-field small { padding-left: 14px; color: rgba(255,255,255,.4); font-size: 11px; white-space: nowrap; }
.slug-field input { border: 0; padding-left: 2px; }
.check-field { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 11px; margin-top: 19px; cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); }
.check-field span { margin: 0; color: rgba(255,255,255,.5); font-size: 10px; line-height: 16px; }
.check-field a, .rules-back { color: var(--lime); text-decoration: none; }
.check-field a:hover, .rules-back:hover { text-decoration: underline; }
.primary, .secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-size: 12px; font-weight: 850; cursor: pointer; transition: transform 120ms ease, background 120ms ease; }
.primary { border: 1px solid var(--lime); color: var(--ink); background: var(--lime); }
.secondary { border: 1px solid var(--line); background: var(--surface); }
.primary:hover:not(:disabled), .secondary:hover:not(:disabled) { transform: translateY(-1px); }
.primary:hover:not(:disabled) { border-color: #fff; background: #fff; }
.primary:disabled, .secondary:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.wide { width: 100%; min-height: 55px; margin-top: 22px; }
.back, .text-button { min-height: 36px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.back { margin-bottom: 25px; }
.back:hover, .text-button:hover { color: var(--lime); }
.code-input { height: 66px; text-align: center; font-size: 25px; font-weight: 850; letter-spacing: .26em; }
.error { margin: 15px 0 0; padding: 12px 14px; border: 1px solid rgba(255,123,123,.23); border-radius: 11px; color: var(--error); background: rgba(255,123,123,.06); font-size: 11px; line-height: 17px; }

.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.dashboard-head h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.05em; }
.dashboard-head > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { min-height: 174px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.metric span, .metric b, .metric small { display: block; }
.metric span { color: var(--muted); font-size: 11px; font-weight: 750; }
.metric b { margin-top: 24px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.metric small { margin-top: 15px; color: rgba(255,255,255,.4); font-size: 10px; }
.metric.featured { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.metric.featured span, .metric.featured small { color: rgba(11,13,15,.64); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .5fr); gap: 14px; margin-top: 14px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 70px rgba(0,0,0,.16); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.panel > p:not(.eyebrow) { margin: 12px 0 24px; color: var(--muted); font-size: 12px; line-height: 19px; }
.rate { display: inline-grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(217,255,63,.25); border-radius: 20px; color: var(--lime); background: rgba(217,255,63,.07); font-size: 18px; font-weight: 900; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.copy-field input { color: var(--lime); }
.month-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.month-result span { color: var(--muted); font-size: 11px; }
.month-result b { font-size: 19px; }
.payout-panel { display: flex; flex-direction: column; align-items: stretch; }
.payout-panel .wide { margin-top: auto; }
.payout-panel > small { display: block; margin-top: 14px; color: rgba(255,255,255,.38); font-size: 9px; line-height: 15px; }
.history-panel { margin-top: 14px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; margin-top: 14px; border-collapse: collapse; }
th { height: 48px; padding: 0 15px; color: rgba(255,255,255,.38); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { min-width: 120px; height: 68px; padding: 10px 15px; border-top: 1px solid var(--line); color: rgba(255,255,255,.72); font-size: 11px; }
.positive-money { color: var(--lime); font-weight: 850; }
.muted-money { color: rgba(255,255,255,.36); text-decoration: line-through; }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid rgba(217,255,63,.2); border-radius: 999px; color: var(--lime); background: rgba(217,255,63,.06); font-size: 9px; font-weight: 800; white-space: nowrap; }
.badge-pending { color: #ffd166; border-color: rgba(255,209,102,.22); background: rgba(255,209,102,.06); }
.badge-muted, .badge-canceled, .badge-rejected { color: rgba(255,255,255,.47); border-color: var(--line); background: rgba(255,255,255,.03); }
.empty { margin: 22px 0 0; color: var(--muted); font-size: 11px; }

dialog { width: min(calc(100% - 28px), 520px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; color: #fff; background: var(--raised); box-shadow: 0 32px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
dialog form { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.06); font-size: 23px; cursor: pointer; }
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.method-tabs label { margin: 0; }
.method-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.method-tabs span { min-height: 48px; display: grid; place-items: center; margin: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; cursor: pointer; }
.method-tabs input:checked + span { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.notice { display: grid; gap: 6px; margin-top: 20px; padding: 15px; border: 1px solid rgba(217,255,63,.16); border-radius: 13px; background: rgba(217,255,63,.045); }
.notice b { font-size: 11px; }
.notice span { color: var(--muted); font-size: 10px; line-height: 16px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(440px, calc(100% - 48px)); padding: 16px 19px; border: 1px solid rgba(217,255,63,.25); border-radius: 14px; color: var(--lime); background: #171c1f; box-shadow: 0 18px 60px rgba(0,0,0,.55); font-size: 11px; line-height: 17px; }
.rules-back { font-size: 11px; font-weight: 800; }
.rules-page { width: min(100%, 980px); }
.rules-page > h1 { max-width: 800px; margin: 0; font-size: clamp(43px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.rules-lead { max-width: 790px; margin: 28px 0 48px; color: var(--muted); font-size: 15px; line-height: 26px; }
.rules-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 25px; padding: 28px 0; border-top: 1px solid var(--line); }
.rules-card > b { color: var(--lime); font-size: 13px; }
.rules-card h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.rules-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 22px; }

@media (max-width: 1050px) {
  .auth { grid-template-columns: 1fr; }
  .auth-copy { text-align: center; }
  .auth-copy > p:not(.eyebrow), .program-facts { margin-inline: auto; }
  .auth-card { justify-self: center; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { height: 76px; padding-inline: 18px; }
  .brand img { width: 104px; }
  .brand span { font-size: 9px; }
  .privacy { display: none; }
  main { padding-top: 38px; padding-bottom: 48px; }
  .auth { min-height: auto; gap: 36px; }
  .auth-copy h1 { font-size: 45px; }
  .auth-copy > p:not(.eyebrow) { font-size: 14px; line-height: 23px; }
  .program-facts { grid-template-columns: 1fr; }
  .program-facts article { min-height: auto; }
  .auth-card { padding: 23px 18px; border-radius: 22px; }
  .slug-field { display: block; }
  .slug-field small { display: block; padding: 12px 14px 0; }
  .slug-field input { height: 42px; padding-left: 14px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 150px; }
  .panel { padding: 21px 17px; }
  .copy-field { grid-template-columns: 1fr; }
  .copy-field .primary { min-height: 52px; }
  dialog form { padding: 30px 20px 22px; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .rules-page > h1 { font-size: 42px; }
  .rules-card { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
}

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