:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(13, 29, 47, .86);
  --surface-strong: #0c1a2a;
  --line: rgba(177, 214, 255, .14);
  --text: #f6f9fc;
  --muted: #9bacc0;
  --cyan: #67e8f9;
  --blue: #4f7cff;
  --lime: #b9f75d;
  --danger: #ff9c9c;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0, rgba(79, 124, 255, .18), transparent 32rem),
    radial-gradient(circle at 10% 90%, rgba(103, 232, 249, .08), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.noise { position: fixed; inset: 0; z-index: -1; opacity: .17; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.topbar, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 800; letter-spacing: .11em; }
.brand-accent, .eyebrow { color: var(--cyan); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(103, 232, 249, .45); border-radius: 10px; transform: rotate(45deg); background: linear-gradient(145deg, rgba(103, 232, 249, .18), rgba(79, 124, 255, .12)); }
.brand-mark span { width: 10px; height: 10px; border: 2px solid var(--cyan); border-radius: 50%; }
.nav-form { margin: 0; }
.nav-link { padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; }
.eyebrow { margin: 0 0 17px; font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.035em; }

.auth-shell { min-height: calc(100vh - 202px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(45px, 8vw, 100px); padding: 72px 0; }
.auth-copy > p:not(.eyebrow) { max-width: 540px; color: var(--muted); font-size: 1.08rem; }
.feature-list { margin: 34px 0 0; padding: 0; display: grid; gap: 13px; color: var(--muted); list-style: none; }
.feature-list li::before { content: "✓"; margin-right: 11px; color: var(--lime); }
.auth-card, .panel, .notice { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(14, 31, 50, .94), rgba(8, 20, 35, .9)); box-shadow: 0 30px 90px rgba(0, 0, 0, .28); }
.auth-card { padding: clamp(25px, 5vw, 42px); border-radius: 26px; }
.auth-card label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.auth-card input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text); background: rgba(4, 13, 24, .66); }
.auth-card input:focus { border-color: rgba(103, 232, 249, .65); box-shadow: 0 0 0 3px rgba(103, 232, 249, .08); }
.hint { margin: -8px 0 22px; color: var(--muted); font-size: .76rem; }
.alert { margin-bottom: 20px; padding: 12px 14px; border: 1px solid rgba(255, 156, 156, .28); border-radius: 11px; color: var(--danger); background: rgba(255, 83, 83, .07); font-size: .86rem; }
.button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; border: 0; border-radius: 13px; font-weight: 800; cursor: pointer; }
.button-primary { color: #07111f; background: linear-gradient(110deg, var(--cyan), #93c5fd); box-shadow: 0 12px 36px rgba(103, 232, 249, .14); }
.auth-card .button { width: 100%; }
.button-danger { border-color: rgba(248, 113, 113, .55); color: #fee2e2; background: rgba(127, 29, 29, .55); }
.button-danger:hover { background: rgba(153, 27, 27, .72); }
.account-actions { margin: -52px 0 72px; text-align: right; font-size: .8rem; }
.account-actions a { color: #fca5a5; }
.switch { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: .84rem; }
.switch a, .back-link { color: var(--cyan); }

.dashboard-head { padding: 72px 0 52px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.dashboard-head h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.dashboard-head p:not(.eyebrow), .simple-head > p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.user-chip { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.panel { min-height: 345px; padding: clamp(26px, 4vw, 38px); border-radius: 24px; }
.panel-head { margin-bottom: 45px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.status { padding: 6px 10px; border-radius: 999px; }
.status-pending { color: #ffd69c; background: rgba(255, 182, 83, .1); }
.status-active { color: var(--lime); background: rgba(185, 247, 93, .1); }
.subscription-panel h2 { max-width: 530px; margin-bottom: 38px; }
.subscription-panel dl { margin: 0 0 32px; display: flex; gap: 50px; }
.subscription-panel dl div { display: grid; gap: 4px; }
.subscription-panel dt { color: var(--muted); font-size: .74rem; }
.subscription-panel dd { margin: 0; font-weight: 700; }
.step-count { color: var(--cyan); }
.steps-panel ol { margin: 0; padding: 0; display: grid; gap: 24px; list-style: none; }
.steps-panel li { display: flex; align-items: center; gap: 15px; }
.steps-panel li > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(103, 232, 249, .3); border-radius: 11px; color: var(--cyan); }
.steps-panel li div { display: grid; gap: 2px; }
.steps-panel small { color: var(--muted); }
.notice { margin: 22px 0 72px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 20px; border-radius: 16px; color: var(--muted); font-size: .84rem; }
.notice strong { color: var(--text); }

.simple-head { padding: 72px 0 50px; }
.simple-head .back-link { display: inline-block; margin-bottom: 45px; }
.plans { padding-bottom: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plans article { position: relative; min-height: 260px; padding: 30px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.plans strong { font-size: 2.2rem; }
.plans button { margin-top: auto; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(4, 13, 24, .55); }
.plans form { margin-top: auto; }
.plans form .button { width: 100%; border: 0; color: #07111f; background: linear-gradient(110deg, var(--cyan), #93c5fd); }
.plans .featured { border-color: rgba(103, 232, 249, .35); }
.plans em { position: absolute; top: 24px; right: 24px; color: var(--lime); font-size: .72rem; font-style: normal; }
footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 800px) {
  .auth-shell, .dashboard-grid { grid-template-columns: 1fr; }
  .auth-shell { padding-top: 52px; }
  .dashboard-head { align-items: start; flex-direction: column; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .topbar, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .topbar { min-height: 70px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .auth-shell { gap: 38px; padding-bottom: 56px; }
  .panel { min-height: 0; }
  .subscription-panel dl { gap: 28px; }
  .notice, footer { align-items: flex-start; flex-direction: column; }
  footer { padding: 28px 0; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
