/* ============================================================
   PlayHT — "AI Studio" theme (reference design replica)
   Sirf design change hua hai. Saare IDs/classes aur JS
   hooks same hain — functionality bilkul same.
   ============================================================ */
:root {
  --bg: #03060c;
  --surface: #0a111c;
  --surface2: #0d1524;
  --inset: rgba(7, 13, 23, 0.45);
  --text: #f2f7ff;
  --text-dim: #c6d2e8;
  --muted: #7d8ca8;
  --border: rgba(34, 211, 238, 0.14);
  --border-soft: rgba(34, 211, 238, 0.08);

  --accent: #22d3ee;
  --accent2: #2dd4bf;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --on-accent: #03252e;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 28px rgba(34, 211, 238, 0.35);
  --glow-sm: 0 0 14px rgba(34, 211, 238, 0.35);

  --radius: 16px;
  --radius-lg: 22px;

  --sidebarW: 300px;
  --panelW: 340px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #03060c url("/static/bg.jpg") center center / cover no-repeat fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Helvetica Neue",
    sans-serif;
}

/* faint tech-grid backdrop like the reference */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(3, 6, 12, 0.38), rgba(3, 6, 12, 0.38)),
    radial-gradient(560px 380px at 18% 12%, rgba(34, 211, 238, 0.08), transparent 65%),
    radial-gradient(640px 460px at 88% 88%, rgba(45, 212, 191, 0.07), transparent 65%),
    radial-gradient(520px 420px at 78% 6%, rgba(56, 189, 248, 0.06), transparent 60%),
    radial-gradient(420px 320px at 45% 55%, rgba(34, 211, 238, 0.04), transparent 65%),
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.035) 0 1px, transparent 1px 44px);
}
.app {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}

code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #a5f3fc;
  padding: 1px 6px;
  border-radius: 999px;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.42);
}

/* ================= Layout ================= */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebarW) 1fr var(--panelW);
  gap: 20px;
  padding: 20px;
}

/* ================= Sidebar ================= */
.sidebar {
  background: linear-gradient(180deg, rgba(16, 25, 46, 0.6), rgba(9, 15, 27, 0.56));
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.brandMark {
  width: 42px;
  height: 42px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.7));
  flex: 0 0 auto;
}
.brandMark svg {
  width: 100%;
  height: 100%;
}
.brandMark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brandName {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brandSub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}
.navGroupTitle {
  margin: 18px 10px 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
}
.navItemLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navItem:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.16);
}
.navItem.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 800;
  box-shadow: var(--glow-sm);
}
.navItem.active .navIcon {
  color: var(--on-accent);
}
.navItem.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.navIcon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.navIcon svg {
  width: 100%;
  height: 100%;
}

.soonPill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 9px;
  border-radius: 999px;
}
.navItem.active .soonPill {
  color: var(--on-accent);
  border-color: rgba(3, 37, 46, 0.3);
}

