:root {
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f4f6fa;
  --page-deep: #e9edf4;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --surface-2: #f1f4f8;
  --surface-3: #e9edf3;
  --text: #141821;
  --muted: #697181;
  --soft: #9299a6;
  --line: rgba(22, 29, 40, .1);
  --line-strong: rgba(22, 29, 40, .17);
  --red: #ef233c;
  --red-deep: #c8102e;
  --green: #00aa55;
  --green-deep: #08783f;
  --gold: #f5bb22;
  --cyan: #16bde9;
  --navy: #111620;
  --success-bg: #e7f8ef;
  --danger-bg: #ffeaee;
  --shadow: 0 22px 70px rgba(23, 32, 49, .12);
  --shadow-sm: 0 10px 30px rgba(23, 32, 49, .09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sidebar: 272px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page: #070a0f;
  --page-deep: #0c1017;
  --surface: rgba(17, 23, 33, .84);
  --surface-solid: #111721;
  --surface-2: #171e29;
  --surface-3: #202936;
  --text: #f7f8fb;
  --muted: #9ca6b6;
  --soft: #6f7a8c;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --success-bg: rgba(0, 170, 85, .13);
  --danger-bg: rgba(239, 35, 60, .13);
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, .24);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --page: #070a0f;
    --page-deep: #0c1017;
    --surface: rgba(17, 23, 33, .84);
    --surface-solid: #111721;
    --surface-2: #171e29;
    --surface-3: #202936;
    --text: #f7f8fb;
    --muted: #9ca6b6;
    --soft: #6f7a8c;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --success-bg: rgba(0, 170, 85, .13);
    --danger-bg: rgba(239, 35, 60, .13);
    --shadow: 0 28px 90px rgba(0, 0, 0, .34);
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, .24);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); font-family: var(--font-display); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 75%); opacity: .35; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.icon { width: 21px; height: 21px; fill: none; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--page); color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; transition: opacity .45s ease, visibility .45s ease; }
.site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-orbit { width: 88px; height: 88px; display: grid; place-items: center; position: relative; }
.loader-orbit::before, .loader-orbit::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-top-color: var(--red); border-radius: 50%; animation: orbit 1.2s linear infinite; }
.loader-orbit::after { inset: 9px; border-top-color: var(--green); animation-direction: reverse; animation-duration: 1.6s; }
.loader-orbit img { width: 48px; filter: drop-shadow(0 10px 18px rgba(239,35,60,.22)); animation: logo-breathe 1.6s ease-in-out infinite; }

.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .08; z-index: -1; }
.ambient-one { background: var(--red); top: -150px; right: -90px; }
.ambient-two { background: var(--green); bottom: -180px; left: 16%; }

