*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #3b82f6;
  --accent-dark:   #1d4ed8;
  --accent-light:  #eff6ff;
  --bg:            #f8fafc;
  --bg-rgb:        248,250,252;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-subtle:   #94a3b8;
  --success:       #10b981;
  --success-bg:    #ecfdf5;
  --warning:       #f59e0b;
  --warning-bg:    #fffbeb;
  --error:         #ef4444;
  --error-bg:      #fef2f2;
  --radius:        10px;
  --radius-sm:     7px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:     0 10px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */

nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
  gap: 0;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }

#nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
  flex: 1;
}
#nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--accent); font-weight: 600; }

.nav-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
}
h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  margin-top: 28px;
}
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-sm     { font-size: 12px; }

/* ── PAGE HEADER ─────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 0; }

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* ── CARD ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 16px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  min-height: 40px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 32px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ── FORMS ───────────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: -2px;
}
input[type="tel"],
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 42px;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── AUTH ────────────────────────────────────────────────────────────────── */

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.auth-brand span { color: var(--accent); }
.auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.auth-card .subtitle { margin-bottom: 24px; }
.auth-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ── AVATAR ──────────────────────────────────────────────────────────────── */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

/* ── BADGES ──────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-easy   { background: var(--success-bg); color: var(--success); }
.badge-medium { background: var(--warning-bg); color: var(--warning); }
.badge-hard   { background: var(--error-bg);   color: var(--error); }

/* ── STATS STRIP ─────────────────────────────────────────────────────────── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
}
.stat-val {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── PERSONA GRID ────────────────────────────────────────────────────────── */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.persona-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.persona-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.persona-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.persona-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.persona-card h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.persona-occupation { font-size: 12px; color: var(--text-muted); }
.persona-mood { font-size: 12px; color: var(--text-subtle); font-style: italic; }

/* ── INTENT BAR ──────────────────────────────────────────────────────────── */

.intent-bar-wrap { margin-top: 6px; }
.intent-label {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.intent-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.intent-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.4s ease; }

/* ── PERSONA DETAIL CARD ──────────────────────────────────────────────────── */

.persona-detail-card { transition: box-shadow 0.2s; }
.persona-detail-card:hover { box-shadow: var(--shadow-md); }
.persona-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.persona-detail-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.persona-detail-occ  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.persona-detail-mood { font-size: 12px; color: var(--text-subtle); font-style: italic; margin-bottom: 10px; }
.persona-bg { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.persona-detail-action { margin-top: 16px; }

.trait-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trait-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── CALL FORM ───────────────────────────────────────────────────────────── */

.call-form-card { max-width: 500px; }

/* ── TABLES ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
th {
  text-align: left;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--accent-light); }

.cell-with-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outcome-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.outcome-Appointment { background: var(--success-bg); color: var(--success); }
.outcome-HangUp      { background: var(--error-bg);   color: var(--error); }
.outcome-Completed   { background: var(--accent-light); color: var(--accent); }

.score-num { font-weight: 700; font-size: 15px; }

/* ── CALL RESULT ─────────────────────────────────────────────────────────── */

.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.result-header h1 { margin-bottom: 2px; }
.result-header .subtitle { margin-bottom: 0; }

.overall-score-wrap {
  text-align: center;
  padding: 32px 24px;
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.score-big {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.score-big-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}
.score-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.score-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; transition: width 0.7s cubic-bezier(.4,0,.2,1); }

.feedback-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 8px;
}

.analyzing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  font-size: 14px;
  margin: 24px 0;
}
.analyzing-sub {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 13px;
}
.analyzing-module {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

/* ── TRANSCRIPT ──────────────────────────────────────────────────────────── */

.transcript { font-size: 14px; line-height: 1.7; }
.msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.msg.rep {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}
.msg.customer {
  background: var(--bg);
  border-left: 3px solid var(--border-strong);
}
.msg-who {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
  color: var(--text-subtle);
}
.msg-text { color: var(--text); }

/* ── MODULE PASSED BANNER ───────────────────────────────────────────────── */

.module-passed-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--success-bg);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text);
}
.banner-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── COURSES ─────────────────────────────────────────────────────────────── */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--course-color, var(--accent));
}

.course-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.level-beginner     { background: var(--success-bg); color: var(--success); }
.level-intermediate { background: var(--warning-bg); color: var(--warning); }
.level-advanced     { background: var(--error-bg);   color: var(--error); }

.course-progress-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.course-title { font-size: 18px; font-weight: 700; margin: 0; }
.course-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.course-progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.course-progress-bar.wide { height: 6px; }
.course-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--course-color, var(--accent));
  transition: width 0.5s ease;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.course-cta { color: var(--accent); font-weight: 600; }

/* ── COURSE DETAIL ───────────────────────────────────────────────────────── */

.course-detail-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--course-color, var(--accent));
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.course-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.course-detail-header h1 { margin-bottom: 6px; }
.course-detail-header .subtitle { margin-bottom: 16px; }

/* ── MODULE LIST ─────────────────────────────────────────────────────────── */

.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.module-item.mod-unlocked:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.module-item.mod-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.module-item.mod-passed {
  border-color: var(--success);
  background: var(--success-bg);
}

