/* ==========================================================================
   Vocalis AI — Design system ("Serene Reassurance")
   Shared by public site, candidate interview room and admin dashboard.
   Prefix-free class names so they can be copied into the WordPress plugin.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #5B21F5;
  --primary-hover: #4A12D9;
  --primary-dark: #3A0DB0;
  --primary-light: #7C4DFF;
  --primary-50: #F3EEFF;
  --primary-100: #E8DEFF;
  --primary-200: #D2C2FF;
  --primary-800: #3A0F9E;

  /* Status */
  --green: #10B981;
  --green-600: #059669;
  --green-50: #ECFDF5;
  --green-100: #D1FAE5;
  --green-800: #065F46;
  --amber: #F59E0B;
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-800: #92400E;
  --red: #EF4444;
  --red-600: #DC2626;
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;
  --red-800: #991B1B;

  /* Neutrals (slate) */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --heading: #0F172A;
  --text: #1E293B;
  --muted: #64748B;
  --faint: #94A3B8;
  --stage: #0F172A;

  /* Shape and depth */
  --r-sm: 6px;
  --r: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-1: 0 1px 3px 0 rgba(15, 23, 42, .04), 0 1px 2px -1px rgba(15, 23, 42, .04);
  --shadow-2: 0 10px 25px -5px rgba(15, 23, 42, .06), 0 8px 10px -6px rgba(15, 23, 42, .04);
  --shadow-3: 0 20px 25px -5px rgba(15, 23, 42, .08), 0 10px 10px -5px rgba(15, 23, 42, .03);
  --ring: 0 0 0 3px rgba(124,77,255, .18);

  --sidebar-w: 256px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5 { color: var(--heading); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.025em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tabular { font-variant-numeric: tabular-nums; }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased; flex-shrink: 0;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.ms.sm { font-size: 16px; }
.ms.lg { font-size: 28px; }
.ms.xl { font-size: 40px; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.bold { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 24px; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid-4 > .card { padding: 16px; } .stat-value { font-size: 26px; } }
@media (max-width: 360px) { .grid-4 { grid-template-columns: 1fr; } }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.label-sm { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.divider-v { width: 1px; align-self: stretch; background: var(--border); }

/* Grid children may shrink below their content width (stops phone overflow) */
.grid > *, .detail-grid > *, .device-grid > *, .live-stage > *, .split > *, .hero-grid > * { min-width: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { color: var(--heading); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(91,33,245, .3);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; line-height: 1; margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .1s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn .ms { font-size: 20px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 2px rgba(15,23,42,.08); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary, .btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--subtle); color: var(--heading); }
.btn-soft { background: var(--primary-50); color: var(--primary-dark); }
.btn-soft:hover { background: var(--primary-100); color: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-danger-soft { background: var(--red-50); color: var(--red-800); border-color: var(--red-100); }
.btn-danger-soft:hover { background: var(--red-100); color: var(--red-800); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-success-soft { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.btn-success-soft:hover { background: var(--green-100); color: var(--green-800); }
.btn-text { background: none; border: 0; color: var(--primary); padding: 6px 8px; min-height: 0; }
.btn-text:hover { background: var(--primary-50); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 5px 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r); display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: var(--subtle); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.plain:hover { background: var(--subtle); }
.icon-btn.danger { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--subtle); color: var(--text);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.no-dot::before { display: none; }
.badge-primary { background: var(--primary-50); color: var(--primary-800); }
.badge-green { background: var(--green-50); color: var(--green-800); }
.badge-amber { background: var(--amber-50); color: var(--amber-800); }
.badge-red { background: var(--red-50); color: var(--red-800); }
.badge-grey { background: var(--subtle); color: var(--muted); }
.badge-dark { background: rgba(15,23,42,.65); color: #fff; backdrop-filter: blur(8px); }
.badge-rec { background: var(--red-50); color: var(--red-800); }
.badge-rec::before { background: var(--red); animation: pulse-dot 1.4s infinite; opacity: 1; }
.score {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r);
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.score small { font-weight: 500; font-size: 11px; opacity: .75; }
.score-high { background: var(--green-100); color: var(--green-800); }
.score-mid { background: var(--amber-100); color: var(--amber-800); }
.score-low { background: var(--red-100); color: var(--red-800); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: 13px; font-weight: 500; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid rgba(226,232,240,.8); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 24px; }
.card-sm { padding: 16px; }
.card-lg { padding: 32px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3, .card-head h4 { margin: 0; }
.card-tint { background: var(--primary-50); border-color: var(--primary-100); box-shadow: none; }
.card-glass { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-2); }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--primary-100); }
.icon-tile { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.icon-tile.green { background: var(--green-50); color: var(--green-600); }
.icon-tile.amber { background: var(--amber-50); color: var(--amber-800); }
.icon-tile.red { background: var(--red-50); color: var(--red-600); }
.icon-tile.lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.icon-tile.lg .ms { font-size: 28px; }

/* Stat card */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 34px; font-weight: 700; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-foot { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--green-600); font-weight: 600; }
.trend-down { color: var(--red-600); font-weight: 600; }

/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--subtle); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .4s var(--ease); }
.progress.green > span { background: var(--green); }
.progress.amber > span { background: var(--amber); }
.progress.red > span { background: var(--red); }
.progress.thin { height: 5px; }
.steps-bar { display: flex; gap: 6px; }
.steps-bar span { flex: 1; height: 5px; border-radius: 99px; background: var(--primary-100); }
.steps-bar span.done { background: var(--green); }
.steps-bar span.current { background: var(--primary); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }
.field-row .field + .field { margin-top: 0; }
label, .label { font-size: 14px; font-weight: 600; color: var(--heading); }
.hint { font-size: 13px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--red-600); display: flex; align-items: center; gap: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); color: var(--text); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.input.is-error { border-color: var(--red); background: var(--red-50); }
.input.is-success { border-color: var(--green); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.input-icon { position: relative; }
.input-icon .ms { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input, .input-icon .select { padding-left: 42px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.toggle { position: relative; display: inline-flex; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; cursor: pointer; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { box-shadow: var(--ring); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--r-lg); padding: 32px 20px; text-align: center; background: var(--bg); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--primary); background: var(--primary-50); }
.range { width: 100%; accent-color: var(--primary); }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--r); background: var(--subtle); gap: 4px; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button.active { background: #fff; color: var(--heading); box-shadow: var(--shadow-1); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--heading); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tabs-pill { border: 0; background: var(--subtle); border-radius: var(--r-md); padding: 4px; }
.tabs-pill .tab { border-radius: var(--r); border: 0; margin: 0; padding: 9px 14px; flex: 1; justify-content: center; }
.tabs-pill .tab.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in .25s var(--ease); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--heading); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #FBFCFE; }
.table .cell-person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.table .cell-person b { display: block; color: var(--heading); font-weight: 600; }
.table .cell-person > div > span { font-size: 13px; color: var(--muted); }
.table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages a, .pagination .pages span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); color: var(--text); font-weight: 500; padding: 0 8px; }
.pagination .pages a:hover { background: var(--subtle); }
.pagination .pages a.active { background: var(--primary); color: #fff; }

/* Mobile table → cards */
@media (max-width: 760px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border: 1px solid var(--border); border-radius: var(--r-md); margin: 0 0 12px; padding: 8px 4px; background: #fff; }
  .table-cards td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .table-cards td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .table-cards td.td-main { display: flex; justify-content: flex-start; }
  .table-cards td.td-main::before { display: none; }
  .table-cards .cell-person { min-width: 0; }
  .table-cards .row-actions { justify-content: flex-end; }
  .table-cards-wrap { padding: 12px; }
}

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: #fff; background: var(--primary); position: relative; letter-spacing: 0;
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; border-radius: var(--r-lg); }
.avatar.c1 { background: linear-gradient(135deg, #7C4DFF, #4A12D9); }
.avatar.c2 { background: linear-gradient(135deg, #10B981, #047857); }
.avatar.c3 { background: linear-gradient(135deg, #F59E0B, #B45309); }
.avatar.c4 { background: linear-gradient(135deg, #EC4899, #BE185D); }
.avatar.c5 { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.avatar.c6 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.avatar .status-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--green); }

/* ---------- Alerts / toasts / modals ---------- */
.alert { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--primary-50); color: var(--primary-800); align-items: flex-start; }
.alert .ms { margin-top: 1px; }
.alert b { color: var(--heading); }
.alert > div > b { display: block; margin-bottom: 2px; }
.alert p { margin: 0; color: var(--text); font-size: 15px; }
.alert-green { background: var(--green-50); color: var(--green-800); }
.alert-amber { background: var(--amber-50); color: var(--amber-800); }
.alert-red { background: var(--red-50); color: var(--red-800); }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@media (max-width: 600px) { .toast-stack { left: 16px; right: 16px; bottom: 16px; } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--heading); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-3); font-size: 14px; font-weight: 500; animation: toast-in .3s var(--ease); max-width: 380px; }
.toast .ms { color: #6EE7B7; }
.toast.out { animation: toast-out .25s var(--ease) forwards; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade-in .2s; }
.modal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-3); width: 100%; max-width: 460px; padding: 28px; animation: pop-in .25s var(--ease); max-height: calc(100vh - 40px); overflow: auto; }
.modal-lg { max-width: 640px; }
.modal h3 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 480px) { .modal-actions .btn { flex: 1; } }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-3); min-width: 240px; padding: 6px; z-index: 120; display: none; }
.dropdown.open .dropdown-menu { display: block; animation: pop-in .18s var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r); color: var(--text); font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--subtle); }
.notif-menu { width: 340px; max-width: calc(100vw - 32px); padding: 0; }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--primary-50); }

