:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #11161d;
  --surface: #151c24;
  --surface-2: #1a222c;
  --border: #273241;
  --border-soft: rgba(148, 163, 184, .18);
  --text: #f5f7fa;
  --text-2: #a9b4c1;
  --muted: #778190;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --violet: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(59, 130, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, .05) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(34, 211, 238, .18), transparent 36%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--text);
  font: 16px/1.58 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 20, .08), rgba(11, 15, 20, .82) 70%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(18px);
}

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

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(59, 130, 246, .12);
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 28, 36, .72);
}

.lang-switch button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.lang-switch button.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.button,
.nav-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(26, 34, 44, .78);
  color: var(--text);
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.nav-action:hover,
.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .72);
  box-shadow: 0 14px 38px rgba(34, 211, 238, .12);
}

.button.primary,
.nav-action {
  border-color: rgba(59, 130, 246, .92);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #06111f;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero,
.upload-hero,
.page-hero {
  padding: clamp(54px, 8vw, 96px) 0 34px;
}

.hero,
.upload-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.page-hero {
  max-width: 880px;
}

.hero-copy,
.reveal {
  animation: reveal .55s ease both;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--text-2);
  font-size: clamp(18px, 2vw, 22px);
}

.muted,
.notice,
.card p,
.footer p {
  color: var(--text-2);
}

.hero-badges,
.actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badges { margin: 24px 0 26px; }
.actions.center { justify-content: center; }

.badge,
.chip,
.system-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  color: #bdf7ff;
  font-size: 13px;
  font-weight: 780;
}

.chip {
  border-color: rgba(139, 92, 246, .32);
  background: rgba(139, 92, 246, .12);
  color: #ddd2ff;
}

.badge.danger {
  border-color: rgba(239, 68, 68, .34);
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}

.card,
.product-panel,
.status-panel,
.upload-box,
.code-card,
.file-table {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 34, 44, .88), rgba(21, 28, 36, .88));
  box-shadow: var(--shadow);
}

.card,
.status-panel,
.product-panel {
  padding: clamp(18px, 3vw, 26px);
}

.card,
.product-panel,
.upload-box {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.card:hover,
.product-panel:hover,
.upload-box:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .42), 0 0 0 1px rgba(34, 211, 238, .08);
}

.product-panel {
  position: relative;
  overflow: hidden;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(59, 130, 246, .12), transparent 30%),
    linear-gradient(300deg, rgba(34, 211, 238, .08), transparent 32%);
  pointer-events: none;
}

.product-panel > * { position: relative; }

.panel-top,
.progress-head,
.file-row,
.endpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-top > div,
.status-widget > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .65);
  animation: pulse 1.8s infinite;
}

.upload-mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  margin: 24px 0 18px;
}

.upload-mini span,
.stat span {
  display: block;
  color: var(--muted);
}

.upload-cloud,
.upload-icon,
.feature-icon {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(34, 211, 238, .16));
  color: var(--cyan);
  font-weight: 900;
}

.upload-cloud,
.upload-icon { width: 54px; height: 54px; font-size: 26px; }
.feature-icon { width: 44px; height: 44px; margin-bottom: 16px; font-size: 15px; }

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .15);
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  transition: width .2s ease;
}

.panel-grid,
.stat-grid,
.grid {
  display: grid;
  gap: 14px;
}

.panel-grid,
.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.stat {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .32);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.code-card {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  background: #070b10;
  color: #c8f8ff;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  box-shadow: none;
}

.section {
  padding: 46px 0;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
}

.feature-card,
.mini-card,
.app-card,
.price-card,
.status-widget {
  min-height: 190px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
  gap: 26px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(21, 28, 36, .72);
}

.step-card > span {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(59, 130, 246, .14);
  color: var(--cyan);
  font-weight: 900;
}

.upload-workspace {
  display: grid;
  gap: 16px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 30px;
  border-style: dashed;
  text-align: center;
}

.upload-box.is-dragover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .08);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selected-file,
.link-box {
  margin-top: 16px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--text-2);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .62);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

