/* ============================================================
   CuraVoice CRO Platform — Design System
   Demo-first clinical command center
   ============================================================ */

/* ---- Variables ---- */
:root {
  --bg: #0a0e1a;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, #0f1729 0%, #0a0e1a 70%);
  --surface: #111827;
  --surface-hover: #1a2235;
  --surface-active: #1e293b;
  --border: #1f2937;
  --border-subtle: #151d2e;
  --primary: #60a5fa;
  --primary-dim: rgba(96,165,250,0.12);
  --success: #10b981;
  --success-dim: rgba(16,185,129,0.12);
  --warning: #f59e0b;
  --warning-dim: rgba(245,158,11,0.12);
  --danger: #ef4444;
  --danger-dim: rgba(239,68,68,0.12);
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --muted: #6b7280;
  --accent: #818cf8;
  --accent-dim: rgba(129,140,248,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow-blue: 0 0 20px rgba(96,165,250,0.15);
  --shadow-glow-green: 0 0 20px rgba(16,185,129,0.15);
  --shadow-glow-red: 0 0 20px rgba(239,68,68,0.15);
  --shadow-glow-amber: 0 0 20px rgba(245,158,11,0.15);
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---- Layout ---- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 28px 32px 48px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* ---- Header ---- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 28px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-text-cura { color: var(--success); }
.logo-text-voice { color: var(--text); }

.header-study-badge {
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 24px;
  white-space: nowrap;
}

.header-nav { display: flex; gap: 2px; margin-right: auto; }
.header-nav-item {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.header-nav-item:hover { color: var(--text); background: var(--surface-hover); }
.header-nav-item.active {
  color: var(--success);
  background: var(--success-dim);
}
.header-nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--mono);
  margin-right: 20px;
  padding: 5px 12px;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.header-phone svg { width: 14px; height: 14px; color: var(--success); }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-user-name { font-size: 0.82rem; color: var(--text-secondary); }
.header-user-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface-hover);
  padding: 2px 8px;
  border-radius: 10px;
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ---- Page Header ---- */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ---- Study Banner ---- */
.study-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(96,165,250,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.study-banner-icon {
  width: 40px;
  height: 40px;
  background: var(--success-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.study-banner-icon svg { width: 22px; height: 22px; color: var(--success); }
.study-banner-text { flex: 1; }
.study-banner-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.study-banner-detail { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }

/* ---- Hero Metrics ---- */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.hero-card--blue::before { background: var(--primary); }
.hero-card--blue { box-shadow: var(--shadow-glow-blue); }
.hero-card--amber::before { background: var(--warning); }
.hero-card--amber { box-shadow: var(--shadow-glow-amber); }
.hero-card--red::before { background: var(--danger); }
.hero-card--red { box-shadow: var(--shadow-glow-red); }
.hero-card:hover { transform: translateY(-2px); }
.hero-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-number--blue { color: var(--primary); }
.hero-number--amber { color: var(--warning); }
.hero-number--red { color: var(--danger); }
.hero-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Site Cards ---- */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-card:hover { border-color: var(--primary); background: var(--surface-hover); }
.site-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.site-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.site-card-coordinator { font-size: 0.82rem; color: var(--text-secondary); }
.site-card-footer { display: flex; justify-content: space-between; align-items: center; }
.site-card-queries { font-size: 0.82rem; color: var(--muted); }
.site-card-queries strong { color: var(--text); }
.site-card-phone {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-critical { background: var(--danger-dim); color: #f87171; }
.badge-high { background: var(--warning-dim); color: #fbbf24; }
.badge-medium { background: var(--primary-dim); color: #93c5fd; }
.badge-low { background: rgba(107,114,128,0.15); color: #9ca3af; }
.badge-blue { background: var(--primary-dim); color: var(--primary); }
.badge-green { background: var(--success-dim); color: var(--success); }
.badge-red { background: var(--danger-dim); color: var(--danger); }
.badge-yellow { background: var(--warning-dim); color: var(--warning); }
.badge-gray { background: rgba(107,114,128,0.15); color: var(--muted); }

/* ---- Big Action Button ---- */
.btn-action-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 32px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16,185,129,0.25);
  margin-bottom: 8px;
}
.btn-action-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.35);
}
.btn-action-hero:active { transform: translateY(0); }
.btn-action-hero svg { width: 22px; height: 22px; }
.btn-action-hero-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---- Try It Live Card ---- */
.try-live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.try-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success), var(--primary));
}
.try-live-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.try-live-icon { font-size: 1.5rem; }
.try-live-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.try-live-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.try-live-form { display: flex; gap: 12px; align-items: flex-end; }
.try-live-input-group { flex: 1; }
.try-live-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; display: block; }
.try-live-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--mono);
  transition: border-color var(--transition);
}
.try-live-input:focus { outline: none; border-color: var(--success); }
.try-live-input::placeholder { color: var(--muted); }
.try-live-input.error { border-color: var(--danger); }
.try-live-error { color: var(--danger); font-size: 0.78rem; margin-top: 4px; }

