/* bstcrm.ru/referral — the partner programme, «premium» edition (02.10.2026).
   Colours stay BSTCRM's own night blue + gold (tariff.css); gold is an accent only: hairlines, figures, the one primary action.
   References: Linear (refero «midnight precision instrument»: hairlines instead of shadows, tight display tracking,
   one primary action per view, 8/12/24/96 rhythm) and Superhuman (refero «golden hour editorial»: editorial display
   voice, a warm glow band behind the hero, translucent floating cards). Display serif — Cormorant (Cyrillic, lining figures),
   body — Inter, figures — JetBrains Mono. Blocks after Flowbite: hero with visual, stats band, stepper, feature grid,
   FAQ accordion, CTA; app UI: sidebar dashboard, stat cards, tables with status pills, split sign-in. Dark only. */
:root {
  --bg: #070d1a; --bg-2: #0b1220; --surface: #0e1627; --surface-2: #141e34; --surface-3: #1a2642;
  --glass: rgba(14, 22, 39, .62); --glass-2: rgba(20, 30, 52, .55);
  --line: rgba(148, 170, 205, .12); --line-2: rgba(148, 170, 205, .22); --line-3: rgba(148, 170, 205, .34);
  --line-gold: rgba(217, 173, 99, .28); --line-gold-2: rgba(246, 220, 156, .5);
  --ink: #f1f4f9; --ink-2: #cfd8e6; --mute: #a3b1c6; --faint: #8794aa;
  --gold: #d9ad63; --gold-hi: #f6dc9c; --gold-lo: #9c7433; --gold-ink: #1a1206;
  --ok: #4fd09a; --blue: #94b5ff; --warn: #f0b35a; --bad: #f59a9a;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 9999px;
  --hair: inset 0 0 0 1px var(--line);
  --panel: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px var(--line), 0 24px 48px -24px rgba(0, 0, 0, .6);
  --panel-gold: inset 0 1px 0 rgba(255, 240, 210, .12), inset 0 0 0 1px var(--line-gold), 0 30px 60px -30px rgba(0, 0, 0, .75);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(120, 80, 20, .35), 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -10px rgba(217, 173, 99, .6);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px rgba(246, 220, 156, .85);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: radial-gradient(70% 50% at 50% -10%, rgba(40, 62, 110, .35), transparent 70%), var(--bg);
  color: var(--ink); font: 400 16px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
main { flex: 1; position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-hi); text-decoration-color: rgba(246, 220, 156, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
code, .p-mono { font-family: var(--mono); font-feature-settings: normal; }
.p-skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 16px; border-radius: var(--r-sm); background: var(--gold); color: var(--gold-ink); }
.p-skip:focus { left: 16px; }
.p-nowrap { white-space: nowrap; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* film grain over everything, very faint */
.p-grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  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 type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- type ---- */
.p-display { margin: 0; font: 600 clamp(42px, 6.2vw, 80px)/1.0 var(--serif); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
.p-display em, .p-h-lg em { font-style: italic; font-weight: 500; color: transparent; background: linear-gradient(100deg, var(--gold-hi) 10%, var(--gold) 55%, #f3d48f 90%); -webkit-background-clip: text; background-clip: text; }
.p-display em { display: block; margin-top: .18em; font-size: .62em; line-height: 1.08; }
.p-h-lg { margin: 0; font: 600 clamp(34px, 4.4vw, 56px)/1.04 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.p-h { margin: 0; font: 600 clamp(28px, 3vw, 36px)/1.1 var(--serif); }
.p-h-sm { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.p-sub { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.p-label { font-size: 13px; font-weight: 500; color: var(--mute); }
.p-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.p-eyebrow::before { content: ""; width: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.p-eyebrow--center { display: flex; justify-content: center; }
.p-eyebrow--center::after { content: ""; width: 20px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.p-lead { margin: 28px 0 36px; max-width: 600px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); }
.p-muted { color: var(--mute); }
.p-ink { color: var(--ink); }
.p-small { font-size: 13px; }
.p-note { margin: 16px 0 0; font-size: 14px; color: var(--mute); }
.p-meta { margin: 16px 0 0; font: 400 12px/1.6 var(--mono); color: var(--faint); }
.p-optional { margin-left: 8px; font-weight: 400; color: var(--faint); font-size: 12px; }
.p-plus { color: var(--gold-hi); } .p-ok { color: var(--ok); } .p-minus { color: var(--bad); }
.p-link { color: var(--mute); font-size: 14px; text-decoration: none; }
.p-link:hover { color: var(--ink); text-decoration: underline; }

/* ---- layout ---- */
.p-wrap { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.p-section { padding: clamp(80px, 10vw, 136px) 0 0; scroll-margin-top: 88px; }
.p-section--tight { padding-top: clamp(48px, 6vw, 80px); }
.p-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.p-head { max-width: 760px; }
.p-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.p-two .p-head .p-muted { margin: 20px 0 0; }

/* ---- reveal ---- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- surfaces ---- */
.p-card { position: relative; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 45%), var(--surface); box-shadow: var(--panel); }
.p-card--lg { padding: 32px; }
.p-glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.p-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 500 12px/18px var(--font); color: var(--mute); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.p-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.p-badge--count::before, .p-badge--glass::before { display: none; }
.p-badge--glass { color: var(--ink-2); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.p-badge--active, .p-badge--ok, .p-badge--paid, .p-badge--linked { color: var(--ok); background: rgba(79, 208, 154, .09); box-shadow: inset 0 0 0 1px rgba(79, 208, 154, .26); }
.p-badge--trial, .p-badge--connecting, .p-badge--processing, .p-badge--accrued { color: var(--blue); background: rgba(148, 181, 255, .09); box-shadow: inset 0 0 0 1px rgba(148, 181, 255, .26); }
.p-badge--requested, .p-badge--inquiry { color: var(--gold-hi); background: rgba(217, 173, 99, .09); box-shadow: inset 0 0 0 1px var(--line-gold); }
.p-badge--lapsed, .p-badge--void, .p-badge--canceled, .p-badge--rejected, .p-badge--failed { color: var(--faint); }

/* ---- navigation: floating glass pill ---- */
.p-nav-wrap { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; }
.p-nav { display: flex; align-items: center; gap: 16px; max-width: 1168px; margin: 0 auto; padding: 7px 7px 7px 18px; border-radius: var(--r-pill);
  background: rgba(10, 16, 30, .66); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--line), 0 12px 32px -16px rgba(0, 0, 0, .7); }
.p-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.p-brand span { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--gold); font: italic 600 17px/1 var(--serif); letter-spacing: 0; }
.p-nav__links { display: flex; gap: 2px; margin: 0 auto; }
.p-nav__links a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--mute); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, background-color .2s; }
.p-nav__links a:hover, .p-nav__links a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .06); }
.p-nav__cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.p-nav__cta form { margin: 0; }
.p-nav__who { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 14px; padding-right: 6px; }
.p-avatar { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 600 15px/1 var(--serif); color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }

/* ---- buttons ---- */
.p-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.p-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.p-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.p-btn--xl { height: 60px; padding: 0 34px; font-size: 16px; }
.p-btn--block { width: 100%; }
.p-btn--primary { color: var(--gold-ink); background: linear-gradient(180deg, #fae6b2, var(--gold) 70%, #c99a4e); box-shadow: var(--btn-shadow); font-weight: 600; }
.p-btn--primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow), 0 14px 36px -12px rgba(217, 173, 99, .7); }
.p-btn--primary:active { transform: translateY(0); }
.p-btn--primary span { transition: transform .2s var(--ease); }
.p-btn--primary:hover span { transform: translateX(3px); }
.p-btn--secondary { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line-2); }
.p-btn--secondary:hover { background: #22305180; background: #213052; }
.p-btn--ghost { color: var(--ink-2); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line-2); }
.p-btn--ghost:hover { color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-3); }
.p-btn--icon { gap: 8px; }
.p-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- hero ---- */
.p-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.p-hero__bg { position: absolute; inset: -120px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.p-aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.p-aurora--gold { width: 60%; height: 460px; right: -140px; top: 40px; background: radial-gradient(closest-side, rgba(217, 173, 99, .34), rgba(217, 173, 99, .08) 60%, transparent); }
.p-aurora--blue { width: 64%; height: 520px; left: -220px; top: 120px; background: radial-gradient(closest-side, rgba(70, 110, 210, .3), transparent 70%); }
.p-gridlines { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 170, 205, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 170, 205, .07) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 30%, #000 20%, transparent 75%); }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.p-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13px; color: var(--faint); }
.p-crumbs a { color: var(--mute); text-decoration: none; }
.p-crumbs a:hover { color: var(--ink); }
.p-crumbs [aria-current] { color: var(--gold); }
.p-assure { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--mute); }
.p-assure li { display: inline-flex; align-items: center; gap: 8px; }
.p-assure li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: rgba(79, 208, 154, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%234fd09a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: inset 0 0 0 1px rgba(79, 208, 154, .35); }

/* the partner «bank card» */
.p-hero__visual { position: relative; display: grid; gap: 18px; perspective: 1200px; }
.p-bankcard { position: relative; aspect-ratio: 1.586; padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(246, 220, 156, .28), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(80, 120, 220, .25), transparent 60%),
    linear-gradient(135deg, #1b2949 0%, #101a30 55%, #0b1324 100%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, .22), inset 0 0 0 1px rgba(246, 220, 156, .32), 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg); transform-origin: 60% 50%; transition: transform .8s var(--ease); }
.p-hero__visual:hover .p-bankcard { transform: rotateX(3deg) rotateY(-5deg); }
.p-bankcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px); }
.p-bankcard::after { content: ""; position: absolute; inset: -40% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); transform: translateX(-30%); animation: p-sheen 7s var(--ease) infinite; }
@keyframes p-sheen { 0%, 55% { transform: translateX(-40%); } 85%, 100% { transform: translateX(40%); } }
.p-bankcard__top, .p-bankcard__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-bankcard__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .06em; font-size: 14px; }
.p-bankcard__brand i { font: italic 600 18px/1 var(--serif); letter-spacing: 0; color: var(--gold-hi); }
.p-bankcard__chip { position: relative; width: 46px; height: 34px; }
.p-bankcard__code { position: relative; margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .22em; color: #f8f3e6; text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 18px rgba(246, 220, 156, .25); white-space: nowrap; }
.p-bankcard__bottom small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 244, 249, .6); }
.p-bankcard__bottom b { font: 600 clamp(20px, 2.2vw, 26px)/1.1 var(--serif); color: var(--gold-hi); white-space: nowrap; }
.p-bankcard__bottom b span { font: 400 12px var(--font); color: rgba(241, 244, 249, .7); }
.p-bankcard__sbp { text-align: right; }
.p-bankcard__sbp b { color: var(--ink); font-family: var(--font); font-size: 18px; letter-spacing: .08em; }
.p-ledger { position: relative; display: grid; gap: 0; margin: 0 0 0 clamp(0px, 3vw, 32px); padding: 8px; list-style: none; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--panel); }
.p-ledger li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 12px; }
.p-ledger li + li { box-shadow: 0 -1px 0 var(--line); }
.p-ledger b { display: block; font-weight: 500; font-size: 14px; }
.p-ledger small { color: var(--mute); font-size: 12.5px; }
.p-ledger .p-mono { font-size: 13px; }
.p-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 173, 99, .16), 0 0 12px rgba(217, 173, 99, .6); }
.p-dot--wait { background: var(--blue); box-shadow: 0 0 0 4px rgba(148, 181, 255, .14); }
.p-dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(79, 208, 154, .14); }