input:disabled {
  color: var(--muted);
  background: rgba(11, 15, 20, .38);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.wide-label {
  margin-top: 14px;
}

.progress-panel,
.result-panel {
  padding: 22px;
}

.progress-head strong {
  font-size: 32px;
}

.result-panel {
  border-color: rgba(34, 197, 94, .42);
  background: linear-gradient(180deg, rgba(34, 197, 94, .1), rgba(21, 28, 36, .88));
}

.result-panel.error-panel {
  border-color: rgba(239, 68, 68, .42);
  background: linear-gradient(180deg, rgba(239, 68, 68, .12), rgba(21, 28, 36, .88));
}

.hidden { display: none; }

.link-box {
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .5);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.toolbar {
  margin-bottom: 16px;
}

.toolbar input {
  flex: 1 1 320px;
}

.file-table {
  overflow: hidden;
  padding: 0;
}

.file-row {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.file-row:last-child { border-bottom: 0; }
.file-row div span { display: block; color: var(--muted); font-size: 13px; }

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.endpoint-list {
  display: grid;
  padding: 0;
}

.endpoint {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.endpoint:last-child { border-bottom: 0; }
.endpoint code { color: #c8f8ff; }
.endpoint p { margin: 0; }

.method {
  min-width: 58px;
  color: var(--green);
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin: 18px 0;
  font-size: 42px;
}

.price-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
}

.price-card.active {
  border-color: rgba(34, 211, 238, .55);
}

.status-widget h3 {
  color: var(--green);
}

.contact-card a {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 800;
}

.contact-form {
  max-width: 860px;
}

.legal-doc {
  max-width: 900px;
}

.legal-doc article {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.legal-doc article:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(34, 211, 238, .07));
}

.footer-cta h2 {
  max-width: 680px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 22px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer h3 {
  color: var(--text);
}

.footer a {
  color: var(--text-2);
}

.footer a:hover {
  color: var(--cyan);
}

.footer-brand {
  margin-bottom: 6px;
}

.copyright {
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 211, 238, .08);
  backdrop-filter: blur(18px);
  animation: reveal .35s ease both;
}

.cookie-banner h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--text-2);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: end;
  }

  .hero,
  .upload-hero,
  .split,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 12px 14px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .grid.three,
  .grid.four,
  .grid.six,
  .panel-grid,
  .stat-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-cta,
  .cookie-banner,
  .file-row,
  .endpoint {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    left: 14px;
    right: 14px;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .file-row,
  .endpoint {
    display: grid;
  }

  .upload-box {
    min-height: 300px;
    padding: 22px;
  }
}


/* Private beta portal additions */
:root {
  --orange: #fb923c;
  --purple: #a78bfa;
  --glass: rgba(15, 23, 42, .58);
}

.nav-action.secondary {
  color: var(--text-2);
  background: rgba(21, 28, 36, .72);
}

.hero-note,
.notice-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, .32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 146, 60, .1), rgba(21, 28, 36, .8));
}

.notice-card.success {
  border-color: rgba(34, 197, 94, .35);
  background: linear-gradient(135deg, rgba(34, 197, 94, .1), rgba(21, 28, 36, .8));
}

.notice-card.danger {
  border-color: rgba(239, 68, 68, .35);
  background: linear-gradient(135deg, rgba(239, 68, 68, .1), rgba(21, 28, 36, .8));
}

.notice-card h2,
.notice-card h3,
.hero-note h3 { margin: 0; }

.kv-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(21, 28, 36, .72);
}

.kv-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row strong { color: var(--text); }

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%);
  pointer-events: none;
}

.plan-card .price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0;
}

.plan-card .price-line strong {
  margin: 0;
  font-size: 44px;
}

.plan-card.locked {
  opacity: .72;
}

.plan-card.locked .button {
  pointer-events: none;
  opacity: .62;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  background: rgba(15, 23, 42, .56);
  color: var(--text-2);
  font-size: 13px;
}