.tooltip { position: relative; }
.tooltip[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--heading); color: #fff; padding: 6px 10px; border-radius: var(--r-sm); font-size: 12px; font-weight: 500; white-space: nowrap; z-index: 50; }

/* Accordion */
.accordion { border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "add"; font-family: "Material Symbols Outlined"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.accordion details[open] summary::after { content: "remove"; }
.accordion details > div { padding: 0 24px 20px; color: var(--muted); }

/* Empty state */
.empty { text-align: center; padding: 56px 24px; max-width: 440px; margin: 0 auto; }
.empty-art { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--primary-100), var(--primary-50)); display: grid; place-items: center; color: var(--primary); }
.empty-art .ms { font-size: 42px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--subtle) 25%, #E9EEF5 37%, var(--subtle) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r); height: 14px; }

/* ==========================================================================
   AI interviewer orb (idle / speaking / listening / thinking)
   ========================================================================== */
.orb-wrap { position: relative; width: 200px; height: 200px; display: grid; place-items: center; margin: 0 auto; }
.orb-wrap.sm { width: 120px; height: 120px; }
.orb-wrap.xs { width: 64px; height: 64px; }
.orb-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.22) 0%, rgba(124,77,255,.08) 55%, transparent 70%); }
.orb {
  position: relative; width: 62%; height: 62%; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #9B7BFF, #5B21F5 55%, #3A0DB0);
  box-shadow: 0 12px 40px rgba(91,33,245,.35), inset 0 2px 8px rgba(255,255,255,.25);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.orb .ms { font-size: 48px; }
.orb-wrap.sm .orb .ms { font-size: 30px; }
.orb-wrap.xs .orb .ms { font-size: 20px; }
.orb-bars { display: flex; gap: 5px; align-items: center; height: 40%; }
.orb-bars i { width: 6px; border-radius: 3px; background: #fff; height: 30%; animation: bar 1s ease-in-out infinite; }
.orb-wrap.sm .orb-bars i { width: 4px; gap: 3px; }
.orb-bars i:nth-child(2) { animation-delay: .15s; } .orb-bars i:nth-child(3) { animation-delay: .3s; } .orb-bars i:nth-child(4) { animation-delay: .45s; } .orb-bars i:nth-child(5) { animation-delay: .6s; }
.orb-icon { display: none; }
/* idle */
.orb-wrap[data-state="idle"] .orb-halo { animation: breathe 3.2s ease-in-out infinite; }
.orb-wrap[data-state="idle"] .orb-bars { display: none; }
.orb-wrap[data-state="idle"] .orb-icon.i-idle { display: block; }
/* speaking */
.orb-wrap[data-state="speaking"] .orb-halo { animation: ripple 1.6s ease-out infinite; }
/* listening */
.orb-wrap[data-state="listening"] .orb { background: radial-gradient(circle at 35% 30%, #6EE7B7, #10B981 55%, #047857); box-shadow: 0 12px 40px rgba(16,185,129,.35), inset 0 2px 8px rgba(255,255,255,.25); }
.orb-wrap[data-state="listening"] .orb-halo { background: radial-gradient(circle, rgba(16,185,129,.22) 0%, rgba(16,185,129,.08) 55%, transparent 70%); animation: breathe 1.4s ease-in-out infinite; }
.orb-wrap[data-state="listening"] .orb-bars { display: none; }
.orb-wrap[data-state="listening"] .orb-icon.i-listen { display: block; }
/* thinking */
.orb-wrap[data-state="thinking"] .orb { background: radial-gradient(circle at 35% 30%, #C2ADFF, #7C4DFF 55%, #4A12D9); }
.orb-wrap[data-state="thinking"] .orb::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed var(--primary-light); animation: spin 4s linear infinite; }
.orb-wrap[data-state="thinking"] .orb-bars { display: none; }
.orb-wrap[data-state="thinking"] .orb-icon.i-think { display: block; animation: spin 2.4s linear infinite; }
.orb-wrap[data-state="paused"] .orb { background: radial-gradient(circle at 35% 30%, #CBD5E1, #94A3B8 55%, #64748B); box-shadow: none; }
.orb-wrap[data-state="paused"] .orb-bars { display: none; }
.orb-wrap[data-state="paused"] .orb-icon.i-pause { display: block; }

/* Mic meter / waveform */
.meter { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; background: var(--bg); border-radius: var(--r); overflow: hidden; }
.meter i { flex: 1; max-width: 6px; min-width: 3px; height: 15%; border-radius: 3px; background: var(--green); transition: height .08s linear; }
.meter i.hot { background: var(--amber); }
.mini-meter { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.mini-meter i { width: 3px; border-radius: 2px; background: var(--green); animation: bar .9s ease-in-out infinite; height: 40%; }
.mini-meter i:nth-child(2) { animation-delay: .2s; } .mini-meter i:nth-child(3) { animation-delay: .4s; } .mini-meter i:nth-child(4) { animation-delay: .1s; }

/* Video frames */
.video-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--stage); aspect-ratio: 16 / 10; color: #fff; box-shadow: var(--shadow-2); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.video-frame .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 35%, #334155, #0F172A 70%); }
.video-frame .placeholder .avatar { margin: 0 auto 12px; }
.video-frame .placeholder p { color: #CBD5E1; font-size: 14px; margin: 0; }
.vf-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; flex-wrap: wrap; }
.vf-bottom { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; z-index: 2; }
.vf-tag { background: rgba(15,23,42,.6); backdrop-filter: blur(10px); padding: 8px 12px; border-radius: var(--r); font-size: 13px; color: #fff; }
.vf-tag b { font-weight: 600; }
.face-guide { position: absolute; left: 50%; top: 50%; width: 34%; height: 62%; transform: translate(-50%, -50%); border: 2px dashed rgba(255,255,255,.55); border-radius: 50% / 45%; z-index: 1; pointer-events: none; }

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: var(--r); color: var(--text); font-weight: 500; font-size: 15px; }
.site-nav a:hover { background: var(--subtle); color: var(--heading); }
.site-nav a.active { color: var(--primary); background: var(--primary-50); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .site-nav, .site-actions .hide-m { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav { display: block; position: fixed; inset: 72px 0 0; background: #fff; padding: 20px; transform: translateX(100%); transition: transform .3s var(--ease); z-index: 99; overflow-y: auto; }
  .mobile-nav.open { transform: none; }
  .mobile-nav a:not(.btn) { display: block; padding: 14px 8px; font-size: 18px; font-weight: 500; color: var(--heading); border-bottom: 1px solid var(--border); }
  .mobile-nav .btn { margin-top: 12px; }
}
@media (max-width: 480px) { .site-actions .btn-primary { padding: 10px 14px; font-size: 14px; } }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }

.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; background: radial-gradient(circle, rgba(124,77,255,.14), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 64px; } }
.hero h1 span { color: var(--primary); }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-proof { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-proof span { display: inline-flex; gap: 6px; align-items: center; }
.hero-proof .ms { color: var(--green); }

/* Mock product window */
.mock { background: #fff; border-radius: var(--r-xl); box-shadow: 0 30px 60px -20px rgba(15,23,42,.25), 0 0 0 1px var(--border); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; background: var(--bg); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.mock-body { padding: 16px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.mock-ai { background: var(--primary-50); border-radius: var(--r-lg); padding: 20px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.mock-q { background: #fff; border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; color: var(--heading); box-shadow: var(--shadow-1); }
.mock-cam { border-radius: var(--r-lg); background: radial-gradient(circle at 50% 35%, #475569, #0F172A 75%); position: relative; min-height: 240px; display: grid; place-items: center; }
.person-sil { width: 46%; aspect-ratio: 1 / 1.1; position: relative; }
.person-sil::before { content: ""; position: absolute; left: 32%; top: 0; width: 36%; aspect-ratio: 1; border-radius: 50%; background: #94A3B8; }
.person-sil::after { content: ""; position: absolute; left: 10%; bottom: 0; width: 80%; height: 52%; border-radius: 50% 50% 12px 12px; background: #94A3B8; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-cam { min-height: 200px; } }
.float-card { position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }

.logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 48px; opacity: .6; font-weight: 700; font-size: 18px; color: var(--muted); letter-spacing: -.01em; }

.feature-card { height: 100%; }
.feature-card h4 { margin: 16px 0 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); }
.step-num { position: absolute; top: 20px; right: 20px; font-size: 40px; font-weight: 800; color: var(--primary-50); line-height: 1; }
.step h4 { margin: 16px 0 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

.problem { display: flex; gap: 14px; align-items: flex-start; }
.problem p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; }
.check-list li::before { content: "check_circle"; font-family: "Material Symbols Outlined"; color: var(--green); font-size: 22px; line-height: 1.1; font-variation-settings: "FILL" 1; }

.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--r-xl); padding: 56px 40px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--primary-100); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-secondary { border-color: transparent; }
.cta-band::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -120px; top: -160px; background: rgba(255,255,255,.08); }
@media (max-width: 560px) { .cta-band { padding: 40px 22px; } }

.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-3); position: relative; }
.price-card.featured .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price { font-size: 44px; font-weight: 700; color: var(--heading); letter-spacing: -.03em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .check-list { margin: 20px 0 28px; flex: 1; font-size: 15px; }

.page-hero { padding: 72px 0 48px; text-align: center; background: radial-gradient(ellipse at top, var(--primary-50), transparent 70%); }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--text); line-height: 1.75; }
.prose ul { padding-left: 22px; }
.toc { position: sticky; top: 96px; }
.toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--border); color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--primary); border-color: var(--primary); }

.site-footer { background: var(--heading); color: #94A3B8; padding: 64px 0 28px; margin-top: 0; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0; }
.site-footer a { color: #94A3B8; display: block; padding: 4px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: #1E293B; display: grid; place-items: center; padding: 0; color: #CBD5E1; font-size: 13px; font-weight: 700; }
.socials a:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   CANDIDATE INTERVIEW ROOM
   ========================================================================== */
.cand-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.cand-header { background: #fff; border-bottom: 1px solid var(--border); }
.cand-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.cand-main { flex: 1; padding: 32px 0 48px; }
@media (max-width: 600px) { .cand-main { padding: 20px 0 32px; } }
.cand-footer { border-top: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--muted); }
.cand-footer .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.cand-card { max-width: 640px; margin: 0 auto; }
.step-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stepper { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--border); flex-wrap: wrap; }
.stepper > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.stepper > span.done { color: var(--green-800); background: var(--green-50); }
.stepper > span.current { color: #fff; background: var(--primary); }
@media (max-width: 600px) { .stepper > span:not(.current) .lbl { display: none; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); }
.info-list li b { display: block; color: var(--heading); font-size: 15px; }
.info-list li div > span { font-size: 14px; color: var(--muted); }
.tips { background: var(--amber-50); border-radius: var(--r-md); padding: 16px 18px; }
.tips h4 { color: var(--amber-800); display: flex; gap: 8px; align-items: center; font-size: 15px; }
.tips ul { margin: 0; padding-left: 20px; color: var(--text); font-size: 15px; }
.consent-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; font-size: 15px; max-height: 260px; overflow-y: auto; }
.consent-box ul { padding-left: 20px; margin: 8px 0 0; }
.consent-box li { margin-bottom: 6px; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .check-grid { grid-template-columns: 1fr; } }
.check-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.check-item .icon-tile { width: 38px; height: 38px; border-radius: var(--r); }
.check-item b { display: block; font-size: 14px; color: var(--heading); }
.check-item div > span { font-size: 13px; color: var(--green-800); }
.check-item.fail div > span { color: var(--red-800); }
.check-item.wait div > span { color: var(--muted); }
.device-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .device-grid { grid-template-columns: 1fr; } }

.countdown-num { font-size: clamp(96px, 22vw, 180px); font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; animation: count-pop 1s var(--ease) infinite; }

/* Live interview */
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.live-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.live-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.live-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.live-stage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; margin-top: 24px; }
@media (max-width: 960px) { .live-stage { grid-template-columns: 1fr; gap: 16px; } .live-stage .cam-col { order: -1; } }
.ai-panel { background: linear-gradient(180deg, #F5F3FF, #fff 70%); display: flex; flex-direction: column; gap: 20px; }
.ai-status { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--primary); font-weight: 500; }
.ai-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.4s infinite; }
.ai-status.listening { color: var(--green-600); }
.ai-status.thinking { color: var(--primary-light); }
.prompt-card { background: var(--primary-50); border-radius: var(--r-lg); padding: 20px; }
.prompt-card .q { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; font-weight: 500; color: var(--heading); margin: 8px 0 0; }
.caption-line { margin-top: 12px; font-size: 15px; color: var(--muted); font-style: italic; display: flex; gap: 8px; }
.live-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); margin-top: 16px; font-size: 15px; }
.state-switcher { margin-top: 24px; padding: 16px; background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.state-switcher .flex { flex-wrap: wrap; gap: 8px; }
.reconnect-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.75); backdrop-filter: blur(4px); display: none; place-items: center; text-align: center; z-index: 5; }
.reconnect-overlay.show { display: grid; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 14px; }
.spinner.dark { border-color: var(--primary-100); border-top-color: var(--primary); }
@media (max-width: 600px) {
  .live-controls { width: 100%; }
  .live-controls .btn { flex: 1; padding: 10px 8px; font-size: 14px; }
  .live-controls .btn .lbl { display: none; }
}

