:root {
  color-scheme: dark;
  --bg: #09111f;
  --bg-elev: rgba(11, 19, 33, 0.88);
  --bg-soft: rgba(14, 24, 39, 0.74);
  --card: rgba(12, 21, 36, 0.76);
  --card-strong: rgba(16, 27, 46, 0.92);
  --line: rgba(157, 176, 210, 0.14);
  --line-strong: rgba(182, 198, 228, 0.24);
  --text: #edf3ff;
  --muted: #96a6c5;
  --muted-strong: #b7c5e1;
  --accent: #7c6bff;
  --accent-strong: #9a8dff;
  --accent-2: #2ed8b0;
  --danger: #ff6b88;
  --warning: #f2c15a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #eff4fb;
  --bg-elev: rgba(255, 255, 255, 0.8);
  --bg-soft: rgba(255, 255, 255, 0.92);
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(43, 68, 108, 0.08);
  --line-strong: rgba(43, 68, 108, 0.14);
  --text: #10203a;
  --muted: #627492;
  --muted-strong: #48617f;
  --accent: #635bff;
  --accent-strong: #756dff;
  --accent-2: #0aa881;
  --danger: #d43d63;
  --warning: #bb8c18;
  --shadow: 0 22px 56px rgba(25, 49, 84, 0.10);
  --shadow-soft: 0 14px 34px rgba(38, 60, 97, 0.08);
}

* { box-sizing: border-box; }
html { font-size: 14px; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 107, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(46, 216, 176, 0.10), transparent 26%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
input:not([type='checkbox']):not([type='radio']) {
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 13px 15px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  font: inherit;
  width: 100%;
  min-height: 46px;
  appearance: none;
  -webkit-appearance: none;
}
input:not([type='checkbox']):not([type='radio'])::placeholder { color: var(--muted); opacity: 1; }
html[data-theme='light'] input:not([type='checkbox']):not([type='radio']) { background: rgba(12,30,56,.02); }
button { cursor: pointer; }
strong { font-weight: 800; }

.shell, .app-shell, .auth-shell { min-height: 100vh; }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(124, 107, 255, 0.32), rgba(46, 216, 176, 0.18));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  font-weight: 800;
}
.brand-title { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-subtitle { color: var(--muted); font-size: 0.72rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  z-index: 10;
}
.landing-topbar { max-width: 1240px; margin: 0 auto; border-bottom: 0; background: transparent; position: static; }
body { overflow-x: hidden; }
.dashboard-hero > *, .split-card > *, .section-card > *, .topbar > *, .topbar-left, .topbar-right { min-width: 0; }
.page-label, .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-weight: 700;
  color: #7ed3ff;
}
.page-title-small { font-size: 0.84rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar-left, .topbar-right, .header-actions, .hero-actions, .bot-head, .section-head, .bot-stats-inline, .row-gap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }

