:root {
  --bg: #04070d;
  --panel: #0a0f17;
  --panel-2: #0f1621;
  --line: #1a2432;
  --text: #f2f7ff;
  --muted: #9cb2ce;
  --accent: #2f9dff;
  --accent-2: #4fc7ff;
  --ok: #4fe49a;
  --warn: #ffc36b;
  --danger: #ff6b7f;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -30%, #0a1c33 0%, var(--bg) 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.28;
  z-index: -1;
}

.bg-orb-a {
  width: 420px;
  height: 420px;
  right: -100px;
  top: -120px;
  background: #2e8eff;
}

.bg-orb-b {
  width: 320px;
  height: 320px;
  left: -90px;
  bottom: -80px;
  background: #215997;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(4, 7, 13, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: 140ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #07111f;
  border-color: #49a9ff;
}

.btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(10, 15, 23, 0.9);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: #2b3d54;
  background: rgba(15, 22, 33, 0.95);
}

.btn.big {
  padding: 12px 18px;
}

.btn.block {
  width: 100%;
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 20px;
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.9px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 620px;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 22, 33, 0.88), rgba(8, 12, 19, 0.88));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.hero-panel {
  padding: 18px 18px 16px;
}

.panel-top {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f3f52;
}

.hero-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #172131;
}

.stat-list span {
  color: var(--muted);
  font-size: 14px;
}

.ok {
  color: var(--ok);
}

.not-active {
  color: var(--danger);
}

.section {
  margin-top: 58px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.price-card.featured {
  border-color: #347fcc;
  background: linear-gradient(180deg, #101d2e, #0c141f);
}

.pricing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.plan-badge {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #07111f;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 4px 10px;
}

.price-card h3 {
  margin: 0;
}

.price {
  margin: 12px 0;
  font-weight: 700;
  font-size: 34px;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
}

.price-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-shell {
  width: min(460px, 96vw);
}

.auth-panel {
  padding: 24px;
}

.auth-brand {
  margin-bottom: 16px;
}

.auth-panel h1 {
  margin: 0;
}

.auth-sub {
  margin: 8px 0 18px;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b111a;
  color: var(--text);
  padding: 12px;
  outline: none;
  font-size: 14px;
}

input:focus {
  border-color: #2f78c2;
  box-shadow: 0 0 0 3px rgba(47, 157, 255, 0.14);
}

.form-message {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: var(--warn);
}

.small-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.small-note a {
  color: var(--accent-2);
}

.dashboard-page {
  min-height: 100vh;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  margin: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-nav {
  display: grid;
  gap: 6px;
}

.dash-tab {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dash-tab:hover {
  border-color: #1c2a3d;
  background: #101a28;
}

.dash-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.dash-nav a.active,
.dash-tab.active {
  background: #121d2d;
  color: var(--text);
}

.dash-section {
  display: none;
}

.dash-section.active {
  display: block;
}

.dash-main {
  padding: 22px 22px 26px 6px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dash-header h1 {
  margin: 0;
}

.user-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--muted);
}

.tiny-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.status.active {
  color: var(--ok);
}

.status.expired {
  color: var(--danger);
}

.status.pending {
  color: var(--warn);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-grid p:last-child {
  margin: 4px 0 0;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.small-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.dash-pricing {
  margin-top: 12px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.lead.small {
  margin-top: 8px;
  max-width: 760px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin: 14px 14px 0;
  }

  .dash-main {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .topbar {
    padding-inline: 14px;
  }

  .container {
    width: min(1120px, 92vw);
  }
}