.mod-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.mod-num-passed {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.mod-info { flex: 1; }
.mod-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.mod-objective { font-size: 13px; color: var(--text-muted); }

.mod-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.challenge-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}
.passed-label {
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── MODULE LESSON ────────────────────────────────────────────────────────── */

.module-header { margin-bottom: 20px; }
.module-header h1 { margin-bottom: 6px; }
.module-header .subtitle { margin-bottom: 0; }

.lesson-card {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.lesson-card h2, .lesson-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}
.lesson-card p { margin-bottom: 14px; }
.lesson-card ul, .lesson-card ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.lesson-card li { margin-bottom: 6px; }
.lesson-card strong { font-weight: 600; }

.challenge-card {
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
}
.challenge-card h3 { font-size: 16px; margin-bottom: 8px; }
.challenge-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* ── LEADERBOARD ─────────────────────────────────────────────────────────── */

.leaderboard-table { table-layout: auto; }
.rank-cell {
  font-size: 18px;
  text-align: center;
  width: 60px;
}
.leaderboard-me td { background: var(--accent-light) !important; font-weight: 600; }
.you-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.empty-row {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

/* ── TOAST ────────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  max-width: 320px;
}
.toast.show    { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }

/* ── SPINNER ─────────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MISC ────────────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 56px 0;
  font-size: 14px;
}
.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 14px;
}

a.link { color: var(--accent); text-decoration: none; font-weight: 500; }
a.link:hover { text-decoration: underline; }
.link-sm { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.link-sm:hover { text-decoration: underline; }

/* ── LANDING PAGE ─────────────────────────────────────────────────────────── */

.landing { margin: -36px -24px -80px; }

.landing-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
}
.landing-hero-inner { max-width: 680px; margin: 0 auto; }
.landing-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.landing-headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.landing-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.landing-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-lg { padding: 14px 28px; font-size: 15px; min-height: 48px; }
.landing-hero .btn-primary { background: #fff; color: var(--accent); }
.landing-hero .btn-primary:hover { background: #f0f9ff; }
.landing-hero .btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }
.landing-hero .btn-secondary:hover { background: rgba(255,255,255,0.2); }
.landing-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.landing-hero .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.landing-note { font-size: 13px; color: rgba(255,255,255,0.55); }

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.landing-stat {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.landing-stat:last-child { border-right: none; }
.ls-val { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.ls-lbl { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

.landing-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}
.landing-section-alt { background: var(--bg); max-width: 100%; }
.landing-section-alt > * { max-width: 960px; margin-left: auto; margin-right: auto; }

.landing-section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.landing-step { text-align: center; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.landing-step h3 { font-size: 16px; margin-bottom: 10px; }
.landing-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.landing-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.lf-icon { font-size: 28px; margin-bottom: 12px; }
.landing-feature h3 { font-size: 15px; margin-bottom: 8px; }
.landing-feature p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.landing-cta-footer {
  text-align: center;
  padding: 72px 24px 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.landing-cta-footer h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.landing-cta-footer p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.landing-cta-footer .btn-primary { background: var(--accent); color: #fff; }
.landing-cta-footer .btn-primary:hover { background: var(--accent-dark); }

/* ── ROLE TOGGLE ──────────────────────────────────────────────────────────── */

.auth-card-wide { max-width: 500px; }
.label-optional { font-size: 11px; font-weight: 400; color: var(--text-subtle); }

.role-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}
.role-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.role-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── DASHBOARD CERT STRIP ────────────────────────────────────────────────── */

.cert-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cert-badge:hover { opacity: 0.85; }
.cert-earned {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}
.cert-locked {
  background: var(--bg);
  color: var(--text-subtle);
  border: 1px solid var(--border);
}
.cert-icon { font-size: 14px; font-weight: 700; }

.all-cert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fef9c3, #fefce8);
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.all-cert-star {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--course-color, var(--accent));
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 16px;
  transition: box-shadow 0.15s;
}
.continue-card:hover { box-shadow: var(--shadow-md); }
.continue-label { font-size: 11px; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.continue-title { font-size: 15px; font-weight: 700; }
.continue-course { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.continue-arrow { margin-left: auto; color: var(--accent); font-size: 18px; }

.trend { font-size: 13px; font-weight: 600; margin-left: 4px; vertical-align: middle; }
.trend-up { color: var(--success); }
.trend-down { color: var(--error); }
.stat-denom { font-size: 18px; color: var(--text-subtle); font-weight: 500; }

/* ── TEAM DASHBOARD ──────────────────────────────────────────────────────── */

.rep-active td  { background: rgba(16,185,129,0.04); }
.rep-inactive td { opacity: 0.75; }

.rep-modules { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.rep-module-bar { height: 4px; background: var(--border); border-radius: 2px; width: 80px; overflow: hidden; }
.rep-module-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ── HAMBURGER / MOBILE NAV ──────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 16px 16px;
  position: sticky;
  top: 60px;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.nav-drawer .nav-link:last-child { border-bottom: none; }
.nav-drawer .nav-user {
  padding: 12px 8px 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav-drawer .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ── MOBILE ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  main { padding: 24px 16px 60px; }
  nav  { padding: 0 16px; }
  #nav-links { display: none; }
  #nav-auth  { display: none; }
  .nav-toggle { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header .btn { align-self: flex-start; }
  .module-item { padding: 14px 16px; }
  .mod-status { display: none; }
  /* Landing */
  .landing { margin: -24px -16px -60px; }
  .landing-headline { font-size: 32px; }
  .landing-sub { font-size: 16px; }
  .landing-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-steps { grid-template-columns: 1fr; gap: 24px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-cta-footer h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .persona-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 13px; }
  td, th { padding: 10px 12px; }
  .score-big { font-size: 56px; }
  .auth-card { padding: 28px 20px; }
}

/* ── ENTRANCE ANIMATIONS ─────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Page-level entrance — apply to top-level page sections */
.page-header          { animation: fadeInUp 0.32s ease both; }
.stats-strip          { animation: fadeInUp 0.32s ease 0.06s both; }
.cert-strip           { animation: fadeInUp 0.32s ease 0.08s both; }
.continue-card        { animation: fadeInUp 0.32s ease 0.10s both; }
.result-header        { animation: fadeInUp 0.30s ease both; }
.contact-reveal       { animation: fadeInUp 0.30s ease 0.08s both; }
.analyzing-card       { animation: fadeInUp 0.30s ease 0.08s both; }
.overall-score-wrap   { animation: fadeInUp 0.30s ease 0.10s both; }
.score-grid           { animation: fadeInUp 0.30s ease 0.16s both; }
.feedback-box         { animation: fadeInUp 0.30s ease 0.22s both; }
.transcript           { animation: fadeInUp 0.30s ease 0.28s both; }
.auth-card            { animation: fadeInUp 0.35s ease both; }
.landing-hero         { animation: fadeInUp 0.50s ease both; }
.landing-stats        { animation: fadeInUp 0.40s ease 0.12s both; }
.landing-section:nth-child(1) { animation: fadeInUp 0.40s ease 0.08s both; }
.landing-section:nth-child(2) { animation: fadeInUp 0.40s ease 0.16s both; }
.landing-cta-footer   { animation: fadeInUp 0.40s ease 0.12s both; }
.table-wrap           { animation: fadeInUp 0.35s ease 0.08s both; }
.course-card          { animation: fadeInUp 0.30s ease both; }
.module-item          { animation: fadeInUp 0.28s ease both; }

/* Staggered stat cards */
.stats-strip .stat-card:nth-child(1) { animation: fadeInUp 0.30s ease 0.04s both; }
.stats-strip .stat-card:nth-child(2) { animation: fadeInUp 0.30s ease 0.08s both; }
.stats-strip .stat-card:nth-child(3) { animation: fadeInUp 0.30s ease 0.12s both; }
.stats-strip .stat-card:nth-child(4) { animation: fadeInUp 0.30s ease 0.16s both; }

/* Staggered persona grid */
.persona-grid .persona-card:nth-child(1)  { animation: fadeInUp 0.28s ease 0.02s both; }
.persona-grid .persona-card:nth-child(2)  { animation: fadeInUp 0.28s ease 0.05s both; }
.persona-grid .persona-card:nth-child(3)  { animation: fadeInUp 0.28s ease 0.08s both; }
.persona-grid .persona-card:nth-child(4)  { animation: fadeInUp 0.28s ease 0.11s both; }
.persona-grid .persona-card:nth-child(5)  { animation: fadeInUp 0.28s ease 0.14s both; }
.persona-grid .persona-card:nth-child(6)  { animation: fadeInUp 0.28s ease 0.17s both; }
.persona-grid .persona-card:nth-child(7)  { animation: fadeInUp 0.28s ease 0.20s both; }
.persona-grid .persona-card:nth-child(8)  { animation: fadeInUp 0.28s ease 0.23s both; }
.persona-grid .persona-card:nth-child(9)  { animation: fadeInUp 0.28s ease 0.26s both; }
.persona-grid .persona-card:nth-child(10) { animation: fadeInUp 0.28s ease 0.29s both; }
.persona-grid .persona-card:nth-child(11) { animation: fadeInUp 0.28s ease 0.32s both; }
.persona-grid .persona-card:nth-child(12) { animation: fadeInUp 0.28s ease 0.35s both; }

/* Staggered course cards */
.courses-grid .course-card:nth-child(1) { animation: fadeInUp 0.30s ease 0.04s both; }
.courses-grid .course-card:nth-child(2) { animation: fadeInUp 0.30s ease 0.10s both; }
.courses-grid .course-card:nth-child(3) { animation: fadeInUp 0.30s ease 0.16s both; }

/* Staggered module items */
.module-list .module-item:nth-child(n+2) { animation-delay: calc((var(--idx, 0) + 1) * 0.05s); }

/* Smoother button press */
.btn:active { transform: scale(0.97); }

/* ── CALL ARENA ──────────────────────────────────────────────────────────── */

.arena-header {
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.arena-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-top: 4px;
  animation: fadeIn 0.4s ease 0.3s both;
}
.arena-tip-icon { font-size: 16px; flex-shrink: 0; }

.btn-arena {
  font-size: 17px;
  padding: 14px 24px;
  letter-spacing: 0.02em;
}

.call-form-card { animation: fadeInUp 0.32s ease 0.4s both; }

/* ── CONTACT REVEAL ──────────────────────────────────────────────────────── */

.contact-reveal {
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}
.contact-reveal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-reveal-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.contact-reveal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cf-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.cf-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ── ARENA LAYOUT ────────────────────────────────────────────────────────── */

.arena-wrap {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  grid-template-areas: "left middle right";
  gap: 20px;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  align-items: start;
}
.arena-left  { grid-area: left; }
.arena-middle { grid-area: middle; }
.arena-right { grid-area: right; }

@media (max-width: 960px) {
  .arena-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "middle" "right";
    max-width: 600px;
  }
}

/* ── PHONE CARD ──────────────────────────────────────────────────────────── */

.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
}
.phone-card-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.phone-card-head h2 { font-size: 19px; font-weight: 700; margin: 0; }
.phone-card-sub { font-size: 13px; color: var(--text-muted); margin: 0; }

.phone-ring-icon {
  font-size: 34px;
  display: inline-block;
}
.phone-ring-icon.ringing { animation: ringShake 0.5s ease; }
@keyframes ringShake {
  0%,100% { transform: rotate(0deg); }
  20%      { transform: rotate(-14deg); }
  40%      { transform: rotate(14deg); }
  60%      { transform: rotate(-9deg); }
  80%      { transform: rotate(9deg); }
}

/* Difficulty selector */
.diff-selector { display: flex; flex-direction: column; gap: 8px; }
.diff-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  width: 100%;
}
.diff-opt:hover { border-color: var(--border-strong); background: var(--bg); }
.diff-opt.active { border-color: var(--accent); background: var(--accent-light); }

.diff-color {
  width: 8px;
  height: 34px;
  border-radius: 4px;
  flex-shrink: 0;
}
.diff-color.easy   { background: var(--success); }
.diff-color.medium { background: var(--warning); }
.diff-color.hard   { background: var(--error); }

.diff-text { display: flex; flex-direction: column; gap: 2px; }
.diff-name { font-size: 13px; font-weight: 600; color: var(--text); }
.diff-desc { font-size: 11px; color: var(--text-muted); }

/* Phone input + CTA */
.phone-input-wrap { display: flex; flex-direction: column; gap: 10px; }
.arena-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Challenge persona banner */
.challenge-persona-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}
.cpb-name { font-size: 14px; font-weight: 600; }
.cpb-diff { margin-top: 3px; }

/* Live status dot (used in call result left pane) */
.live-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseDot 1.4s ease-in-out infinite;
}
.live-status-dot.done { background: var(--text-subtle); animation: none; }
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.outcome-live { margin-top: 2px; }

/* ── LIVE TRANSCRIPT CARD ────────────────────────────────────────────────── */

.live-transcript-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 80vh;
  overflow: hidden;
}
.lt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lt-title { font-weight: 600; font-size: 14px; }
.lt-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--error-bg);
  color: var(--error);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lt-badge.done { background: var(--success-bg); color: var(--success); }

.lt-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.lt-preview-icon { font-size: 34px; }
.lt-preview-sub { font-size: 12px; color: var(--text-subtle); }

.lt-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

/* Transcript bubbles */
.tb { max-width: 86%; display: flex; flex-direction: column; gap: 3px; }
.tb-user      { align-self: flex-end; }
.tb-assistant { align-self: flex-start; }

.tb-who {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  padding: 0 4px;
}
.tb-user .tb-who { text-align: right; color: var(--accent); }

.tb-text {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}
.tb-user .tb-text {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.tb-assistant .tb-text {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.tb-streaming .tb-text::after {
  content: '▋';
  opacity: 0.6;
  animation: blinkCursor 0.8s step-end infinite;
}
@keyframes blinkCursor {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 0; }
}

/* ── LIVE SCORE CARD ─────────────────────────────────────────────────────── */

.live-score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.gauge-wrap { display: flex; justify-content: center; }
.score-gauge { width: 100%; max-width: 190px; height: auto; overflow: visible; }

/* SVG gauge text */
.gauge-num {
  font-size: 28px;
  font-weight: 700;
  fill: var(--text);
  font-family: 'Inter', sans-serif;
}
.gauge-lbl {
  font-size: 10px;
  fill: var(--text-muted);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.gauge-mark {
  font-size: 9px;
  fill: var(--text-subtle);
  font-family: 'Inter', sans-serif;
}
.gauge-fill {
  transition: stroke-dashoffset 0.7s cubic-bezier(.4,0,.2,1), stroke 0.5s ease;
}

/* Dimension bars under gauge */
.gauge-dims { display: flex; flex-direction: column; gap: 7px; }
.gauge-dim  { display: flex; flex-direction: column; gap: 3px; }
.gauge-dim-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.gauge-dim-val { font-weight: 600; color: var(--text); }
.gauge-dim-bar {
  height: 4px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.gauge-dim-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.7s cubic-bezier(.4,0,.2,1), background 0.5s ease;
  width: 0%;
}
.gauge-hint { font-size: 11px; color: var(--text-subtle); text-align: center; }

/* Feedback text revealed after call analysis */
.live-feedback {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 11px 13px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── THEME VARIABLES ────────────────────────────────────────────────────────── */

:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-rgb: 15,23,42;
  --surface: #1e293b;
  --border: #334155;
  --border-strong: #475569;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #475569;
  --accent-light: #1e3a5f;
}

:root[data-theme="gridiron"] {
  --bg: #0a1a08;
  --bg-rgb: 10,26,8;
  --surface: #112209;
  --border: #1e3d10;
  --border-strong: #2d5a19;
  --text: #e8f5e2;
  --text-muted: #7aad6a;
  --text-subtle: #3a6428;
  --accent: #fbbf24;
  --accent-dark: #d97706;
  --accent-light: #2d1f00;
}

:root[data-theme="midnight"] {
  --bg: #07071a;
  --bg-rgb: 7,7,26;
  --surface: #10103a;
  --border: #1c1c5a;
  --border-strong: #2d2d7e;
  --text: #e0e0ff;
  --text-muted: #8888cc;
  --text-subtle: #4444aa;
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-light: #1f1040;
}

/* ── LEARN HUB ──────────────────────────────────────────────────────────────── */

.learn-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.learn-hub-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  border-left: 4px solid var(--hub-color, var(--accent));
}

.learn-hub-card:hover {
  border-color: var(--hub-color, var(--accent));
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.lhc-icon { font-size: 2rem; flex-shrink: 0; }

.lhc-body { flex: 1; }
.lhc-body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.lhc-body p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

.lhc-arrow { color: var(--hub-color, var(--accent)); font-weight: 700; font-size: 1.1rem; }

/* ── PHONUP FRAMEWORK ───────────────────────────────────────────────────────── */

.framework-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.framework-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 5px solid var(--step-color, var(--accent));
}

.framework-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--step-color, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.framework-step-body { flex: 1; }
.framework-step-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.framework-step-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }

.framework-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.framework-do, .framework-dont {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.framework-do {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
}

.framework-dont {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}

.fdd-label { font-weight: 700; font-size: 0.78rem; margin-bottom: 4px; }
.fdd-text { color: var(--text-muted); line-height: 1.4; }

.framework-example {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 8px 12px;
  border-left: 3px solid var(--step-color, var(--accent));
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.framework-footer { padding: 20px; margin-bottom: 24px; }
.framework-footer h3 { margin: 0 0 6px; }
.framework-footer p { color: var(--text-muted); font-size: 0.875rem; margin: 0 0 16px; }
.framework-footer-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── OBJECTION GAUNTLET ─────────────────────────────────────────────────────── */

.gauntlet-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.gauntlet-filters { display: flex; flex-direction: column; gap: 12px; }
.gauntlet-filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gauntlet-filter-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); min-width: 72px; }

.gauntlet-filter-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.gf-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.12s;
}

.gf-btn:hover { border-color: var(--accent); }
.gf-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gauntlet-count { color: var(--text-muted); font-size: 0.875rem; }

.gauntlet-challenge-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.challenge-context {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.challenge-bubble {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--accent-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.challenge-bubble-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.challenge-bubble-text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.gauntlet-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gauntlet-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.gauntlet-textarea:focus { border-color: var(--accent); outline: none; }

@keyframes hangupDrop {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  60% { transform: translateY(6px) rotate(-15deg); opacity: 0.6; }
  100% { transform: translateY(12px) rotate(-30deg); opacity: 0; }
}

.hangup-anim { display: inline-block; animation: hangupDrop 0.5s ease-in forwards; }

/* Gauntlet Result */

.gauntlet-result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 600px;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--score-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.rsc-inner { text-align: center; }
.rsc-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.rsc-lbl { font-size: 0.75rem; color: var(--text-muted); }

.gauntlet-feedback {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.gf-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
}

.gf-row + .gf-row { border-top: 1px solid var(--border); }

.gf-worked { background: rgba(16,185,129,0.05); }
.gf-missed { background: rgba(239,68,68,0.05); }
.gf-stronger { background: rgba(245,158,11,0.06); }

.gf-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.gf-title { font-weight: 700; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.gf-body { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.gauntlet-result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── PLAYBOOK ────────────────────────────────────────────────────────────────── */

.playbook-category { margin-bottom: 28px; }
.playbook-cat-title { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }

.playbook-entry {
  padding: 16px;
  margin-bottom: 10px;
}

.playbook-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.playbook-score { font-weight: 700; font-size: 0.9rem; }
.playbook-date { margin-left: auto; }

.playbook-challenge {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.playbook-response {
  font-size: 0.9rem;
  padding: 10px 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  line-height: 1.5;
  margin-bottom: 6px;
}

.playbook-stronger {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(245,158,11,0.06);
}

/* ── SETTINGS ────────────────────────────────────────────────────────────────── */

.settings-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.settings-section { padding: 20px; }
.settings-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.settings-section-desc { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 16px; }

.settings-msg {
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.settings-msg.success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.settings-msg.error { background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }

.input-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg) !important;
}

/* Theme picker */
.theme-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
  transition: border-color 0.15s;
}

.theme-btn:hover { border-color: var(--accent); }
.theme-btn-active { border-color: var(--accent) !important; }

.theme-preview {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── QUIZ TOGGLE (Contact Reveal) ───────────────────────────────────────────── */

.quiz-toggle-btns {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.quiz-toggle-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
}

.quiz-toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quiz-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.quiz-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  font-size: 0.82rem;
}

.quiz-ok { background: rgba(16,185,129,0.1); }
.quiz-miss { background: rgba(239,68,68,0.08); }
.quiz-result-icon { font-weight: 700; flex-shrink: 0; }
.quiz-result-lbl { color: var(--text-muted); min-width: 60px; }
.quiz-result-val { font-weight: 500; }

.quiz-score-banner {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* ── CONTACT REVEAL HEADER FIX ──────────────────────────────────────────────── */

.contact-reveal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE FIXES FOR NEW COMPONENTS ────────────────────────────────────── */

@media (max-width: 640px) {
  .framework-do-dont { grid-template-columns: 1fr; }
  .framework-step { flex-direction: column; gap: 12px; }
  .gauntlet-result-actions { flex-direction: column; align-items: stretch; }
  .learn-hub-grid { grid-template-columns: 1fr; }
  .theme-picker { gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   V7 PREMIUM UI — SCROLL REVEAL / GLASSMORPHISM / GRADIENT / LANDING V2
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Glassmorphism Nav ───────────────────────────────────────────────────────── */
#nav {
  background: rgba(var(--bg-rgb, 248,250,252), 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ── Scroll Reveal System ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ── Shared Utilities ────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 60%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes meshShift {
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes scoreFill {
  from { width: 0%; }
  to   { width: var(--fill-w, 87%); }
}

/* ── LANDING V2 WRAPPER ──────────────────────────────────────────────────────── */
.landing-v2 {
  background: #050a14;
  color: #e2e8f0;
  overflow: hidden;
}

/* ── HERO SECTION ────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(139,92,246,0.15) 0%, transparent 60%),
    #050a14;
  background-size: 200% 200%;
  animation: meshShift 14s ease infinite;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 6px #60a5fa;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Shimmer primary button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-shimmer:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(99,102,241,0.55);
}
.btn-shimmer:hover::after {
  transform: translateX(100%);
}

.btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-ghost-hero:hover {
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.hero-note {
  font-size: 13px;
  color: #475569;
}

/* ── Phone Mockup ────────────────────────────────────────────────────────────── */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 260px;
  background: #0f172a;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 32px;
  padding: 24px 20px 28px;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.03),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(59,130,246,0.12);
  animation: phoneFloat 5s ease-in-out infinite;
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  margin: 0 auto 20px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-call-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-call-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.phone-persona {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.phone-persona-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.phone-persona-role {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.phone-score-section {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.phone-score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
}

.phone-score-num {
  font-size: 32px;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 8px;
}

.phone-score-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.phone-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 2px;
  width: 0%;
  animation: scoreFill 1.8s 1.2s ease-out forwards;
  --fill-w: 87%;
}

.phone-feedback {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

/* ── STATS BAR ───────────────────────────────────────────────────────────────── */
.stats-bar-section {
  background: #080f1e;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 32px 32px;
}

.stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 48px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-lbl {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-pill-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── SHARED SECTION LAYOUT ───────────────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────────── */
.how-section {
  padding: 100px 0;
  background: #050a14;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.step-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 8px 40px rgba(99,102,241,0.15);
  transform: translateY(-3px);
}

.step-num-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6366f1;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
  margin-bottom: 20px;
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* ── KORA SECTION ────────────────────────────────────────────────────────────── */
.kora-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #07101f 0%, #050a14 100%);
}

.kora-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.kora-content .section-eyebrow { margin-bottom: 14px; }
.kora-content .section-headline { margin-bottom: 20px; }

.kora-body {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.kora-pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kora-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.kora-pill {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* KORA demo card */
.kora-demo-card {
  border-radius: 16px;
  padding: 24px;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

.kora-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.kora-demo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.kora-demo-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.kora-demo-meta {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.kora-demo-tag {
  margin-left: auto;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.kora-exchange {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.kora-exchange-gap { height: 8px; }

.kora-line {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
}

.kora-rep {
  color: #64748b;
  font-size: 12px;
}

.kora-buyer {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: #c4b5fd;
  font-style: italic;
}

.kora-anchor-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #334155;
  text-align: center;
}

/* ── FEATURES SECTION ────────────────────────────────────────────────────────── */
.features-section {
  padding: 100px 0;
  background: #050a14;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 6px 32px rgba(99,102,241,0.12);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: 100px 0;
  background: #07101f;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.testimonial-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 8px 30px rgba(99,102,241,0.12);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #1e293b);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #60a5fa;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.testimonial-role {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

/* ── FINAL CTA ───────────────────────────────────────────────────────────────── */
.final-cta-section {
  position: relative;
  padding: 120px 32px;
  text-align: center;
  overflow: hidden;
  background: #050a14;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.final-cta-headline {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.final-cta-sub {
  font-size: 16px;
  color: #64748b;
  max-width: 440px;
  line-height: 1.6;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .hero-phone-wrap { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .kora-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stat-pill { padding: 0 24px; }
}

@media (max-width: 600px) {
  .hero-inner { padding: 80px 20px 60px; }
  .section-inner { padding: 0 20px; }
  .how-section, .kora-section, .features-section,
  .testimonials-section { padding: 72px 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .stats-bar-inner { gap: 0; flex-wrap: wrap; }
  .stat-pill { padding: 16px 24px; width: 50%; }
  .stat-pill-divider { display: none; }
}

/* ── APP INTERIOR POLISH ─────────────────────────────────────────────────────── */

/* Gradient stat values on dashboard */
.stat-val {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #a78bfa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium course card hover */
.course-card {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s !important;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}

/* Score gauge count-up text */
.gauge-score {
  font-weight: 800;
}

/* ── V8 POLISH ───────────────────────────────────────────────────────────────── */

/* Landing page dark nav override */
body[data-page="landing"] #nav {
  background: rgba(5, 10, 20, 0.85) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
body[data-page="landing"] .nav-brand { color: #f1f5f9 !important; }
body[data-page="landing"] .nav-brand span { color: #60a5fa !important; }
body[data-page="landing"] #nav-auth .btn-ghost {
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
body[data-page="landing"] #nav-auth .btn-ghost:hover {
  background: rgba(255,255,255,0.06) !important;
}
body[data-page="landing"] #nav-links a {
  color: rgba(255,255,255,0.7) !important;
}
body[data-page="landing"] #nav-links a:hover {
  color: #f1f5f9 !important;
}

/* AI typing indicator */
.tb-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Streak badge */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--warning) 12%, var(--surface)), var(--surface));
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 14px;
}
.streak-fire { font-size: 20px; }
.streak-badge strong { color: var(--text); }
.streak-sub { color: var(--text-muted); font-size: 12px; }

/* Score context comparison */
.score-context {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 4px;
}
.score-ctx-good { color: var(--success); }
.score-ctx-low { color: var(--error); }
.score-ctx-neutral { color: var(--text-muted); }

/* Dashboard empty state */
.dash-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.dash-empty .dash-empty-icon { font-size: 40px; margin-bottom: 12px; }
.dash-empty h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dash-empty p { color: var(--text-muted); margin-bottom: 20px; max-width: 360px; margin-left: auto; margin-right: auto; }

/* Empty states (history, playbook, etc.) */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Stat card hover lift */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Learn hub card hover lift */
.learn-hub-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.learn-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Loading skeleton shimmer */
.page-skeleton {
  padding: 24px 0;
  max-width: 600px;
}
.skel {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-title { height: 28px; width: 240px; max-width: 100%; }
.skel-text { height: 16px; width: 100%; }
.skel-short { width: 60%; }

/* ── KPI STRIP (manager + rep dashboards) ────────────────────────────────── */

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  text-align: center;
}
.kpi-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
}
.kpi-green { color: var(--success); }
.kpi-yellow { color: var(--warning); }
.kpi-red { color: var(--error); }
.kpi-lbl { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.kpi-sub { font-size: 11px; color: var(--text-muted); }
.kpi-denom { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.kpi-delta {
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}
.kpi-delta-up   { color: var(--success); }
.kpi-delta-down { color: var(--error); }
@media (max-width: 700px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi-val { font-size: 22px; }
}

/* ── REVENUE IMPACT CARD ─────────────────────────────────────────────────── */

.revenue-impact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--success) 8%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border));
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.revenue-impact-card.ric-empty {
  background: var(--surface);
  border-color: var(--border);
  align-items: center;
}
.ric-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ric-empty .ric-icon { background: var(--border); color: var(--text-muted); }
.ric-body { flex: 1; min-width: 0; }
.ric-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ric-calc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.ric-num { font-weight: 700; color: var(--text); }
.ric-total { color: var(--success); font-size: 16px; }
.ric-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── SKILL BARS ──────────────────────────────────────────────────────────── */

.skills-card { margin-bottom: 20px; }
.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.skills-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.skills-gap-label { font-size: 12px; color: var(--text-muted); }
.skills-gap-label strong { color: var(--error); }
.skill-bars { display: flex; flex-direction: column; gap: 10px; }
.skill-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 10px;
}
.skill-bar-row.sb-weakest .sb-label { color: var(--error); font-weight: 700; }
.skill-bar-row.sb-weakest .sb-val   { color: var(--error); font-weight: 700; }
.sb-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sb-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.sb-green  { background: var(--success); }
.sb-yellow { background: var(--warning); }
.sb-red    { background: var(--error); }
.sb-val { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; }
.skills-cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 500px) {
  .skill-bar-row { grid-template-columns: 110px 1fr 36px; }
}

/* ── REP PERFORMANCE GRID ────────────────────────────────────────────────── */

.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.rep-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rep-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.rc-head { display: flex; align-items: center; gap: 10px; }
.rc-identity { flex: 1; min-width: 0; }
.rc-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
}
.rc-active   { background: var(--success-bg); color: var(--success); }
.rc-inactive { background: var(--border); color: var(--text-muted); }
.rc-trend {
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.rc-trend-up   { color: var(--success); }
.rc-trend-down { color: var(--error); }
.rc-trend-flat { color: var(--text-muted); }
.rc-alert {
  font-size: 11px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rc-stat { text-align: center; }
.rc-stat-val { font-size: 16px; font-weight: 800; line-height: 1.2; }
.rc-stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.stat-green  { color: var(--success); }
.stat-yellow { color: var(--warning); }
.stat-red    { color: var(--error); }
.rc-weakness {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  border-left: 2px solid var(--warning);
}
@media (max-width: 900px) { .rep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .rep-grid { grid-template-columns: 1fr; } }

/* ── ACTIVITY FEED ───────────────────────────────────────────────────────── */

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child { border-bottom: none; }
.activity-rep { flex-shrink: 0; }
.activity-info { flex: 1; min-width: 0; font-size: 13px; }
.activity-name { font-weight: 600; }
.activity-sep { color: var(--text-muted); margin: 0 4px; }
.activity-persona { color: var(--text-muted); }
.activity-outcome { flex-shrink: 0; }
.activity-score { font-size: 14px; font-weight: 700; width: 32px; text-align: right; flex-shrink: 0; }
.activity-time { flex-shrink: 0; min-width: 56px; text-align: right; }

/* ── QUICKSTART ONBOARDING CARD ──────────────────────────────────────────── */

.quickstart-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
}
.qs-icon { font-size: 36px; line-height: 1; flex-shrink: 0; padding-top: 4px; }
.qs-body { flex: 1; }
.qs-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.qs-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.qs-form { display: flex; gap: 10px; flex-wrap: wrap; }
.qs-phone-input {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}
.qs-phone-input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 540px) {
  .quickstart-card { flex-direction: column; gap: 12px; padding: 20px; }
  .qs-form { flex-direction: column; }
  .qs-phone-input { max-width: 100%; }
}

/* ── WEAKEST DIM PILL (call history) ─────────────────────────────────────── */

.weakest-dim-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.wdp-green  { background: var(--success-bg); color: var(--success); }
.wdp-yellow { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.wdp-red    { background: var(--error-bg);   color: var(--error); }

/* ── FEEDBACK HEADER (call analysis) ─────────────────────────────────────── */

.live-feedback-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── DEALERSHIP SETTINGS SELECT ──────────────────────────────────────────── */

.settings-section select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  appearance: auto;
}

/* ── CHALLENGE BLOCK ─────────────────────────────────────────────────────── */

.challenge-section {
  background: #080c18;
  padding: 88px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Blurred showroom light blobs */
.challenge-bg-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 520px 320px at 10% 20%, rgba(255, 170, 40, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 480px 300px at 90% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 55% 50%, rgba(99, 60, 230, 0.06) 0%, transparent 60%);
}

.challenge-container {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.challenge-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

.challenge-headline {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.challenge-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Challenge card */
.challenge-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  text-align: left;
}

/* Idle state */
.scenario-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scenario-preview {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  font-style: italic;
  min-height: 52px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.scenario-chips-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  font-weight: 600;
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.scenario-chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.scenario-chip:hover { border-color: var(--accent); color: #fff; }
.scenario-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.challenge-phone-row {
  margin-bottom: 16px;
}

.challenge-phone-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.challenge-phone-input::placeholder { color: rgba(255,255,255,0.28); }
.challenge-phone-input:focus { border-color: var(--accent); }

.challenge-error {
  font-size: 13px;
  color: var(--error);
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border-radius: 6px;
  padding: 7px 12px;
}

.challenge-cta {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  margin-bottom: 14px;
}
.challenge-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 60%, transparent);
}
.challenge-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.challenge-no-signup {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin: 0;
}

/* Calling state */
.challenge-calling-state { text-align: center; padding: 16px 0; }

.challenge-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: challengePulse 2s ease-out infinite;
}
.challenge-ring-1 { width: 90px;  height: 90px;  opacity: 0.25; animation-delay: 0s; }
.challenge-ring-2 { width: 66px;  height: 66px;  opacity: 0.45; animation-delay: 0.4s; }
.challenge-ring-3 { width: 44px;  height: 44px;  opacity: 0.7;  animation-delay: 0.8s; }

@keyframes challengePulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  60%  { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.challenge-ring-icon {
  position: relative;
  font-size: 28px;
  z-index: 1;
  animation: challengeRingShake 0.5s ease-in-out infinite alternate;
}
@keyframes challengeRingShake {
  0%   { transform: rotate(-8deg); }
  100% { transform: rotate(8deg);  }
}

.challenge-calling-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.challenge-calling-sub { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.challenge-calling-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.challenge-calling-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.challenge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: challengeDotPulse 1.4s ease-in-out infinite;
}
.challenge-dot:nth-child(2) { animation-delay: 0.2s; }
.challenge-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes challengeDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%           { transform: scale(1.2); opacity: 1;   }
}
.challenge-progress-text { margin-left: 4px; }

/* Done state */
.challenge-done-state { padding: 4px 0; }

.challenge-result-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.challenge-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.challenge-score-big {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.challenge-score-label {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.challenge-outcome-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}
.cob-win  { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.cob-loss { background: color-mix(in srgb, var(--error)   18%, transparent); color: var(--error);   }

/* Coaching callout */
.challenge-coaching-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 180, 40, 0.07);
  border: 1px solid rgba(255, 180, 40, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.ccc-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.ccc-headline {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 5px;
}
.ccc-text {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

/* Dimension bars inside challenge (reuse .skill-bar-row etc. from existing CSS) */
.challenge-dim-bars {
  margin-bottom: 24px;
}
/* Override label/val color for dark background */
.challenge-dim-bars .sb-label { color: rgba(255,255,255,0.55); }
.challenge-dim-bars .sb-val   { color: rgba(255,255,255,0.55); }
.challenge-dim-bars .sb-track { background: rgba(255,255,255,0.1); }
.challenge-dim-bars .skill-bar-row.sb-weakest .sb-label { color: var(--error); }
.challenge-dim-bars .skill-bar-row.sb-weakest .sb-val   { color: var(--error); }

/* Claim form */
.challenge-claim-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}
.challenge-claim-headline {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
  text-align: center;
}
.challenge-claim-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.challenge-input {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.challenge-input::placeholder { color: rgba(255,255,255,0.3); }
.challenge-input:focus { border-color: var(--accent); }

.challenge-retry-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
}
.challenge-retry-link:hover { color: rgba(255,255,255,0.75); }

@media (max-width: 480px) {
  .challenge-card { padding: 22px 18px; }
  .challenge-score-big { font-size: 56px; }
  .scenario-chips { gap: 6px; }
  .scenario-chip { font-size: 12px; padding: 6px 10px; }
}