.upload-ring { width: 140px; height: 140px; margin: 0 auto 24px; position: relative; }
.upload-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.upload-ring circle { fill: none; stroke-width: 10; }
.upload-ring .bg { stroke: var(--primary-50); }
.upload-ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .3s; }
.upload-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 6px; }
.stars button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--border-strong); }
.stars button .ms { font-size: 36px; }
.stars button.on { color: var(--amber); }
.stars button.on .ms { font-variation-settings: "FILL" 1; }
.success-tick { width: 96px; height: 96px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 24px; animation: pop-in .5s var(--ease); }
.success-tick .ms { font-size: 52px; font-variation-settings: "FILL" 1; }

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 150; transition: transform .3s var(--ease); }
.sidebar-head { padding: 20px 20px 16px; display: flex; align-items: center; justify-content: space-between; }
.side-nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.side-nav .group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.side-nav a:hover { background: var(--subtle); color: var(--heading); }
.side-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(91,33,245,.25); }
.side-nav a .count { margin-left: auto; font-size: 12px; background: var(--primary-50); color: var(--primary-800); padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.side-nav a.active .count { background: rgba(255,255,255,.2); color: #fff; }
.side-credit { margin: 12px; padding: 14px; border-radius: var(--r-md); background: var(--primary-50); font-size: 13px; }
.side-credit b { color: var(--heading); }
.side-user { margin: 0 12px 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.side-user b { display: block; font-size: 14px; color: var(--heading); }
.side-user > div > span { font-size: 12px; color: var(--muted); }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 90; height: 68px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.topbar .search { max-width: 420px; flex: 1; }
.topbar .search .input { background: var(--bg); border-color: transparent; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.content { padding: 28px; max-width: 1400px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; }
.page-head p { margin: 0; color: var(--muted); }
.breadcrumb { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { width: auto; min-width: 160px; background: #fff; }
.filters .input-icon { flex: 1; min-width: 200px; }
.filters .input-icon .input { width: 100%; }
@media (max-width: 600px) { .filters > * { flex: 1 1 100%; } .filters .select, .filters .input { min-width: 0; width: 100%; } .filters .segmented { margin-left: 0 !important; } }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg); margin-top: 16px; font-size: 14px; }
.sidebar-backdrop { display: none; }
.preview-note { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--amber-50); color: var(--amber-800); font-size: 13px; border-bottom: 1px solid var(--amber-100); flex-wrap: wrap; text-align: center; }
.preview-note a { font-weight: 600; color: var(--amber-800); text-decoration: underline; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 140; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
}
@media (max-width: 600px) { .topbar .search { display: none; } .topbar-actions .hide-m { display: none; } }
.only-mobile { display: none !important; }
@media (max-width: 480px) { .hide-xs { display: none; } }
@media (max-width: 1024px) { .only-mobile { display: inline-grid !important; } .hide-tablet { display: none !important; } }

/* Charts */
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding-top: 12px; }
.bar-chart .bar { flex: 1; background: var(--primary-100); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; transition: background .2s; }
.bar-chart .bar:hover { background: var(--primary); }
.bar-chart .bar:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--heading); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.bar-chart .bar.today { background: var(--primary); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 8px; }
.skill { margin-bottom: 16px; }
.skill-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; gap: 12px; }
.skill-top b { font-variant-numeric: tabular-nums; color: var(--heading); }

