/* ── GD App Global Styles ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-dark:       #f8fafc;
  --bg-card:       #ffffff;
  --bg-surface:    #f1f5f9;
  --bg-input:      #ffffff;
  --border:        rgba(0,0,0,0.06);
  --border-glow:   rgba(14,165,233,0.3);

  --accent-blue:   #0ea5e9;
  --accent-purple: #8b5cf6;
  --accent-green:  #10b981;
  --accent-amber:  #f59e0b;
  --accent-indigo: #6366f1;

  --text-primary:  #0f172a;
  --text-muted:    #64748b;
  --text-dim:      #475569;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-glow: 0 10px 30px rgba(14,165,233,0.1);
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.btn-blue { background: var(--accent-blue) !important; box-shadow: 0 10px 20px rgba(14,165,233,0.2) !important; }
.btn-amber { background: var(--accent-amber) !important; box-shadow: 0 10px 20px rgba(245,158,11,0.2) !important; }
.btn-emerald { background: var(--accent-green) !important; box-shadow: 0 10px 20px rgba(16,185,129,0.2) !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Newsreader', serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(14,165,233,0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(139,92,246,0.05), transparent 40%);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.35); border-radius: 99px; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover { border-color: var(--accent-blue); shadow: var(--shadow-glow); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: none; border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(99,102,241,0.6); }

.btn-success {
  background: linear-gradient(135deg, #22c55e, var(--accent-green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(67,233,123,0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--accent-indigo); color: #fff; }

.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 40px; font-size: 1.05rem; }
.btn-icon { padding: 12px; border-radius: 50%; aspect-ratio: 1; justify-content: center; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 12px; align-items: center; }

/* ── Status bar ───────────────────────────────────────────────────────────── */
.status-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green  { background: var(--accent-green);  box-shadow: 0 0 10px var(--accent-green);  animation: pulse 2s infinite; }
.status-dot.amber  { background: var(--accent-amber);  box-shadow: 0 0 10px var(--accent-amber);  animation: pulse 1s infinite; }
.status-dot.blue   { background: var(--accent-blue);   box-shadow: 0 0 10px var(--accent-blue); }
.status-dot.off    { background: var(--text-muted); }

/* ── Chat message ─────────────────────────────────────────────────────────── */
.message-wrap {
  display: flex; gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: fadeSlideIn 0.3s ease;
  transition: background 0.2s;
  width: 100%;
}
.message-wrap:hover { background: rgba(0,0,0,0.02); }
.message-wrap.user-msg { 
  flex-direction: row-reverse; 
  justify-content: flex-start;
}

.avatar-circle {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--border);
  background: var(--bg-surface);
}

.message-body { max-width: 75%; }
.message-wrap.user-msg .message-body { align-items: flex-end; display: flex; flex-direction: column; }

.speaker-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-dim);
  display: block;
}
.message-wrap.user-msg .speaker-label { text-align: right; }
.message-bubble {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.65em; /* prevent zero-height flicker during typewriter */
}
.message-wrap.user-msg .message-bubble {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border-color: rgba(245,158,11,0.25);
}

/* ── Typewriter cursor ────────────────────────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cursorBlink 0.65s step-end infinite;
  opacity: 0.8;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0; }
}

/* ── Typing indicator ─────────────────────────────────────────────────────── */
.typing-indicator {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  animation: fadeSlideIn 0.3s ease;
}
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-indigo);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.30s; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--bg-input);
  border-radius: 99px; height: 8px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ── Score ring ───────────────────────────────────────────────────────────── */
.score-ring {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  width: 130px; height: 130px;
}
.score-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.score-ring .score-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Score circle SVG transition ─────────────────────────────────────────── */
#score-circle {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
}

/* ── Report error box ─────────────────────────────────────────────────────── */
.report-error {
  color: #ef4444;
  margin-bottom: 16px;
}