/* ---- facts band ---- */
.p-facts { position: relative; padding: 40px 0 0; }
.p-facts__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 8px 0 0; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); }
.p-fact { display: grid; align-content: start; gap: 10px; padding: 26px 22px 28px; box-shadow: -1px 0 0 var(--line); }
.p-fact dt { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.p-fact dd { display: grid; gap: 6px; margin: 0; }
.p-fact strong { font: 600 clamp(28px, 2.6vw, 38px)/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.p-fact strong small { font: 400 13px var(--font); color: var(--mute); margin-left: 2px; }
.p-fact dd { min-width: 0; }
.p-fact--word strong { white-space: normal; font-size: clamp(24px, 2vw, 30px); line-height: 1.05; text-wrap: balance; }
.p-fact dd > span { color: var(--mute); font-size: 13.5px; line-height: 1.45; }
.p-fact--gold { background: radial-gradient(120% 120% at 0% 0%, rgba(217, 173, 99, .14), transparent 60%); }
.p-fact--gold strong { color: var(--gold-hi); }

/* ---- steps (stepper) ---- */
.p-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: s; }
.p-steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: linear-gradient(90deg, var(--line-gold-2), var(--line-gold) 50%, transparent); }
.p-step-card { position: relative; padding: 0 8px 0 0; }
.p-step { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%; font: 500 13px/1 var(--mono); color: var(--gold-hi);
  background: radial-gradient(circle at 30% 25%, #22314f, #0d1628); box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 0 6px var(--bg), 0 0 30px -6px rgba(217, 173, 99, .45); }
.p-step-card p, .p-feature p { margin: 10px 0 0; color: var(--mute); font-size: 15px; }

/* ---- calculator widget ---- */
.p-calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.p-calc__copy .p-muted { margin: 20px 0 0; max-width: 440px; }
.p-widget { position: relative; display: grid; gap: 22px; padding: 28px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(90% 70% at 100% 0%, rgba(217, 173, 99, .12), transparent 60%), linear-gradient(180deg, #121c32, #0c1426); box-shadow: var(--panel-gold); }
.p-widget__head { display: flex; justify-content: space-between; align-items: center; }
.p-range { display: grid; gap: 12px; }
.p-range span { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.p-range output { min-width: 44px; padding: 3px 10px; border-radius: var(--r-pill); text-align: center; font: 500 14px var(--mono); color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.p-range input { --fill: 50%; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.p-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--fill), rgba(148, 170, 205, .2) var(--fill)); }
.p-range input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(148, 170, 205, .2); }
.p-range input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.p-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gold-hi) 40%, var(--gold)); box-shadow: 0 0 0 4px rgba(217, 173, 99, .2), 0 2px 6px rgba(0, 0, 0, .5); }
.p-range input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 173, 99, .2); }
.p-range input:focus-visible { box-shadow: none; }
.p-range input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.p-widget__result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.p-widget__result > div { display: grid; gap: 6px; }
.p-widget__result strong { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-widget__total strong { font-size: clamp(30px, 3.6vw, 44px); color: var(--gold-hi); text-shadow: 0 0 30px rgba(217, 173, 99, .3); }
.p-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.p-bars i { flex: 1 1 0; min-width: 2px; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--gold-hi), rgba(217, 173, 99, .25)); opacity: .85; transition: height .4s var(--ease); }
.p-widget__foot { margin: 0; }

