@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #040812;
  --bg-soft: #081321;
  --panel: rgba(9, 20, 34, 0.82);
  --panel-strong: rgba(7, 18, 30, 0.94);
  --line: rgba(130, 214, 255, 0.16);
  --line-strong: rgba(130, 214, 255, 0.3);
  --text: #f4fbff;
  --muted: rgba(219, 235, 244, 0.72);
  --accent: #82ddff;
  --accent-strong: #38baff;
  --accent-deep: #0a8fe6;
  --success: #7effbf;
  --danger: #ff8bac;
  --shadow: 0 30px 90px rgba(0, 4, 10, 0.48);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --neon-vh: 100vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(56, 186, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(130, 221, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(14, 82, 137, 0.3), transparent 30%),
    linear-gradient(180deg, #02060d, #07111d 56%, #040913);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(rgba(130, 214, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 214, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

.page-shell {
  position: relative;
  width: 100%;
  height: var(--neon-vh);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.app {
  min-height: var(--neon-vh);
  touch-action: pan-y;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.34;
}

.ambient-a {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  left: -8rem;
  background: rgba(77, 196, 255, 0.26);
}

.ambient-b {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 18rem;
  background: rgba(31, 123, 202, 0.22);
}

.ambient-c {
  width: 30rem;
  height: 30rem;
  left: 38%;
  bottom: -15rem;
  background: rgba(20, 103, 168, 0.22);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel,
.surface,
.pricing-panel,
.signal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  padding: 38px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  min-height: 460px;
  background:
    radial-gradient(circle at 14% 0%, rgba(130, 221, 255, 0.14), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(29, 159, 255, 0.14), transparent 24%),
    linear-gradient(140deg, rgba(5, 14, 24, 0.98), rgba(4, 12, 22, 0.92) 44%, rgba(7, 21, 36, 0.98));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(130, 221, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(130, 221, 255, 0.05), transparent 56%);
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.surface,
.pricing-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.signal-label,
.visual-topline {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 0.98;
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-top: 8px;
}

h3 {
  font-size: 1.2rem;
  margin-top: 8px;
}

.hero-text,
.section-copy,
.device-block p,
.signal-card p,
.surface p,
.plan-card p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  max-width: 62ch;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-led {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 191, 0.22);
  background: rgba(126, 255, 191, 0.08);
  color: #b8ffd9;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-led::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #7effbf;
  box-shadow: 0 0 0 8px rgba(126, 255, 191, 0.12);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  padding: 12px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-copy-footer {
  display: grid;
  gap: 14px;
}

.hero-note {
  max-width: 60ch;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: rgba(224, 239, 247, 0.84);
  line-height: 1.64;
}

.hero-note-strong {
  max-width: 66ch;
  border-color: rgba(130, 214, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(130, 221, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

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

.hero-rail {
  border-top: 1px solid rgba(130, 214, 255, 0.12);
  padding-top: 14px;
}

.hero-microcard {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.hero-microcard-strong {
  background:
    radial-gradient(circle at 0% 0%, rgba(130, 221, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(130, 214, 255, 0.22);
}

.hero-microcard span {
  color: rgba(214, 230, 239, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-microcard strong {
  font-size: 0.98rem;
}

.hero-visual {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.visual-card {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(130, 214, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(130, 221, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(7, 20, 34, 0.98), rgba(5, 12, 21, 0.99));
  overflow: hidden;
}

.visual-backword {
  position: absolute;
  right: 20px;
  top: 18px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(4rem, 11vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.visual-orb {
  position: absolute;
  inset: auto auto -4rem -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(130, 221, 255, 0.42), rgba(130, 221, 255, 0));
  filter: blur(18px);
}

.brand-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(27, 133, 214, 0.28);
}

.visual-frame {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.visual-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.visual-mark-copy {
  display: grid;
  gap: 8px;
}

.visual-mark-copy span {
  color: rgba(214, 230, 239, 0.66);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-mark-copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

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

.visual-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.visual-chip-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 221, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(130, 221, 255, 0.1), rgba(255, 255, 255, 0.04));
  border-color: rgba(130, 214, 255, 0.26);
}

.visual-chip span {
  color: var(--muted);
}

.visual-aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.visual-aside-card {
  min-height: 86px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  align-content: start;
  gap: 8px;
}

.visual-aside-card span {
  color: rgba(214, 230, 239, 0.62);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-aside-card strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.signal-ribbon,
.dashboard-grid,
.bottom-grid,
.plans-grid {
  display: grid;
  gap: 16px;
}

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

.signal-card {
  padding: 22px;
  border-radius: 24px;
  min-height: 148px;
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.9), rgba(5, 14, 24, 0.98));
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.surface,
.pricing-panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.surface-accent {
  background:
    radial-gradient(circle at top right, rgba(130, 221, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(8, 22, 36, 0.95), rgba(6, 16, 28, 0.98));
}

.surface-side {
  background:
    radial-gradient(circle at top right, rgba(95, 210, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(9, 24, 38, 0.95), rgba(5, 14, 26, 0.98));
}

.surface-head,
.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.state-block,
.device-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
}

.device-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(130, 221, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 24, 38, 0.92), rgba(6, 15, 25, 0.96));
}

.device-block::before {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(77, 196, 255, 0.3), rgba(77, 196, 255, 0));
  filter: blur(18px);
  pointer-events: none;
}

.device-block strong,
.subscription-active {
  font-size: 1.05rem;
}

#device-button {
  width: 100%;
  margin-top: 2px;
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.route-pack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 221, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.route-pack-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-pack-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-pack-links .ghost-link {
  justify-content: center;
  min-height: 54px;
  text-align: center;
}

.pricing-head {
  margin-bottom: 18px;
}

.renew-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.renew-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
}

.renew-note {
  margin: 10px 0 0;
  color: rgba(210, 227, 236, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.secondary-btn {
  appearance: none;
  border: 1px solid rgba(77, 190, 255, 0.46);
  background: linear-gradient(135deg, rgba(117, 221, 255, 0.2) 0%, rgba(49, 155, 255, 0.24) 100%);
  color: #eefdff;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 131, 219, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 223, 255, 0.62);
  background: linear-gradient(135deg, rgba(126, 229, 255, 0.28) 0%, rgba(61, 165, 255, 0.32) 100%);
  box-shadow: 0 18px 34px rgba(23, 131, 219, 0.24);
}

.secondary-btn:active {
  transform: translateY(0);
}

.mini-footer {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.footer-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(219, 235, 244, 0.46);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-link-btn:hover {
  color: rgba(219, 235, 244, 0.78);
  transform: translateY(-1px);
}

.plans-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.plan-card.recommended {
  border-color: rgba(130, 221, 255, 0.34);
  background:
    radial-gradient(circle at top right, rgba(130, 221, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(16, 36, 56, 0.88), rgba(8, 19, 32, 0.96));
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  opacity: 0.72;
}

.plan-card strong {
  font-size: 1.18rem;
}

.plan-accent {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(130, 221, 255, 0.22);
  background: rgba(130, 221, 255, 0.09);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.plan-price {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.plan-card .primary-btn {
  width: 100%;
  margin-top: auto;
}

.plan-note {
  color: var(--danger);
  line-height: 1.56;
}

.primary-btn,
.success-btn,
.danger-btn,
.ghost-link {
  min-height: 48px;
  border-radius: 16px;
  padding: 0.92rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.primary-btn:hover,
.success-btn:hover,
.danger-btn:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.primary-btn {
  border: 0;
  color: #03111b;
  background: linear-gradient(135deg, #93ebff 0%, #52c3ff 52%, #1d9fff 100%);
  box-shadow: 0 18px 36px rgba(34, 165, 246, 0.24);
}

.success-btn {
  border: 0;
  color: #03140a;
  background: linear-gradient(135deg, #b9ffd7 0%, #74ffb0 52%, #28d66b 100%);
  box-shadow: 0 18px 36px rgba(40, 214, 107, 0.24);
}

.danger-btn {
  border: 0;
  color: #fff5f7;
  background: linear-gradient(135deg, #ff9aba 0%, #ff6e96 52%, #ff4777 100%);
  box-shadow: 0 18px 36px rgba(255, 71, 119, 0.2);
}

.primary-btn:disabled,
.success-btn:disabled,
.danger-btn:disabled {
  cursor: not-allowed;
  color: rgba(243, 251, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.primary-btn.disabled,
.success-btn.disabled,
.danger-btn.disabled {
  pointer-events: none;
  opacity: 0.62;
  box-shadow: none;
  transform: none;
}

.ghost-link {
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.danger-link {
  border-color: rgba(255, 139, 172, 0.26);
  background: linear-gradient(180deg, rgba(115, 21, 46, 0.92), rgba(74, 14, 31, 0.98));
  color: #fff1f5;
}

.subscription-active {
  color: var(--success);
  font-weight: 700;
}

.subscription-missing {
  color: var(--muted);
  line-height: 1.68;
}

.subscription-stack {
  display: grid;
  gap: 14px;
}

.router-home-card {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(98, 237, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(98, 237, 184, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(27, 141, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.96), rgba(5, 12, 20, 0.98));
  box-shadow: 0 24px 60px rgba(2, 10, 20, 0.32);
}

.router-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.router-home-kicker {
  display: inline-block;
  color: #8cffbf;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.router-home-copy,
.router-home-note,
.router-home-meta {
  color: var(--muted);
  line-height: 1.56;
}

.plan-footnote,
.router-home-perk,
.router-home-smart-note,
.router-home-form-note {
  color: rgba(219, 235, 244, 0.74);
  line-height: 1.6;
}

.plan-footnote {
  font-size: 0.93rem;
}

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

.limit-control {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(130, 214, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.13), rgba(5, 12, 23, 0.52)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.limit-control-title {
  color: rgba(219, 235, 244, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.limit-stepper {
  display: grid;
  grid-template-columns: 38px minmax(42px, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.limit-stepper strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(130, 214, 255, 0.22);
  background: rgba(2, 10, 20, 0.62);
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.limit-stepper-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #27a8ff, #7ae5ff);
  color: #03111d;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(39, 168, 255, 0.22);
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.limit-stepper-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(39, 168, 255, 0.3);
}

.limit-stepper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.limit-control-range {
  color: rgba(219, 235, 244, 0.58);
  font-size: 0.82rem;
}

.router-home-price {
  display: grid;
  gap: 6px;
  text-align: right;
}

.router-home-price strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.36rem;
}

.router-home-price span {
  color: rgba(219, 235, 244, 0.62);
  font-size: 0.9rem;
}

.router-home-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.router-home-pill-row,
.router-home-lab-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.router-home-pill,
.router-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(130, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 251, 255, 0.86);
  font-size: 0.86rem;
}

.router-home-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 191, 0.22);
  background: rgba(126, 255, 191, 0.08);
  color: #b8ffd9;
  font-weight: 700;
}

.router-home-error {
  color: #ffd5df;
  line-height: 1.5;
}

.router-home-diagnostics {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(45, 174, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: rgba(234, 248, 255, 0.82);
  line-height: 1.45;
}

.router-home-diagnostics.ready {
  border-color: rgba(126, 255, 191, 0.24);
  background:
    radial-gradient(circle at top left, rgba(126, 255, 191, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.router-home-diagnostics.warning {
  border-color: rgba(255, 210, 122, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 122, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.router-home-diagnostics span:first-child {
  color: #f5fbff;
  font-weight: 800;
}

.router-home-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.router-home-plan {
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 18px;
  padding: 15px 14px;
  display: grid;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.router-home-plan:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 214, 255, 0.28);
}

.router-home-plan.active {
  border-color: rgba(98, 237, 184, 0.4);
  background:
    radial-gradient(circle at top right, rgba(98, 237, 184, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(11, 34, 38, 0.92), rgba(8, 18, 24, 0.98));
}

.router-home-plan strong {
  font-size: 1rem;
}

.router-home-plan span {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.24rem;
}

.router-home-plan small {
  color: rgba(219, 235, 244, 0.68);
}

.router-home-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.router-home-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1d9fff;
}

.router-home-perk {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(98, 237, 184, 0.18);
  background: rgba(98, 237, 184, 0.08);
}

.router-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modal-open {
  overflow: hidden;
}

.router-home-lab {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.router-home-lab.hidden {
  display: none;
}

.router-home-lab-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, 0.7);
  backdrop-filter: blur(10px);
}

.router-home-lab-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(130, 214, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(29, 159, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(98, 237, 184, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(5, 12, 22, 0.98), rgba(4, 9, 17, 0.98));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}

.router-home-lab-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.router-home-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: min(74vh, 720px);
}

.router-home-lab-copy,
.router-home-lab-visual {
  padding: 34px;
}

.router-home-lab-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
}

.router-home-stage {
  display: grid;
  gap: 16px;
}

.router-home-stage.hidden {
  display: none;
}

.router-home-permission-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.router-home-permission-card p,
.router-home-checklist,
.router-home-form-note {
  margin: 0;
}

.router-home-permission-card-success {
  border-color: rgba(98, 237, 184, 0.18);
  background: rgba(98, 237, 184, 0.08);
}

.router-home-checklist {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.64;
}

.router-home-discovery-form {
  display: grid;
  gap: 14px;
}

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

.router-home-field {
  display: grid;
  gap: 8px;
  color: rgba(244, 251, 255, 0.88);
  font-weight: 600;
}

.router-home-field input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.router-home-field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.55;
}

.router-home-field input::placeholder {
  color: rgba(219, 235, 244, 0.44);
}

.router-home-field textarea::placeholder {
  color: rgba(219, 235, 244, 0.44);
}

.router-home-helper-card {
  gap: 16px;
}

.router-home-helper-codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 30, 49, 0.96), rgba(8, 18, 31, 0.98));
}

.router-home-helper-codebox span {
  color: rgba(219, 235, 244, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.router-home-helper-codebox strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.42rem;
  letter-spacing: 0.2em;
}

.router-home-profile,
.router-home-profile-card {
  display: grid;
  gap: 16px;
}

.router-home-profile-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(29, 159, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.router-home-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.router-home-profile-head h4 {
  margin: 6px 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.25rem;
}

.router-home-profile-head p,
.router-home-profile-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.router-home-profile-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(2, 10, 20, 0.34);
}

.router-home-profile-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.router-home-profile-option {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #f4fbff;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.router-home-profile-option:hover {
  border-color: rgba(74, 194, 255, 0.45);
  transform: translateY(-1px);
}

.router-home-profile-option.is-active {
  border-color: rgba(74, 194, 255, 0.72);
  background: linear-gradient(135deg, rgba(21, 132, 222, 0.2), rgba(40, 222, 211, 0.08));
  box-shadow: inset 0 0 0 1px rgba(130, 214, 255, 0.08);
}

.router-home-profile-option strong,
.router-home-profile-option span {
  overflow-wrap: anywhere;
}

.router-home-profile-option span {
  color: var(--muted);
  font-size: 0.78rem;
}

.router-home-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.router-home-copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.router-home-copy-field span {
  grid-column: 1 / -1;
  color: rgba(130, 214, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.router-home-copy-field code {
  overflow: hidden;
  color: #f4fbff;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.router-home-copy-field-compact {
  padding: 10px;
}

.router-home-copy-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.router-home-profile-mini {
  display: grid;
  gap: 8px;
}

.router-home-profile-mini > span {
  color: rgba(244, 251, 255, 0.8);
  font-weight: 800;
}

.router-home-instruction {
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.router-home-instruction summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #f4fbff;
  font-weight: 800;
}

.router-home-instruction ol {
  margin: 0;
  padding: 0 18px 14px 34px;
  color: var(--muted);
  line-height: 1.58;
}

.router-home-legacy-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 154, 0.18);
  background: rgba(255, 215, 154, 0.08);
  color: #ffe0af;
  line-height: 1.56;
}

.router-home-lab-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(7, 18, 30, 0.82), rgba(4, 11, 19, 0.94));
  border-left: 1px solid rgba(130, 214, 255, 0.1);
}

.router-home-machine {
  width: 100%;
  max-width: 540px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(29, 159, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(8, 20, 35, 0.98), rgba(4, 10, 18, 0.98));
}

.router-home-machine-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: rgba(244, 251, 255, 0.88);
}

.router-home-machine-head span {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.router-home-machine-head strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.router-home-machine-rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.router-home-machine-rack span {
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  position: relative;
}

.router-home-machine-rack span::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7effbf;
  box-shadow: 0 0 12px rgba(126, 255, 191, 0.72);
}

.router-home-terminal {
  min-height: 380px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(1, 7, 13, 0.98), rgba(1, 10, 16, 0.98));
  font-family: "JetBrains Mono", "Consolas", monospace;
  color: #9af5c8;
  position: relative;
  overflow: hidden;
}

.router-home-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(130, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 24px;
  opacity: 0.35;
}

.router-home-terminal-log {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}

.router-home-log-line {
  line-height: 1.5;
  word-break: break-word;
}

.router-home-log-line-success {
  color: #9cffd0;
}

.router-home-log-line-warn {
  color: #ffd79a;
}

.router-home-terminal-caret {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 18px;
  margin-top: 12px;
  background: #7effbf;
  animation: terminal-blink 1s steps(1, end) infinite;
}

@keyframes terminal-blink {
  0%,
  48% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.subscription-url {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.review-surface {
  background:
    radial-gradient(circle at top right, rgba(130, 221, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(10, 22, 36, 0.94), rgba(6, 16, 28, 0.98));
}

.promo-surface {
  background:
    radial-gradient(circle at top left, rgba(126, 255, 191, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(10, 22, 36, 0.94), rgba(6, 16, 28, 0.98));
}

.promo-widget {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.promo-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  text-transform: uppercase;
}

.promo-input::placeholder {
  color: rgba(219, 235, 244, 0.44);
  text-transform: none;
}

.promo-actions {
  display: grid;
  gap: 10px;
}

.promo-status {
  color: var(--muted);
  line-height: 1.58;
}

.review-widget {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.review-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-star {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 251, 255, 0.42);
  font-size: 1.45rem;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.review-star.active {
  color: #ffe48e;
  border-color: rgba(255, 228, 142, 0.34);
  background: linear-gradient(180deg, rgba(255, 228, 142, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 30px rgba(255, 215, 111, 0.14);
}

.review-field span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.review-textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.review-textarea::placeholder {
  color: rgba(219, 235, 244, 0.44);
}

.review-actions {
  display: grid;
  gap: 10px;
}

.review-status {
  color: var(--muted);
  line-height: 1.58;
}

.state-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.metric-card strong {
  font-size: 1.05rem;
}

.metric-card strong a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(130, 221, 255, 0.4);
}

.metric-card strong a:hover {
  border-bottom-color: rgba(130, 221, 255, 0.8);
}

.metric-card-live {
  border-color: rgba(126, 255, 191, 0.24);
  background: linear-gradient(180deg, rgba(126, 255, 191, 0.08), rgba(255, 255, 255, 0.04));
}

.metric-card-paused {
  border-color: rgba(255, 139, 172, 0.2);
  background: linear-gradient(180deg, rgba(255, 139, 172, 0.08), rgba(255, 255, 255, 0.04));
}

.state-inline-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.58;
}

.server-telemetry {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.server-telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-telemetry-head span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.server-list {
  display: grid;
  gap: 10px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.server-main,
.server-side {
  display: grid;
  gap: 4px;
}

.server-main span,
.server-side span {
  color: var(--muted);
  font-size: 0.92rem;
}

.server-side {
  justify-items: end;
  text-align: right;
}

.server-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-status.healthy {
  color: #032014;
  background: rgba(126, 255, 191, 0.92);
}

.server-status.checking {
  color: #dff6ff;
  background: rgba(64, 170, 224, 0.24);
  border: 1px solid rgba(130, 214, 255, 0.18);
}

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

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.yookassa-method-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.payment-contact-note {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.payment-contact-note .ghost-link {
  min-height: 40px;
  padding: 0.72rem 0.9rem;
}

.payment-method {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.payment-method:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 214, 255, 0.34);
}

.payment-method strong {
  font-size: 15px;
}

.payment-method span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.payment-method.active {
  border-color: rgba(117, 227, 255, 0.58);
  background: linear-gradient(180deg, rgba(43, 149, 249, 0.18), rgba(8, 20, 37, 0.88));
  box-shadow: 0 18px 40px rgba(10, 66, 130, 0.2);
}

.payment-submethod {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.payment-submethod:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 214, 255, 0.34);
}

.payment-submethod strong {
  font-size: 14px;
}

.payment-submethod span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.payment-submethod.active {
  border-color: rgba(117, 227, 255, 0.58);
  background: linear-gradient(180deg, rgba(43, 149, 249, 0.18), rgba(8, 20, 37, 0.88));
  box-shadow: 0 18px 40px rgba(10, 66, 130, 0.18);
}

.plan-provider {
  margin-top: -2px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background: rgba(6, 19, 32, 0.96);
  box-shadow: var(--shadow);
}

.toast.error {
  background: rgba(74, 15, 34, 0.96);
}

.payment-launch {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 92px;
  z-index: 9;
}

.payment-launch-card {
  border-radius: 22px;
  border: 1px solid rgba(130, 214, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 22, 36, 0.98), rgba(5, 14, 26, 0.99));
  box-shadow: var(--shadow);
  padding: 18px;
}

.payment-launch-card h3 {
  margin-top: 8px;
}

.payment-launch-card p,
.payment-launch-note {
  color: var(--muted);
  line-height: 1.6;
}

.payment-launch-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payment-launch-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.auth-surface {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}

.auth-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.auth-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(130, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 1180px) {
  .app {
    max-width: 1240px;
    padding: 30px 28px 76px;
    gap: 24px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
    min-height: 520px;
    padding: 42px;
    gap: 32px;
  }

  .hero-text {
    max-width: 60ch;
    font-size: 1.12rem;
  }

  .hero-visual {
    align-items: stretch;
  }

  .visual-card {
    width: 100%;
    max-width: 480px;
    min-height: 480px;
    padding: 30px;
  }

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

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(360px, 0.66fr);
    align-items: stretch;
    gap: 22px;
  }

  .surface,
  .pricing-panel {
    padding: 30px;
  }

  .pricing-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
    gap: 26px;
    align-items: start;
  }

  .pricing-head {
    position: sticky;
    top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
  }

  .bottom-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(320px, 0.84fr);
    gap: 20px;
  }

  .auth-actions {
    grid-template-columns: max-content max-content minmax(320px, 1fr);
  }

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

.hidden {
  display: none;
}

code {
  font-family: "Space Grotesk", monospace;
}

@media (max-width: 1040px) {
  .hero-panel,
  .dashboard-grid,
  .signal-ribbon,
  .plans-grid,
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    justify-content: stretch;
  }

  .visual-card {
    width: 100%;
  }

  .hero-microgrid,
  .route-pack-links,
  .visual-aside {
    grid-template-columns: 1fr;
  }

  .router-home-lab-dialog {
    width: min(720px, 100%);
  }

  .router-home-lab-grid {
    grid-template-columns: 1fr;
  }

  .router-home-lab-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .app {
    padding: 14px 12px 28px;
  }

  .hero-panel,
  .signal-ribbon,
  .dashboard-grid,
  .plans-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .surface,
  .pricing-panel {
    padding: 18px;
    border-radius: 26px;
  }

  .hero-kicker-row {
    gap: 10px;
  }

  .pricing-head,
  .surface-head,
  .auth-actions {
    flex-direction: column;
  }

  .auth-actions {
    display: flex;
    align-items: stretch;
  }

  h1 {
    max-width: none;
  }

  .state-block,
  .device-block {
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
  }

  .device-block {
    gap: 14px;
  }

  .hero-microgrid,
  .route-pack-links,
  .visual-aside {
    grid-template-columns: 1fr;
  }

  .visual-mark {
    align-items: flex-start;
    flex-direction: column;
  }

  .plans-grid {
    gap: 12px;
  }

  .plan-card {
    padding: 18px;
    border-radius: 22px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .limit-picker {
    grid-template-columns: 1fr;
  }

  .payment-contact-note {
    align-items: stretch;
  }

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

  .metric-card-wide {
    grid-column: 1 / -1;
  }

  .server-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-side {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .router-home-head,
  .router-home-price {
    text-align: left;
  }

  .router-home-plan-grid,
  .router-home-inline-grid,
  .router-home-copy-grid,
  .router-home-lab-grid {
    grid-template-columns: 1fr;
  }

  .router-home-profile-head,
  .router-home-copy-field {
    grid-template-columns: 1fr;
  }

  .router-home-profile-head {
    display: grid;
  }

  .router-home-lab-dialog {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .inline-actions,
  .ghost-link,
  .primary-btn,
  .success-btn,
  .danger-btn {
    width: 100%;
  }

  .review-star {
    width: calc(20% - 7px);
    min-width: 44px;
  }

  .router-home-lab {
    padding: 14px;
  }

  .router-home-lab-copy,
  .router-home-lab-visual {
    padding: 22px;
  }

  .router-home-lab-copy {
    overflow: visible;
  }

  .router-home-lab-visual {
    display: none;
  }

  .router-home-terminal {
    min-height: 280px;
  }

  .payment-launch {
    bottom: 82px;
  }
}
