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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #242836;
  --border: #2e3345;
  --text: #e4e6f0;
  --text-dim: #8b8fa3;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --info: #3b82f6;
  --glow: rgba(99, 102, 241, 0.25);
  --glow-strong: rgba(99, 102, 241, 0.5);
  --glass-bg: rgba(26, 29, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-text: linear-gradient(135deg, #e4e6f0 0%, #818cf8 50%, #6366f1 100%);
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface2: #eeeef2;
  --border: #d4d4dc;
  --text: #1a1a2e;
  --text-dim: #6b6b80;
  --glow: rgba(99, 102, 241, 0.15);
  --glow-strong: rgba(99, 102, 241, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --gradient-text: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ===== Landing Page ===== */
#landing { display: none; overflow-x: hidden; }

/* Scroll-reveal system */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section title */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 1. Nav --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem calc((100% - 1200px) / 2 + 2rem);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

@media (max-width: 1200px) {
  .landing-nav { padding: 1rem 2rem; }
}

.landing-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
}

.landing-nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.landing-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --- 2. Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 8rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(129, 140, 248, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  animation: meshShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

[data-theme="light"] .hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(129, 140, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

@keyframes meshShift {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.05) translateY(-20px); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-glow {
  box-shadow: 0 0 20px var(--glow), 0 0 60px rgba(99, 102, 241, 0.1);
  transition: box-shadow 0.3s, background 0.15s;
}

.btn-glow:hover {
  box-shadow: 0 0 30px var(--glow-strong), 0 0 80px rgba(99, 102, 241, 0.15);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* --- 3. Platforms Strip --- */
.platforms-strip {
  text-align: center;
  padding: 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.platforms-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.platforms-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.platform-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}

.platform-name:hover {
  color: var(--text);
}

/* --- 4. Animated Product Demo --- */
.demo-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.demo-browser {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow);
}

[data-theme="light"] .demo-browser {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 0 60px var(--glow);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--glass-border);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.demo-url {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: color 0.3s;
}

.demo-body {
  display: flex;
  min-height: 420px;
  position: relative;
}

.demo-sidebar {
  width: 140px;
  border-right: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  flex-shrink: 0;
}

.demo-sidebar-item {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.demo-sidebar-item.active {
  color: var(--primary);
  font-weight: 600;
}

.demo-main {
  flex: 1;
  padding: 0.75rem 1rem;
  overflow: hidden;
  position: relative;
}

/* Scene container */
.demo-scene {
  animation: demoFadeIn 0.4s ease;
}

@keyframes demoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scene 1: Profile / Resume paste */
.demo-profile-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.demo-resume-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 0.55rem;
  line-height: 1.5;
  color: var(--text-dim);
  min-height: 280px;
  font-family: inherit;
  overflow: hidden;
}

.demo-resume-area .resume-line {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}

.demo-resume-area .resume-line.visible {
  opacity: 1;
}

.demo-save-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all 0.3s;
}

.demo-save-btn.flash {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* Scene 2: Auto-setup */
.demo-setup-banner {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
}

.demo-setup-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.demo-setup-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.demo-setup-step .step-icon {
  width: 18px;
  text-align: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.demo-setup-step.done {
  color: var(--success);
}

.demo-setup-step.active {
  color: var(--text);
}

.demo-setup-step .step-icon.spin {
  animation: demoSpin 0.8s linear infinite;
}

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

.demo-setup-result {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.demo-setup-result.visible {
  opacity: 1;
}

/* Scene 3: Dashboard */
.demo-agent-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  color: var(--success);
}

.demo-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.demo-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.demo-stat {
  text-align: center;
  padding: 0.3rem;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.demo-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.demo-stat-label {
  font-size: 0.5rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.demo-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease, border-color 0.3s, box-shadow 0.3s;
}

.demo-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.demo-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.demo-card-company {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.demo-card-role {
  font-size: 0.6rem;
  color: var(--text-dim);
}

.demo-card-reason {
  font-size: 0.5rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.15rem;
}

.demo-card-meta {
  font-size: 0.5rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

.demo-badge {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  font-size: 0.45rem;
  font-weight: 700;
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.demo-card-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 28px;
  text-align: right;
}

.demo-card-actions {
  display: flex;
  gap: 0.25rem;
}

.demo-btn-approve {
  padding: 0.15rem 0.35rem;
  font-size: 0.5rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  cursor: default;
}

.demo-btn-reject {
  padding: 0.15rem 0.35rem;
  font-size: 0.5rem;
  font-weight: 600;
  background: #ef4444;
  color: #fff;
  border-radius: 3px;
  cursor: default;
}

/* Scene 4: Approve & generate */
.demo-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--glow);
}

.demo-approve-modal {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.demo-approve-modal.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-approve-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.demo-approve-score {
  font-size: 0.65rem;
  color: var(--primary);
  margin: 0.2rem 0;
}

.demo-approve-reason {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.demo-approve-btn {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.demo-approve-btn.clicked {
  opacity: 0.6;
}

.demo-gen-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.demo-gen-item {
  font-size: 0.6rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-gen-item .gen-icon {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.demo-gen-item.done {
  color: var(--success);
}

/* Scene 5: Application ready */
.demo-app-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.demo-app-meta {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.demo-app-status {
  margin-bottom: 0.5rem;
}

.demo-opt-section-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.demo-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.demo-opt-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.demo-opt-label {
  font-size: 0.55rem;
  color: var(--text-dim);
}

.demo-opt-pct {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.6rem;
}

.demo-opt-track {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.demo-opt-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}

.demo-opt-cell:nth-child(1) .demo-opt-fill { background: #f59e0b; }
.demo-opt-cell:nth-child(2) .demo-opt-fill { background: #f59e0b; }
.demo-opt-cell:nth-child(3) .demo-opt-fill { background: #22c55e; }
.demo-opt-cell:nth-child(4) .demo-opt-fill { background: #22c55e; }

.demo-improvements {
  margin-bottom: 0.6rem;
}

.demo-improvements-title {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.demo-improvement-item {
  font-size: 0.5rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: 0.3rem;
  margin-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.demo-improvement-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.demo-keyword {
  padding: 0.15rem 0.4rem;
  font-size: 0.55rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 3px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-keyword.visible {
  opacity: 1;
}

/* Scene 6: Terminal */
.demo-terminal-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-height: 85%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 10;
}

.demo-terminal-panel.visible {
  transform: translateY(0);
}

.demo-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
}

.demo-terminal-credits {
  font-size: 0.55rem;
  color: var(--text-dim);
  font-weight: 400;
}

.demo-terminal-body {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.6rem;
  overflow: hidden;
}

.demo-terminal-line {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.demo-terminal-line.user {
  color: var(--primary);
}

.demo-terminal-line.ai {
  color: var(--text-dim);
}

.demo-terminal-cursor {
  display: inline-block;
  width: 5px;
  height: 0.7rem;
  background: var(--primary);
  animation: demoBlink 0.6s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

@keyframes demoBlink {
  50% { opacity: 0; }
}

.demo-terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.demo-terminal-prompt {
  color: var(--primary);
  font-weight: 600;
}

/* Scene 7: Fade out */
.demo-scene.fade-out {
  animation: demoFadeOut 1.5s ease forwards;
}

@keyframes demoFadeOut {
  to { opacity: 0; }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Demo caption + progress */
.demo-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.demo-progress {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.demo-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.demo-progress-dot:hover {
  background: var(--text-dim);
  transform: scale(1.3);
}

.demo-progress-dot.active {
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow);
  transform: scale(1.3);
}

.demo-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.demo-caption.visible {
  opacity: 1;
}

/* --- 5. Comparison --- */
.comparison-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comparison-col {
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-with {
  border-color: var(--primary);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px var(--glow), inset 0 1px 0 var(--glass-border);
}

.comparison-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.comparison-item:last-child {
  margin-bottom: 0;
}

.comparison-with .comparison-item {
  color: var(--text);
}

.comparison-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-x {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.comparison-check {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* --- 6. How It Works --- */
.how-it-works {
  padding: 4rem 2rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 1.125rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(99, 102, 241, 0.1));
  border-radius: 1px;
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 16px var(--glow);
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- 7. Features (glassmorphism) --- */
.features {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card {
  padding: 1.75rem;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--glow);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- 8. Pricing --- */
.pricing-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--glow);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.pricing-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--glass-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-cta {
  width: 100%;
}

/* --- 9. Bottom CTA --- */
.bottom-cta {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  margin: 2rem auto 0;
  max-width: 700px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
}

.bottom-cta .btn-glow {
  position: relative;
}

.bottom-cta .hero-trust {
  position: relative;
}

/* --- 10. Footer --- */
.landing-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Auth modal form labels */
#auth-modal label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

#auth-modal input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

/* --- Landing responsive --- */
@media (max-width: 600px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .platforms-list { gap: 0.75rem; }
  .platform-name { font-size: 0.8rem; }
  .demo-sidebar { display: none; }
  .demo-body { min-height: 350px; }
  .demo-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-terminal-panel { width: 100%; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-with { margin-top: -0.5rem; }
  .timeline { padding-left: 2.5rem; }
  .timeline-number { left: -2.5rem; width: 2rem; height: 2rem; font-size: 0.8rem; }
  .timeline-line { left: 0.9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

nav { display: flex; gap: 0.25rem; }

.nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.nav-btn:hover { color: var(--text); background: var(--surface2); }
.nav-btn.active { color: var(--text); background: var(--primary); }

main { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.view { display: none; }
.view.active { display: block; }

h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.75rem; }

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.btn:hover { border-color: var(--text-dim); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-secondary { background: var(--surface); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8rem; }
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Badge */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new { background: var(--info); color: white; }
.badge-scored { background: var(--warning); color: black; }
.badge-curated { background: var(--primary); color: white; }
.badge-approved { background: var(--success); color: white; }
.badge-rejected { background: var(--danger); color: white; }
.badge-draft { background: var(--surface2); }
.badge-ready { background: var(--success); color: white; }
.badge-submitted { background: var(--info); color: white; }

/* Agent controls */
.agent-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.agent-controls h2 { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.stat-card .value { font-size: 1.75rem; font-weight: 700; }
.stat-card .label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; }

/* Job list */
.job-list { display: flex; flex-direction: column; gap: 0.5rem; }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

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

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-card-title { font-weight: 600; font-size: 1rem; }
.job-card-company { color: var(--text-dim); font-size: 0.875rem; }
.job-card-meta { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.25rem; }
.job-card-score { font-weight: 700; font-size: 1.1rem; color: var(--primary); white-space: nowrap; }
.job-card-reasoning { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }

.job-card-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; }

/* App list */
.app-list { display: flex; flex-direction: column; gap: 0.5rem; }
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

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

.badge-interviewing { background: var(--warning); color: black; }
.badge-offered { background: var(--success); color: white; }

/* Search list */
.search-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Forms */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.form-panel label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.form-panel input,
.form-panel textarea,
.form-panel select {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-panel textarea { resize: vertical; }

.msg { margin-top: 0.75rem; font-size: 0.875rem; }
.msg-success { color: var(--success); }
.msg-error { color: var(--danger); }

.filters {
  margin-bottom: 1rem;
}

.filters select {
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.875rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.detail-section { margin-bottom: 1.25rem; }
.detail-section h4 { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.25rem; }
.detail-section p, .detail-section pre {
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Form defaults / form answers grids */
.form-defaults-grid,
.form-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.form-defaults-grid .form-grid-category,
.form-answers-grid .form-grid-category {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.form-defaults-grid .form-grid-category:first-child,
.form-answers-grid .form-grid-category:first-child {
  margin-top: 0;
}

.form-grid-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.form-grid-field input,
.form-grid-field select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

@media (max-width: 600px) {
  .form-defaults-grid,
  .form-answers-grid {
    grid-template-columns: 1fr;
  }
}

/* Notifications */
.notif-wrapper {
  position: relative;
}

.notif-bell {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.notif-bell:hover {
  color: var(--text);
  background: var(--surface2);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 0.85rem;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(99,102,241,0.07); }
.notif-item.unread:hover { background: rgba(99,102,241,0.12); }

.notif-item-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.notif-item-message {
  color: var(--text-dim);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-time {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.notif-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .notif-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
  }
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface2);
}

/* Spinner animation for auto-setup overlay */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Pulse animation for generating state */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.generating-pulse { animation: pulse 2s ease-in-out infinite; }

/* Empty state */
.empty { text-align: center; color: var(--text-dim); padding: 3rem 1rem; }

/* --- Command Terminal --- */

#terminal-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 950;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

#terminal-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

#terminal-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 480px;
  height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 960;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#terminal-panel.expanded {
  width: 720px;
  height: 600px;
}

#terminal-panel.minimized #terminal-body,
#terminal-panel.minimized #terminal-input-bar {
  display: none;
}

#terminal-panel.minimized {
  height: auto;
}

#terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  cursor: default;
  user-select: none;
}

.terminal-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-status-dot.connected {
  background: var(--success);
}

.terminal-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.terminal-credits {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.terminal-credits::before {
  content: '\2022  ';
}

.terminal-credits:empty {
  display: none;
}

.terminal-credits.warning {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
}

.terminal-credits.danger {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.terminal-header-actions {
  display: flex;
  gap: 0.25rem;
}

.terminal-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  transition: color 0.1s, background 0.1s;
}

.terminal-btn:hover {
  color: var(--text);
  background: var(--surface);
}

#terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

#terminal-log {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.log-entry {
  padding: 2px 4px;
  border-radius: 3px;
  word-break: break-word;
}

.log-entry .log-time {
  color: var(--text-dim);
  margin-right: 0.4rem;
  font-size: 0.7rem;
}

.log-entry .log-component {
  color: var(--info);
  margin-right: 0.4rem;
  font-weight: 600;
}

.log-info { color: var(--text); }
.log-warn { color: var(--warning); }
.log-error { color: var(--danger); }

.log-pipeline {
  color: var(--primary-hover);
  background: rgba(99, 102, 241, 0.06);
}

.log-agent {
  color: var(--success);
  background: rgba(34, 197, 94, 0.06);
}

.log-entry.user-msg {
  color: var(--primary-hover);
  padding: 4px 6px;
  margin-top: 4px;
}

.log-entry.user-msg::before {
  content: '> ';
  color: var(--primary);
  font-weight: 700;
}

.log-entry.assistant-msg {
  color: var(--text);
  padding: 4px 6px;
  background: var(--surface2);
  border-radius: 6px;
  margin-bottom: 4px;
}

.log-entry.system-msg {
  color: var(--text-dim);
  font-style: italic;
}

.log-entry.thinking-msg {
  color: var(--text-dim);
  font-style: italic;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.thinking-msg .thinking-dots {
  animation: blink 1.2s ease-in-out infinite;
}

#terminal-input-bar {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  gap: 0.4rem;
}

.terminal-prompt {
  color: var(--primary);
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  flex-shrink: 0;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  outline: none;
}

#terminal-input::placeholder {
  color: var(--text-dim);
}

.terminal-send-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.1s;
}

.terminal-send-btn:hover {
  background: var(--primary-hover);
}

@media (max-width: 600px) {
  #terminal-panel {
    width: calc(100vw - 1rem);
    right: 0.5rem;
    bottom: 0.5rem;
    height: 350px;
  }
  #terminal-panel.expanded {
    width: calc(100vw - 1rem);
    height: calc(100vh - 5rem);
  }
  #terminal-fab {
    bottom: 16px;
    right: 16px;
  }
}

/* --- Toast Notifications --- */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 400px;
  animation: toastIn 0.3s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-out {
  opacity: 0;
  transform: translateX(20px);
}

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

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.toast-message {
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.toast-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text);
}

.toast-warning {
  border-color: var(--warning);
}

.toast-error {
  border-color: var(--danger);
}

.toast-success {
  border-color: var(--success);
}

@media (max-width: 600px) {
  .toast-container {
    left: 0.5rem;
    right: 0.5rem;
  }
  .toast {
    max-width: 100%;
  }
}

/* --- Location Autocomplete --- */

.loc-autocomplete {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  cursor: text;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.loc-autocomplete:focus-within {
  border-color: var(--primary);
}

.loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.loc-chip button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.loc-chip button:hover {
  color: #fff;
}

.loc-autocomplete input[type="text"] {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0.15rem 0;
  margin: 0;
  width: auto;
}

.loc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}

.loc-dropdown.open {
  display: block;
}

.loc-dropdown-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}

.loc-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.loc-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.loc-dropdown-item:hover,
.loc-dropdown-item.active {
  background: var(--surface2);
}
