:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.12);
  --text: #eef3ff;
  --muted: #a9b4cc;
  --line: rgba(255,255,255,0.14);
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --danger: #fb7185;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(125,211,252,0.22), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(192,132,252,0.18), transparent 24rem),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  background: rgba(11,16,32,0.72);
}
.brand, nav { display: flex; align-items: center; gap: 14px; }
.brand { text-decoration: none; font-weight: 800; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}
nav a:hover { color: var(--text); }
main { padding: clamp(24px, 6vw, 72px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: 0.95; margin: 8px 0 22px; letter-spacing: -0.06em; }
h2 { margin-top: 0; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 780px; line-height: 1.6; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .8rem; font-weight: 800; letter-spacing: .16em; }
.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.card { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 720px; }
.muted, .hint, small { color: var(--muted); }
.actions, .call-controls, .admin-head, .row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
button, .row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #08111f; border: 0; }
.secondary { background: rgba(255,255,255,0.1); }
.danger { background: rgba(251,113,133,0.13); border-color: rgba(251,113,133,0.42); color: #fecdd3; }
.field { display: grid; gap: 8px; margin: 24px 0; color: var(--muted); font-weight: 700; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(0,0,0,0.26);
  color: var(--text);
  font-size: 1rem;
}
.status {
  margin: 18px 0 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(125,211,252,0.09);
  color: #dff7ff;
}
.meter { height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.meter div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .08s linear; }
.admin-head { justify-content: space-between; margin-bottom: 24px; }
.list { display: grid; gap: 12px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}
.row p { margin: 6px 0; color: var(--muted); }
.transcript {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  overflow: auto;
  max-height: 70vh;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}
.hidden { display: none; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; gap: 14px; flex-direction: column; }
  h1 { font-size: 2.7rem; }
  .row { flex-direction: column; }
}
