/* AP1X Partners */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0b0b0d;
  --card: rgba(255, 255, 255, 0.035);
  --card2: rgba(255, 255, 255, 0.06);
  --red: #e5160d;
  --red-hot: #ff3b1f;
  --cyan: #8af4ff;
  --gold: #ffcf6b;
  --green: #4ef0a0;
  --light: #f3f3f1;
  --muted: rgba(243, 243, 241, 0.58);
  --faint: rgba(243, 243, 241, 0.36);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.18);
  --f: "Montserrat", system-ui, -apple-system, sans-serif;
  --m: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 3.4vw, 52px);
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--f); color: var(--light); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
.mono { font-family: var(--m); }
.muted { color: var(--muted); }
.sm { font-size: 12px; }

/* фон */
.glow { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 22s var(--ease) infinite alternate; }
.glow i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(229, 22, 13, 0.55), transparent 65%); }
.glow i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; top: 22vh; background: radial-gradient(circle, rgba(255, 59, 31, 0.28), transparent 65%); animation-duration: 28s; }
.glow i:nth-child(3) { width: 36vmax; height: 36vmax; left: 30vw; bottom: -20vmax; background: radial-gradient(circle, rgba(138, 244, 255, 0.12), transparent 65%); animation-duration: 34s; }
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .glow i { animation: none; } html { scroll-behavior: auto; } }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); background: linear-gradient(to bottom, rgba(11, 11, 13, 0.92), rgba(11, 11, 13, 0.6)); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-weight: 900; letter-spacing: 0.06em; font-size: 20px; }
.brand-sub { font-family: var(--m); font-size: 12px; color: var(--red-hot); text-transform: uppercase; letter-spacing: 0.18em; }
.top-nav { display: flex; gap: 22px; margin-left: 18px; font-size: 14px; color: var(--muted); }
.top-nav a:hover { color: var(--light); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me-code { font-family: var(--m); font-size: 13px; color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn.red { background: linear-gradient(135deg, var(--red-hot), var(--red)); color: #fff; box-shadow: 0 8px 30px -10px rgba(255, 59, 31, 0.8); }
.btn.red:hover { box-shadow: 0 10px 40px -8px rgba(255, 59, 31, 1); transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--light); }
.btn.xl { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* герой */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.hero { padding: clamp(48px, 10vh, 120px) 0 clamp(40px, 8vh, 90px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--m); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 0 rgba(255, 59, 31, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0); } }
.hero-title { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.1em 0.35em; margin: 22px 0 26px; line-height: 0.9; }
.hero-title .big { font-size: clamp(110px, 22vw, 300px); font-weight: 900; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff 10%, #ffb4a6 55%, var(--red-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 50px rgba(255, 59, 31, 0.35)); }
.hero-title .big em { font-style: normal; font-size: 0.55em; vertical-align: top; }
.hero-title .line { font-size: clamp(28px, 4.4vw, 62px); font-weight: 800; letter-spacing: -0.02em; padding-bottom: 0.25em; }
.hero-text { max-width: 640px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 8vh, 80px); background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hero-stats div { background: rgba(11, 11, 13, 0.85); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.hero-stats b { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* секции */
.sec { padding: clamp(40px, 8vh, 90px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.sec-n { font-family: var(--m); color: var(--red-hot); font-size: 13px; }
.sec h2, .final h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.sec-lead { max-width: 720px; color: var(--muted); line-height: 1.6; margin: -8px 0 28px; }
.sec-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step, .pay-card, .prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s; }
.step:hover, .pay-card:hover, .prod:hover { border-color: var(--line2); background: var(--card2); transform: translateY(-3px); }
.step b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 59, 31, 0.14); color: var(--red-hot); font-size: 18px; margin-bottom: 18px; }
.step h3, .pay-card h3 { font-size: 20px; margin-bottom: 8px; }
.step p, .pay-card p { color: var(--muted); line-height: 1.55; font-size: 15px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod h3 { font-size: 17px; }
.prod p { color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.rate { font-family: var(--m); font-weight: 500; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 59, 31, 0.14); color: var(--red-hot); }
.rate.low { background: rgba(138, 244, 255, 0.1); color: var(--cyan); }
.prod a { font-family: var(--m); font-size: 12px; color: var(--faint); }
.prod a:hover { color: var(--light); }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay-card { display: flex; flex-direction: column; gap: 4px; }
.pay-card p { flex: 1; margin-bottom: 14px; }
.tag { align-self: flex-start; font-family: var(--m); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.tag.hot { border-color: rgba(78, 240, 160, 0.5); color: var(--green); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--red-hot); font-size: 20px; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.final { text-align: center; padding: clamp(60px, 12vh, 130px) 0; border-top: 1px solid var(--line); display: grid; gap: 28px; justify-items: center; }

/* кабинет */
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding: 48px 0 28px; }
.cab-title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; }
.cab-sub { color: var(--muted); font-size: 14px; }
.cab-sub b { color: var(--light); }
.main-link { display: grid; gap: 8px; min-width: min(460px, 100%); }
.main-link > span { font-size: 12px; color: var(--muted); font-family: var(--m); text-transform: uppercase; letter-spacing: 0.1em; }
.copy-row { display: flex; align-items: center; gap: 8px; background: var(--card2); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 5px 5px 16px; }
.copy-row code { font-family: var(--m); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpi small { font-size: 12px; color: var(--faint); }
.kpi.hot { border-color: rgba(255, 59, 31, 0.45); background: linear-gradient(160deg, rgba(255, 59, 31, 0.16), rgba(255, 59, 31, 0.03)); }
.kpi.ok b { color: var(--green); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 14px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 18px; font-weight: 700; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-c { background: rgba(138, 244, 255, 0.7); }
.lg-p { background: var(--red-hot); margin-left: 8px; }
.chart { height: 180px; display: flex; align-items: flex-end; gap: 3px; }
.chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; position: relative; min-width: 0; }
.chart .bar i { display: block; border-radius: 3px 3px 1px 1px; min-height: 2px; }
.chart .bar .c { background: rgba(138, 244, 255, 0.55); }
.chart .bar .p { background: var(--red-hot); box-shadow: 0 0 14px rgba(255, 59, 31, 0.6); }
.chart .bar .z { background: rgba(255, 255, 255, 0.06); }
.chart .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #1a1a1d; border: 1px solid var(--line2); padding: 6px 10px; border-radius: 8px; font-size: 12px; z-index: 2; }
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.money-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.money-row div { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.money-row span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.money-row b { font-size: 20px; }
.money-row .av b { color: var(--green); }
.payout { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.payout h3 { font-size: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; transition: all 0.2s; }
.seg input:checked + span { background: var(--light); color: #0b0b0d; border-color: var(--light); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.inp { width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line2); color: var(--light); font: inherit; font-size: 15px; outline: none; transition: border-color 0.2s; }
.inp:focus { border-color: var(--red-hot); }
select.inp { appearance: none; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-msg { font-size: 13px; min-height: 1em; }
.form-msg.err { color: #ff8a7a; }
.form-msg.ok { color: var(--green); }
.links { display: grid; gap: 8px; max-height: 470px; overflow: auto; padding-right: 4px; }
.lk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.lk b { font-size: 14px; }
.lk small { grid-column: 1; font-family: var(--m); font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk .rate { grid-row: 1; grid-column: 2; justify-self: end; font-size: 11px; padding: 2px 8px; }
.lk button { grid-row: 2; grid-column: 2; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .com { color: var(--green); font-weight: 600; }
.feed { list-style: none; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--card2); }
.feed .ic.paid { background: rgba(78, 240, 160, 0.14); }
.feed .ic.started { background: rgba(255, 207, 107, 0.12); }
.feed small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.feed .amt { text-align: right; font-variant-numeric: tabular-nums; }
.feed .amt b { color: var(--green); }
.feed a { color: var(--cyan); text-decoration: underline; }
.empty { color: var(--faint); font-size: 14px; padding: 20px 0; text-align: center; }
.tips ul { list-style: none; display: grid; gap: 10px; color: var(--muted); line-height: 1.55; }
.tips b { color: var(--light); }

/* модалка */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal-box { position: relative; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: #121215; border: 1px solid var(--line2); border-radius: 22px; padding: 28px; box-shadow: 0 40px 120px -20px rgba(229, 22, 13, 0.45); animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-x { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: var(--muted); }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, 0.4); border-radius: 999px; margin-bottom: 20px; width: max-content; }
.tabs button { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.tabs button.on { background: var(--light); color: #0b0b0d; font-weight: 600; }
.modal-box h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
#authForm { display: grid; gap: 14px; }
#authForm label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--light); color: #0b0b0d; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 34px var(--pad); color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot a:hover { color: var(--light); }

@media (max-width: 1060px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .top-nav { display: none; }
}
@media (max-width: 760px) {
  .steps, .cab-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .money-row { grid-template-columns: 1fr; }
  .chart { gap: 1px; height: 140px; }
  .top { gap: 10px; }
  .top-act .btn { padding: 0 12px; height: 36px; font-size: 13px; }
  .me-code { display: none; }
}
@media (max-width: 430px) {
  .pay-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .top-act .btn.ghost[data-guest] { display: none; }
}