.btn-call-me {
  padding: 12px 28px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}
.btn-call-me:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.35); transform: translateY(-1px); }
.btn-call-me:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-call-me svg { width: 18px; height: 18px; }

/* Live call status card */
.live-demo-status {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}
.live-demo-status.ringing {
  background: var(--warning-dim);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--warning);
}
.live-demo-status.connected {
  background: var(--success-dim);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
}
.live-demo-status.ended {
  background: var(--primary-dim);
  border: 1px solid rgba(96,165,250,0.3);
  color: var(--primary);
}

/* ---- Collapsible Section ---- */
.collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.collapsible-toggle:hover { color: var(--text); border-color: var(--primary); }
.collapsible-toggle svg { width: 16px; height: 16px; transition: transform var(--transition); }
.collapsible-toggle.open svg { transform: rotate(90deg); }
.collapsible-content { display: none; margin-top: 12px; }
.collapsible-content.open { display: block; animation: fadeIn 0.3s ease; }

/* ---- Progress Bar ---- */
.progress-bar-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.progress-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-bar-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.progress-bar-stats { font-size: 0.85rem; color: var(--text-secondary); font-family: var(--mono); }
.progress-bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34d399);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ---- Call Timeline ---- */
.call-timeline { display: flex; flex-direction: column; gap: 12px; }
.call-timeline-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; }
@media (max-width: 1100px) { .call-timeline-layout { grid-template-columns: 1fr; } }

.call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.3s ease;
}
.call-card--resolved { border-left-color: var(--success); }
.call-card--live { border-left-color: var(--success); box-shadow: var(--shadow-glow-green); }
.call-card--dialing { border-left-color: var(--warning); animation: pulse-border 2s infinite; }
.call-card--queued { border-left-color: var(--border); opacity: 0.6; }
.call-card--failed { border-left-color: var(--danger); }