.primary-btn, .ghost-btn, .theme-btn, .balance-pill, .icon-btn {
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  transition: .2s ease;
  font-size: 0.86rem;
  font-weight: 700;
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 14px 28px rgba(106, 90, 255, 0.24);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(106, 90, 255, 0.28); }
.ghost-btn, .theme-btn, .balance-pill, .icon-btn {
  background: rgba(255,255,255,.03);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.ghost-btn:hover, .theme-btn:hover, .icon-btn:hover { background: rgba(255,255,255,.08); }
.theme-btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.theme-icon {
  font-size: 1.18rem;
  line-height: 1;
}
.theme-icon--sun { display: none; }
.theme-icon--moon { color: #5a86ff; }
html[data-theme='light'] .theme-icon--moon { display: none; }
html[data-theme='light'] .theme-icon--sun { display: inline-block; color: #f2a33a; }
html[data-theme='dark'] .theme-icon--moon { display: inline-block; }
html[data-theme='dark'] .theme-icon--sun { display: none; }
html[data-theme='light'] .ghost-btn,
html[data-theme='light'] .theme-btn,
html[data-theme='light'] .balance-pill,
html[data-theme='light'] .icon-btn { background: rgba(12,30,56,.03); }
.large { padding: 14px 20px; }
.wide { width: 100%; justify-content: center; display: inline-flex; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.mobile-only { display: none; }

.landing-shell { padding: 0 20px 40px; }
.landing-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.55fr .92fr; gap: 22px; }
.dashboard-layout > * { width: 100%; }
.section-head h2 { margin-bottom: 0; }
.hero-card, .section-card, .auth-card, .sidebar-card, .stat-card, .bot-card, .price-card, .empty-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.hero-main { padding: 34px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.hero-main h1, .auth-card h1, .dashboard-hero h1 {
  font-size: clamp(1.58rem, 2.85vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  max-width: 760px;
  margin: 10px 0 14px;
}
.dashboard-hero h1 {
  font-size: clamp(1.18rem, 2.1vw, 1.82rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 700px;
  margin: 8px 0 12px;
}
.hero-copy, .auth-copy, .dashboard-hero p, .step-card p, .feature-card p, .price-card li, .tiny-copy, .stat-card small, .bot-card p {
  color: var(--muted);
  line-height: 1.6;
}
.hero-badges { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  font-size: 0.84rem;
  color: var(--muted-strong);
}
.metrics-card { padding: 24px; display: grid; gap: 12px; align-content: center; }
.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.metric-item span { color: var(--muted); font-size: 0.82rem; }
.metric-item strong { font-size: 1.02rem; letter-spacing: -0.03em; }
.section-card { padding: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); }
.section-card h2 { margin: 8px 0 14px; font-size: 1.28rem; letter-spacing: -0.04em; }
.steps-grid, .feature-grid, .stats-grid, .bots-grid { display: grid; gap: 16px; }
.steps-grid, .feature-grid { grid-template-columns: repeat(4, 1fr); }
.step-card, .feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255,255,255,.025);
}
.step-card h3, .feature-card h3 { margin: 0 0 8px; font-size: 0.82rem; letter-spacing: -0.03em; }
.step-card span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124,107,255,.18);
  margin-bottom: 12px;
  font-weight: 800;
}

.auth-shell { display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(560px, 100%); padding: 32px; }
.auth-back { color: var(--muted); display: inline-block; margin-bottom: 12px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.stack-form input {
  width: 100%;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 13px 15px;
  background: rgba(255,255,255,.02);
  color: var(--text);
}
html[data-theme='light'] .stack-form input { background: rgba(12,30,56,.02); }
.tiny-copy { font-size: 0.82rem; }
.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.alert.success { background: rgba(32, 208, 167, .13); }
.alert.error { background: rgba(255, 107, 136, .14); }

.app-shell { display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  padding: 18px 16px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,14,25,.96), rgba(9,17,31,.92));
  min-height: 100vh;
  position: sticky;
  top: 0;
}
html[data-theme='light'] .sidebar { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,255,.96)); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sidebar-nav { display: grid; gap: 6px; margin-bottom: 14px; }
.nav-link {
  padding: 10px 12px;
  border-radius: 15px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
}
.nav-link.active, .nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line); }
html[data-theme='light'] .nav-link.active, html[data-theme='light'] .nav-link:hover { background: rgba(12,30,56,.04); }
.sidebar-card {
  padding: 14px;
  display: grid;
  gap: 6px;
  margin-top: 16px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
}
.sidebar-card span, .sidebar-card small { color: var(--muted); }
.sidebar-card strong { font-size: 1.14rem; letter-spacing: -0.04em; }
.sidebar-footer { margin-top: 16px; }
.sidebar-overlay { display: none; }
.content-shell {
  min-width: 0;
  width: 100%;
  background:
    radial-gradient(circle at top, rgba(124,107,255,.10), transparent 28%),
    transparent;
}
.dashboard-layout {
  padding: 20px 22px 26px;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: none;
}
.dashboard-hero {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  gap: 16px;
  align-items: end;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), var(--card);
}
.dashboard-hero p { max-width: 720px; margin: 0; font-size: 0.90rem; }
.hero-inline-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-self: stretch; width: 100%; }
.tiny-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.tiny-stat span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.tiny-stat strong { font-size: 0.96rem; letter-spacing: -0.03em; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  padding: 18px;
  display: grid;
  gap: 6px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.stat-card span { color: var(--muted); font-size: 0.82rem; }
.stat-card strong { font-size: clamp(1.18rem, 1.45vw, 1.52rem); letter-spacing: -0.04em; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}
.table-wrap thead th { color: var(--muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }
.split-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.connect-grid { align-items: stretch; }
.connect-pane {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.connect-pane__head {
  display: grid;
  align-content: start;
  min-height: 132px;
}
.connect-pane__head h2 { margin-bottom: 10px; }
.connect-pane__head p { margin: 0; }
.connect-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.connect-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.dashboard-layout--bots .connect-pane .primary-btn,
.dashboard-layout--bots .connect-pane .ghost-btn {
  min-height: 44px;
}
.compact-form { margin-top: 14px; }
.payment-form { margin-top: 18px; }
.bots-grid { grid-template-columns: repeat(2, 1fr); }
.bot-card { padding: 18px; }
.bot-head { align-items: start; justify-content: space-between; }
.bot-head h3 { margin: 0 0 6px; font-size: 0.98rem; letter-spacing: -0.03em; }
.bot-stats-inline { margin: 16px 0 12px; justify-content: start; flex-wrap: wrap; }
.bot-stats-inline > div {
  min-width: 112px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}
.bot-stats-inline span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.bot-stats-inline strong { font-size: 1.08rem; }
.price-card { padding: 22px; }
.price-card h3 { margin: 8px 0 14px; font-size: 1.06rem; letter-spacing: -0.03em; }
.list-clean { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.empty-card { padding: 22px; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .landing-grid, .steps-grid, .feature-grid, .stats-grid, .split-card, .bots-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .hero-inline-stats { width: 100%; }
}

@media (max-width: 820px) {
  .mobile-only { display: inline-grid; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: .24s ease;
    z-index: 40;
    box-shadow: var(--shadow);
  }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(3, 9, 18, .56); backdrop-filter: blur(2px); z-index: 30; }
  .app-shell.sidebar-open .sidebar-overlay { display: block; }
  .landing-grid, .steps-grid, .feature-grid, .split-card, .bots-grid { grid-template-columns: 1fr; }
  .hero-main, .section-card, .auth-card { padding: 20px; }
  .dashboard-layout { padding: 16px; gap: 16px; }
  .topbar { padding: 14px 16px; gap: 10px; }
  .topbar-right { gap: 8px; }
  .balance-pill, .theme-btn { font-size: .82rem; padding: 10px 12px; }
  .theme-btn--icon { width: 44px; height: 44px; padding: 0; }

  .dashboard-layout--overview .dashboard-hero {
    padding: 16px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    overflow: hidden;
  }
  .dashboard-layout--overview .dashboard-hero h1 {
    font-size: 1.08rem;
    line-height: 1.18;
    letter-spacing: -0.035em;
    max-width: 100%;
    margin: 8px 0 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .dashboard-layout--overview .dashboard-hero p {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .dashboard-layout--overview .hero-inline-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .dashboard-layout--overview .tiny-stat {
    min-width: 0;
    padding: 12px 10px;
    border-radius: 16px;
  }
  .dashboard-layout--overview .tiny-stat span {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }
  .dashboard-layout--overview .tiny-stat strong {
    font-size: 1.02rem;
  }
  .dashboard-layout--overview .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .dashboard-layout--overview .stat-card {
    min-height: 108px;
    padding: 16px;
  }

  .dashboard-layout--balance .split-card {
    gap: 14px;
  }
  .dashboard-layout--balance .section-card,
  .dashboard-layout--balance .price-card {
    padding: 18px;
    overflow: hidden;
  }
  .dashboard-layout--balance .payment-form input,
  .dashboard-layout--balance .payment-form .primary-btn,
  .dashboard-layout--balance .payment-form .ghost-btn {
    width: 100%;
  }
  .dashboard-layout--balance .price-card h3 {
    font-size: 1rem;
  }
  .dashboard-layout--balance .list-clean {
    gap: 8px;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dashboard-layout--balance .table-wrap table,
  .dashboard-layout--overview .table-wrap table {
    min-width: 520px;
  }
}

@media (max-width: 560px) {
  html { font-size: 13px; }
  .landing-shell, .auth-shell { padding: 14px; }
  .hero-actions, .header-actions, .topbar-right { flex-wrap: wrap; }
  .topbar { align-items: flex-start; }
  .dashboard-layout--overview .dashboard-hero h1 {
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .dashboard-layout--overview .hero-inline-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .dashboard-layout--overview .stats-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-layout--balance .table-wrap table,
  .dashboard-layout--overview .table-wrap table {
    min-width: 460px;
  }
  .table-wrap th, .table-wrap td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }
  .dashboard-hero, .stat-card, .bot-card, .price-card, .section-card, .hero-main, .metrics-card { border-radius: 22px; }
}

@media (max-width: 420px) {
  .dashboard-layout--overview .hero-inline-stats {
    grid-template-columns: 1fr;
  }
}


/* mobile corrective rebuild for overview and balance */
@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .content-shell, .dashboard-layout, .section-card, .dashboard-hero, .stat-card, .price-card, .bot-card { min-width: 0; }
  .dashboard-layout--overview .dashboard-hero {
    padding: 18px;
    gap: 14px;
    align-items: start;
  }
  .dashboard-layout--overview .dashboard-hero > div:first-child {
    min-width: 0;
  }
  .dashboard-layout--overview .dashboard-hero h1 {
    font-size: 1.22rem;
    line-height: 1.14;
    max-width: 100%;
    margin: 6px 0 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .dashboard-layout--overview .dashboard-hero p {
    font-size: 0.84rem;
    line-height: 1.5;
  }
  .dashboard-layout--overview .hero-inline-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .dashboard-layout--overview .tiny-stat {
    padding: 12px;
    min-height: 86px;
    display: grid;
    align-content: center;
  }
  .dashboard-layout--overview .tiny-stat span { font-size: 0.74rem; }
  .dashboard-layout--overview .tiny-stat strong { font-size: 1.1rem; }
  .dashboard-layout--overview .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .dashboard-layout--overview .stat-card {
    padding: 16px;
    min-height: 104px;
  }
  .dashboard-layout--overview .section-card {
    padding: 18px;
  }

  .dashboard-layout--balance .section-card,
  .dashboard-layout--balance .price-card {
    padding: 18px;
  }
  .dashboard-layout--balance .split-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-layout--bots .connect-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-layout--bots .connect-pane__head {
    min-height: auto;
  }
  .dashboard-layout--balance .stack-form label,
  .dashboard-layout--balance .stack-form input,
  .dashboard-layout--balance .stack-form button {
    min-width: 0;
  }
  .dashboard-layout--balance .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .dashboard-layout--overview .dashboard-hero {
    padding: 16px;
  }
  .dashboard-layout--overview .dashboard-hero h1 {
    font-size: 1.08rem;
    line-height: 1.16;
  }
  .dashboard-layout--overview .hero-inline-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .dashboard-layout--overview .tiny-stat {
    padding: 10px;
    min-height: 74px;
    border-radius: 14px;
  }
  .dashboard-layout--overview .tiny-stat strong { font-size: 1rem; }
  .dashboard-layout--overview .stats-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-layout--overview .stat-card strong {
    font-size: 1.34rem;
  }
  .dashboard-layout--balance .section-card,
  .dashboard-layout--balance .price-card {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .dashboard-layout--overview .hero-inline-stats {
    grid-template-columns: 1fr;
  }
}


select {
  width: 100%;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 13px 15px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  font: inherit;
}
html[data-theme='light'] select { background: rgba(12,30,56,.02); }
.inline-credit-form--owner {
  align-items: stretch;
  flex-wrap: wrap;
}
.inline-credit-form--owner input[type='text'] {
  min-width: 180px;
  flex: 1 1 180px;
}
textarea {
  width: 100%;
  min-height: 116px;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 13px 15px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  resize: vertical;
  font: inherit;
}
html[data-theme='light'] textarea { background: rgba(12,30,56,.02); }
.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.check-row input { width: auto; }
.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-card {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}
.settings-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.compact-grid-form { grid-template-columns: 1fr 1fr; align-items: end; }
.compact-grid-form .primary-btn { grid-column: 1 / -1; }
.inline-credit-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-credit-form input {
  width: 88px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 9px 10px;
  background: rgba(255,255,255,.02);
  color: var(--text);
}
html[data-theme='light'] .inline-credit-form input { background: rgba(12,30,56,.02); }
.bots-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid--pay { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; }
.public-pay-shell { min-height: 100vh; padding: 26px; }
.public-pay-card { width: min(760px, 100%); }
.public-pay-form { margin-top: 18px; }
.compact-note { padding: 18px; margin-top: 18px; }
.compact-note h2 { margin: 0 0 8px; font-size: 1.1rem; }

@media (max-width: 1100px) {
  .management-grid, .bots-grid--wide, .stats-grid--stats, .stats-grid--pay { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .management-grid, .bots-grid--wide, .stats-grid--stats, .stats-grid--pay, .compact-grid-form { grid-template-columns: 1fr; }
  .inline-credit-form { flex-direction: column; align-items: stretch; }
  .inline-credit-form input { width: 100%; }
}


.owner-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.owner-filter-form > * {
  flex: 1 1 180px;
  min-width: 0;
}
.owner-filter-form > input:first-child {
  flex: 1.8 1 320px;
}
.owner-filter-form > button {
  flex: 0 0 160px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.owner-filter-form input,
.owner-filter-form select {
  min-height: 46px;
}
.owner-filter-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.owner-quick-links,
.owner-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.owner-quick-links .ghost-btn,
.owner-inline-links .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.owner-quick-links--finance {
  margin-top: 4px;
}
.owner-finance-stats .stat-card {
  min-height: 114px;
}
.section-head--stack {
  display: grid;
  gap: 12px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--line);
}
.status-badge--ok {
  background: rgba(32, 208, 167, .14);
  color: var(--accent-2);
}
.status-badge--danger {
  background: rgba(255, 107, 136, .14);
  color: var(--danger);
}
.ghost-btn--danger {
  border-color: rgba(255,107,136,.32);
  color: #ffd8e1;
}
html[data-theme='light'] .ghost-btn--danger {
  color: var(--danger);
}
@media (max-width: 820px) {
  .owner-filter-form > * {
    flex-basis: 100%;
  }
  .owner-filter-form > button {
    flex-basis: 100%;
  }
  .owner-quick-links .ghost-btn,
  .owner-inline-links .ghost-btn {
    width: 100%;
  }
}

/* dashboard IA polish */
.sidebar-nav--grouped {
  gap: 8px;
}
.sidebar-group {
  display: grid;
  gap: 4px;
}
.sidebar-group + .sidebar-group {
  margin-top: 4px;
}
.sidebar-group-title {
  padding: 0 4px 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar-card--admin-balance {
  gap: 10px;
}
.sidebar-quick-links {
  display: grid;
  gap: 8px;
}
.page-intro-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.page-intro-copy {
  min-width: 0;
}
.page-intro-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.page-intro-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}
.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.dashboard-hero--admin {
  align-items: center;
}
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.status-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}
.status-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.status-banner--warning {
  background: rgba(242, 193, 90, 0.10);
}
.status-banner--neutral {
  background: rgba(124, 107, 255, 0.10);
}
.status-banner--ok {
  background: rgba(32, 208, 167, .12);
}
.launch-card {
  display: grid;
  gap: 16px;
}
.launch-card__head {
  align-items: start;
}
.launch-summary {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 6px;
  text-align: right;
}
.launch-summary__value {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.launch-summary__label {
  color: var(--muted);
  font-size: 0.82rem;
}
.launch-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  overflow: hidden;
}
.launch-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.launch-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.launch-step {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  transition: .2s ease;
}
.launch-step:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.launch-step--done {
  background: rgba(32, 208, 167, .06);
}
.launch-step--current {
  background: rgba(124, 107, 255, .08);
}
.launch-step--pending {
  background: rgba(242, 193, 90, .08);
}
.launch-step--blocked {
  opacity: .88;
}
.launch-step__top, .launch-step__footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.launch-step__action {
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.control-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  transition: .2s ease;
}
.control-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.04);
}
html[data-theme='light'] .control-card:hover {
  background: rgba(12,30,56,.035);
}
.control-card__meta {
  color: #7ed3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.control-card__title {
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.control-card__desc {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.86rem;
}
.control-card--danger {
  background: rgba(255, 107, 136, .08);
}
.control-card--warning {
  background: rgba(242, 193, 90, .08);
}
.control-card--ok {
  background: rgba(32, 208, 167, .06);
}

@media (max-width: 1100px) {
  .launch-steps-grid, .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-intro-card,
  .status-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .launch-card__head,
  .launch-step__top,
  .launch-step__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .launch-summary {
    width: 100%;
    text-align: left;
  }
  .page-intro-actions {
    justify-content: flex-start;
  }
  .launch-steps-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-group-title {
    padding-left: 2px;
  }
}

.status-badge--neutral {
  background: rgba(124, 107, 255, .12);
  color: #cfc8ff;
}
.payment-method-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.payment-method-card {
  display: grid;
  gap: 12px;
}
.payment-method-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.payment-method-card__head h3 {
  margin: 8px 0 0;
  font-size: 1.02rem;
}
.finance-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.empty-card--compact {
  text-align: left;
  padding: 16px;
}
.empty-card--compact strong {
  display: block;
  margin-bottom: 8px;
}
.empty-card--compact p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}
.ghost-btn--compact {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}
.owner-payment-readiness {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .finance-mini-grid {
    grid-template-columns: 1fr;
  }
  .payment-method-card__head {
    flex-direction: column;
    align-items: stretch;
  }
}


/* v0.4.5 — minimal premium polish: calmer, cleaner, less noisy */
:root {
  --bg: #080f1c;
  --card: rgba(10, 18, 31, 0.72);
  --card-strong: rgba(12, 22, 38, 0.88);
  --line: rgba(180, 198, 232, 0.11);
  --line-strong: rgba(200, 214, 240, 0.18);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.20);
}
html[data-theme='light'] {
  --bg: #f4f7fb;
  --card: rgba(255,255,255,.82);
  --card-strong: rgba(255,255,255,.94);
  --line: rgba(42, 64, 100, 0.075);
  --line-strong: rgba(42, 64, 100, 0.13);
}
html, body {
  background:
    radial-gradient(circle at 14% -6%, rgba(124,107,255,.10), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(46,216,176,.055), transparent 28%),
    var(--bg);
}
.topbar {
  padding: 15px 22px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.brand-title { font-size: .9rem; letter-spacing: -.035em; }
.brand-subtitle { font-size: .72rem; }
.brand-icon {
  background: linear-gradient(160deg, rgba(124,107,255,.24), rgba(46,216,176,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 28px rgba(0,0,0,.12);
}
.primary-btn {
  box-shadow: 0 12px 26px rgba(106, 90, 255, 0.18);
}
.primary-btn:hover { box-shadow: 0 14px 30px rgba(106, 90, 255, 0.22); }
.ghost-btn, .theme-btn, .balance-pill, .icon-btn {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ghost-btn:hover, .theme-btn:hover, .icon-btn:hover {
  background: rgba(255,255,255,.065);
  border-color: var(--line-strong);
}
.theme-btn--icon { width: 44px; height: 44px; border-radius: 16px; }
.app-shell { grid-template-columns: 246px 1fr; }
.sidebar {
  padding: 20px 16px 16px;
  background: linear-gradient(180deg, rgba(6,12,22,.98), rgba(8,15,28,.94));
}
.sidebar-nav { gap: 5px; }
.sidebar-group { gap: 5px; }
.sidebar-group + .sidebar-group { margin-top: 12px; }
.sidebar-group-title {
  margin-bottom: 4px;
  opacity: .82;
}
.nav-link {
  padding: 10px 12px;
  border-radius: 14px;
  transition: .18s ease;
}
.nav-link.active, .nav-link:hover {
  background: linear-gradient(135deg, rgba(124,107,255,.115), rgba(46,216,176,.035));
  border-color: var(--line);
}
.sidebar-card {
  background: linear-gradient(180deg, rgba(124,107,255,.055), rgba(255,255,255,.012)), color-mix(in srgb, var(--card) 82%, transparent);
}
.dashboard-layout {
  padding: 24px 26px 30px;
  gap: 18px;
}
.hero-card, .section-card, .auth-card, .sidebar-card, .stat-card, .bot-card, .price-card, .empty-card {
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)), var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.dashboard-hero {
  padding: 28px 30px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(124,107,255,.10), transparent 34%),
    radial-gradient(circle at bottom left, rgba(46,216,176,.055), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)), var(--card);
}
.dashboard-hero h1 { font-size: clamp(1.34rem, 2.15vw, 1.95rem); }
.dashboard-hero p { font-size: .93rem; max-width: 760px; }
.hero-inline-stats { gap: 12px; }
.tiny-stat {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  background: rgba(255,255,255,.022);
}
.tiny-stat span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}
.tiny-stat strong { font-size: 1.2rem; }
.stats-grid { gap: 16px; }
.stat-card {
  min-height: 120px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.01)), color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow-soft);
}
.stat-card span {
  text-transform: uppercase;
  letter-spacing: .095em;
  font-size: .74rem;
}
.stat-card strong { font-size: clamp(1.28rem, 1.55vw, 1.68rem); }
.stat-card small { color: var(--muted); }
.section-card { padding: 24px; }
.section-head { justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 6px 0 0; }
.status-banner {
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(242,193,90,.075), rgba(255,255,255,.014));
}
.status-banner--neutral {
  background: linear-gradient(90deg, rgba(124,107,255,.075), rgba(255,255,255,.014));
}
.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}
.table-wrap th, .table-wrap td { padding: 13px 10px; }
.table-wrap thead th {
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .76rem;
}
.table-wrap tbody tr:hover td { background: rgba(255,255,255,.018); }
.dashboard-layout--overview .table-wrap { border-top: 1px solid rgba(255,255,255,.035); padding-top: 2px; }
.dashboard-layout--overview .table-wrap tbody tr:last-child td { border-bottom: 0; }
.topbar-right .balance-pill { display: inline-flex; justify-content: center; min-width: 82px; }
@media (max-width: 820px) {
  .dashboard-layout { padding: 16px; gap: 16px; }
  .dashboard-hero { padding: 18px; grid-template-columns: 1fr; }
  .hero-inline-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { min-height: 104px; padding: 16px; }
  .section-card { padding: 18px; }
}
@media (max-width: 560px) {
  .dashboard-layout { padding: 14px; }
  .dashboard-hero h1 { font-size: 1.08rem; line-height: 1.18; }
  .hero-inline-stats { gap: 8px; }
  .tiny-stat { min-height: 74px; padding: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* v0.4.6 — design experiment: neon dusk */
:root {
  --bg: #070b16;
  --bg-elev: rgba(9, 14, 27, 0.92);
  --bg-soft: rgba(14, 20, 38, 0.78);
  --card: rgba(12, 18, 35, 0.72);
  --card-strong: rgba(18, 25, 48, 0.92);
  --line: rgba(151, 177, 224, 0.13);
  --line-strong: rgba(139, 168, 255, 0.28);
  --text: #f3f7ff;
  --muted: #93a2c0;
  --muted-strong: #bdc9e2;
  --accent: #8b5cf6;
  --accent-strong: #38bdf8;
  --accent-2: #2dd4bf;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
}
html[data-theme='light'] {
  --bg: #f4f7fb;
  --bg-elev: rgba(255,255,255,.88);
  --bg-soft: rgba(255,255,255,.94);
  --card: rgba(255,255,255,.86);
  --card-strong: rgba(255,255,255,.98);
  --line: rgba(29, 57, 96, .09);
  --line-strong: rgba(88, 111, 190, .20);
  --text: #14233d;
  --muted: #65758f;
  --muted-strong: #445976;
  --accent: #7657ff;
  --accent-strong: #0ea5e9;
  --accent-2: #0f9f8d;
}
html, body {
  background:
    radial-gradient(circle at 18% -10%, rgba(139, 92, 246, .24), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(56, 189, 248, .14), transparent 30%),
    radial-gradient(circle at 52% 105%, rgba(45, 212, 191, .09), transparent 34%),
    var(--bg);
}
.topbar {
  padding: 16px 22px;
  background: rgba(7, 11, 22, .76);
  border-bottom: 1px solid rgba(151, 177, 224, .12);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
html[data-theme='light'] .topbar { background: rgba(248,250,255,.82); }
.sidebar {
  background:
    radial-gradient(circle at 30% 0%, rgba(139, 92, 246, .13), transparent 30%),
    linear-gradient(180deg, rgba(6, 10, 20, .98), rgba(8, 13, 25, .96));
  box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
}
html[data-theme='light'] .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,248,255,.98));
}
.brand-icon {
  background: linear-gradient(145deg, rgba(139,92,246,.48), rgba(56,189,248,.20));
  box-shadow: 0 14px 28px rgba(84, 68, 255, .18), inset 0 1px 0 rgba(255,255,255,.16);
}
.brand-title { font-size: .9rem; }
.nav-link {
  padding: 11px 13px;
  transition: .18s ease;
}
.nav-link.active,
.nav-link:hover {
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.06));
  border-color: rgba(139,168,255,.22);
  color: var(--text);
}
.primary-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
  box-shadow: 0 16px 34px rgba(75, 89, 255, .24);
}
.primary-btn:hover { box-shadow: 0 20px 42px rgba(75, 89, 255, .30); }
.ghost-btn, .theme-btn, .balance-pill, .icon-btn {
  background: rgba(255,255,255,.035);
  border-color: rgba(151,177,224,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.ghost-btn:hover, .theme-btn:hover, .icon-btn:hover {
  background: rgba(139,92,246,.10);
  border-color: rgba(139,168,255,.28);
}
.hero-card, .section-card, .auth-card, .sidebar-card, .stat-card, .bot-card, .price-card, .empty-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--card);
  border-color: rgba(151,177,224,.14);
  box-shadow: 0 20px 58px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.035);
}
.dashboard-layout { padding: 24px 26px 30px; gap: 18px; }
.dashboard-hero {
  padding: 30px 32px;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .9fr);
  background:
    radial-gradient(circle at right top, rgba(56, 189, 248, .16), transparent 36%),
    radial-gradient(circle at left bottom, rgba(139, 92, 246, .16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)),
    var(--card);
}
.dashboard-hero h1 { font-size: clamp(1.38rem, 2.15vw, 2rem); letter-spacing: -.055em; }
.dashboard-hero p { font-size: .94rem; color: var(--muted-strong); }
.hero-inline-stats { gap: 14px; }
.tiny-stat {
  min-height: 96px;
  padding: 16px 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  border-color: rgba(151,177,224,.16);
  display: grid;
  align-content: center;
}
.tiny-stat span, .stat-card span {
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .76rem;
}
.tiny-stat strong { font-size: 1.28rem; }
.stat-card {
  min-height: 126px;
  padding: 20px;
  gap: 8px;
}
.stat-card strong { font-size: clamp(1.34rem, 1.7vw, 1.8rem); }
.section-head { justify-content: space-between; margin-bottom: 14px; }
.section-card { padding: 24px; }
.table-wrap table { border-collapse: separate; border-spacing: 0; }
.table-wrap thead th { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.table-wrap th, .table-wrap td { padding: 14px 11px; }
.table-wrap tbody tr:hover td { background: rgba(139,92,246,.045); }
.status-badge--ok { background: rgba(45,212,191,.14); color: #5eead4; }
.status-banner--warning {
  background: linear-gradient(90deg, rgba(242,193,90,.14), rgba(139,92,246,.08));
}
.sidebar-card {
  background:
    radial-gradient(circle at top left, rgba(139,92,246,.14), transparent 42%),
    rgba(255,255,255,.025);
}
.theme-btn--icon { width: 46px; height: 46px; border-radius: 16px; }
.balance-pill { min-width: 82px; display: inline-flex; justify-content: center; }
@media (max-width: 820px) {
  .dashboard-layout { padding: 16px; gap: 14px; }
  .dashboard-hero { padding: 18px; grid-template-columns: 1fr; }
  .hero-inline-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-card { padding: 18px; }
}
@media (max-width: 560px) {
  .hero-inline-stats, .stats-grid { grid-template-columns: 1fr; }
  .topbar { padding: 12px 14px; }
}

/* v0.4.7 — neon boost + mobile adaptation hotfix */
:root {
  --accent: #9f5cff;
  --accent-strong: #00d4ff;
  --accent-2: #22f7c8;
  --neon-purple: rgba(159, 92, 255, .52);
  --neon-blue: rgba(0, 212, 255, .42);
  --neon-mint: rgba(34, 247, 200, .28);
}
html, body {
  background:
    radial-gradient(circle at 14% -8%, rgba(159, 92, 255, .34), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(0, 212, 255, .22), transparent 32%),
    radial-gradient(circle at 52% 112%, rgba(34, 247, 200, .13), transparent 36%),
    linear-gradient(180deg, #050914 0%, #07101e 46%, #050914 100%);
}
.brand-icon,
.theme-btn--icon,
.primary-btn {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 28px rgba(124,107,255,.24),
    0 16px 34px rgba(0,0,0,.22);
}
.hero-card,
.section-card,
.stat-card,
.tiny-stat,
.sidebar-card {
  border-color: rgba(114, 166, 255, .18);
}
.hero-card::before,
.section-card::before,
.stat-card::before,
.tiny-stat::before,
.sidebar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.015);
}
.hero-card,
.section-card,
.stat-card,
.tiny-stat,
.sidebar-card { position: relative; }
.dashboard-hero {
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, .05) inset,
    0 0 42px rgba(159, 92, 255, .10),
    0 26px 70px rgba(0, 0, 0, .32);
}
.dashboard-hero .eyebrow,
.page-label,
.eyebrow {
  color: #7ee7ff;
  text-shadow: 0 0 14px rgba(0, 212, 255, .32);
}
.nav-link.active {
  box-shadow: 0 0 24px rgba(159, 92, 255, .10), inset 0 0 0 1px rgba(0, 212, 255, .05);
}
.stat-card strong,
.tiny-stat strong {
  text-shadow: 0 0 18px rgba(0, 212, 255, .14);
}
.status-badge--ok {
  box-shadow: 0 0 20px rgba(34,247,200,.10);
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .content-shell { width: 100%; min-width: 0; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .topbar-left {
    min-width: 0;
    gap: 8px;
  }
  .topbar-left > div {
    min-width: 0;
  }
  .page-label {
    font-size: .56rem;
    letter-spacing: .14em;
    white-space: normal;
  }
  .page-title-small {
    font-size: .78rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .topbar-right {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
  }
  .topbar-right .ghost-btn {
    display: none;
  }
  .theme-btn--icon,
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .balance-pill {
    min-width: 58px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .dashboard-layout {
    padding: 14px;
    gap: 14px;
  }
  .dashboard-layout--overview .dashboard-hero,
  .dashboard-hero {
    grid-template-columns: 1fr !important;
    padding: 18px;
    gap: 16px;
  }
  .dashboard-layout--overview .hero-inline-stats,
  .hero-inline-stats {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .dashboard-layout--overview .tiny-stat,
  .tiny-stat {
    min-height: 74px;
    padding: 14px 16px;
  }
  .dashboard-layout--overview .tiny-stat span,
  .tiny-stat span {
    font-size: .70rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .dashboard-layout--overview .tiny-stat strong,
  .tiny-stat strong {
    font-size: 1.24rem;
  }
  .stats-grid,
  .dashboard-layout--overview .stats-grid,
  .stats-grid--stats,
  .stats-grid--pay {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .stat-card {
    min-height: 104px;
  }
  .section-card {
    padding: 18px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-wrap table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  html { font-size: 13px; }
  .topbar {
    grid-template-columns: 1fr;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }
  .dashboard-layout { padding: 12px; }
  .dashboard-hero { padding: 16px; }
  .dashboard-hero h1 { font-size: 1.2rem !important; line-height: 1.18; }
  .dashboard-hero p { font-size: .86rem; }
}

/* v0.4.8 — stronger neon for dark theme + correct full light theme */
html[data-theme='dark'] {
  --accent: #a855ff;
  --accent-strong: #00e5ff;
  --accent-2: #2dffd2;
  --line: rgba(121, 201, 255, 0.20);
  --line-strong: rgba(178, 116, 255, 0.38);
}
html[data-theme='dark'],
html[data-theme='dark'] body {
  background:
    radial-gradient(circle at 9% -10%, rgba(168,85,255,.52), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(0,229,255,.38), transparent 30%),
    radial-gradient(circle at 50% 118%, rgba(45,255,210,.22), transparent 38%),
    linear-gradient(180deg, #030612 0%, #07111f 48%, #030612 100%);
}
html[data-theme='dark'] .content-shell {
  background:
    radial-gradient(circle at 8% 12%, rgba(168,85,255,.18), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(0,229,255,.12), transparent 30%),
    transparent;
}
html[data-theme='dark'] .topbar {
  background: rgba(4, 8, 19, .78);
  border-bottom-color: rgba(0,229,255,.16);
  box-shadow: 0 0 34px rgba(0,229,255,.06), 0 18px 34px rgba(0,0,0,.25);
}
html[data-theme='dark'] .sidebar {
  background:
    radial-gradient(circle at top left, rgba(168,85,255,.22), transparent 35%),
    linear-gradient(180deg, rgba(4,8,19,.98), rgba(5,10,22,.96));
  border-right-color: rgba(0,229,255,.16);
}
html[data-theme='dark'] .hero-card,
html[data-theme='dark'] .section-card,
html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .tiny-stat,
html[data-theme='dark'] .bot-card,
html[data-theme='dark'] .price-card,
html[data-theme='dark'] .sidebar-card {
  border-color: rgba(119, 206, 255, .23);
  box-shadow:
    0 0 0 1px rgba(168,85,255,.06) inset,
    0 0 30px rgba(0,229,255,.07),
    0 22px 54px rgba(0,0,0,.30);
}
html[data-theme='dark'] .dashboard-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(168,85,255,.26), transparent 38%),
    radial-gradient(circle at 92% 16%, rgba(0,229,255,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(8,17,33,.86);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.12) inset,
    0 0 42px rgba(168,85,255,.18),
    0 0 54px rgba(0,229,255,.09),
    0 26px 70px rgba(0,0,0,.34);
}
html[data-theme='dark'] .primary-btn {
  background: linear-gradient(135deg, #9d5cff 0%, #00dfff 100%);
  box-shadow: 0 0 22px rgba(0,229,255,.18), 0 16px 32px rgba(168,85,255,.22);
}
html[data-theme='dark'] .primary-btn:hover {
  box-shadow: 0 0 34px rgba(0,229,255,.28), 0 18px 36px rgba(168,85,255,.28);
}
html[data-theme='dark'] .nav-link.active,
html[data-theme='dark'] .nav-link:hover {
  background: linear-gradient(135deg, rgba(168,85,255,.18), rgba(0,229,255,.08));
  border-color: rgba(0,229,255,.22);
  box-shadow: 0 0 24px rgba(0,229,255,.09), inset 0 0 0 1px rgba(168,85,255,.08);
}
html[data-theme='dark'] .theme-btn--icon,
html[data-theme='dark'] .balance-pill,
html[data-theme='dark'] .ghost-btn {
  border-color: rgba(119,206,255,.20);
  box-shadow: 0 0 24px rgba(0,229,255,.08), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme='dark'] .page-label,
html[data-theme='dark'] .eyebrow {
  color: #86f4ff;
  text-shadow: 0 0 16px rgba(0,229,255,.45);
}
html[data-theme='dark'] .stat-card strong,
html[data-theme='dark'] .tiny-stat strong {
  text-shadow: 0 0 18px rgba(0,229,255,.22), 0 0 28px rgba(168,85,255,.13);
}

html[data-theme='light'],
html[data-theme='light'] body {
  background:
    radial-gradient(circle at 12% -8%, rgba(99,91,255,.12), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(0,160,210,.09), transparent 30%),
    linear-gradient(180deg, #f6f8fc 0%, #eef4fb 48%, #f9fbff 100%) !important;
  color: var(--text);
}
html[data-theme='light'] .content-shell {
  background:
    radial-gradient(circle at 10% 14%, rgba(99,91,255,.06), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(10,168,129,.05), transparent 28%),
    transparent !important;
}
html[data-theme='light'] .topbar {
  background: rgba(248, 251, 255, .86) !important;
  border-bottom-color: rgba(43,68,108,.10);
  box-shadow: 0 12px 28px rgba(30,55,92,.08);
}
html[data-theme='light'] .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.96)) !important;
  border-right-color: rgba(43,68,108,.10);
}
html[data-theme='light'] .dashboard-hero,
html[data-theme='light'] .hero-card,
html[data-theme='light'] .section-card,
html[data-theme='light'] .auth-card,
html[data-theme='light'] .sidebar-card,
html[data-theme='light'] .stat-card,
html[data-theme='light'] .bot-card,
html[data-theme='light'] .price-card,
html[data-theme='light'] .empty-card,
html[data-theme='light'] .tiny-stat {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.90)) !important;
  border-color: rgba(43,68,108,.12) !important;
  box-shadow: 0 16px 34px rgba(30,55,92,.08) !important;
}
html[data-theme='light'] .status-banner--warning {
  background: linear-gradient(90deg, rgba(255,245,216,.95), rgba(255,255,255,.86)) !important;
  border-color: rgba(187,140,24,.20);
}
html[data-theme='light'] .status-banner--neutral {
  background: linear-gradient(90deg, rgba(237,241,255,.96), rgba(255,255,255,.88)) !important;
  border-color: rgba(99,91,255,.15);
}
html[data-theme='light'] .status-banner--ok {
  background: linear-gradient(90deg, rgba(226,255,247,.95), rgba(255,255,255,.88)) !important;
  border-color: rgba(10,168,129,.16);
}
html[data-theme='light'] .nav-link.active,
html[data-theme='light'] .nav-link:hover {
  background: rgba(99,91,255,.07) !important;
  border-color: rgba(99,91,255,.12);
}
html[data-theme='light'] .page-label,
html[data-theme='light'] .eyebrow {
  color: #078aaa;
  text-shadow: none;
}
html[data-theme='light'] .table-wrap tbody tr:hover td {
  background: rgba(99,91,255,.04);
}

@media (max-width: 900px) {
  html[data-theme='light'] .dashboard-layout {
    background: transparent !important;
  }
  html[data-theme='light'] .topbar {
    background: rgba(248,251,255,.92) !important;
  }
  html[data-theme='dark'] .topbar-right .ghost-btn,
  html[data-theme='light'] .topbar-right .ghost-btn {
    display: none;
  }
  .dashboard-layout--overview .hero-inline-stats,
  .hero-inline-stats {
    grid-template-columns: 1fr !important;
  }
}

/* v0.5.3 — mobile topbar polish: compact theme/balance controls */
@media (max-width: 900px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 64px;
  }
  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .topbar-left > div {
    min-width: 0;
    max-width: calc(100vw - 174px);
  }
  .topbar-right {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: auto !important;
  }
  .topbar-right .ghost-btn {
    display: none !important;
  }
  .theme-btn--icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 13px !important;
    padding: 0 !important;
  }
  .theme-icon {
    font-size: 1rem !important;
  }
  .topbar-right .balance-pill {
    height: 36px !important;
    min-width: 68px !important;
    max-width: 82px;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: .78rem !important;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .page-label {
    font-size: .54rem !important;
    letter-spacing: .12em !important;
    line-height: 1.15;
  }
  .page-title-small {
    font-size: .76rem !important;
    line-height: 1.12 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: none !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 10px 12px !important;
  }
  .topbar-left {
    gap: 7px !important;
  }
  .topbar-left > div {
    max-width: calc(100vw - 160px);
  }
  .theme-btn--icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .topbar-right .balance-pill {
    height: 34px !important;
    min-width: 62px !important;
    max-width: 72px;
    padding: 0 8px !important;
    font-size: .74rem !important;
  }
}

/* v0.5.3 — visible neon without breaking light theme */
html[data-theme='dark'] .theme-btn--icon {
  background: radial-gradient(circle at 50% 45%, rgba(80,125,255,.20), rgba(255,255,255,.03) 62%);
  border-color: rgba(105, 154, 255, .34);
  box-shadow: 0 0 22px rgba(80,125,255,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
html[data-theme='dark'] .topbar-right .balance-pill {
  background: linear-gradient(135deg, rgba(168,85,255,.16), rgba(0,229,255,.08));
  border-color: rgba(0,229,255,.26);
  box-shadow: 0 0 22px rgba(0,229,255,.14), inset 0 1px 0 rgba(255,255,255,.07);
}
html[data-theme='dark'] .dashboard-hero,
html[data-theme='dark'] .section-card,
html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .bot-card,
html[data-theme='dark'] .price-card {
  box-shadow:
    0 0 0 1px rgba(0,229,255,.08) inset,
    0 0 34px rgba(168,85,255,.13),
    0 0 42px rgba(0,229,255,.07),
    0 24px 58px rgba(0,0,0,.32);
}
html[data-theme='dark'] .primary-btn {
  box-shadow: 0 0 26px rgba(0,229,255,.26), 0 16px 34px rgba(168,85,255,.26);
}
html[data-theme='dark'] .nav-link.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46f6ff;
  box-shadow: 0 0 12px rgba(70,246,255,.85);
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}

/* landing redesign v0.5.7: calmer scale + rounded header */
.landing-shell--redesign {
  padding: 18px 22px 46px;
}
.landing-topbar--redesign {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 14, 26, .72);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
html[data-theme='light'] .landing-topbar--redesign {
  background: rgba(255,255,255,.76);
}
.landing-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.landing-hero {
  min-height: 390px;
  padding: clamp(24px, 3.2vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .68fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(124,107,255,.18), transparent 30%),
    radial-gradient(circle at 92% 22%, rgba(34,211,238,.20), transparent 28%),
    radial-gradient(circle at 75% 86%, rgba(46,216,176,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012)),
    var(--card);
}
.landing-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -160px auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34,211,238,.20), transparent 64%);
  pointer-events: none;
}
.landing-hero__copy { position: relative; z-index: 1; }
.landing-hero h1 {
  margin: 10px 0 16px;
  max-width: 690px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}
.landing-hero .hero-copy {
  max-width: 650px;
  font-size: clamp(.94rem, 1.05vw, 1.04rem);
}
.landing-hero__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 12, 24, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 58px rgba(0,0,0,.16);
}
html[data-theme='light'] .landing-hero__panel { background: rgba(255,255,255,.62); }
.landing-metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.032);
  display: grid;
  gap: 5px;
}
.landing-metric span,
.landing-metric small { color: var(--muted); }
.landing-metric strong { font-size: 1.22rem; letter-spacing: -.04em; }
.landing-section { padding: clamp(20px, 2.5vw, 30px); border-radius: 28px; }
.landing-section__head { margin-bottom: 16px; }
.landing-section__head h2,
.landing-two-col h2,
.landing-final h2 {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.78rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.landing-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.024);
}
.landing-step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124,107,255,.42), rgba(34,211,238,.24));
  box-shadow: 0 0 24px rgba(124,107,255,.20);
  font-weight: 900;
}
.landing-step h3 { margin: 0 0 6px; font-size: .94rem; }
.landing-step p { margin: 0; color: var(--muted); line-height: 1.5; }
.landing-two-col {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: center;
}
.landing-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.landing-feature-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.024);
  display: grid;
  gap: 7px;
}
.landing-feature-list strong { font-size: .96rem; }
.landing-feature-list span { color: var(--muted); line-height: 1.48; }
.landing-final {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(124,107,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)),
    var(--card);
}
@media (max-width: 900px) {
  .landing-hero,
  .landing-two-col { grid-template-columns: 1fr; }
  .landing-hero { min-height: auto; }
  .landing-final { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .landing-shell--redesign { padding: 12px 12px 34px; }
  .landing-topbar--redesign {
    align-items: center;
    gap: 12px;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .landing-actions { justify-content: flex-end; }
  .landing-actions .primary-btn,
  .landing-actions .ghost-btn { padding: 9px 11px; font-size: .80rem; }
  .landing-hero { padding: 22px 18px; border-radius: 24px; }
  .landing-hero h1 { font-size: 1.82rem; line-height: 1.08; letter-spacing: -.055em; }
  .landing-hero .hero-copy { font-size: .92rem; }
  .landing-steps,
  .landing-feature-list { grid-template-columns: 1fr; }
  .landing-step { grid-template-columns: 38px minmax(0, 1fr); }
  .hero-actions .large { padding: 11px 13px; }
}


.domain-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.domain-readiness-grid .settings-card {
  min-height: 100%;
}
.domain-readiness-grid strong {
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .domain-readiness-grid { grid-template-columns: 1fr; }
}