/* ── Agent Themes ─────────────────────────────────────────────────────────── */
.theme-alex  .avatar-circle  { border-color: #4F8EF7; background: rgba(79,142,247,0.09); }
.theme-alex  .speaker-label  { color: #4F8EF7; }
.theme-maya  .avatar-circle  { border-color: #C471ED; background: rgba(196,113,237,0.09); }
.theme-maya  .speaker-label  { color: #C471ED; }
.theme-rishi .avatar-circle  { border-color: #43E97B; background: rgba(67,233,123,0.09); }
.theme-rishi .speaker-label  { color: #43E97B; }
.theme-user  .avatar-circle  { border-color: #F59E0B; background: rgba(245,158,11,0.09); }
.theme-user  .speaker-label  { color: #F59E0B; }

/* ── Room layout ──────────────────────────────────────────────────────────── */
.room-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 65px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.topic-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(196,113,237,0.08));
  border: 1px solid rgba(99,102,241,0.25);
}
.topic-box .label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-indigo);
  font-weight: 700; margin-bottom: 8px;
}
.topic-box .topic-text { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }

.sidebar-section-title {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px;
}
.session-info-title {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px; color: var(--text-muted);
}

/* ── Agent rows ───────────────────────────────────────────────────────────── */
.agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 8px;
  transition: var(--transition);
}
.agent-row.speaking {
  border-color: var(--agent-color, var(--accent-indigo));
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
}
.agent-row-avatar { font-size: 1.4rem; }
.agent-row-info   { flex: 1; min-width: 0; }
.agent-row-name   { font-size: 0.9rem; font-weight: 600; }
.agent-row-role   { font-size: 0.73rem; color: var(--text-muted); }

/* Agent name colours (no inline style needed) */
#agent-alex  .agent-row-name { color: #4F8EF7; }
#agent-maya  .agent-row-name { color: #C471ED; }
#agent-rishi .agent-row-name { color: #43E97B; }
#agent-user  .agent-row-name { color: #F59E0B; }

/* ── Speaking badge ───────────────────────────────────────────────────────── */
.speaking-badge {
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 99px;
  background: rgba(99,102,241,0.2); color: var(--accent-indigo);
  display: none;
}
.agent-row.speaking .speaking-badge { display: block; }

/* ── Sound-wave bars ──────────────────────────────────────────────────────── */
.sound-wave {
  display: none; align-items: center; gap: 2px; height: 16px;
}
.agent-row.speaking .sound-wave   { display: flex; }
.agent-row.speaking .speaking-badge { display: none; }

.sound-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: currentColor;
  animation: soundBar 0.8s infinite ease-in-out;
}
.sound-wave span:nth-child(1) { height: 6px;  animation-delay: 0.00s; }
.sound-wave span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.sound-wave span:nth-child(3) { height: 14px; animation-delay: 0.30s; }
.sound-wave span:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.sound-wave span:nth-child(5) { height: 6px;  animation-delay: 0.60s; }

/* Sound-wave colours per agent */
#agent-alex  .sound-wave { color: #4F8EF7; }
#agent-maya  .sound-wave { color: #C471ED; }
#agent-rishi .sound-wave { color: #43E97B; }
#agent-user  .sound-wave { color: #F59E0B; }

/* ── Chat area ────────────────────────────────────────────────────────────── */
.chat-area {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}
.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.chat-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 600;
}
.chat-feed-wrap { flex: 1; overflow-y: auto; padding: 20px 24px; }

.chat-controls {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(10,14,26,0.6);
  backdrop-filter: blur(12px);
}
.controls-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.controls-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Speak button ─────────────────────────────────────────────────────────── */
#btn-speak {
  position: relative;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  font-size: 1rem;
  padding: 14px 32px;
}
#btn-speak:hover { box-shadow: 0 8px 32px rgba(245,158,11,0.6); }
#btn-speak.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 20px rgba(239,68,68,0.5);
  animation: btnPulse 1s infinite;
}

/* ── Speak overlay ────────────────────────────────────────────────────────── */
#speak-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 480px; width: 90%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.overlay-mic {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05));
  border: 2px solid rgba(245,158,11,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 24px;
  position: relative;
}
.overlay-mic::before,
.overlay-mic::after {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245,158,11,0.3);
  animation: micPulse 1.5s infinite;
}
.overlay-mic::after { animation-delay: 0.75s; inset: -20px; }
.overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 12px;
}
#live-transcript {
  min-height: 60px; padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 1rem; color: var(--text-primary);
  line-height: 1.6; margin: 20px 0;
  text-align: left;
}

/* ── Report modal ─────────────────────────────────────────────────────────── */
#report-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.report-header              { text-align: center; margin-bottom: 32px; }
.report-header h2           { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin-top: 16px; }

.dim-row                    { padding: 18px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 12px; }
.dim-header                 { display: flex; justify-content: space-between; margin-bottom: 8px; }
.dim-name                   { font-weight: 600; font-size: 0.9rem; }
.dim-score                  { font-size: 0.85rem; color: var(--accent-indigo); font-weight: 700; }
.dim-feedback               { font-size: 0.83rem; color: var(--text-dim); margin-top: 8px; }