.animated-mark { animation: logo-float 4.5s ease-in-out infinite; transform-origin: center; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 50; display: flex; flex-direction: column; padding: 28px 20px 22px; color: #f7f8fb; background: linear-gradient(165deg, #111722 0%, #080b10 70%); border-right: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; left: -100px; top: -100px; border-radius: 50%; background: var(--red); filter: blur(100px); opacity: .14; }
.sidebar-brand { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 7px 30px; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(239,35,60,.25)); }
.sidebar-brand span { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand em { color: var(--red); font-size: 14px; font-style: normal; font-weight: 850; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 0 15px; border-radius: 15px; color: #aeb7c5; font-weight: 700; transition: .25s ease; }
.nav-link::before { content: ""; position: absolute; left: 0; width: 3px; height: 22px; border-radius: 9px; background: var(--red); transform: scaleY(0); transition: .25s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-link.is-active { color: #fff; background: linear-gradient(90deg, rgba(239,35,60,.17), rgba(239,35,60,.05)); }
.nav-link.is-active::before { transform: scaleY(1); }
.nav-link.is-active .icon { color: var(--red); filter: drop-shadow(0 0 10px rgba(239,35,60,.45)); }
.sidebar-trust { margin-top: auto; display: flex; gap: 11px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(255,255,255,.035); }
.trust-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: rgba(0,170,85,.12); }
.trust-icon .icon { width: 18px; }
.sidebar-trust strong, .sidebar-trust small { display: block; }
.sidebar-trust strong { font-size: 11px; }
.sidebar-trust small { margin-top: 3px; color: #7f8a9a; font-size: 10px; line-height: 1.35; }
.sidebar-profile { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.06); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--red), #7b1325); font-weight: 900; box-shadow: 0 8px 20px rgba(239,35,60,.2); }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { font-size: 12px; }
.sidebar-profile small { color: #7d8796; font-size: 10px; }

.app-main { min-height: calc(100vh - 112px); margin-left: var(--sidebar); padding: 30px clamp(24px, 4vw, 64px) 70px; }
.desktop-topbar { max-width: 1320px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.desktop-topbar h1 { margin: 3px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.desktop-actions, .header-actions { display: flex; align-items: center; gap: 10px; }
.balance-pill { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); backdrop-filter: blur(14px); font-weight: 850; box-shadow: var(--shadow-sm); }
.balance-pill .icon { color: var(--green); }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); cursor: pointer; transition: .2s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.icon-button .theme-moon, html[data-theme="dark"] .icon-button .theme-sun { display: none; }
html[data-theme="dark"] .icon-button .theme-moon { display: block; }

.mobile-header { display: none; }
.mobile-drawer[hidden] { display: none; }
.drawer-backdrop { position: fixed; inset: 0; border: 0; background: rgba(2,5,10,.68); backdrop-filter: blur(5px); }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 370px); padding: 24px; color: #fff; background: #0c1119; box-shadow: -25px 0 70px rgba(0,0,0,.35); animation: slide-left .28s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-panel > a { display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; gap: 11px; padding: 16px 4px; color: #b8c0cd; border-bottom: 1px solid rgba(255,255,255,.07); font-weight: 750; }
.drawer-panel > a:hover { color: #fff; }
.drawer-panel > a .icon:last-child { width: 16px; }
.drawer-panel .danger-link { color: #ff6a7d; }

.content-grid, .dashboard-grid, .page-stack, .legal-shell { width: min(100%, 1320px); margin-inline: auto; }
.page-stack { display: grid; gap: 22px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 22px; }
.span-full { grid-column: 1 / -1; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: clamp(20px, 3vw, 30px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-head h2, .card-head h3 { margin: 0; letter-spacing: -.025em; }
.card-head h2 { font-size: 22px; }
.card-head h3 { font-size: 17px; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.hero-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(25px, 4vw, 42px); color: #fff; background: linear-gradient(125deg, rgba(15,20,29,.97), rgba(26,21,29,.95)); border-color: rgba(255,255,255,.08); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -140px; top: -170px; background: var(--red); filter: blur(85px); opacity: .18; z-index: -1; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 55%, rgba(0,170,85,.17), transparent 24%), linear-gradient(115deg, transparent 55%, rgba(255,255,255,.03)); z-index: -1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; background: rgba(255,255,255,.045); color: #b9c1cd; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(0,170,85,.12); animation: pulse-dot 2s ease infinite; }
.hero-card h2 { max-width: 650px; margin: 20px 0 10px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.055em; }
.hero-card h2 span { color: var(--red); }
.hero-card p { max-width: 620px; margin: 0; color: #aeb7c4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-orbit { position: absolute; right: clamp(20px, 5vw, 70px); top: 50%; width: 170px; aspect-ratio: 1; transform: translateY(-50%); opacity: .8; }
.hero-orbit img { width: 100%; filter: drop-shadow(0 28px 35px rgba(0,0,0,.35)); animation: logo-float 5s ease-in-out infinite; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: -16px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; animation: orbit 14s linear infinite; }
.hero-orbit::after { inset: -34px; border-color: rgba(239,35,60,.18); animation-direction: reverse; animation-duration: 22s; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; line-height: 1; cursor: pointer; transition: .23s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 13px 28px rgba(239,35,60,.23); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(239,35,60,.32); }
.button-success { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-deep)); box-shadow: 0 13px 28px rgba(0,170,85,.2); }
.button-ghost { border-color: var(--line); background: var(--surface); }
.button-dark { color: #fff; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.07); }
.button-small { min-height: 40px; padding-inline: 14px; border-radius: 12px; font-size: 12px; }
.button-block { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { padding: 20px; }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 20px; color: var(--red); background: var(--danger-bg); }
.stat-icon.green { color: var(--green); background: var(--success-bg); }
.stat-icon.gold { color: #ba8200; background: rgba(245,187,34,.13); }
.stat-card strong, .stat-card small { display: block; }
.stat-card strong { font-size: 21px; letter-spacing: -.025em; }
.stat-card small { margin-top: 5px; color: var(--muted); }
.package-empty { min-height: 270px; display: grid; place-items: center; padding: 30px; text-align: center; }
.package-empty .empty-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 17px; border: 1px dashed var(--line-strong); border-radius: 22px; color: var(--red); background: var(--surface-2); }
.package-empty .empty-icon .icon { width: 29px; height: 29px; }
.package-empty h3 { margin: 0 0 7px; font-size: 20px; }
.package-empty p { max-width: 310px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; }
.active-plan-card { min-height: 270px; padding: 28px; color: #fff; background: linear-gradient(145deg, #111722, #111a16); }
.active-plan-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -120px; border-radius: 50%; background: var(--green); filter: blur(65px); opacity: .2; }
.active-plan-card .plan-badge { color: #86e8ae; background: rgba(0,170,85,.14); }
.active-plan-card h3 { margin: 22px 0 5px; font-size: 34px; }
.active-plan-card p { color: #9cabb5; }
.plan-meter { height: 7px; margin: 23px 0 11px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.1); }
.plan-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #54e894); }
.meter-labels { display: flex; justify-content: space-between; color: #9cabb5; font-size: 11px; }
.quick-list { display: grid; gap: 10px; }
.quick-link { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); transition: .2s ease; }
.quick-link:hover { transform: translateX(3px); border-color: var(--line-strong); }
.quick-link > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: var(--success-bg); }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 13px; }
.quick-link small { color: var(--muted); font-size: 11px; }
.quick-link > .icon { width: 15px; color: var(--soft); }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-intro h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.045em; }
.section-intro p { max-width: 640px; margin: 7px 0 0; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan-card { padding: 25px; overflow: visible; }
.plan-card.featured { color: #fff; background: linear-gradient(150deg, #141a25, #141a1d); border-color: rgba(245,187,34,.32); transform: translateY(-8px); }
.featured-label { position: absolute; top: -12px; right: 20px; padding: 6px 11px; border-radius: 99px; color: #17120a; background: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 9px 24px rgba(245,187,34,.25); }
.plan-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; color: var(--red); background: var(--danger-bg); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { margin: 18px 0 8px; font-size: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.plan-price strong { font-size: 33px; letter-spacing: -.05em; }
.plan-price span { color: var(--muted); font-size: 12px; }
.featured .plan-price span, .featured .plan-copy, .featured .plan-features { color: #9da8b7; }
.plan-copy { min-height: 42px; margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.plan-features { display: grid; gap: 11px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.plan-features li { display: flex; align-items: center; gap: 9px; }
.plan-features .icon { width: 16px; height: 16px; color: var(--green); }
.rate-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--text); font-size: 12px; font-weight: 780; }
.field small { color: var(--muted); font-size: 10px; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; color: var(--soft); transform: translateY(-50%); pointer-events: none; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; background: var(--surface-2); color: var(--text); transition: .2s ease; }
.input, .select { height: 50px; padding: 0 15px; }
.input-wrap .input { padding-left: 46px; }
.input-wrap.has-action .input { padding-right: 48px; }
.textarea { min-height: 125px; padding: 14px 15px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(239,35,60,.55); background: var(--surface-solid); box-shadow: 0 0 0 4px rgba(239,35,60,.09); }
.field-action { position: absolute; right: 7px; top: 7px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.field-action .icon { width: 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; }
.checkbox input { margin-top: 3px; accent-color: var(--red); }
.checkbox a { color: var(--red); font-weight: 750; }
.field-error { color: var(--red); font-size: 11px; font-weight: 700; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 21px; }

.guest-page { background: radial-gradient(circle at 12% 15%, rgba(239,35,60,.12), transparent 26%), radial-gradient(circle at 88% 78%, rgba(0,170,85,.1), transparent 28%), var(--page); }
.guest-header { width: min(100% - 36px, 1240px); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.guest-brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .02em; }
.guest-brand img { width: 42px; height: 42px; }
.guest-brand strong { color: var(--red); }
.guest-main { width: min(100% - 36px, 1240px); margin: 24px auto 70px; }
.auth-shell { min-height: 690px; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(430px, 1.08fr); border: 1px solid var(--line); border-radius: 34px; background: var(--surface); backdrop-filter: blur(20px); box-shadow: var(--shadow); overflow: hidden; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 5vw, 58px); color: #fff; background: linear-gradient(145deg, #131a25, #080b11); overflow: hidden; }
.auth-story::before { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; top: -170px; border-radius: 50%; background: var(--red); filter: blur(95px); opacity: .2; }
.auth-story::after { content: ""; position: absolute; width: 320px; height: 320px; right: -160px; bottom: -130px; border-radius: 50%; background: var(--green); filter: blur(80px); opacity: .17; }
.auth-story > * { position: relative; z-index: 1; }
.auth-story-logo { width: 110px; filter: drop-shadow(0 25px 35px rgba(0,0,0,.32)); }
.auth-story h1 { max-width: 500px; margin: 30px 0 14px; font-size: clamp(38px, 5vw, 63px); line-height: .98; letter-spacing: -.06em; }
.auth-story h1 span { color: var(--red); }
.auth-story p { max-width: 490px; margin: 0; color: #9fa9b7; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.proof-row span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; color: #c9d0da; background: rgba(255,255,255,.04); font-size: 10px; }
.proof-row .icon { width: 14px; height: 14px; color: var(--green); }
.auth-story-foot { display: flex; align-items: center; gap: 10px; color: #7e8998; font-size: 10px; }
.auth-form-panel { display: grid; align-content: center; padding: clamp(28px, 5vw, 64px); }
.auth-form-panel > div { width: min(100%, 540px); margin: auto; }
.auth-form-panel .eyebrow { display: block; margin-bottom: 8px; }
.auth-form-panel h2 { margin: 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.05em; }
.auth-lead { margin: 8px 0 26px; color: var(--muted); }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: var(--red); font-weight: 800; }
.invite-field .input { text-transform: uppercase; letter-spacing: .22em; font-weight: 900; }
.country-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.country-option { position: relative; cursor: pointer; }
.country-option input { position: absolute; opacity: 0; }
.country-option span { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); transition: .2s ease; }
.country-option input:checked + span { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,35,60,.08); }
.country-option b { display: block; font-size: 12px; }
.country-option small { display: block; color: var(--muted); font-size: 10px; }
.flag { font-size: 23px; }

.alert { width: min(100%, 1320px); margin: 0 auto 18px; display: grid; grid-template-columns: 22px 1fr 22px; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-sm); font-size: 12px; }
.alert-success { border-color: rgba(0,170,85,.2); background: var(--success-bg); }
.alert-error { border-color: rgba(239,35,60,.2); background: var(--danger-bg); }
.alert-info .icon { color: var(--cyan); }
.alert-success .icon { color: var(--green); }
.alert-error .icon { color: var(--red); }
.alert button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.alert button .icon { width: 16px; }

.predict-layout { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.predict-form-card { position: sticky; top: 22px; }
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.market-option { position: relative; cursor: pointer; }
.market-option input { position: absolute; opacity: 0; }
.market-option span { min-height: 54px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); font-size: 11px; font-weight: 800; text-align: center; transition: .2s ease; }
.market-option input:checked + span { color: #fff; border-color: var(--red); background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 10px 24px rgba(239,35,60,.2); }
.upload-zone { min-height: 230px; display: grid; place-items: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 18px; background: var(--surface-2); text-align: center; cursor: pointer; transition: .2s ease; overflow: hidden; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--red); background: var(--danger-bg); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 18px; color: var(--red); background: var(--danger-bg); }
.upload-zone strong, .upload-zone small { display: block; }
.upload-zone strong { font-size: 14px; }
.upload-zone small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.upload-preview { width: 100%; max-height: 350px; object-fit: contain; border-radius: 13px; }
.analysis-placeholder { min-height: 510px; display: grid; place-items: center; padding: 38px; text-align: center; }
.analysis-placeholder .orb { width: 110px; height: 110px; position: relative; display: grid; place-items: center; margin: 0 auto 22px; }
.analysis-placeholder .orb::before, .analysis-placeholder .orb::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 50%; animation: orbit 12s linear infinite; }
.analysis-placeholder .orb::after { inset: 15px; border-color: rgba(239,35,60,.3); animation-direction: reverse; animation-duration: 8s; }
.analysis-placeholder .orb .icon { width: 38px; height: 38px; color: var(--red); }
.analysis-placeholder h3 { margin: 0 0 8px; font-size: 22px; }
.analysis-placeholder p { max-width: 420px; margin: 0 auto; color: var(--muted); }
.prediction-results { display: grid; gap: 14px; }
.prediction-summary { padding: 23px; color: #fff; background: linear-gradient(135deg, #111722, #151b17); }
.prediction-summary .summary-top { display: flex; justify-content: space-between; gap: 14px; }
.prediction-summary h3 { margin: 7px 0 5px; font-size: 25px; }
.prediction-summary p { margin: 0; color: #9ea9b8; }
.prediction-card { padding: 20px; }
.match-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 13px; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team:last-child { justify-content: flex-end; text-align: right; }
.team-logo { width: 47px; height: 47px; position: relative; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 900; }
.team-logo--image { padding: 4px; border-color: rgba(22, 189, 233, .2); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,244,248,.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(23,32,49,.08); }
.team-logo--image::after { content: ""; position: absolute; z-index: 2; inset: -70%; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.64) 50%, transparent 58%); transform: translateX(-65%) rotate(14deg); animation: team-logo-sheen 5.8s ease-in-out infinite; }
.team-logo-image { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; filter: drop-shadow(0 3px 5px rgba(14,20,30,.14)); animation: team-logo-arrive .42s cubic-bezier(.2,.8,.2,1) both; transition: transform .22s ease, filter .22s ease; }
.team-logo--image:hover .team-logo-image { transform: scale(1.08); filter: drop-shadow(0 5px 8px rgba(14,20,30,.2)); }
.team-logo--initials { background: radial-gradient(circle at 30% 20%, rgba(22,189,233,.11), transparent 52%), var(--surface-2); }
html[data-theme="dark"] .team-logo--image { border-color: rgba(22,189,233,.24); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(219,228,238,.88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 9px 24px rgba(0,0,0,.24); }
@keyframes team-logo-arrive { from { opacity: 0; transform: scale(.82) rotate(-3deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes team-logo-sheen { 0%, 68% { transform: translateX(-65%) rotate(14deg); opacity: 0; } 74% { opacity: .75; } 86%, 100% { transform: translateX(65%) rotate(14deg); opacity: 0; } }
.team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versus { color: var(--soft); font-size: 10px; font-weight: 900; }
.prediction-pick { margin-top: 17px; display: grid; grid-template-columns: 1fr auto; gap: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.prediction-pick small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.prediction-pick strong { display: block; margin-top: 3px; font-size: 17px; }
.confidence { min-width: 74px; text-align: right; }
.confidence b { display: block; font-size: 22px; color: var(--green); }
.risk-badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; margin-top: 6px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.risk-low { color: var(--green-deep); background: var(--success-bg); }
.risk-medium { color: #9a6900; background: rgba(245,187,34,.16); }
.risk-high { color: var(--red); background: var(--danger-bg); }
.reason { margin: 13px 0 0; color: var(--muted); font-size: 12px; }

.account-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); gap: 22px; align-items: start; }
.balance-card { padding: 29px; color: #fff; background: linear-gradient(135deg, #111722, #0a1410); }
.balance-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -100px; border-radius: 50%; background: var(--green); filter: blur(70px); opacity: .2; }
.balance-card small { color: #93a1b0; }
.balance-card h2 { margin: 10px 0 20px; font-size: 40px; letter-spacing: -.05em; }
.profile-strip { display: flex; align-items: center; gap: 15px; }
.profile-strip .avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.profile-strip h3 { margin: 0; font-size: 20px; }
.profile-strip p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.account-detail-list { display: grid; gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 15px; background: var(--surface-solid); }
.detail-row span { color: var(--muted); font-size: 11px; }
.detail-row strong { font-size: 12px; text-align: right; }

.transaction-list { display: grid; gap: 10px; }
.transaction-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.transaction-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--green); background: var(--success-bg); }
.transaction-row.debit .transaction-icon { color: var(--red); background: var(--danger-bg); }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row small { color: var(--muted); font-size: 10px; }
.transaction-amount { text-align: right; }
.transaction-amount.credit { color: var(--green); }

.invite-hero { padding: clamp(27px, 4vw, 45px); color: #fff; background: linear-gradient(135deg, #111722, #11151d); }
.invite-hero::after { content: ""; position: absolute; width: 350px; height: 350px; right: -130px; top: -150px; border-radius: 50%; background: var(--red); filter: blur(100px); opacity: .18; }
.invite-hero > * { position: relative; z-index: 1; }
.invite-hero h2 { max-width: 690px; margin: 16px 0 10px; font-size: clamp(30px, 4.5vw, 50px); line-height: 1.05; letter-spacing: -.055em; }
.invite-hero p { max-width: 620px; color: #9da8b6; }
.code-display { max-width: 500px; display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 25px; padding: 10px 10px 10px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.045); }
.code-display span { align-self: center; color: #cbd1d9; font-weight: 900; letter-spacing: .22em; }

.support-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.chat-card { min-height: 610px; display: grid; grid-template-rows: auto 1fr auto; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.ai-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--red), var(--green)); box-shadow: 0 10px 25px rgba(0,170,85,.18); }
.ai-avatar .icon { width: 22px; }
.chat-header strong, .chat-header small { display: block; }
.chat-header small { color: var(--muted); font-size: 10px; }
.chat-messages { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.bot-message, .user-message { max-width: min(82%, 560px); padding: 12px 14px; border-radius: 15px; font-size: 12px; line-height: 1.55; }
.bot-message { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: var(--surface-2); }
.user-message { align-self: flex-end; color: #fff; border-bottom-right-radius: 5px; background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.chat-form { display: grid; grid-template-columns: 1fr 48px; gap: 9px; padding: 15px; border-top: 1px solid var(--line); }
.chat-form input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: var(--surface-2); color: var(--text); }
.chat-form button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; color: #fff; background: var(--red); cursor: pointer; }
.faq-list { display: grid; gap: 9px; }
.faq-button { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; font-size: 11px; font-weight: 750; }

.legal-shell { max-width: 900px; }
.legal-hero { padding: clamp(27px, 5vw, 48px); margin-bottom: 18px; }
.legal-hero h1 { margin: 9px 0 8px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.055em; }
.legal-hero p { margin: 0; color: var(--muted); }
.legal-content { padding: clamp(24px, 5vw, 50px); }
.legal-content h2 { margin: 30px 0 8px; font-size: 21px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content li + li { margin-top: 7px; }

.site-footer { position: relative; width: min(100% - 36px, 1240px); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { margin: 10px 0 0; }
.footer-app { width: auto; margin-left: calc(var(--sidebar) + clamp(24px, 4vw, 64px)); margin-right: clamp(24px, 4vw, 64px); }
.bottom-nav { display: none; }

.support-fab { position: fixed; right: 24px; bottom: 24px; z-index: 80; height: 50px; display: flex; align-items: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 16px 38px rgba(239,35,60,.32); cursor: pointer; font-size: 12px; font-weight: 850; }
.support-popover { position: fixed; right: 24px; bottom: 86px; z-index: 90; width: min(390px, calc(100vw - 28px)); max-height: 560px; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: 21px; background: var(--surface-solid); box-shadow: var(--shadow); overflow: hidden; animation: pop-in .24s ease; }
.support-popover[hidden] { display: none; }
.support-popover header { display: grid; grid-template-columns: 10px 1fr 28px; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(0,170,85,.12); }
.support-popover header strong, .support-popover header small { display: block; }
.support-popover header small { color: var(--muted); font-size: 9px; }
.support-popover header button { border: 0; background: transparent; cursor: pointer; }
.support-popover header .icon { width: 17px; }
.support-messages { min-height: 190px; max-height: 340px; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.support-popover form { display: grid; grid-template-columns: 1fr 41px; gap: 8px; padding: 11px; border-top: 1px solid var(--line); }
.support-popover input { height: 41px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface-2); color: var(--text); font-size: 11px; }
.support-popover form button { display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: var(--red); cursor: pointer; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.status-successful, .status-completed, .status-active { color: var(--green-deep); background: var(--success-bg); }
.status-pending, .status-processing, .status-initialized { color: #9b6a00; background: rgba(245,187,34,.15); }
.status-failed, .status-reversed { color: var(--red); background: var(--danger-bg); }
.empty-state { padding: 32px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 31px; height: 31px; margin-bottom: 10px; color: var(--soft); }
.inline-note { display: flex; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--surface-2); font-size: 11px; }
.inline-note .icon { width: 18px; color: var(--cyan); }
.danger-zone { border-color: rgba(239,35,60,.2); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes logo-breathe { 50% { transform: scale(.92); filter: brightness(1.12); } }
@keyframes logo-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(1.2deg); } }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 8px rgba(0,170,85,0); } }
@keyframes slide-left { from { transform: translateX(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

@media (max-width: 1120px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-orbit { width: 135px; opacity: .45; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar, .desktop-topbar { display: none; }
  .mobile-header { position: sticky; top: 0; z-index: 70; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 84%, transparent); backdrop-filter: blur(18px); }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
  .mobile-brand img { width: 37px; height: 37px; }
  .mobile-header .icon-button { width: 39px; height: 39px; border-radius: 12px; }
  .app-main { margin: 0; padding: 22px 16px 102px; }
  .dashboard-grid, .predict-layout, .account-grid, .support-page-grid { grid-template-columns: 1fr; }
  .predict-form-card { position: static; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 75; height: calc(70px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 6px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(20px); box-shadow: 0 -12px 35px rgba(0,0,0,.1); }
  .bottom-nav a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: var(--soft); font-size: 8px; font-weight: 800; }
  .bottom-nav .icon { width: 21px; height: 21px; }
  .bottom-nav a.is-active { color: var(--red); background: var(--danger-bg); }
  .bottom-nav a.is-active::before { content: ""; position: absolute; top: -7px; width: 21px; height: 3px; border-radius: 9px; background: var(--red); }
  .footer-app { margin: 0 16px 85px; }
  .support-fab { right: 15px; bottom: 84px; width: 48px; padding: 0; justify-content: center; border-radius: 15px; }
  .support-fab span { display: none; }
  .support-popover { right: 14px; bottom: 142px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 360px; }
  .auth-story h1 { max-width: 600px; }
}

@media (max-width: 650px) {
  body { font-size: 14px; }
  .guest-header { width: calc(100% - 28px); height: 68px; }
  .guest-brand span { display: none; }
  .guest-brand img { width: 38px; }
  .guest-main { width: calc(100% - 28px); margin-top: 10px; }
  .auth-shell { min-height: auto; border-radius: 24px; }
  .auth-story { min-height: 330px; padding: 28px 24px; }
  .auth-story-logo { width: 82px; }
  .auth-story h1 { margin-top: 20px; }
  .auth-form-panel { padding: 30px 21px 34px; }
  .form-grid, .stat-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .hero-card { min-height: 360px; padding: 25px 21px; }
  .hero-card h2 { max-width: 82%; }
  .hero-orbit { right: -18px; top: 30%; width: 105px; opacity: .38; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .match-top { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); }
  .team { flex-direction: column; align-items: flex-start; gap: 6px; }
  .team:last-child { align-items: flex-end; }
  .team-logo { width: 42px; height: 42px; }
  .team strong { max-width: 110px; font-size: 11px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; }
  .site-footer nav { gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================================================================
   Compact full-width layout
   Keeps every existing component and theme while reducing visual
   scale and allowing desktop content to use all available space.
   ================================================================ */

:root {
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --sidebar: 220px;
  --shadow: 0 16px 42px rgba(23, 32, 49, .1);
  --shadow-sm: 0 7px 22px rgba(23, 32, 49, .075);
}

html[data-theme="dark"] {
  --shadow: 0 18px 48px rgba(0, 0, 0, .3);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .21);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --shadow: 0 18px 48px rgba(0, 0, 0, .3);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .21);
  }
}

/* Premium country-aware package payments */
.payment-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  align-items: start;
  gap: 14px;
}

.payment-card-shell {
  padding: 18px;
  overflow: hidden;
}

.payment-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.payment-page-head h2 {
  margin: 3px 0 4px;
  font-size: clamp(20px, 2.1vw, 28px);
  letter-spacing: -.045em;
}

.payment-page-head p,
.payment-submit-head p,
.payment-trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.button-compact {
  min-height: 34px;
  padding: 0 11px;
  white-space: nowrap;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.payment-method-form {
  min-width: 0;
  margin: 0;
}

.payment-method-form .payment-method-card {
  width: 100%;
  height: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.payment-choice-note {
  margin-top: 2px;
}

.payment-method-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: linear-gradient(145deg, var(--surface-solid), var(--surface-2));
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.payment-method-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  top: -64px;
  right: -54px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(28px);
  opacity: .09;
  pointer-events: none;
}

.payment-method-card.is-ready:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--line));
  box-shadow: 0 14px 30px rgba(5, 25, 38, .1);
}

.payment-method-card.is-upcoming {
  cursor: not-allowed;
  opacity: .7;
}

.payment-provider-mark {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(5, 25, 38, .14);
  animation: payment-mark-float 4s ease-in-out infinite;
}

.payment-provider-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.payment-provider-mark .icon {
  width: 21px;
  height: 21px;
}

.payment-provider-mark.small .icon {
  width: 18px;
  height: 18px;
}

.payment-provider-paystack {
  color: #ffffff;
  background: linear-gradient(145deg, #0bbbdc, #087ea4);
}

.payment-provider-mtn-momo {
  color: #151515;
  background: linear-gradient(145deg, #ffeb3b, #f9c800);
}

.payment-provider-mobile-money {
  color: #ffffff;
  background: linear-gradient(145deg, #ed2447, #9d0924);
}

.payment-provider-bank-transfer {
  color: #ffffff;
  background: linear-gradient(145deg, #14213d, #334b78);
}

.payment-provider-copy {
  min-width: 0;
}

.payment-provider-copy strong,
.payment-provider-copy small {
  display: block;
}

.payment-provider-copy strong {
  font-size: 11px;
}

.payment-provider-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.4;
}

.payment-method-state {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.payment-method-state.is-live {
  color: var(--green-deep);
  background: var(--success-bg);
}

.payment-method-state.is-next {
  color: #916400;
  background: rgba(245, 187, 34, .15);
}

.payment-method-arrow {
  align-self: end;
  color: var(--soft);
}

.payment-method-arrow .icon {
  width: 15px;
  height: 15px;
}

.payment-submit-panel {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.payment-submit-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.payment-submit-head h3 {
  margin: 2px 0 2px;
  font-size: 13px;
}

.payment-submit-head .button {
  min-height: 36px;
  padding-inline: 12px;
}

.payment-review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.payment-review-form .field-wide {
  grid-column: 1 / -1;
}

.payment-form-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.payment-form-action > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.payment-form-action > span .icon {
  width: 15px;
  color: var(--green);
}

.payment-summary-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
}

.payment-summary-card {
  padding: 18px;
  color: #f4fff9;
  background: radial-gradient(circle at 90% 0, rgba(42, 221, 131, .22), transparent 35%), linear-gradient(145deg, #101b18, #07100d);
  border-color: rgba(99, 229, 161, .14);
}

.payment-summary-card h2 {
  margin: 6px 0 2px;
  font-size: 21px;
  letter-spacing: -.04em;
}

.payment-summary-card > strong {
  display: block;
  color: #66e7a4;
  font-size: 19px;
}

.payment-summary-card dl {
  display: grid;
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}

.payment-summary-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  background: rgba(5, 15, 11, .78);
}

.payment-summary-card dt {
  color: #8fa79a;
  font-size: 7px;
}

.payment-summary-card dd {
  margin: 0;
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.payment-trust-card {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.payment-trust-card h3 {
  margin: 3px 0;
  font-size: 12px;
}

.payment-trust-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--success-bg);
  animation: payment-shield-pulse 3s ease-in-out infinite;
}

.payment-trust-icon .icon {
  width: 18px;
}

.payment-trust-card .status-pill {
  width: fit-content;
}

@keyframes payment-mark-float {
  50% { transform: translateY(-2px) rotate(.8deg); }
}

@keyframes payment-shield-pulse {
  50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(0, 170, 85, 0); }
}

@media (min-width: 1500px) {
  .payment-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .payment-card-shell { padding: 20px; }
}

@media (max-width: 900px) {
  .payment-layout { grid-template-columns: 1fr; gap: 10px; }
  .payment-summary-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .payment-card-shell { padding: 13px; }
  .payment-page-head { display: grid; gap: 8px; }
  .payment-page-head .button { width: fit-content; }
  .payment-method-grid { grid-template-columns: 1fr; gap: 7px; }
  .payment-method-card { min-height: 70px; }
  .payment-submit-head { grid-template-columns: 36px 1fr; }
  .payment-submit-head .button { grid-column: 1 / -1; width: 100%; }
  .payment-review-form { grid-template-columns: 1fr; }
  .payment-review-form .field-wide { grid-column: auto; }
  .payment-form-action { align-items: stretch; flex-direction: column; }
  .payment-form-action .button { width: 100%; }
  .payment-summary-stack { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-provider-mark,
  .payment-trust-icon {
    animation: none !important;
  }

  .payment-method-card {
    transition: none !important;
  }
}

body { font-size: 13px; line-height: 1.45; }
.icon { width: 18px; height: 18px; }

.site-loader { gap: 12px; font-size: 9px; }
.loader-orbit { width: 66px; height: 66px; }
.loader-orbit::after { inset: 7px; }
.loader-orbit img { width: 37px; }
.ambient { width: 330px; height: 330px; }

.sidebar { width: var(--sidebar); padding: 18px 12px 14px; }
.sidebar-brand { gap: 9px; padding: 2px 8px 20px; }
.brand-mark { width: 38px; height: 38px; }
.sidebar-brand strong { font-size: 12px; }
.sidebar-brand em { font-size: 11px; }
.sidebar-nav { gap: 4px; }
.nav-link { gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 11px; font-size: 12px; }
.nav-link::before { height: 18px; }
.sidebar-trust { gap: 8px; padding: 10px; border-radius: 12px; }
.trust-icon { width: 29px; height: 29px; border-radius: 9px; }
.trust-icon .icon { width: 15px; }
.sidebar-trust strong { font-size: 9px; }
.sidebar-trust small { font-size: 8px; }
.sidebar-profile { gap: 8px; margin-top: 9px; padding: 9px 6px; }
.avatar { width: 31px; height: 31px; border-radius: 10px; font-size: 11px; }
.sidebar-profile strong { font-size: 10px; }
.sidebar-profile small { font-size: 8px; }

.app-main { width: auto; min-height: calc(100vh - 82px); margin-left: var(--sidebar); padding: 18px 22px 44px; }
.desktop-topbar,
.content-grid,
.dashboard-grid,
.page-stack,
.legal-shell,
.alert { width: 100%; max-width: none; }
.desktop-topbar { margin: 0 0 16px; gap: 14px; }
.desktop-topbar h1 { margin-top: 1px; font-size: clamp(22px, 2.1vw, 29px); }
.eyebrow { font-size: 8px; letter-spacing: .16em; }
.desktop-actions,
.header-actions { gap: 7px; }
.balance-pill { height: 38px; gap: 7px; padding: 0 12px; border-radius: 11px; font-size: 11px; }
.icon-button { width: 38px; height: 38px; border-radius: 11px; }

.page-stack { gap: 14px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(250px, .65fr); gap: 14px; }
.card { border-radius: var(--radius-lg); }
.card-pad { padding: clamp(15px, 1.6vw, 20px); }
.card-head { gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 17px; }
.card-head h3 { font-size: 14px; }
.card-head p { margin-top: 3px; font-size: 10px; }

.hero-card { min-height: 238px; padding: clamp(20px, 2.3vw, 28px); }
.hero-card::before { width: 290px; height: 290px; }
.hero-kicker { gap: 6px; padding: 5px 8px; font-size: 8px; }
.hero-kicker::before { width: 5px; height: 5px; box-shadow: 0 0 0 4px rgba(0,170,85,.12); }
.hero-card h2 { max-width: 570px; margin: 14px 0 7px; font-size: clamp(27px, 3vw, 38px); }
.hero-card p { max-width: 560px; font-size: 12px; }
.hero-actions { gap: 8px; margin-top: 19px; }
.hero-orbit { right: clamp(18px, 4vw, 52px); width: 118px; }
.hero-orbit::before { inset: -11px; }
.hero-orbit::after { inset: -23px; }

.button { min-height: 40px; gap: 7px; padding: 0 14px; border-radius: 11px; font-size: 11px; }
.button-small { min-height: 34px; padding-inline: 11px; border-radius: 9px; font-size: 10px; }

.stat-grid { gap: 10px; }
.stat-card { padding: 14px; }
.stat-icon { width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; }
.stat-card strong { font-size: 17px; }
.stat-card small { margin-top: 3px; font-size: 10px; }
.package-empty { min-height: 205px; padding: 20px; }
.package-empty .empty-icon { width: 52px; height: 52px; margin-bottom: 12px; border-radius: 16px; }
.package-empty .empty-icon .icon { width: 23px; height: 23px; }
.package-empty h3 { margin-bottom: 5px; font-size: 16px; }
.package-empty p { margin-bottom: 14px; font-size: 10px; }
.active-plan-card { min-height: 205px; padding: 20px; }
.active-plan-card h3 { margin: 15px 0 4px; font-size: 26px; }
.active-plan-card p { font-size: 11px; }
.plan-meter { margin: 16px 0 8px; }
.meter-labels { font-size: 9px; }

.quick-list { gap: 7px; }
.quick-link { grid-template-columns: 34px 1fr 14px; gap: 9px; padding: 9px 10px; border-radius: 11px; }
.quick-link > span:first-child { width: 34px; height: 34px; border-radius: 10px; }
.quick-link strong { font-size: 11px; }
.quick-link small { font-size: 9px; }
.quick-link > .icon { width: 13px; }

.section-intro { gap: 13px; }
.section-intro h2 { font-size: clamp(22px, 2.5vw, 30px); }
.section-intro p { margin-top: 5px; font-size: 11px; }
.plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.plan-card { padding: 17px; }
.plan-card.featured { transform: translateY(-4px); }
.featured-label { top: -9px; right: 14px; padding: 4px 8px; font-size: 7px; }
.plan-badge { gap: 5px; padding: 4px 8px; font-size: 8px; }
.plan-card h3 { margin: 12px 0 6px; font-size: 18px; }
.plan-price { margin-bottom: 13px; }
.plan-price strong { font-size: 25px; }
.plan-price span,
.plan-copy,
.plan-features { font-size: 10px; }
.plan-copy { min-height: 34px; margin-bottom: 13px; }
.plan-features { gap: 8px; margin-bottom: 16px; }
.plan-features .icon { width: 14px; height: 14px; }
.rate-note { font-size: 9px; }

.form-grid { gap: 12px; }
.field { gap: 6px; }
.field label,
.field-label { font-size: 10px; }
.field small { font-size: 9px; }
.input,
.select { height: 42px; padding: 0 12px; border-radius: 11px; font-size: 11px; }
.input-wrap .input { padding-left: 38px; }
.input-wrap.has-action .input { padding-right: 40px; }
.input-wrap > .icon { left: 12px; width: 15px; height: 15px; }
.textarea { min-height: 96px; padding: 11px 12px; border-radius: 11px; font-size: 11px; }
.field-action { top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 8px; }
.field-action .icon { width: 15px; }
.checkbox,
.field-error { font-size: 9px; }
.form-actions { gap: 9px; margin-top: 14px; }

.guest-header,
.guest-main { width: 100%; max-width: none; padding-inline: 22px; }
.guest-header { height: 64px; }
.guest-brand { gap: 8px; font-size: 11px; }
.guest-brand img { width: 34px; height: 34px; }
.guest-main { margin: 10px auto 42px; }
.auth-shell { min-height: 560px; grid-template-columns: minmax(280px, .82fr) minmax(400px, 1.18fr); border-radius: 23px; }
.auth-story { padding: clamp(24px, 3vw, 38px); }
.auth-story-logo { width: 76px; }
.auth-story h1 { margin: 20px 0 10px; font-size: clamp(31px, 3.8vw, 47px); }
.auth-story p { font-size: 11px; }
.proof-row { gap: 7px; margin-top: 20px; }
.proof-row span { gap: 5px; padding: 6px 8px; font-size: 8px; }
.auth-story-foot { gap: 7px; font-size: 8px; }
.auth-form-panel { padding: clamp(22px, 3vw, 42px); }
.auth-form-panel > div { width: min(100%, 680px); }
.auth-form-panel h2 { font-size: clamp(24px, 3vw, 32px); }
.auth-lead { margin: 5px 0 18px; font-size: 11px; }
.auth-switch { margin-top: 13px; font-size: 10px; }
.country-options { gap: 7px; }
.country-option span { min-height: 49px; gap: 8px; padding: 8px 10px; border-radius: 11px; }
.country-option b { font-size: 10px; }
.country-option small { font-size: 8px; }
.flag { font-size: 18px; }
.alert { grid-template-columns: 18px 1fr 18px; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; font-size: 10px; }

.predict-layout { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 14px; }
.predict-form-card { top: 14px; }
.market-grid { gap: 6px; }
.market-option span { min-height: 43px; padding: 6px; border-radius: 10px; font-size: 9px; }
.upload-zone { min-height: 175px; padding: 17px; border-radius: 13px; }
.upload-icon { width: 44px; height: 44px; margin-bottom: 9px; border-radius: 13px; }
.upload-zone strong { font-size: 11px; }
.upload-zone small { font-size: 8px; }
.upload-preview { max-height: 270px; border-radius: 10px; }
.analysis-placeholder { min-height: 380px; padding: 25px; }
.analysis-placeholder .orb { width: 78px; height: 78px; margin-bottom: 15px; }
.analysis-placeholder .orb .icon { width: 29px; height: 29px; }
.analysis-placeholder h3 { font-size: 17px; }
.analysis-placeholder p { font-size: 11px; }
.prediction-results { gap: 10px; }
.prediction-summary { padding: 17px; }
.prediction-summary h3 { font-size: 19px; }
.prediction-summary p { font-size: 10px; }
.prediction-card { padding: 14px; }
.match-top { gap: 9px; }
.team { gap: 7px; }
.team-logo { width: 37px; height: 37px; border-radius: 11px; font-size: 9px; }
.team strong { font-size: 11px; }
.versus { font-size: 8px; }
.prediction-pick { gap: 10px; margin-top: 12px; padding-top: 11px; }
.prediction-pick small { font-size: 8px; }
.prediction-pick strong { font-size: 13px; }
.confidence { min-width: 58px; }
.confidence b { font-size: 17px; }
.risk-badge { padding: 3px 6px; margin-top: 4px; font-size: 7px; }
.reason { margin-top: 9px; font-size: 10px; }

.account-grid { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .55fr); gap: 14px; }
.balance-card { padding: 20px; }
.balance-card h2 { margin: 7px 0 14px; font-size: 30px; }
.profile-strip { gap: 10px; }
.profile-strip .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; }
.profile-strip h3 { font-size: 16px; }
.profile-strip p { font-size: 10px; }
.account-detail-list { margin-top: 15px; border-radius: 12px; }
.detail-row { gap: 10px; padding: 10px 11px; }
.detail-row span { font-size: 9px; }
.detail-row strong { font-size: 10px; }

.transaction-list { gap: 7px; }
.transaction-row { grid-template-columns: 36px 1fr auto; gap: 9px; padding: 10px; border-radius: 11px; }
.transaction-icon { width: 36px; height: 36px; border-radius: 10px; }
.transaction-row { font-size: 11px; }
.transaction-row small { font-size: 8px; }

.invite-hero { padding: clamp(20px, 2.5vw, 30px); }
.invite-hero h2 { max-width: 760px; margin: 11px 0 7px; font-size: clamp(25px, 3vw, 36px); }
.invite-hero p { font-size: 11px; }
.code-display { max-width: 430px; gap: 7px; margin-top: 17px; padding: 7px 7px 7px 13px; border-radius: 12px; }
.code-display span { font-size: 10px; }

.support-page-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.chat-card { min-height: 460px; }
.chat-header { gap: 9px; padding: 13px 15px; }
.ai-avatar { width: 35px; height: 35px; border-radius: 10px; }
.ai-avatar .icon { width: 18px; }
.chat-header small { font-size: 8px; }
.chat-messages { gap: 8px; padding: 15px; }
.bot-message,
.user-message { padding: 9px 11px; border-radius: 11px; font-size: 10px; }
.chat-form { grid-template-columns: 1fr 40px; gap: 7px; padding: 10px; }
.chat-form input,
.chat-form button { height: 40px; border-radius: 10px; }
.chat-form button { width: 40px; }
.faq-list { gap: 6px; }
.faq-button { padding: 10px 11px; border-radius: 10px; font-size: 9px; }

.legal-hero { padding: clamp(20px, 2.6vw, 30px); margin-bottom: 12px; }
.legal-hero h1 { margin: 6px 0 5px; font-size: clamp(27px, 3vw, 37px); }
.legal-content { padding: clamp(18px, 2.6vw, 32px); }
.legal-content h2 { margin: 21px 0 6px; font-size: 16px; }
.legal-content p,
.legal-content li { font-size: 11px; }

.site-footer { width: 100%; max-width: none; padding: 16px 22px 22px; font-size: 8px; }
.site-footer nav { gap: 11px; }
.site-footer p { margin-top: 7px; }
.footer-app { width: auto; margin-left: calc(var(--sidebar) + 22px); margin-right: 22px; }
.support-fab { right: 17px; bottom: 17px; height: 41px; gap: 6px; padding: 0 13px; border-radius: 12px; font-size: 10px; }
.support-popover { right: 17px; bottom: 67px; width: min(340px, calc(100vw - 24px)); max-height: 470px; border-radius: 16px; }
.support-popover header { padding: 11px; }
.support-messages { min-height: 150px; max-height: 275px; padding: 11px; }
.support-popover form { grid-template-columns: 1fr 36px; gap: 6px; padding: 8px; }
.support-popover input { height: 36px; border-radius: 9px; font-size: 9px; }
.support-popover form button { border-radius: 9px; }
.status-pill { gap: 4px; padding: 4px 7px; font-size: 7px; }
.empty-state { padding: 23px; font-size: 11px; }
.inline-note { gap: 7px; padding: 10px 11px; border-radius: 10px; font-size: 9px; }

@media (min-width: 1440px) {
  .app-main { padding-inline: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 2fr) minmax(270px, .62fr); }
  .predict-layout { grid-template-columns: minmax(290px, .52fr) minmax(0, 1.48fr); }
  .account-grid { grid-template-columns: minmax(0, 1.4fr) minmax(270px, .48fr); }
}

@media (max-width: 1120px) {
  :root { --sidebar: 200px; }
  .app-main { padding-inline: 16px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-orbit { width: 98px; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  body { font-size: 12px; }
  .mobile-header { height: 56px; padding: 0 11px; }
  .mobile-brand { gap: 6px; font-size: 10px; }
  .mobile-brand img { width: 31px; height: 31px; }
  .mobile-header .icon-button { width: 34px; height: 34px; border-radius: 10px; }
  .app-main { width: 100%; margin: 0; padding: 12px 10px 76px; }
  .page-stack,
  .dashboard-grid,
  .predict-layout,
  .account-grid,
  .support-page-grid { gap: 10px; }
  .dashboard-grid,
  .predict-layout,
  .account-grid,
  .support-page-grid { grid-template-columns: 1fr; }
  .bottom-nav { height: calc(58px + env(safe-area-inset-bottom, 0px)); padding: 5px 3px; padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav a { gap: 2px; border-radius: 9px; font-size: 7px; }
  .bottom-nav .icon { width: 18px; height: 18px; }
  .bottom-nav a.is-active::before { top: -5px; width: 17px; height: 2px; }
  .footer-app { margin: 0 10px 68px; padding-inline: 0; }
  .support-fab { right: 10px; bottom: 68px; width: 40px; height: 40px; padding: 0; border-radius: 12px; }
  .support-popover { right: 10px; bottom: 114px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 265px; }
}

@media (max-width: 650px) {
  body { font-size: 12px; }
  .guest-header,
  .guest-main { width: 100%; padding-inline: 10px; }
  .guest-header { height: 56px; }
  .guest-brand img { width: 31px; height: 31px; }
  .guest-main { margin-top: 6px; }
  .auth-shell { border-radius: 17px; }
  .auth-story { min-height: 235px; padding: 19px 16px; }
  .auth-story-logo { width: 58px; }
  .auth-story h1 { margin-top: 14px; font-size: clamp(27px, 10vw, 36px); }
  .proof-row { margin-top: 14px; }
  .auth-form-panel { padding: 20px 14px 23px; }
  .form-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .hero-card { min-height: 255px; padding: 18px 15px; }
  .hero-card h2 { max-width: 84%; font-size: clamp(25px, 8vw, 32px); }
  .hero-orbit { right: -11px; top: 31%; width: 78px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .section-intro { gap: 7px; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-zone { min-height: 145px; }
  .analysis-placeholder { min-height: 280px; padding: 18px; }
  .match-top { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
  .team { gap: 5px; }
  .team-logo { width: 34px; height: 34px; }
  .team strong { max-width: 96px; font-size: 9px; }
  .balance-card h2 { font-size: 26px; }
  .invite-hero { padding: 18px 15px; }
  .invite-hero h2 { font-size: clamp(25px, 8vw, 32px); }
  .code-display { grid-template-columns: 1fr; padding: 10px; }
  .site-footer { padding-inline: 10px; }
}

@media (max-width: 390px) {
  .app-main { padding-inline: 8px; }
  .card-pad,
  .prediction-card,
  .plan-card { padding: 13px; }
  .button { padding-inline: 11px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .country-options { grid-template-columns: 1fr; }
  .market-option span { min-height: 40px; font-size: 8px; }
  .support-popover { width: calc(100vw - 16px); right: 8px; }
}

/* Premium invite registration */
.register-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 610px;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  overflow: visible;
  border-radius: 24px;
  animation: register-shell-in .7s cubic-bezier(.2, .75, .25, 1) both;
}

.register-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(239, 35, 60, .34), transparent 32%, transparent 68%, rgba(0, 170, 85, .3));
  opacity: .58;
}

.register-story {
  min-width: 0;
  border-radius: 23px 0 0 23px;
  background:
    radial-gradient(circle at 15% 8%, rgba(239, 35, 60, .24), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(0, 170, 85, .18), transparent 32%),
    linear-gradient(145deg, #151b25 0%, #090c12 68%, #080b0f 100%);
}

.register-story::before {
  width: 330px;
  height: 330px;
  left: -175px;
  top: -165px;
  opacity: .17;
  animation: register-glow 7s ease-in-out infinite;
}

.register-story::after {
  width: 280px;
  height: 280px;
  right: -145px;
  bottom: -135px;
  opacity: .16;
  animation: register-glow 7s 1.5s ease-in-out infinite reverse;
}

.register-story-content {
  position: relative;
}

.register-brand-orbit {
  position: absolute;
  top: -16px;
  right: -8px;
  width: 106px;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .56;
}

.register-brand-orbit::before,
.register-brand-orbit::after,
.register-brand-orbit span {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  animation: register-orbit 14s linear infinite;
}

.register-brand-orbit::after {
  inset: 13px;
  border-color: rgba(239, 35, 60, .32);
  animation-direction: reverse;
  animation-duration: 9s;
}

.register-brand-orbit span:nth-child(1) {
  inset: 28px;
  border-color: rgba(0, 170, 85, .32);
  animation-duration: 7s;
}

.register-brand-orbit span:nth-child(2) {
  inset: 48px;
  border: 0;
  background: var(--red);
  box-shadow: 0 0 24px rgba(239, 35, 60, .48);
  animation: register-core 2.4s ease-in-out infinite;
}

.register-brand-orbit span:nth-child(3) {
  inset: 8px auto auto 50%;
  width: 7px;
  height: 7px;
  border: 0;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 170, 85, .8);
}

.register-story .auth-story-logo {
  width: 72px;
  position: relative;
  z-index: 2;
}

.register-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #d4d9e1;
  background: rgba(255, 255, 255, .045);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.register-kicker .icon {
  width: 13px;
  height: 13px;
  color: #56dc91;
}

.register-story h1 {
  max-width: 540px;
  margin-top: 17px;
  font-size: clamp(31px, 3.55vw, 46px);
}

.register-story > .register-story-content > p {
  max-width: 500px;
  font-size: 11px;
  line-height: 1.65;
}

.register-proof-row {
  margin-top: 18px;
}

.register-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.register-trust-grid > div {
  display: grid;
  grid-template-columns: 31px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.register-trust-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
}

.register-trust-icon {
  grid-row: 1 / 3;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #65dfa0;
  background: rgba(0, 170, 85, .12);
}

.register-trust-icon .icon {
  width: 15px;
  height: 15px;
}

.register-trust-grid strong,
.register-trust-grid small {
  display: block;
}

.register-trust-grid strong {
  color: #f2f4f8;
  font-size: 9px;
}

.register-trust-grid small {
  color: #7f8998;
  font-size: 7px;
  line-height: 1.35;
}

.register-form-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-content: start;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 0 23px 23px 0;
  background:
    radial-gradient(circle at 96% 0%, rgba(239, 35, 60, .07), transparent 25%),
    radial-gradient(circle at 5% 100%, rgba(0, 170, 85, .065), transparent 27%),
    var(--surface-solid);
}

.register-form-panel > .register-form-inner {
  width: min(100%, 760px);
  margin: auto;
}

.register-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.register-form-heading h2 {
  font-size: clamp(25px, 2.7vw, 34px);
}

.register-form-heading .auth-lead {
  margin-bottom: 0;
}

.secure-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(0, 170, 85, .18);
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--success-bg);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.secure-form-badge .icon {
  width: 13px;
  height: 13px;
}

.register-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0 18px;
}

.register-progress span {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 8px;
  font-weight: 800;
}

.register-progress span::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--line-strong);
}

.register-progress span.is-active::after {
  background: linear-gradient(90deg, var(--red), var(--green));
}

.register-progress b {
  color: var(--soft);
  font-size: 7px;
  letter-spacing: .08em;
}

.register-progress .is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.register-progress .is-active b {
  color: var(--red);
}

.register-form {
  position: relative;
  gap: 12px;
}

.register-form .field > small {
  line-height: 1.45;
}

.register-form .input {
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
}

.register-form .input:hover {
  border-color: var(--line-strong);
}

.register-form .input:focus {
  transform: translateY(-1px);
}

.register-consents {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.register-consents .checkbox {
  margin: 0;
}

.register-submit {
  position: relative;
  min-height: 44px;
  overflow: hidden;
}

.register-submit::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: register-button-shine 4.2s ease-in-out infinite;
}

.register-submit > * {
  position: relative;
}

.register-security-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(0, 170, 85, .14);
  border-radius: 10px;
  color: var(--muted);
  background: var(--success-bg);
  font-size: 8px;
  line-height: 1.5;
}

.register-security-note .icon {
  width: 14px;
  height: 14px;
  color: var(--green-deep);
}

.country-select {
  position: relative;
  z-index: 10;
}

.country-select[open] {
  z-index: 40;
}

.country-select > summary {
  list-style: none;
}

.country-select > summary::-webkit-details-marker {
  display: none;
}

.country-select-trigger {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.country-select-trigger:hover {
  border-color: var(--line-strong);
}

.country-select-trigger:focus-visible,
.country-select[open] .country-select-trigger {
  border-color: rgba(239, 35, 60, .55);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px rgba(239, 35, 60, .09);
}

.country-select[open] .country-select-trigger {
  transform: translateY(-1px);
}

.country-select-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-select-identity > span:last-child {
  min-width: 0;
}

.country-select-identity strong,
.country-select-identity small {
  display: block;
}

.country-select-identity strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-select-identity small {
  color: var(--muted);
  font-size: 7px;
}

.country-flag-frame {
  width: 29px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(20, 24, 33, .1);
}

.country-flag-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  animation: register-flag-float 3.2s ease-in-out infinite;
}

.country-currency-pill,
.country-option-currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-deep);
  font-size: 8px;
  font-weight: 900;
}

.country-currency-pill {
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(0, 170, 85, .16);
  border-radius: 999px;
  background: var(--success-bg);
}

.country-currency-pill img,
.country-option-currency img {
  width: 17px;
  height: 17px;
  display: block;
  animation: register-currency-pulse 2.8s ease-in-out infinite;
}

.country-select-chevron {
  display: grid;
  place-items: center;
  color: var(--soft);
  transform: rotate(180deg);
  transition: transform .25s ease, color .25s ease;
}

.country-select-chevron .icon {
  width: 13px;
  height: 13px;
}

.country-select[open] .country-select-chevron {
  color: var(--red);
  transform: rotate(0deg);
}

.country-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: 0 18px 45px rgba(12, 18, 29, .18);
  backdrop-filter: blur(22px);
  animation: country-menu-in .22s ease both;
}

.country-select-option {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.country-select-option:hover,
.country-select-option:focus-within {
  transform: translateX(2px);
  border-color: var(--line);
  background: var(--surface-2);
}

.country-select-option.is-selected,
.country-select-option:has(input:checked) {
  border-color: rgba(239, 35, 60, .2);
  background: var(--danger-bg);
}

.country-select-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.country-option-copy strong,
.country-option-copy small {
  display: block;
}

.country-option-copy strong {
  color: var(--text);
  font-size: 10px;
}

.country-option-copy small {
  color: var(--muted);
  font-size: 7px;
}

.country-option-check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .2s ease;
}

.country-option-check .icon {
  width: 10px;
  height: 10px;
}

.country-select-option.is-selected .country-option-check,
.country-select-option:has(input:checked) .country-option-check {
  opacity: 1;
  transform: scale(1);
}

.alert-info {
  border-color: rgba(22, 189, 233, .2);
  background: color-mix(in srgb, var(--cyan) 9%, var(--surface-solid));
}

html[data-theme="dark"] .register-form-panel,
html[data-theme="system"] .register-form-panel {
  box-shadow: inset 1px 0 rgba(255, 255, 255, .025);
}

html[data-theme="dark"] .secure-form-badge,
html[data-theme="dark"] .country-currency-pill,
html[data-theme="dark"] .register-security-note {
  color: #79e8a8;
}

@keyframes register-shell-in {
  from { opacity: 0; transform: translateY(16px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes register-orbit {
  to { transform: rotate(360deg); }
}

@keyframes register-core {
  0%, 100% { transform: scale(.82); opacity: .55; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes register-glow {
  0%, 100% { transform: scale(.9); opacity: .13; }
  50% { transform: scale(1.08); opacity: .22; }
}

@keyframes register-button-shine {
  0%, 64% { left: -45%; opacity: 0; }
  72% { opacity: 1; }
  90%, 100% { left: 120%; opacity: 0; }
}

@keyframes register-flag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes register-currency-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.06); filter: drop-shadow(0 4px 7px rgba(0, 170, 85, .2)); }
}

@keyframes country-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .register-shell {
    grid-template-columns: 1fr;
  }

  .register-story {
    min-height: 0;
    border-radius: 23px 23px 0 0;
  }

  .register-form-panel {
    border-radius: 0 0 23px 23px;
  }

  .register-story h1 {
    max-width: 680px;
  }

  .register-trust-grid {
    max-width: 610px;
  }
}

@media (max-width: 650px) {
  .register-shell {
    border-radius: 17px;
  }

  .register-story {
    padding: 19px 16px;
    border-radius: 16px 16px 0 0;
  }

  .register-story .auth-story-logo {
    width: 56px;
  }

  .register-brand-orbit {
    top: -8px;
    right: 0;
    width: 82px;
  }

  .register-story h1 {
    margin-top: 13px;
    font-size: clamp(27px, 9vw, 36px);
  }

  .register-proof-row {
    margin-top: 13px;
  }

  .register-trust-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 13px;
  }

  .register-trust-grid > div {
    padding: 8px;
  }

  .register-form-panel {
    padding: 20px 14px 23px;
    border-radius: 0 0 16px 16px;
  }

  .register-form-heading {
    gap: 9px;
  }

  .secure-form-badge {
    min-height: 27px;
    padding-inline: 7px;
    font-size: 7px;
  }

  .register-progress {
    gap: 5px;
    margin: 13px 0 15px;
  }

  .register-progress span {
    min-height: 31px;
    gap: 4px;
    padding-inline: 6px;
    font-size: 7px;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .register-form .field-full {
    grid-column: auto;
  }

  .country-select-menu {
    position: static;
    margin-top: 6px;
    box-shadow: var(--shadow-sm);
  }

  .register-security-note {
    font-size: 7px;
  }
}

@media (max-width: 390px) {
  .register-form-heading {
    display: block;
  }

  .secure-form-badge {
    margin-top: 9px;
  }

  .register-progress span {
    justify-content: center;
  }

  .register-progress b {
    display: none;
  }

  .country-select-trigger {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    padding-inline: 8px;
  }

  .country-currency-pill {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-shell,
  .register-story::before,
  .register-story::after,
  .register-brand-orbit::before,
  .register-brand-orbit::after,
  .register-brand-orbit span,
  .register-submit::before,
  .country-flag-frame img,
  .country-currency-pill img,
  .country-option-currency img,
  .country-select-menu,
  .team-logo-image,
  .team-logo--image::after {
    animation: none !important;
  }

  .register-trust-grid > div,
  .country-select-trigger,
  .country-select-option,
  .country-option-check,
  .country-select-chevron,
  .team-logo-image {
    transition: none !important;
  }
}