/* ---- feature grid ---- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.p-feature { position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 50%), var(--surface); box-shadow: var(--panel); transition: transform .3s var(--ease), box-shadow .3s; }
.p-feature:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line-gold), 0 30px 50px -28px rgba(0, 0, 0, .8); }
.p-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: linear-gradient(180deg, rgba(217, 173, 99, .14), rgba(217, 173, 99, .04)); box-shadow: inset 0 0 0 1px var(--line-gold); }
.p-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- checklist ---- */
.p-checklist { display: grid; gap: 0; margin: 0; padding: 6px 24px; list-style: none; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-checklist li { position: relative; padding: 18px 0 18px 40px; color: var(--mute); font-size: 15px; }
.p-checklist li + li { box-shadow: 0 -1px 0 var(--line); }
.p-checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(217, 173, 99, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.3l2.8 2.8 5.4-6' fill='none' stroke='%23f6dc9c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: inset 0 0 0 1px var(--line-gold); }
.p-checklist b { color: var(--ink); font-weight: 500; }

/* ---- FAQ accordion ---- */
.p-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.p-faq__aside { position: sticky; top: 104px; }
.p-faq__aside .p-muted { margin: 20px 0 0; }
.p-faq__list { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); padding: 4px 0; }
.p-faq__item + .p-faq__item { box-shadow: 0 -1px 0 var(--line); }
.p-faq__item summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 12px; align-items: center; list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 500; font-size: 16.5px; border-radius: var(--r-lg); }
.p-faq__item summary::-webkit-details-marker { display: none; }
.p-faq__item summary:hover .p-faq__q { color: var(--gold-hi); }
.p-faq__n { font-size: 12px; color: var(--faint); }
.p-faq__q { transition: color .2s; }
.p-faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .3s var(--ease), box-shadow .3s; }
.p-faq__icon::before, .p-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--mute); transition: transform .3s var(--ease); }
.p-faq__icon::after { transform: rotate(90deg); }
.p-faq__item[open] .p-faq__icon { transform: rotate(180deg); box-shadow: inset 0 0 0 1px var(--line-gold-2); }
.p-faq__item[open] .p-faq__icon::after { transform: rotate(0); }
.p-faq__item[open] .p-faq__icon::before, .p-faq__item[open] .p-faq__icon::after { background: var(--gold-hi); }
.p-faq__a { padding: 0 24px 22px 68px; }
.p-faq__a p { margin: 0; color: var(--mute); max-width: 640px; }
.p-faq__item[open] .p-faq__a { animation: p-open .35s var(--ease); }
@keyframes p-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---- CTA ---- */
.p-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #142140, #0b1324 70%); box-shadow: var(--panel-gold); }
.p-cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 90% 10%, rgba(217, 173, 99, .3), transparent 70%), radial-gradient(40% 80% at 0% 100%, rgba(70, 110, 210, .25), transparent 70%); }
.p-cta__glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(246, 220, 156, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 220, 156, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 100% at 90% 0%, #000, transparent 70%); mask-image: radial-gradient(60% 100% at 90% 0%, #000, transparent 70%); }
.p-cta__copy .p-muted { margin: 18px 0 0; max-width: 560px; }
.p-cta__act { display: grid; justify-items: center; gap: 14px; }

/* ---- forms ---- */
.p-form { display: grid; gap: 18px; margin-top: 28px; }
.p-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.p-field { display: grid; gap: 8px; align-content: start; }
.p-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.p-field__aside { font-size: 13px; font-weight: 500; }
.p-field__msg { min-height: 0; margin: -2px 0 0; font-size: 12.5px; color: var(--bad); }
.p-field__msg:empty { display: none; }
.p-field__hint { margin: -2px 0 0; font-size: 12.5px; color: var(--faint); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r); font: 400 16px/1.4 var(--font); color: var(--ink);
  background: rgba(7, 13, 26, .55); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 2px rgba(0, 0, 0, .35); transition: box-shadow .2s, background-color .2s; }
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a3b1c6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 14px center; background-size: 12px; background-repeat: no-repeat; }
select option { background: var(--bg-2); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6f7c93; }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 2px rgba(0, 0, 0, .35); }
input:focus-visible, select:focus-visible, textarea:focus-visible { background-color: rgba(7, 13, 26, .8); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(217, 173, 99, .18); border-radius: var(--r); }
input[aria-invalid=true], select[aria-invalid=true] { box-shadow: inset 0 0 0 1px rgba(245, 154, 154, .7), 0 0 0 4px rgba(245, 154, 154, .12); }
input[readonly] { color: var(--ink-2); }
.p-pass { position: relative; }
.p-pass input { padding-right: 52px; }
.p-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 36px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute); cursor: pointer; }
.p-pass button:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.p-pass svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.p-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--mute); cursor: pointer; }
.p-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.p-alert { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding: 13px 16px; border-radius: var(--r); font-size: 14px; color: var(--ink); background: rgba(79, 208, 154, .08); box-shadow: inset 0 0 0 1px rgba(79, 208, 154, .28); }
.p-alert::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.p-alert--error { background: rgba(245, 154, 154, .08); box-shadow: inset 0 0 0 1px rgba(245, 154, 154, .35); }
.p-alert--error::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