.feedback-cols              { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.feedback-box               { padding: 18px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border); }
.feedback-box h4            { font-size: 0.85rem; margin-bottom: 12px; font-weight: 600; }
.feedback-box ul            { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feedback-box li            { font-size: 0.83rem; color: var(--text-dim); line-height: 1.5; }

.summary-box {
  padding: 20px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(196,113,237,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 0.9rem; line-height: 1.7; color: var(--text-dim);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-chat {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%;
  gap: 16px; text-align: center; padding: 40px;
}
.empty-chat .icon { font-size: 3rem; }
.empty-chat h3    { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
.empty-chat p     { color: var(--text-muted); font-size: 0.9rem; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%            { transform: scale(1.1); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes micPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes soundBar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1.0); opacity: 1.0; }
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(239,68,68,0.5); }
  50%     { box-shadow: 0 4px 32px rgba(239,68,68,0.9); }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-sm      { font-size: 0.85rem; }
.text-center  { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full  { width: 100%; }
/* .hidden is handled by Tailwind's responsive utilities — do not override here */

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav          { padding: 14px 20px; }
  .room-layout  { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar      { border-right: none; border-bottom: 1px solid var(--border); padding: 16px; max-height: 200px; }
  .agents-list  { display: none; }
  .message-body { max-width: 90%; }
  .hero h1      { font-size: 2rem; }
  .agents-grid  { grid-template-columns: 1fr; }
  .feedback-section { grid-template-columns: 1fr; }
  .dim-grid     { grid-template-columns: 1fr; }
  .stats-banner { gap: 24px; padding: 24px 16px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 760px; margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-indigo);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 520px; margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Topic card ───────────────────────────────────────────────────────────── */
.topic-card {
  max-width: 620px; margin: 0 auto 60px;
  padding: 36px;
}
.topic-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; margin-bottom: 20px;
}
.input-group { display: flex; gap: 12px; }
.topic-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.topic-input:focus       { border-color: var(--accent-indigo); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.topic-input::placeholder { color: var(--text-muted); }

/* ── Suggestion chips ─────────────────────────────────────────────────────── */
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chip-label       { flex-shrink: 0; }
.chip {
  padding: 6px 14px; border-radius: 99px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem; cursor: pointer;
  transition: var(--transition);
}
.chip:hover { border-color: var(--accent-indigo); color: var(--text-primary); background: rgba(99,102,241,0.08); }

/* ── Stats banner ─────────────────────────────────────────────────────────── */
.stats-banner {
  display: flex; justify-content: center; gap: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 700px; margin: 0 auto 56px;
}
.stat-item    { text-align: center; }
.stat-number  {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label   { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Agents section (home) ────────────────────────────────────────────────── */
.agents-section { max-width: 900px; margin: 0 auto 60px; padding: 0 24px; }
.agents-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; text-align: center; margin-bottom: 32px;
}
.agents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.agent-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.agent-emoji { font-size: 2.4rem; margin-bottom: 12px; }
.agent-name  {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 4px;
}
.agent-role  { font-size: 0.8rem; margin-bottom: 12px; }
.agent-desc  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

/* Agent name accent colours */
.agent-name--alex  { color: #4F8EF7; }
.agent-name--maya  { color: #C471ED; }
.agent-name--rishi { color: #43E97B; }

/* ── Session history ──────────────────────────────────────────────────────── */
.history-section { max-width: 700px; margin: 0 auto 80px; padding: 0 24px; }
.history-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; margin-bottom: 20px;
}
.session-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 10px;
  transition: var(--transition); gap: 12px;
}
.session-item:hover   { border-color: rgba(99,102,241,0.4); background: var(--bg-surface); }
.session-topic        { font-weight: 500; font-size: 0.95rem; flex: 1; min-width: 0; }
.session-topic span   { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-meta         { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.session-actions      { display: flex; gap: 8px; flex-shrink: 0; }
.session-status       { padding: 4px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.status-active        { background: rgba(67,233,123,0.15); color: var(--accent-green); }
.status-finished      { background: rgba(99,102,241,0.15); color: var(--accent-indigo); }

/* ════════════════════════════════════════════════════════════════════════════
   REPORT PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.report-page {
  max-width: 860px; margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Report hero ──────────────────────────────────────────────────────────── */
.report-hero { text-align: center; margin-bottom: 40px; }
.report-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800; margin-bottom: 8px;
}
.report-topic-pill {
  display: inline-block; margin-top: 14px;
  padding: 8px 20px; border-radius: 99px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.9rem; color: var(--text-dim);
}

/* ── Score hero ───────────────────────────────────────────────────────────── */
.score-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 40px;
}
.report-score-ring  { width: 160px; height: 160px; }
.report-score-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem !important; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.score-label {
  font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.05em;
}

/* ── Dimension grid ───────────────────────────────────────────────────────── */
.dim-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px;
}
.dim-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.dim-card-header     { display: flex; justify-content: space-between; margin-bottom: 10px; }
.dim-card-name       { font-weight: 600; font-size: 0.9rem; }
.dim-card-score      { font-weight: 700; color: var(--accent-indigo); font-size: 0.85rem; }
.dim-card-feedback   { font-size: 0.83rem; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }

/* ── Feedback section ─────────────────────────────────────────────────────── */
.feedback-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.fb-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.fb-box h3   { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.fb-box ul   { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fb-box li   { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; padding-left: 4px; }

/* ── Report summary ───────────────────────────────────────────────────────── */
.report-summary-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(196,113,237,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 24px;
}
.report-summary-box h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.report-summary-box p  { font-size: 0.92rem; color: var(--text-dim); line-height: 1.75; }

/* ── No report state ──────────────────────────────────────────────────────── */
.no-report {
  text-align: center; padding: 80px 24px;
}
.no-report-icon { font-size: 3.5rem; margin-bottom: 16px; }
.no-report h2   { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin-bottom: 8px; }

/* ── Report page actions ──────────────────────────────────────────────────── */
.report-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