.pill.ok { color: var(--green); border-color: rgba(34,197,94,.32); }
.pill.warn { color: var(--warning); border-color: rgba(245,158,11,.35); }
.pill.muted { color: var(--muted); }

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 26px;
  align-items: start;
}

.form-card {
  max-width: 860px;
}

.form-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-card small,
.field-help {
  color: var(--muted);
  font-size: 13px;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .62);
  color: var(--text);
  outline: none;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-result {
  margin-top: 16px;
}

.form-result:empty { display: none; }

.console-panel {
  min-height: 420px;
}

.console-screen {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: var(--radius);
  background: #050a0f;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: #c8f8ff;
}

.console-line {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148,163,184,.08);
  padding-bottom: 8px;
}

.console-line:last-child { border-bottom: 0; padding-bottom: 0; }
.console-line span:first-child { color: var(--muted); }

.support-closed {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .48);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 420px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 211, 238, .32);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, .94);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 12, .72);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(540px, 100%);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background: #0b0f14;
  box-shadow: var(--shadow);
}

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

.locked-route {
  filter: grayscale(.15);
}

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(21, 28, 36, .7);
}

.audit-item > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: var(--green);
  font-weight: 900;
}

.route-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(11, 15, 20, .64);
  border: 1px solid rgba(148, 163, 184, .14);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: #c8f8ff;
  font-size: 13px;
}

@media (max-width: 920px) {
  .portal-layout,
  .kv-row { grid-template-columns: 1fr; }
  .kv-row { gap: 4px; }
}

/* Single-room video call */
.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 26px;
  align-items: start;
}

.call-card { min-height: 560px; }

.call-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .48);
  color: var(--text-2);
}

.call-status-line strong { color: var(--text); }
.warn-dot { background: var(--warning); box-shadow: 0 0 16px rgba(245, 158, 11, .45); }
.compact-form { max-width: none; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.video-box {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .12), transparent 36%),
    rgba(2, 6, 12, .88);
}

.video-box video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  background: #02060c;
}

.video-box span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  background: rgba(2, 6, 12, .72);
  color: var(--text);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.call-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.danger-button {
  border-color: rgba(248, 113, 113, .36);
  color: #fecaca;
  background: rgba(127, 29, 29, .18);
}

.call-share { margin-top: 16px; }

.invite-box {
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: var(--radius);
  background: rgba(8, 13, 20, .76);
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0;
}

.copy-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.call-log {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: var(--radius);
  background: #050a0f;
  color: #c8f8ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.call-log:empty { display: none; }

@media (max-width: 920px) {
  .call-layout,
  .video-grid { grid-template-columns: 1fr; }
}

/* Production polish: neutral service-portal skin */
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-2: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --border: #d8e1ea;
  --border-soft: rgba(15, 23, 42, .1);
  --text: #172033;
  --text-2: #506074;
  --muted: #7a8797;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #16a34a;
  --violet: #6d28d9;
  --danger: #dc2626;
  --warning: #d97706;
  --orange: #ea580c;
  --purple: #6d28d9;
  --glass: rgba(255, 255, 255, .86);
  --shadow: 0 18px 48px rgba(23, 32, 51, .08);
}

body {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--text);
}

body::before,
.site-glow {
  display: none;
}

.topbar {
  min-height: 68px;
  border-bottom: 1px solid #dfe7ef;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.brand {
  color: #101828;
}

.brand img {
  filter: none;
}

.nav {
  justify-content: flex-start;
}

.nav a {
  color: #5b6778;
}

.nav a:hover,
.nav a.active {
  background: #eef4ff;
  color: #1d4ed8;
}

.header-actions {
  gap: 8px;
}

.lang-switch,
input,
textarea,
select {
  border-color: #d7e0ea;
  background: #ffffff;
  color: var(--text);
}