.sidebarFooter {
  margin-top: auto;
  padding-top: 16px;
}
.userCard {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent);
  flex: 0 0 auto;
}
.userName {
  font-weight: 800;
  font-size: 14px;
}
.balance {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ================= Main ================= */
.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Page head: title chip + pills */
.pageHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pageTitleChip {
  background: rgba(16, 25, 46, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 12px 22px 14px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
}
.pageTitleChip h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.pageTitleChip::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: var(--glow-sm);
}
.headPills {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.statusPill,
.charPill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 25, 46, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
}
.pillLabel {
  color: var(--muted);
  font-weight: 600;
}
.pillValue {
  color: var(--accent);
}
.pillValue.dim {
  color: var(--text-dim);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
}

/* Legacy header (other pages) */
.header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hTitle {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.hSub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.badgeLive {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumbs {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.sep {
  opacity: 0.55;
  margin: 0 6px;
}
.headerActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= Cards ================= */
.card {
  background: linear-gradient(180deg, rgba(16, 25, 46, 0.58), rgba(9, 15, 27, 0.54));
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ================= Editor ================= */
.editorCard {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.textarea {
  width: 100%;
  min-height: 210px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  outline: 0;
  resize: vertical;
  padding: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--inset);
}
.textarea:focus {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}
.textarea::placeholder {
  color: #5b6b8f;
}

.tagsRow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tagsLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-right: 4px;
}
.tagChip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tagChip:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--accent-soft);
  color: #a5f3fc;
}

/* Waveform preview */
.wavePreview {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(65% 100% at 50% 50%, rgba(34, 211, 238, 0.07), transparent 70%),
    rgba(7, 13, 23, 0.5);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waveLabel {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.waveRow {
  display: flex;
  gap: 14px;
  align-items: center;
}
.playBtn {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--glow);
  flex: 0 0 auto;
}
.playBtn:hover {
  filter: brightness(1.1);
}
.wavePill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  min-height: 88px;
  min-width: 0;
}
.waveBars {
  flex: 1;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
  position: relative;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
/* faint center baseline, like a real waveform view */
.waveBars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(34, 211, 238, 0.28);
  pointer-events: none;
}
.waveBar {
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35) 35%, rgba(148, 163, 184, 0.35) 65%, transparent);
  height: 40%;
  transition: background 120ms ease;
  flex: 1 1 0;
  min-width: 2px;
  position: relative;
  z-index: 1;
}
.waveBar.on {
  background: linear-gradient(180deg, transparent, var(--accent) 28%, #d9fbff 50%, var(--accent) 72%, transparent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.75);
}
.waveBars.playing .waveBar.on {
  animation: wavePulse 900ms ease-in-out infinite;
}
.waveBars.playing .waveBar.on:nth-child(3n) {
  animation-delay: 80ms;
}
.waveBars.playing .waveBar.on:nth-child(4n) {
  animation-delay: 140ms;
}
.waveBars.playing .waveBar.on:nth-child(5n) {
  animation-delay: 220ms;
}
@keyframes wavePulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.95;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}
.waveTime {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  min-width: 52px;
  text-align: right;
}
.voicePreviewRow {
  border: 1px solid var(--border-soft);
  background: var(--inset);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Big generate button */
.btnGenerateBig {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(3, 37, 46, 0.22),
    var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btnGenerateBig:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}
.btnGenerateBig:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.sparkle {
  font-size: 22px;
}

.underBtnRow {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.ghostBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.ghostBtn svg {
  width: 16px;
  height: 16px;
}
.ghostBtn:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--accent-soft);
  color: #a5f3fc;
}
.ghostBtn.small {
  padding: 8px 14px;
  font-size: 12px;
  margin-top: 8px;
}

/* Legacy primary button (other pages + modal) */
.primaryBar {
  margin-top: 8px;
  background: transparent;
}
.btnPrimaryBig {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--glow-sm);
}
.btnPrimaryBig:hover {
  filter: brightness(1.08);
}
.smallBtn {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}
.smallBtn:hover {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.45);
}
.iconBtn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}
.iconBtn:hover {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.45);
}
.downloadLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--glow-sm);
}
.downloadLink:hover {
  filter: brightness(1.08);
}
.dlLabel {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  flex: 0 0 auto;
}

/* Download row: file name box + download button */
.dlRow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}
.dlRow .input {
  flex: 1;
  min-width: 0;
}
.dlRow .downloadLink {
  margin-top: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ================= Generate progress ================= */
.genLine {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: var(--shadow), 0 0 24px rgba(34, 211, 238, 0.08);
  color: rgba(242, 247, 255, 0.92);
}
.genLineRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.genDot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.genStep {
  flex: 1;
  opacity: 0.95;
}
.genPctRight {
  opacity: 0.85;
  color: var(--accent);
}
.genLineTrack {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.genLineFill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.genLineFill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: fillShine 1.6s ease-in-out infinite;
}
@keyframes fillShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Progress ring */
.ringWrap {
  position: relative;
  width: 44px;
  height: 44px;
}
.ringSvg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.ringBg {
  fill: none;
  stroke: rgba(56, 189, 248, 0.15);
  stroke-width: 4;
}
.ringFg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.8));
}
.ringText {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #a5f3fc;
}

/* ================= Right panel ================= */
.panel {
  background: linear-gradient(180deg, rgba(16, 25, 46, 0.6), rgba(9, 15, 27, 0.56));
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 20px;
  overflow: auto;
  height: calc(100vh - 40px);
  position: sticky;
  top: 20px;
}
.panelHead {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), transparent) 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panelHead .sparkle {
  color: var(--accent);
  font-size: 18px;
}
.pset {
  margin-bottom: 22px;
}
.panelSection {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 14px;
}
.panelTitle {
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 15px;
}
.fieldLabel {
  display: block;
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
}