/* Interview detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1180px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.player { border-radius: var(--r-lg); overflow: hidden; background: var(--stage); position: relative; aspect-ratio: 16 / 9; }
.player .placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #475569, #0F172A 75%); }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(15,23,42,.85)); color: #fff; z-index: 3; }
.scrub { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; margin-bottom: 10px; }
.scrub > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary-light); border-radius: 3px; }
.scrub > i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--primary-light); }
.player-controls { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.player-controls button { border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.player-controls button:hover { background: rgba(255,255,255,.12); }
.player-controls .play { background: #fff; color: var(--heading); }
.player-controls .play:hover { background: #fff; }
.player-big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--primary); display: grid; place-items: center; border: 0; cursor: pointer; z-index: 2; box-shadow: var(--shadow-3); }
.segmented.dark { background: rgba(255,255,255,.12); padding: 2px; }
.segmented.dark button { color: #fff; padding: 4px 8px; font-size: 12px; }
.segmented.dark button.active { background: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
.player-big-play .ms { font-size: 40px; font-variation-settings: "FILL" 1; }
.chapters { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .chapters { grid-template-columns: repeat(var(--n, 5), 150px); overflow-x: auto; padding-bottom: 6px; } }
.chapter { text-align: left; border: 1px solid var(--border); background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s; }
.chapter:hover { border-color: var(--primary-200); }
.chapter.active { border: 2px solid var(--primary); background: var(--primary-50); padding: 9px 11px; }
.chapter .t { display: flex; justify-content: space-between; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.chapter p { margin: 4px 0 6px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transcript { display: flex; flex-direction: column; gap: 14px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble { padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; max-width: 85%; }
.bubble-row.ai .bubble { background: var(--primary-50); color: var(--heading); border-top-left-radius: 4px; }
.bubble-row.me .bubble { background: #fff; border: 1px solid var(--border); border-top-right-radius: 4px; }
.bubble-row:hover .bubble { box-shadow: 0 0 0 2px var(--primary-100); }
.bubble-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.bubble-row.me .bubble-meta { justify-content: flex-end; }
.bubble mark { background: #FEF08A; padding: 0 2px; border-radius: 2px; }
.verdict { padding: 18px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--green-50), #F0FDF4); }
.verdict b { color: var(--green-800); font-size: 17px; display: block; margin-bottom: 6px; }
.verdict p { margin: 0; color: var(--text); font-size: 15px; }
.point { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--bg); }
.point + .point { margin-top: 10px; }
.point b { display: block; color: var(--heading); font-size: 14px; margin-bottom: 2px; }
.point p { margin: 0; font-size: 14px; color: var(--muted); }
.point.warn { background: var(--amber-50); }
.point.warn .ms { color: var(--amber-800); }
.point.good .ms { color: var(--green-600); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--heading); font-weight: 500; word-break: break-word; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.note { padding: 14px; border-radius: var(--r-md); background: var(--bg); font-size: 14px; }
.note + .note { margin-top: 10px; }

/* Job editor */
.wizard-steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.wizard-steps::-webkit-scrollbar { display: none; }
.wizard-steps button { flex: 1; min-width: 150px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; text-align: left; font-size: 14px; color: var(--muted); }
.wizard-steps button .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--subtle); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.wizard-steps button b { display: block; color: var(--heading); font-weight: 600; }
.wizard-steps button.active { border-color: var(--primary); box-shadow: var(--ring); }
.wizard-steps button.active .n { background: var(--primary); color: #fff; }
.wizard-steps button.done .n { background: var(--green); color: #fff; }
.q-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; transition: box-shadow .2s, border-color .2s; }
.q-item + .q-item { margin-top: 10px; }
.q-item.dragging { opacity: .5; border-style: dashed; }
.q-item.over { border-color: var(--primary); box-shadow: var(--ring); }
.q-handle { cursor: grab; color: var(--faint); padding-top: 2px; }
.q-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.q-body { flex: 1; min-width: 0; }
.q-body p { margin: 0 0 8px; color: var(--heading); font-weight: 500; }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.voice-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; background: #fff; }
.voice-card:hover { border-color: var(--primary-200); }
.voice-card.selected { border: 2px solid var(--primary); background: var(--primary-50); padding: 13px; }
.voice-card input { display: none; }
.link-box { display: flex; gap: 8px; }
.link-box .input { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: #fff; }
@media (max-width: 520px) { .link-box { flex-direction: column; } }

.job-card h4 { margin: 0 0 4px; }

/* Email previews */
.email-shell { background: #EEF2F7; padding: 32px 16px; border-radius: var(--r-lg); }
.email { max-width: 600px; margin: 0 auto; font-family: "Inter", Arial, sans-serif; }
.email-head { padding: 0 0 20px; text-align: center; }
.email-card { background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
@media (max-width: 520px) { .email-card { padding: 28px 20px; } }
.email-card h2 { font-size: 24px; }
.email-card p { color: #334155; font-size: 16px; line-height: 1.65; }
.email-btn { display: inline-block; background: var(--primary); color: #fff !important; padding: 14px 28px; border-radius: 10px; font-weight: 600; margin: 8px 0 16px; }
.email-meta { background: var(--bg); border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: 15px; }
.email-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.email-meta span { color: var(--muted); }
.email-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 12px 0; line-height: 1.6; }

/* Style guide */
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.swatch div { height: 80px; }
.swatch p { margin: 0; padding: 10px 12px; font-size: 13px; }
.swatch p b { display: block; color: var(--heading); }
.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
@media (max-width: 600px) { .type-row { grid-template-columns: 1fr; gap: 4px; } }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }

/* Hub */
.hub-group { margin-bottom: 40px; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hub-link { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.hub-link:hover { border-color: var(--primary); box-shadow: var(--ring); color: var(--text); }
.hub-link b { display: block; color: var(--heading); font-size: 15px; }
.hub-link > div > span { font-size: 13px; color: var(--muted); }
.hub-link .code-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: 2px 8px; border-radius: 6px; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes ripple { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.15); opacity: .35; } }
@keyframes bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes count-pop { 0% { transform: scale(.7); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Plugin additions (dashboard + room)
   ========================================================================== */
.two-one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.two-one-even { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .two-one, .two-one-even { grid-template-columns: minmax(0, 1fr); } }
.sticky-card { position: sticky; top: 88px; }
@media (max-width: 1100px) { .sticky-card { position: static; } }
.segmented a.seg { padding: 7px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.segmented a.seg.active { background: #fff; color: var(--heading); box-shadow: var(--shadow-1); }
.iv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 0 16px 16px; }
.iv-card { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.iv-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.iv-thumb { aspect-ratio: 16/9; background: radial-gradient(circle at 50% 35%, #475569, #0F172A 75%); position: relative; display: grid; place-items: center; }
.iv-thumb .vf-top { top: 10px; left: 10px; right: 10px; }
.player-wrap { border-radius: var(--r-lg); overflow: hidden; background: var(--stage); }
.player-video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; transform: none; }
.verdict.warn { background: linear-gradient(135deg, var(--amber-50), #FFFDF5); }
.verdict.warn b { color: var(--amber-800); }
.verdict.bad { background: linear-gradient(135deg, var(--red-50), #FFF8F8); }
.verdict.bad b { color: var(--red-800); }
.bubble-row.playing .bubble { box-shadow: 0 0 0 2px var(--primary); }
.q-text { background: #fff; font-weight: 500; color: var(--heading); }
.voice-card input { position: absolute; opacity: 0; pointer-events: none; }
.voice-card { position: relative; }
.chapter[disabled] { opacity: .5; cursor: default; }
.side-credit:hover { background: var(--primary-100); }
.screen { animation: fade-in .25s var(--ease); }
.alert a { font-weight: 600; }
@media print {
  .sidebar, .topbar, .page-head .flex, .tabs, .modal-backdrop, .btn, .player-wrap, .chapters { display: none !important; }
  .main { margin: 0 !important; }
  .tab-panel { display: block !important; }
  .detail-grid { grid-template-columns: 1fr !important; }
}

/* Paste-many-questions review */
.select-sm { min-height: 36px; padding: 6px 34px 6px 10px; font-size: 14px; }
.import-row { transition: opacity .15s; }
.import-row.is-off { opacity: .6; background: var(--subtle); }
.import-row .textarea { font-size: 15px; }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 8px 30px rgba(15, 23, 42, .12); }
details summary { cursor: pointer; }

/* Question groups */
.q-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.lib-group { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.lib-group summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.lib-group summary::-webkit-details-marker { display: none; }
.lib-group summary > .ms { color: var(--primary); }
.lib-group[open] summary { margin-bottom: 6px; }
.text-red { color: var(--red-600) !important; }
.text-green { color: var(--green-600, #059669) !important; }

/* Memberships */
.acting-bar { background: #0F172A; color: #fff; padding: 9px 16px; font-size: 14px; text-align: center; position: relative; z-index: 50; }
.acting-bar a { color: #C2ADFF; font-weight: 600; margin-left: 6px; }
.acting-bar.warn { background: var(--amber-50); color: var(--amber-800); border-bottom: 1px solid #FDE68A; }
.acting-bar.warn a { color: var(--amber-800); text-decoration: underline; }
.acting-bar .ms { vertical-align: -3px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card .check-list { flex: 1; font-size: 14px; }
.plan-card.current { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.feature-lock { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--subtle); border: 1px dashed var(--border-strong); margin-bottom: 16px; }
.feature-lock .ms { color: var(--primary); }
.is-locked { opacity: .55; pointer-events: none; }
.right { text-align: right; }

/* Sign-up */
.signup-body { background: var(--bg); }
.signup-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.signup-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.signup-wrap h1 { font-size: clamp(28px, 4vw, 40px); }
.plan-pick { cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick .pick-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; }
.plan-pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.plan-pick:has(input:checked) .pick-dot { border: 7px solid var(--primary); }
.plan-pick:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* MyInterfest logo */
.logo-img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.logo-word { color: #0B1437; font-weight: 800; letter-spacing: -.03em; }
.logo-word b { font-weight: 800; background: linear-gradient(90deg, #6D2EF5, #A33BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side .logo-word, .auth-side .logo-word b { color: #fff; background: none; -webkit-text-fill-color: #fff; }

/* MyInterfest brand gradient (from the logo: cyan → blue → violet → magenta) */
:root { --brand-gradient: linear-gradient(135deg, #00C8F8 0%, #0057F7 34%, #5B21F5 66%, #C23CF8 100%); }
.orb { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), rgba(255,255,255,0) 42%), var(--brand-gradient); }
.orb-wrap[data-state="thinking"] .orb { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.45), rgba(255,255,255,0) 42%), linear-gradient(135deg, #3FD8FA, #3D7BFF 40%, #7C4DFF 75%, #D46BFA); }
.logo-mark { background: var(--brand-gradient); }
.avatar.c1 { background: var(--brand-gradient); }
