/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --accent: #10B981;
  --accent-dark: #059669;
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-input: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ========== LAYOUT ========== */
.app-container { max-width: 900px; margin: 0 auto; padding: 20px; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.navbar .tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== SCREENS ========== */
.screen { display: none; animation: fadeIn 0.4s ease; }
.screen.active { display: block; }

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

/* ========== HERO / LANDING ========== */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== FORM CARD ========== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

textarea { resize: vertical; min-height: 100px; }

/* File Upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-upload:hover, .file-upload.dragover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.file-upload.has-file {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.file-upload input { display: none; }

.file-upload .upload-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.file-upload .upload-text { color: var(--text-muted); font-size: 0.9rem; }
.file-upload .file-name {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block { width: 100%; }

/* ========== INTERVIEW SCREEN ========== */
.interview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.interview-meta { display: flex; gap: 24px; align-items: center; }
.interview-meta .badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-company { background: rgba(79, 70, 229, 0.15); color: var(--primary-light); }
.badge-role { background: rgba(16, 185, 129, 0.15); color: var(--accent); }

.progress-section { margin-bottom: 28px; }

.progress-bar-bg {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}

.question-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.type-behavioral { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.type-technical { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.type-situational { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.type-coding { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
.type-system-design { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* Answer Area */
.answer-area { margin-bottom: 24px; }

.answer-textarea {
  width: 100%;
  min-height: 180px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  transition: var(--transition);
}

.answer-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.answer-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.btn-mic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mic:hover { border-color: var(--primary); color: var(--primary-light); }

.btn-mic.recording {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

.mic-status {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.mic-status.active { color: var(--danger); font-weight: 600; }

.char-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== EVALUATION CARD ========== */
.evaluation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eval-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 4px solid;
}

.score-excellent { border-color: var(--accent); color: var(--accent); background: rgba(16, 185, 129, 0.1); }
.score-good { border-color: #60A5FA; color: #60A5FA; background: rgba(96, 165, 250, 0.1); }
.score-average { border-color: var(--warning); color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.score-poor { border-color: var(--danger); color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.eval-rating {
  font-size: 1.1rem;
  font-weight: 700;
}

.eval-section { margin-bottom: 20px; }
.eval-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.eval-list {
  list-style: none;
  padding: 0;
}

.eval-list li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.eval-list li::before {
  flex-shrink: 0;
  margin-top: 2px;
}

.strength-list li::before { content: "+"; color: var(--accent); font-weight: 700; }
.weakness-list li::before { content: "-"; color: var(--warning); font-weight: 700; }

.ideal-answer {
  background: rgba(79, 70, 229, 0.08);
  border-left: 3px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.eval-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== REPORT SCREEN ========== */
.report-header {
  text-align: center;
  padding: 40px 20px;
}

.report-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.recommendation-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.rec-strong-hire { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.rec-hire { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }
.rec-lean-hire { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.rec-no-hire { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.feedback-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.feedback-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.feedback-list {
  list-style: none;
  padding: 0;
}

.feedback-list li {
  padding: 8px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.details-accordion { margin-bottom: 32px; }

.detail-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.detail-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.detail-header:hover { background: rgba(255,255,255,0.02); }

.detail-q {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.detail-score {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-left: 12px;
}

.detail-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.detail-body.open { display: block; }

.detail-answer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin: 16px 0 8px;
}

.detail-answer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

/* ========== LOADING ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  flex-direction: column;
  gap: 20px;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========== SOCIAL PROOF ========== */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.proof-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.proof-dot {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ========== NAVBAR EXTENDED ========== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-menu {
  display: flex;
  gap: 8px;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

/* ========== AUTH SCREEN ========== */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.auth-tab:hover { color: var(--text); }

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary-light);
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== DASHBOARD ========== */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 24px;
}

.dashboard-header h1 { font-size: 1.8rem; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* ========== UPGRADE / PRICING ========== */
.upgrade-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.upgrade-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.upgrade-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.price-option:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
}

.price-option.popular {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 2px 12px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price-badge.save {
  background: var(--accent);
}

.price-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.price-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== INTERVIEW HISTORY ========== */
.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.history-card:hover { border-color: var(--primary); }

.history-company {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.history-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.history-right {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.history-score {
  font-size: 1.2rem;
  font-weight: 800;
}

.history-rec {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-done { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.status-progress { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  max-width: 400px;
}

.toast.active { transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--accent); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-warning { background: var(--warning); color: #1a1a1a; }
.toast-info { background: var(--primary); color: white; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 48px;
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-light);
  text-decoration: none;
}

/* ========== PRICING ========== */
.pricing-section {
  margin: 48px 0 32px;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(79,70,229,0.08), rgba(16,185,129,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pricing-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.pricing-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.price-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.price-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.price-tile--popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), var(--bg-card));
}
.price-tile__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #062e22;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.price-tile__name {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.price-tile__amount {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--text);
}
.price-tile__period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-tile__credits {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.price-tile__per {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.price-tile__tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 2.4em;
  line-height: 1.3;
}
.price-tile .btn { margin-top: auto; }
.pricing-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
}
.pricing-footnote a { color: var(--primary-light); text-decoration: none; }
.pricing-footnote a:hover { text-decoration: underline; }

/* ========== MODALS ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-head h3 { font-size: 1.25rem; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-sub code {
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.modal-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 12px;
}
.modal-hint a { color: var(--primary-light); text-decoration: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .interview-header { flex-direction: column; gap: 12px; }
  .interview-meta { flex-wrap: wrap; justify-content: center; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-row { grid-template-columns: 1fr; }
  .history-card { flex-direction: column; gap: 12px; text-align: center; }
  .history-right { justify-content: center; }
  .nav-right { gap: 6px; }
  .tagline { display: none; }
}

@media (max-width: 480px) {
  .app-container { padding: 12px; }
  .form-card { padding: 20px; }
  .question-card { padding: 20px; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section { padding: 28px 16px; }
  .modal { padding: 20px; }
}