.voiceSelect,
.input,
.select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--inset);
  color: var(--text);
  outline: none;
  font-size: 14px;
  font-weight: 600;
}
.voiceSelect {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8ca8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.voiceSelect:focus,
.input:focus,
.select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.select option,
.voiceSelect option {
  background: #0a1224;
  color: var(--text);
}

.sliderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.sliderVal {
  color: var(--accent);
  font-weight: 800;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  border: 2px solid #062a35;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  border: 2px solid #062a35;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  cursor: pointer;
}

.formatRow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.formatLabel {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
}
.formatRow .select {
  flex: 1;
}

.tipBox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.tipIcon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  border: 1px solid var(--border);
  cursor: pointer;
  flex: 0 0 auto;
}
.toggle input {
  display: none;
}
.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.18s ease;
}
.toggle.on {
  background: rgba(34, 211, 238, 0.25);
  border-color: rgba(34, 211, 238, 0.5);
}
.toggle.on .knob {
  left: 22px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

.valueLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.segment {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--inset);
}
.segBtn {
  flex: 1;
  padding: 10px 10px;
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  color: #8ea0c2;
}
.segBtn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.segBtn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================= My voices page ================= */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tabBtn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-dim);
}
.tabBtn.active {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--accent);
}
.countPill {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.voiceGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.voiceCard {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}
.voiceTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.voiceName {
  font-weight: 800;
  font-size: 18px;
}
.voiceMetaSmall {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}
.unlockBadge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  white-space: nowrap;
}
.unlockBadge.ok {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
  color: #5eead4;
}
.unlockBadge.warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}
.voiceBottom {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.voiceActions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.voiceActions .smallBtn,
.voiceActions .iconBtn {
  width: auto;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voiceActions .iconBtn {
  width: 42px;
  padding: 0;
}

.emptyState {
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.emptyTitle {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

/* ================= Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.modalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}
.modalCard {
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: 60px auto;
  background: #0a1224;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(34, 211, 238, 0.08);
  padding: 18px;
}
.modalHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.modalTitle {
  font-weight: 800;
  font-size: 18px;
}
.modalRow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.modalActions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.codeBox {
  margin-top: 12px;
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  color: #a5f3fc;
  font-size: 12px;
}

/* ================= Transcribe ================= */
.dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  background: var(--inset);
  border-radius: 24px;
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dropzone:hover {
  background: rgba(34, 211, 238, 0.05);
  border-color: rgba(34, 211, 238, 0.5);
}
.dropzone.dragover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}
.dropIcon {
  font-size: 34px;
  color: #5b6b8f;
  margin-bottom: 8px;
}
.dropTitle {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
.fileInfo {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.optionsCard {
  padding: 16px;
}
.optionsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.optionsGrid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 12px;
}
.jobBox {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jobActions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.audioCard {
  padding: 16px;
}
.audioTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
progress {
  width: 100%;
  height: 14px;
}

/* ================= API Keys page ================= */
.keysSummary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.kpi {
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 12px;
}
.kpiLabel {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.kpiVal {
  margin-top: 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.keysList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.keyRow {
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 12px;
}
.keyTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}
.keySub {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.keyBar {
  margin-top: 8px;
  height: 6px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.keyFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.keyBadge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  white-space: nowrap;
}
.keyBadge.ok {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
  color: #5eead4;
}
.keyBadge.warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: var(--sidebarW) 1fr;
  }
  .panel {
    position: static;
    height: auto;
  }
}
@media (max-width: 980px) {
  .optionsGrid {
    grid-template-columns: 1fr;
  }
  .voiceGrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
  }
  .pageHead {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ================= Executive Dashboard ================= */
/* dashboard with sidebar shell */
.dashShell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebarW) 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}
.dashShell .sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
}
.dashShell .execPage {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}
@media (max-width: 820px) {
  .dashShell { grid-template-columns: 1fr; }
  .dashShell .sidebar { position: static; height: auto; }
}

.execPage {
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
}

/* Top bar */
.execTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  flex-wrap: wrap;
}
.execBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.execLogo {
  width: 48px;
  height: 34px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}
.execLogo svg {
  width: 100%;
  height: 100%;
}
.execBrandText {
  display: flex;
  flex-direction: column;
}
.execBrandName {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.execBrandSub {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.execTopRight {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vipPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.45);
  background: rgba(252, 211, 77, 0.07);
  padding: 9px 16px;
  border-radius: 999px;
}
.vipPill .sparkle {
  font-size: 14px;
}
.bellBtn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.bellBtn svg {
  width: 20px;
  height: 20px;
}
.execUser {
  display: flex;
  align-items: center;
  gap: 10px;
}
.execUser .avatar {
  width: 38px;
  height: 38px;
}
.execUserName {
  font-weight: 700;
  font-size: 15px;
}
.chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Title row */
.execTitleRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.execTitle {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.execSub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.execActions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.execActions .ghostBtn svg {
  width: 16px;
  height: 16px;
}
.btnCyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 14px;
  box-shadow: var(--glow-sm);
  white-space: nowrap;
}
.btnCyan:hover {
  filter: brightness(1.08);
}

/* KPI cards */
.execKpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.execKpi {
  padding: 20px;
}
.execKpiTop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.execKpiIcon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.execKpiIcon svg {
  width: 22px;
  height: 22px;
}
.execKpiLabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.execKpiNum {
  margin-top: 12px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.execKpiSub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.execKpiSub.up {
  color: #4ade80;
  font-weight: 700;
}
.execKpiSub.down {
  color: #f87171;
  font-weight: 700;
}

/* Main grid */
.execGrid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}
.execCard {
  padding: 22px;
}
.execCardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.headIcon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  vertical-align: -4px;
  margin-right: 6px;
}
.infoDot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  cursor: help;
}
.barsIcon {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
}

/* Donut */
.donutWrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 10px auto 4px;
}
.donutSvg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}
.donutBg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 22;
}
.donutFg {
  fill: none;
  stroke: url(#donutGrad);
  stroke-width: 22;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
  transition: stroke-dashoffset 0.9s ease;
}
.donutCenter {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}
.donutPct {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.donutLbl {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.donutSub {
  font-size: 12px;
}
.donutLegend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.donutLegend b {
  color: var(--text);
}
.lgDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  font-style: normal;
}
.lgDot.cyan {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.8);
}
.lgDot.dim {
  background: rgba(148, 163, 184, 0.5);
}
.execDivider {
  height: 1px;
  background: var(--border-soft);
  margin: 18px 0;
}

/* 6-month bars */
.bars6 {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 170px;
  margin-top: 12px;
}
.bar6 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.bar6Fill {
  width: 70%;
  max-width: 54px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #67e8f9, var(--accent));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
  min-height: 6px;
}
.bar6Lbl {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Right column */
.execRight {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.activePill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 999px;
}
.dotLive {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.keyRows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.keyRowTop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.keyIco {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex: 0 0 auto;
}
.keyIco svg {
  width: 100%;
  height: 100%;
}
.keyName {
  font-weight: 700;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.keyBadge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}
.keyBadge.ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}
.keyBadge.blue {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.08);
}
.keyBadge.amber {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.45);
  background: rgba(252, 211, 77, 0.08);
}
.keyBadge.gray {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.keyBarX {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}
.keyFillX {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}
.keyUsage {
  margin-top: 6px;
  font-size: 13px;
}
.manageLink {
  display: block;
  text-align: right;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.manageLink:hover {
  text-decoration: underline;
}

/* Subscription */
.expLabel {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
}
.expDate {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 10px;
  letter-spacing: -0.01em;
}
.expDays {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.expDays svg {
  width: 18px;
  height: 18px;
}
.expBarRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.expBarTrack {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}
.expBarFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}
.expPct {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}
.renewRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}
.renewRow svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.execFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  font-size: 13px;
  flex-wrap: wrap;
}
.execFootLinks {
  display: flex;
  gap: 20px;
}