.call-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.call-card-site { font-size: 0.95rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.call-card-status { font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.call-card-status--resolved { color: var(--success); }
.call-card-status--live { color: var(--success); }
.call-card-status--dialing { color: var(--warning); }
.call-card-status--queued { color: var(--muted); }

.call-card-detail { font-size: 0.82rem; color: var(--text-secondary); }
.call-card-queries { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot--green { background: var(--success); }
.status-dot--green-pulse { background: var(--success); animation: pulse-dot 1.5s infinite; }
.status-dot--amber { background: var(--warning); animation: pulse-dot 1s infinite; }
.status-dot--gray { background: var(--muted); }

/* ---- Transcript Panel ---- */
.transcript-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
  position: sticky;
  top: 80px;
}
.transcript-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transcript-message {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: fadeSlideIn 0.3s ease;
}
.transcript-message--ai {
  background: var(--success-dim);
  border-left: 3px solid var(--success);
}
.transcript-message--human {
  background: var(--primary-dim);
  border-left: 3px solid var(--primary);
}
.transcript-speaker {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.transcript-speaker--ai { color: var(--success); }
.transcript-speaker--human { color: var(--primary); }
.transcript-time { font-size: 0.7rem; color: var(--muted); float: right; font-family: var(--mono); }

.transcript-extraction {
  background: var(--warning-dim);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 0.82rem;
}
.transcript-extraction-label { font-weight: 600; color: var(--warning); font-size: 0.72rem; text-transform: uppercase; margin-bottom: 4px; }
.transcript-extraction-value { color: var(--text); font-family: var(--mono); font-size: 0.82rem; }

/* ---- Inbound Banner ---- */
.inbound-banner {
  background: linear-gradient(135deg, var(--accent-dim), var(--primary-dim));
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.inbound-banner-icon { font-size: 1.3rem; }
.inbound-banner-text { font-size: 0.88rem; color: var(--text); }
.inbound-banner-phone { font-family: var(--mono); font-weight: 600; color: var(--accent); }

/* ---- Results ---- */
.results-hero {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(96,165,250,0.06));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 28px;
}
.results-hero-icon { font-size: 3rem; margin-bottom: 8px; }
.results-hero-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.results-hero-subtitle { font-size: 0.9rem; color: var(--text-secondary); }
.results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.results-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.results-metric-value { font-size: 1.8rem; font-weight: 700; }
.results-metric-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---- Before/After Table ---- */
.comparison-section { margin-bottom: 32px; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:hover td { background: var(--surface-hover); }
.val-manual { color: var(--danger); font-weight: 500; }
.val-ai { color: var(--success); font-weight: 600; }

/* ---- ROI Calculator ---- */
.roi-section { margin-top: 32px; }
.roi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .roi-layout { grid-template-columns: 1fr; } }

.roi-inputs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.roi-input-group { margin-bottom: 18px; }
.roi-input-group:last-child { margin-bottom: 0; }
.roi-input-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.roi-input-value { font-weight: 600; color: var(--text); font-family: var(--mono); }
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(96,165,250,0.4);
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.roi-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.roi-result-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.roi-result-value--blue { color: var(--primary); }
.roi-result-value--green { color: var(--success); }
.roi-result-value--accent { color: var(--accent); }
.roi-result-value--amber { color: var(--warning); }
.roi-result-label { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* ---- Section Title ---- */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-icon { color: var(--success); }

/* ---- Buttons ---- */
.btn { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all var(--transition); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--surface-hover); border-color: var(--primary); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: #4e94e8; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; font-weight: 600; }
.w-full { width: 100%; justify-content: center; }

/* ---- Data Table (collapsible detail) ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.data-table tr:hover td { background: var(--surface-hover); }
.data-table .mono { font-family: var(--mono); font-size: 0.78rem; }

/* ---- Login ---- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-gradient);
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-text { font-size: 1.8rem; font-weight: 700; }
.login-subtitle { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.login-tagline { color: var(--text-secondary); font-size: 0.78rem; margin-top: 2px; }
.login-form { margin-top: 24px; }
.login-error { color: var(--danger); font-size: 0.82rem; margin-bottom: 12px; min-height: 1.2em; }

.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.input:focus { outline: none; border-color: var(--primary); }
.input::placeholder { color: var(--muted); }
.input-lg { padding: 12px 16px; font-size: 1rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-success {
  background: var(--success-dim);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--success);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 16px;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes pulse-border {
  0%, 100% { border-left-color: var(--warning); }
  50% { border-left-color: rgba(245,158,11,0.3); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-slide-in { animation: fadeSlideIn 0.4s ease; }
.animate-count { animation: countUp 0.6s ease forwards; }

/* ---- Call Katya Popup ---- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.popup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.popup-close:hover { color: var(--text); }
.popup-icon { font-size: 3rem; margin-bottom: 12px; }
.popup-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.popup-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }
.popup-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--mono);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
  width: 100%;
  white-space: nowrap;
}
.popup-call-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.4);
}
.popup-call-btn svg { flex-shrink: 0; }
.popup-or {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 16px 0;
}
.popup-dismiss {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.popup-dismiss:hover { border-color: var(--primary); color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: 1fr; }
  .results-metrics { grid-template-columns: 1fr 1fr; }
  .roi-results { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .header { padding: 0 16px; }
  .header-study-badge { display: none; }
  .header-phone { display: none; }
  .try-live-form { flex-direction: column; }
}