.lang-switch button.active,
.button.primary,
.nav-action {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.button,
.nav-action,
.icon-button {
  min-height: 40px;
  border-color: #d7e0ea;
  background: #ffffff;
  color: #253247;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.button:hover,
.nav-action:hover,
.icon-button:hover,
.card:hover,
.product-panel:hover,
.upload-box:hover {
  transform: translateY(-1px);
  border-color: #b9c7d7;
  box-shadow: 0 18px 38px rgba(23, 32, 51, .1);
}

.nav-action.secondary {
  background: #ffffff;
  color: #344054;
}

.hero,
.upload-hero,
.page-hero {
  padding-top: clamp(44px, 7vw, 78px);
}

h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.lead {
  color: #5c697a;
  font-size: clamp(17px, 1.7vw, 20px);
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  letter-spacing: .06em;
}

.badge,
.chip,
.system-pill,
.pill,
.route-badge {
  border-color: #d7e6f5;
  background: #f1f7ff;
  color: #1d4ed8;
}

.chip {
  border-color: #e3dcff;
  background: #f5f2ff;
  color: #5b21b6;
}

.pill.ok {
  background: #ecfdf3;
  color: #15803d;
}

.pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.badge.danger,
.notice-card.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.card,
.product-panel,
.status-panel,
.upload-box,
.file-table,
.modal-card {
  border: 1px solid #dfe7ef;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.card,
.product-panel,
.status-panel {
  padding: clamp(18px, 2.4vw, 24px);
}

.product-panel::before,
.plan-card::after {
  display: none;
}

.hero-note,
.notice-card,
.support-closed,
.call-status-line,
.kv-table,
.step-card,
.audit-item,
.stat {
  border-color: #dfe7ef;
  background: #ffffff;
}

.hero-note,
.notice-card {
  border-left: 4px solid #2563eb;
  box-shadow: 0 10px 26px rgba(23, 32, 51, .05);
}

.notice-card.success,
.result-panel {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.muted,
.notice,
.card p,
.footer p,
.stat span,
.upload-mini span,
label,
.form-card small,
.field-help {
  color: #64748b;
}

.upload-cloud,
.upload-icon,
.feature-icon,
.step-card > span,
.audit-item > span {
  background: #eef4ff;
  color: #1d4ed8;
}

.meter {
  background: #e6edf5;
}

.meter span {
  background: linear-gradient(90deg, #2563eb, #0891b2, #16a34a);
}

.code-card,
.console-screen,
.call-log {
  border: 1px solid #d6e0ea;
  background: #0f172a;
  color: #dbeafe;
}

.endpoint,
.file-row,
.kv-row,
.legal-doc article,
.console-line {
  border-color: #e4ebf2;
}

.method {
  color: #15803d;
}

.price-card.active {
  border-color: #93c5fd;
}

.plan-card.locked {
  opacity: 1;
  background: #f8fafc;
}

.status-widget h3,
.status-dot {
  color: #15803d;
}

.footer {
  border-top-color: #dfe7ef;
}

.footer-cta {
  border-color: #dbeafe;
  background: #eff6ff;
}

.footer a {
  color: #536276;
}

.footer a:hover {
  color: #1d4ed8;
}

.cookie-banner {
  border-color: #d7e0ea;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
}

.modal-backdrop {
  background: rgba(15, 23, 42, .36);
}

.video-box {
  border-color: #d7e0ea;
  background: #0f172a;
}

.video-box span {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(15, 23, 42, .72);
  color: #ffffff;
}

.invite-box {
  border-color: #dfe7ef;
  background: #f8fafc;
}

.danger-button {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.section {
  border-top-color: #dfe7ef;
}

.section-head {
  align-items: flex-start;
}

.feature-card,
.mini-card,
.app-card,
.price-card,
.status-widget {
  min-height: 0;
}

.call-card {
  min-height: 520px;
}

.copy-row input,
.link-box,
.route-badge {
  background: #f8fafc;
  color: #344054;
}

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

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

  .brand span {
    font-size: 15px;
  }

  .header-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .header-actions .nav-action {
    flex: 1 1 130px;
  }

  .nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .hero,
  .upload-hero,
  .page-hero {
    padding-top: 34px;
  }

  .video-box,
  .video-box video {
    min-height: 220px;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }
}