@media (max-width: 1100px) {
  .execKpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .execGrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .execKpis {
    grid-template-columns: 1fr;
  }
  .execTitleRow {
    align-items: stretch;
    flex-direction: column;
  }
  .execTitle {
    font-size: 30px;
  }
}

/* ================= Admin Panel — Executive Dark ================= */
.adminPage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* top bar */
.adminTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 34px;
  background: rgba(3, 7, 17, 0.72);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: wrap;
}
.adminBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adminLogo {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
}
.adminLogo svg {
  width: 100%;
  height: 100%;
}
.adminLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.adminBrandName {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.adminBrandSub {
  font-size: 32px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: -0.01em;
}
.logoutBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.06);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.logoutBtn svg {
  width: 18px;
  height: 18px;
}
.logoutBtn:hover {
  background: rgba(34, 211, 238, 0.14);
}

#adminPanel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 34px 0;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
#adminLogin {
  margin: 60px auto;
}

/* plan strip */
.planStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stripPlan {
  position: relative;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.stripPlan:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
}
.stripPlan.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(34, 211, 238, 0.35);
}
.stripBadge {
  position: absolute;
  top: -13px;
  right: 16px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  box-shadow: var(--glow-sm);
}
.stripChars {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stripPrice {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}
.stripSub {
  margin-top: 2px;
  font-size: 14px;
}

/* main grid */
.adminGrid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}
.createCard,
.usersCard {
  padding: 24px;
}
.cardTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.titleIcon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.fldLabel {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 6px;
}
.smallNote {
  font-size: 12px;
  margin: 10px 0 0;
}
.applyBtn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #67e8f9, var(--accent));
  color: #04121a;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.4);
}
.applyBtn:hover {
  filter: brightness(1.07);
}
.applyBtn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* user cards */
.userCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.userCard {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.userCardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.userName {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.credLine {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.credBox {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copyBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.copyBtn svg {
  width: 15px;
  height: 15px;
}
.copyBtn:hover {
  background: rgba(34, 211, 238, 0.16);
}
.copyBtn:disabled {
  opacity: 0.45;
  cursor: default;
}
.uStats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.uStatsLeft {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.uStatRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.uStatRow .cyan {
  color: var(--accent);
}
.uRing {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  transform: rotate(-90deg);
}
.uRingBg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 7;
}
.uRingFg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}
.uRingTxt {
  fill: var(--accent);
  font-size: 15px;
  font-weight: 800;
  transform: rotate(90deg);
  transform-origin: 32px 32px;
}
.uExpiry {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.uExpiry svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.uActions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* footer */
.adminFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 4px 22px;
  font-size: 12px;
}
.healthy {
  color: #4ade80;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* login page */
.authWrap {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.authCard {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.authTitle {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.authCard .input {
  text-align: left;
}
.authCard .btnCyan {
  justify-content: center;
  margin-top: 4px;
}
.authLogo {
  width: 64px;
  margin: 0 auto 4px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}
.authLogo svg {
  width: 100%;
  height: auto;
}
.formErr {
  min-height: 18px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
}
.warnBanner {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.4);
  color: #fcd34d;
  font-size: 13px;
  font-weight: 600;
}
.miniBtn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.miniBtn:hover {
  border-color: rgba(34, 211, 238, 0.45);
}
.miniBtn.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

@media (max-width: 1200px) {
  .userCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adminGrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .planStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .userCards {
    grid-template-columns: 1fr;
  }
  .adminTop {
    padding: 14px 18px;
  }
  #adminPanel {
    padding: 18px 18px 0;
  }
  .adminBrandName,
  .adminBrandSub {
    font-size: 24px;
  }
}

/* credentials card (after user creation) */
.credCard {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credHead {
  font-weight: 800;
  font-size: 14px;
}
.credRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.credRow b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* small icon button (password show/hide) */
.iconBtnSm {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
}
.iconBtnSm svg {
  width: 17px;
  height: 17px;
}
.iconBtnSm:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.45);
}
.iconBtnSm:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ================= Public site: landing / pricing / signup / legal ================= */
.pubPage {
  background:
    radial-gradient(900px 480px at 50% -80px, rgba(34, 211, 238, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.pubNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.pubBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.pubBrandMark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
.pubBrandMark svg { width: 100%; height: 100%; }
.pubBrandMark img { width: 100%; height: 100%; object-fit: contain; }
.pubBrandName { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.pubLinks { display: flex; align-items: center; gap: 26px; }
.pubLinks a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.pubLinks a:hover { color: var(--text); }
.pubLogin { color: var(--text-dim); }
.pubCta, .btnPrimary {
  display: inline-block;
  background: linear-gradient(135deg, #22d3ee, #0ea5c9);
  color: #03252e;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pubCta:hover, .btnPrimary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.45); }
.btnPrimary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btnBlock { display: block; width: 100%; text-align: center; margin-top: 18px; }
.btnGhost {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
}
.btnGhost:hover { border-color: rgba(34, 211, 238, 0.5); }

.hero { text-align: center; padding: 70px 24px 40px; max-width: 900px; margin: 0 auto; }
.heroPill {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
  background: rgba(34, 211, 238, 0.07);
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.5px; }
.hero h1 .grad {
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heroSub { color: var(--text-dim); font-size: 18px; max-width: 620px; margin: 0 auto 32px; line-height: 1.6; }
.heroBtns { display: flex; gap: 14px; justify-content: center; margin-bottom: 46px; }
.heroWave, .suWave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 110px;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: radial-gradient(420px 120px at 50% 50%, rgba(34, 211, 238, 0.14), transparent 75%), rgba(255, 255, 255, 0.02);
}
.wBar {
  flex: 1;
  min-width: 3px;
  max-width: 8px;
  border-radius: 3px;
  background: linear-gradient(to top, #0e7490, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  animation: wPulse 1.8s ease-in-out infinite;
}
@keyframes wPulse { 0%, 100% { transform: scaleY(0.55); opacity: 0.65; } 50% { transform: scaleY(1); opacity: 1; } }

.pubSection { max-width: 1080px; margin: 0 auto; padding: 56px 24px 10px; }
.pubSection h2 { text-align: center; font-size: 30px; margin-bottom: 36px; }
.featGrid, .stepsGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featCard, .stepCard {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.025);
}
.featCard:hover, .stepCard:hover { border-color: rgba(34, 211, 238, 0.3); }
.featIcon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 22px; color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 18px;
}
.featCard h3, .stepCard h3 { margin: 0 0 10px; font-size: 18px; }
.featCard p, .stepCard p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0; }
.stepNum {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #03252e;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  margin-bottom: 16px;
}
.ctaBand {
  text-align: center;
  max-width: 860px;
  margin: 70px auto;
  padding: 54px 30px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 24px;
  background: radial-gradient(500px 200px at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%);
}
.ctaBand h2 { font-size: 30px; margin: 0 0 12px; }
.ctaBand p { color: var(--text-dim); margin: 0 0 26px; }
.pubFoot {
  border-top: 1px solid var(--border-soft);
  padding: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pubFoot nav { display: flex; gap: 24px; }
.pubFoot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.pubFoot nav a:hover { color: var(--text); }
.fine { color: var(--muted); font-size: 13px; }
.muted { color: var(--text-dim); font-size: 14px; }
.center { text-align: center; }

.pubWrap { max-width: 1080px; margin: 0 auto; padding: 30px 24px 70px; }
.pubWrap.narrow { max-width: 820px; }
.pubTitle { text-align: center; font-size: 36px; margin: 26px 0 10px; }
.pubSub { text-align: center; color: var(--text-dim); margin: 0 0 40px; }
.offerBar {
  text-align: center;
  font-size: 15px;
  color: #fda4af;
  border: 1px solid rgba(253, 164, 175, 0.3);
  background: rgba(244, 63, 94, 0.08);
  border-radius: 12px;
  padding: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.offerBar span { font-weight: 800; font-variant-numeric: tabular-nums; }
.ownerLine {
  text-align: center;
  font-size: 16px;
  color: var(--text-dim);
  margin: 16px 0 0;
}
.ownerLine b { color: var(--text); }
.ownerLine a { color: var(--accent); text-decoration: none; }
.ownerLine a:hover { text-decoration: underline; }
.planGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.planCard {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}
.planCard.hot {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.22);
  transform: scale(1.04);
}
.bestBadge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  color: #03252e; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.planChars { font-size: 34px; font-weight: 800; }
.planSub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.planPrice { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.planFeats { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.planFeats li { color: var(--text-dim); font-size: 14px; padding: 6px 0 6px 26px; position: relative; }
.planFeats li::before { content: "\2713"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.planBtn { width: 100%; }
.payBox {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 30px;
}
.payBox h3 { margin: 0 0 16px; }
.payBox ol { color: var(--text-dim); line-height: 2; margin: 0 0 22px; padding-left: 22px; }
.payTag {
  display: inline-block; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(34, 211, 238, 0.4); color: var(--accent);
  border-radius: 8px; padding: 2px 10px; margin: 0 2px;
}
.faqBox h3 { margin-bottom: 14px; }
.faqBox details {
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.faqBox summary { cursor: pointer; font-weight: 600; }
.faqBox p { color: var(--text-dim); font-size: 14px; margin: 10px 0 0; }

.suSplit { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.suLeft {
  padding: 40px 48px;
  display: flex; flex-direction: column; gap: 34px;
  border-right: 1px solid var(--border-soft);
  background: radial-gradient(500px 300px at 20% 20%, rgba(34, 211, 238, 0.08), transparent 70%);
}
.suLeft h2 { font-size: 40px; line-height: 1.2; margin: 0; }
.suWave { margin: 0; max-width: 420px; }
.suPerks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.suPerks li { color: var(--text-dim); font-size: 16px; display: flex; align-items: center; gap: 12px; }
.tick {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  background: rgba(34, 211, 238, 0.12); color: var(--accent); font-size: 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.suRight { display: grid; place-items: center; padding: 40px 24px; }
.suCard {
  width: 100%; max-width: 420px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 38px 34px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.suCard h1 { font-size: 26px; margin: 0 0 6px; }
.suCard .fldInput { margin-bottom: 4px; }
.planPills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 6px; }
.planPill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border-radius: 10px; padding: 10px 4px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.planPill.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}
.formErr { color: #fda4af; font-size: 14px; min-height: 20px; margin-top: 8px; }
.suCard a { color: var(--accent); }
.suDone { text-align: center; padding: 20px 0; }
.suDoneIcon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 30px; color: #03252e;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}
.suDone h1 { margin-bottom: 12px; }
.suDone p { color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }

.tabRow { display: flex; gap: 10px; justify-content: center; margin: 30px 0; }
.tabBtn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border-radius: 999px; padding: 10px 28px;
  font-size: 15px; cursor: pointer;
}
.tabBtn.on {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.docCard {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 38px 42px;
  background: rgba(255, 255, 255, 0.025);
}
.docCard h3 { margin: 26px 0 8px; font-size: 17px; }
.docCard h3:first-of-type { margin-top: 14px; }
.docCard p { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 0 6px; }

@media (max-width: 900px) {
  .featGrid, .stepsGrid { grid-template-columns: 1fr; }
  .planGrid { grid-template-columns: 1fr 1fr; }
  .suSplit { grid-template-columns: 1fr; }
  .suLeft { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .pubLinks a:not(.pubCta):not(.pubLogin) { display: none; }
}
@media (max-width: 560px) {
  .planGrid { grid-template-columns: 1fr; }
  .planCard.hot { transform: none; }
}

/* landing demo box */
.demoBox {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
}
.demoBox textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(7, 13, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 16px;
  resize: vertical;
  font-family: inherit;
}
.demoBox textarea:focus { outline: none; border-color: rgba(34, 211, 238, 0.55); }
.demoRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 4px;
}
.wordCount { color: var(--muted); font-size: 13px; }
.demoVoice {
  background: rgba(7, 13, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  max-width: 240px;
}
.demoAudio { width: 100%; margin-top: 16px; }

/* admin: original credits pool (owner only) */
.poolCard {
  margin: 18px 0 0;
  padding: 18px 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  background: radial-gradient(400px 120px at 20% 0%, rgba(34, 211, 238, 0.08), transparent 70%), rgba(255, 255, 255, 0.025);
}
.poolHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.poolTitle { font-weight: 700; font-size: 15px; }
.poolMonth { color: var(--muted); font-size: 13px; }
.poolNums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poolNum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(7, 13, 23, 0.4);
}
.poolLbl { color: var(--muted); font-size: 13px; }
.poolVal { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.poolVal.cyan { color: var(--accent); }





/* voice sync */
.syncCard {
  margin: 18px 0 0;
  padding: 18px 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  background: radial-gradient(400px 120px at 20% 0%, rgba(34, 211, 238, 0.08), transparent 70%), rgba(255, 255, 255, 0.025);
}
.syncList { display: flex; flex-direction: column; gap: 12px; }
.syncRow {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(7, 13, 23, 0.4);
}
.syncTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.keyPills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.keyPill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.keyPill.ready { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); }
.keyPill.syncing { color: #fbbf24; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); animation: pillPulse 1.4s ease-in-out infinite; }
.keyPill.failed { color: #f87171; border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }
@keyframes pillPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.keyBadge.danger { color: #f87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

/* demo: progress */
.demoProgress { margin-top: 18px; }
.demoProgTrack {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.demoProgFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e7490, #22d3ee, #2dd4bf);
  background-size: 200% 100%;
  animation: progSlide 1.2s linear infinite;
  transition: width 0.5s ease;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}
@keyframes progSlide {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.demoProgTxt {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 10px;
}


@media (max-width: 640px) {
  .sampleGrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- demo: TTS-style ---- */
.sampleGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.sampleCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  animation: sampleIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
@keyframes sampleIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sampleCard:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.16);
}
.sampleCard:active { transform: scale(0.97); }
.sampleCard.on {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28);
}
.sampleIco {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.sampleTxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sampleName { font-weight: 700; font-size: 14px; }
.sampleHint { color: var(--muted); font-size: 12px; }

/* demo textarea — like the TTS editor */
.demoTextarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  outline: 0;
  resize: vertical;
  padding: 18px;
  font-size: 15px;
  line-height: 1.65;
  font-family: inherit;
  color: var(--text);
  background: var(--inset);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demoTextarea:focus {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}
.demoTextarea::placeholder { color: #5b6b8f; }
.wordCount.over { color: #fda4af; font-weight: 700; }

/* demo generate — like the TTS Generate button */
.btnDemoGen {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 17px 16px;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(3, 37, 46, 0.22),
    var(--glow);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.btnDemoGen:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}
.btnDemoGen:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* demo progress */
.demoProgress { margin-top: 18px; }
.demoProgTrack {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.demoProgFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e7490, #22d3ee, #2dd4bf);
  background-size: 200% 100%;
  animation: progSlide 1.2s linear infinite;
  transition: width 0.5s ease;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}
@keyframes progSlide {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.demoProgTxt { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 10px; }

#demoWaveWrap { margin-top: 20px; }
@media (max-width: 640px) {
  .sampleGrid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= Credits page (Design 2 — mockup matched) ================= */
/* PLAYHT-CREDITS-CARD-SMALL-V3 */
.app.twoCol {
  grid-template-columns: var(--sidebarW) 1fr;
}
.creditsH1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.05;
}
.creditHero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 16px 20px;
  max-width: 450px;
  aspect-ratio: 16 / 9.2;
  display: flex;
  flex-direction: column;
  color: #f0fdff;
  background:
    radial-gradient(700px 300px at 88% -10%, rgba(153, 246, 228, 0.35), transparent 60%),
    radial-gradient(520px 320px at -10% 115%, rgba(125, 211, 252, 0.3), transparent 60%),
    linear-gradient(100deg, #0ea5e9 0%, #0284c7 32%, #0891b2 55%, #0d9488 82%, #0f766e 100%);
  border: 1px solid rgba(103, 232, 249, 0.4);
  box-shadow: 0 26px 55px rgba(8, 145, 178, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 26px;
}
.creditHero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 52px);
  background-size: 26px 26px, auto, auto;
  pointer-events: none;
}
.creditHeroTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.creditHeroBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 5px;
}
.creditHeroBrand svg { width: 22px; height: 22px; }
.creditHeroBrand img { width: 22px; height: 22px; }
.creditChip {
  width: 38px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fbe08a, #d9a72e 55%, #f3cd6b);
  box-shadow: inset 0 0 0 1px rgba(120, 72, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}
.creditChip::before, .creditChip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(120, 72, 0, 0.5);
}
.creditChip::before { top: 12px; }
.creditChip::after { top: 25px; }
.creditHeroLabel {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(224, 254, 255, 0.9);
  background: rgba(3, 45, 60, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}
.creditHeroValue {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.creditHeroUnit {
  font-size: 18px;
  font-weight: 600;
  color: #a5f3fc;
  position: relative;
  z-index: 1;
}
.creditHeroRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.creditHeroRow label {
  display: block;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(224, 254, 255, 0.75);
  margin-bottom: 4px;
}
.creditHeroRow span { font-size: 15px; font-weight: 800; }
.creditHeroExpires { text-align: right; }
.creditHeroExpires span { text-transform: uppercase; }
.usageSection { margin-bottom: 20px; }
.usageH { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.usageRow { display: flex; align-items: center; gap: 28px; }
.usageTextBlock { min-width: 210px; }
.usageCaption { color: var(--muted, #94a3b8); font-size: 14px; margin-bottom: 2px; }
.usageBig { font-size: 19px; font-weight: 700; }
.usageBar {
  flex: 1;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 3px;
}
#usageFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
  transition: width 0.6s ease;
}
.creditTiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tileCard {
  background: linear-gradient(180deg, rgba(16, 25, 46, 0.6), rgba(9, 15, 27, 0.56));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 24px 16px 20px;
  text-align: center;
}
.tileIcon { color: #22d3ee; display: inline-flex; }
.tileIcon svg { width: 34px; height: 34px; }
.tileLabel { color: var(--muted, #94a3b8); font-size: 15px; margin: 8px 0 6px; }
.tileValue { font-size: 34px; font-weight: 800; line-height: 1.1; }
@media (max-width: 700px) {
  .creditHero { aspect-ratio: auto; }
  .creditHeroValue { font-size: 56px; }
  .creditsH1 { font-size: 40px; }
  .creditTiles { grid-template-columns: 1fr; }
  .usageRow { flex-direction: column; align-items: stretch; }
}