/* ---- auth pages: split layout ---- */
.p-auth-page .p-foot { margin-top: 64px; }
.p-section--auth { padding-top: clamp(28px, 4vw, 48px); }
.p-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 640px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--panel-gold); background: var(--surface); }
.p-split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1040px; margin: 0 auto; }
.p-split__brand { position: relative; display: flex; flex-direction: column; gap: 28px; padding: clamp(32px, 4vw, 52px); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #16244a, #0b1324 65%); box-shadow: inset -1px 0 0 var(--line-gold); }
.p-split__brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 100% 0%, rgba(217, 173, 99, .3), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(70, 110, 210, .3), transparent 70%); }
.p-split__brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(246, 220, 156, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 220, 156, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.p-split__brand .p-h { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; }
.p-split__brand .p-bankcard { transform: none; max-width: 400px; margin-top: auto; }
.p-split__brand .p-checklist { padding: 0; background: none; box-shadow: none; }
.p-split__brand .p-checklist li { padding: 12px 0 12px 36px; font-size: 14px; }
.p-split__brand .p-checklist li::before { top: 12px; }
.p-split__brand .p-meta { margin-top: 0; }
.p-split__form { padding: clamp(32px, 4vw, 56px); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 30%), var(--surface); }
.p-split__form .p-muted { margin: 10px 0 0; }
.p-split__form .p-h { margin-top: 2px; }
.p-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.p-divider::before, .p-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- cabinet: sidebar dashboard ---- */
.p-cabinet .p-nav__links { display: none; }
.p-cab { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: clamp(28px, 4vw, 44px); }
.p-side { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; }
.p-side__title { margin: 0 0 10px 12px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.p-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--mute); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, background-color .2s; }
.p-side a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.p-side a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.p-side a[aria-current=true] { color: var(--ink); background: linear-gradient(90deg, rgba(217, 173, 99, .14), rgba(217, 173, 99, .02)); box-shadow: inset 2px 0 0 var(--gold); }
.p-side a[aria-current=true] svg { stroke: var(--gold-hi); }
.p-side__card { margin-top: 20px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .025); box-shadow: var(--hair); font-size: 13px; color: var(--mute); }
.p-side__card a { display: inline; padding: 0; color: var(--gold-hi); background: none; font-size: 13px; }
.p-side__card a:hover { background: none; text-decoration: underline; }
.p-side__card b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.p-cab__main { min-width: 0; }
.p-cab__head { scroll-margin-top: 96px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.p-cab__head .p-muted { margin: 12px 0 0; max-width: 620px; }
.p-cab__head .p-eyebrow { margin-bottom: 12px; }
.p-cab__main > .p-alert { margin: 0 0 20px; }
.p-cab__hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
/* balance hero card */
.p-balance { position: relative; display: grid; gap: 24px; padding: 28px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 90% at 100% 0%, rgba(246, 220, 156, .2), transparent 55%), radial-gradient(70% 80% at 0% 100%, rgba(80, 120, 220, .22), transparent 60%), linear-gradient(135deg, #1a2848, #0d1629 70%);
  box-shadow: var(--panel-gold); }
.p-balance::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .02) 22px 23px); }
.p-balance__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-balance__label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 244, 249, .65); }
.p-balance__amount { margin: 6px 0 0; font: 600 clamp(44px, 5.4vw, 68px)/1 var(--serif); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; text-shadow: 0 0 40px rgba(217, 173, 99, .25); }
.p-balance__sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.p-balance__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.p-balance__row > div { display: grid; gap: 4px; padding: 14px 16px; background: rgba(9, 15, 28, .72); }
.p-balance__row small { font-size: 12px; color: var(--mute); }
.p-balance__row b { font: 500 18px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.p-balance__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-pending { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--mute); }
.p-pending li { display: flex; justify-content: space-between; gap: 8px; }
.p-pending li .p-mono { color: var(--ink-2); }
/* share card */
.p-share { display: grid; gap: 18px; align-content: start; }
.p-share__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.p-share__top .p-eyebrow { margin: 0; white-space: nowrap; }
.p-keys { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0; }
.p-key { display: inline-grid; place-items: center; flex: 1 1 0; min-width: 0; max-width: 42px; height: 50px; border-radius: 10px; font: 500 20px/1 var(--mono); color: var(--ink);
  background: linear-gradient(180deg, #1f2d4c, #131c31); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px var(--line-2), inset 0 -3px 0 rgba(0, 0, 0, .5); }
.p-key:nth-child(4) { margin-right: 6px; }
.p-share__qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.p-qr { margin: 0; padding: 8px; border-radius: 16px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 10px 30px -12px rgba(217, 173, 99, .5); }
.p-qr__img { padding: 8px; border-radius: 10px; background: #fff; }
.p-qr__img svg { display: block; width: 100%; height: auto; }
.p-share__qr .p-meta { margin: 0; }
.p-copy__row { display: flex; gap: 8px; }
.p-copy__row input { min-width: 0; font-family: var(--mono); font-size: 13.5px; min-height: 44px; }
.p-copy__row .p-btn { height: 44px; }
.p-share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* stat tiles + chart */
.p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 16px; margin-top: 20px; }
.p-tile { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-tile strong { font: 600 40px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.p-tile small { color: var(--faint); font-size: 12.5px; }
.p-chart { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.p-chart__head b { font: 500 15px var(--mono); color: var(--gold-hi); white-space: nowrap; }
.p-chart__head b span { font-family: var(--font); }
.p-chart__bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 96px; margin: 0; padding: 0; list-style: none; }
.p-chart__bars li { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.p-chart__bar { align-self: end; height: max(var(--h), 3px); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(148, 181, 255, .55), rgba(148, 181, 255, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.p-chart__bars li.is-now .p-chart__bar { background: linear-gradient(180deg, var(--gold-hi), rgba(217, 173, 99, .25)); box-shadow: 0 0 20px -4px rgba(217, 173, 99, .5); }
.p-chart__bars small { font-size: 11.5px; color: var(--faint); }
.p-section--cab { padding-top: 56px; scroll-margin-top: 96px; }
.p-section--cab > .p-section__head .p-h-sm { font: 600 28px/1.1 var(--serif); letter-spacing: 0; }
.p-two--cab { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* tables */
.p-table-card { padding: 4px 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { padding: 14px 24px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.p-table td { padding: 15px 24px; border-bottom: 1px solid rgba(148, 170, 205, .07); color: var(--ink-2); vertical-align: middle; }
.p-table tbody tr { transition: background-color .15s; }
.p-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.p-table tr:last-child td { border-bottom: 0; }
.p-table b { color: var(--ink); font-weight: 500; }
.p-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.p-co { display: inline-flex; align-items: center; gap: 12px; }
.p-co i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font: 600 16px/1 var(--serif); font-style: normal; color: var(--gold-hi); background: rgba(217, 173, 99, .1); box-shadow: inset 0 0 0 1px var(--line-gold); }
.p-empty { padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-empty p { margin: 0; color: var(--mute); }
.p-empty b { color: var(--ink); font-weight: 500; }
.p-empty--inline { margin-top: 24px; padding: 18px; border-radius: var(--r); background: rgba(255, 255, 255, .02); box-shadow: var(--hair); }
/* payout sheet: numbered steps */
.p-sheet { padding: 30px; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), var(--surface); box-shadow: var(--panel-gold); }
.p-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-sheet__avail { text-align: right; }
.p-sheet__avail small { display: block; font-size: 12px; color: var(--mute); }
.p-sheet__avail b { font: 600 30px/1 var(--serif); color: var(--gold-hi); white-space: nowrap; }
.p-stepper { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: st; }
.p-stepper > li { position: relative; display: grid; gap: 12px; padding: 0 0 22px 44px; counter-increment: st; }
.p-stepper > li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 500 12px/1 var(--mono); color: var(--gold-hi); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-gold); }
.p-stepper > li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: linear-gradient(180deg, var(--line-gold), var(--line)); }
.p-stepper > li:last-child { padding-bottom: 0; }
.p-stepper > li:last-child::after { display: none; }
.p-stepper__title { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink); line-height: 28px; }
.p-amount { position: relative; }
.p-amount input { padding-right: 44px; font: 500 22px/1.2 var(--mono); }
.p-amount::after { content: "₽"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 18px; }
.p-list { display: grid; gap: 0; margin: 0; padding: 4px 0; list-style: none; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--panel); }
.p-list__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.p-list__item + .p-list__item { box-shadow: 0 -1px 0 var(--line); }
.p-list__item div { display: grid; gap: 4px; min-width: 0; }
.p-list__item b { font-size: 16px; color: var(--ink); }
.p-cab .p-section__head { margin-bottom: 16px; }

/* ---- toast ---- */
.p-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink);
  background: rgba(20, 30, 52, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-gold), 0 20px 40px -12px rgba(0, 0, 0, .7);
  transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s var(--ease); }
.p-toast::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%23062016' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.p-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- footer ---- */
.p-foot { position: relative; z-index: 1; margin-top: clamp(96px, 11vw, 140px); padding: 36px 0 44px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.p-foot__grid { display: grid; gap: 18px; }
.p-foot__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .04em; }
.p-foot__brand small { color: var(--gold); font: italic 600 16px/1 var(--serif); letter-spacing: 0; }
.p-foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.p-foot__nav a { color: var(--mute); text-decoration: none; }
.p-foot__nav a:hover { color: var(--ink); }
.p-foot .p-meta { margin: 0; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-nav__links { display: none; }
  .p-facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-fact:nth-child(n+4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .p-cab { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .p-side { position: sticky; top: 72px; z-index: 10; display: flex; gap: 4px; margin: 0 -24px 8px; padding: 10px 24px; overflow-x: auto; scrollbar-width: none;
    background: rgba(7, 13, 26, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .p-side::-webkit-scrollbar { display: none; }
  .p-side__title, .p-side__card { display: none; }
  .p-side a { flex: none; padding: 8px 14px; border-radius: var(--r-pill); }
  .p-side a[aria-current=true] { box-shadow: inset 0 0 0 1px var(--line-gold); background: rgba(217, 173, 99, .1); }
  .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-chart { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .p-hero__grid, .p-two, .p-calc, .p-two--cab, .p-faq, .p-cab__hero, .p-split, .p-split--narrow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .p-split, .p-split--narrow { gap: 0; }
  .p-split__brand { box-shadow: inset 0 -1px 0 var(--line-gold); }
  .p-split__brand .p-bankcard { display: none; }
  .p-faq__aside { position: static; }
  .p-hero__visual { max-width: 520px; }
  .p-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-steps::before { left: 28px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-gold-2), transparent); }
  .p-step-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .p-step-card .p-step { grid-row: span 2; margin: 0; }
  .p-step-card p { margin-top: 6px; }
  .p-cta { grid-template-columns: minmax(0, 1fr); }
  .p-cta__act { justify-items: start; }
}
@media (max-width: 600px) {
  .p-wrap { padding: 0 16px; }
  .p-nav-wrap { padding: 8px 8px 0; }
  .p-nav { gap: 8px; padding: 6px 6px 6px 14px; }
  .p-brand span, .p-hide-xs { display: none; }
  .p-display { font-size: 40px; }
  .p-display em { font-size: .7em; }
  .p-card, .p-widget, .p-sheet, .p-balance { padding: 22px 18px; }
  .p-card--lg { padding: 24px 18px; }
  .p-grid, .p-form__row { grid-template-columns: minmax(0, 1fr); }
  .p-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-fact { padding: 20px 16px; }
  .p-fact:nth-child(n+3) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .p-fact strong { font-size: 30px; }
  .p-fact--word strong { font-size: 24px; }
  .p-actions .p-btn { flex: 1 1 100%; }
  .p-bankcard { transform: none; }
  .p-ledger { margin-left: 0; }
  .p-widget__result { grid-template-columns: minmax(0, 1fr); }
  .p-faq__item summary { grid-template-columns: minmax(0, 1fr) 28px; padding: 18px; font-size: 15.5px; }
  .p-faq__n { display: none; }
  .p-faq__a { padding: 0 18px 20px; }
  .p-side { margin: 0 -16px 8px; padding: 10px 16px; }
  .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .p-tile { padding: 16px 14px; }
  .p-tile strong { font-size: 32px; }
  .p-balance__row { grid-template-columns: minmax(0, 1fr); }
  .p-balance__row > div { display: flex; justify-content: space-between; align-items: baseline; }
  .p-copy__row { flex-direction: column; }
  .p-share__qr { grid-template-columns: 96px minmax(0, 1fr); }
  .p-key { height: 44px; font-size: 18px; }
  .p-split__form, .p-split__brand { padding: 26px 18px; }
  .p-sheet__head { flex-direction: column; }
  .p-sheet__avail { text-align: left; }
  .p-stepper > li { padding-left: 40px; }
  /* tables become stacked cards: no horizontal scroll at 390px */
  .p-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-table, .p-table tbody, .p-table tr, .p-table td { display: block; width: 100%; }
  .p-table tr { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .p-table tr:last-child { border-bottom: 0; }
  .p-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
  .p-table td::before { content: attr(data-label); color: var(--faint); font: 400 12.5px var(--font); text-align: left; }
  .p-cab__main { padding-top: 16px; }
  .p-stats .p-label { font-size: 12px; }
  .p-list__item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.p-h em, .p-gold-em { font-style: italic; font-weight: 500; color: transparent; background: linear-gradient(100deg, var(--gold-hi) 10%, var(--gold) 60%); -webkit-background-clip: text; background-clip: text; }
/* Cormorant's default figures are old-style; money reads better with lining figures (after every «font:» shorthand, which resets it) */
[class^="p-"], [class*=" p-"], .p-display em, .p-h-lg em, .p-h em { font-variant-numeric: lining-nums; }
.p-display, .p-h-lg, .p-h, .p-bankcard__bottom b, .p-fact strong, .p-tile strong, .p-balance__amount, .p-sheet__avail b, .p-brand span, .p-co i { font-variant-numeric: lining-nums tabular-nums; }
/* Tiers and the second level (02.10.2026): the rate grows with every ten paying own customers; partners you recruited */
.p-rate { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.p-rate b { font: 500 17px var(--mono); color: var(--gold-hi); }
.p-tier { display: grid; gap: 18px; align-content: start; }
.p-tier__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.p-tier__rate { display: grid; justify-items: end; gap: 2px; margin: 0; }
.p-tier__rate b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; color: var(--gold-hi); white-space: nowrap; text-shadow: 0 0 28px rgba(217, 173, 99, .3); }
.p-tier__rate small { color: var(--faint); font-size: 12.5px; }
.p-tier__bar { height: 8px; border-radius: var(--r-pill); background: rgba(148, 170, 205, .14); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.p-tier__bar span { display: block; width: max(var(--w), 4px); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); box-shadow: 0 0 16px rgba(217, 173, 99, .45); }
.p-tier__next { margin: -6px 0 0; font-size: 14px; color: var(--mute); }
.p-tier__next b { color: var(--ink); font-weight: 600; }
.p-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.p-tiers li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.p-tiers li span { font-size: 12px; color: var(--faint); }
.p-tiers li b { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.p-tiers li.is-now { background: radial-gradient(120% 140% at 0% 0%, rgba(217, 173, 99, .18), transparent 70%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-gold-2); }
.p-tiers li.is-now b { color: var(--gold-hi); }
.p-level { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 600 12px var(--mono); color: var(--gold-ink); background: var(--gold-hi); }
.p-level--2 { color: var(--blue); background: rgba(148, 181, 255, .12); box-shadow: inset 0 0 0 1px rgba(148, 181, 255, .4); }
/* /referral: the ladder of rates and the two levels */
.p-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 0; padding: 0; list-style: none; }
.p-ladder li { display: grid; gap: 8px; align-content: end; text-align: center; }
.p-ladder__bar { height: var(--h); min-height: 36px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, rgba(246, 220, 156, .5), rgba(217, 173, 99, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px var(--line-gold); display: grid; place-items: start center; padding-top: 10px; }
.p-ladder__bar b { font: 500 15px var(--mono); color: var(--ink); white-space: nowrap; }
.p-ladder li small { font-size: 12.5px; color: var(--mute); }
.p-ladder li:last-child .p-ladder__bar { background: linear-gradient(180deg, var(--gold-hi), rgba(217, 173, 99, .2)); box-shadow: 0 0 30px -6px rgba(217, 173, 99, .55), inset 0 0 0 1px var(--line-gold-2); }
.p-ladder li:last-child .p-ladder__bar b { color: var(--gold-ink); }
.p-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.p-levels .p-card { display: grid; gap: 10px; align-content: start; }
.p-levels .p-card p { margin: 0; color: var(--mute); font-size: 14.5px; }
.p-levels strong { font: 600 clamp(26px, 2.6vw, 34px)/1 var(--serif); color: var(--gold-hi); }
.p-calc__rate { margin: 0; font-size: 13.5px; color: var(--mute); }
.p-calc__rate b { color: var(--gold-hi); font-family: var(--mono); font-weight: 500; }
@media (max-width: 900px) { .p-levels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .p-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .p-ladder__bar { height: calc(var(--h) * .45); }
  .p-tier__head { flex-direction: column; }
  .p-tier__rate { justify-items: start; }
}
/* guides /referral/<slug> (05.10.2026) */
.p-hero--guide .p-display { max-width: 920px; }
.p-hero--guide .p-lead { max-width: 760px; }
.p-guide__def { max-width: 760px; margin: 22px 0 0; }
.p-guide .p-checklist b { color: var(--gold-hi); }
.p-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.p-guides a { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.p-guides a:hover { transform: translateY(-2px); box-shadow: var(--panel), 0 0 0 1px rgba(217, 173, 99, .35); }
.p-guides a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.p-guides .p-label { font: 500 11px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.p-guides strong { font: 600 clamp(22px, 2vw, 26px)/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.p-guides p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
.p-guides__more { color: var(--gold-hi); font-size: 14px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .p-guides a { transition: none; } .p-guides a:hover { transform: none; } }
