/* ============================================
   GET IT DONE — BLUE SAAS DESIGN SYSTEM
   ============================================ */

:root {
  /* Primary Blue Accents */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-glow: #2563eb;
  
  /* Brand Colors */
  --brand-dark: #1e2d4a;
  --brand-mid: #2d3e5f;
  
  /* Light Theme */
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.15);
  --nav-bg: rgba(248, 250, 252, 0.95);
  --chat-user-bg: #2563eb;
  --chat-bot-bg: #ffffff;
  --chat-bot-border: rgba(15, 23, 42, 0.08);
  --input-bg: #ffffff;
  --card-bg: #ffffff;
  --pro-card-border: rgba(15, 23, 42, 0.06);
  --overlay-blur: blur(20px);

  /* Dark Theme Colors (will override below) */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme Backgrounds */
  --bg: #0f172a;
  --bg-2: #1a2744;
  --bg-3: #1e3a5f;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.25);
  --nav-bg: rgba(15, 23, 42, 0.95);
  --chat-bot-bg: #1e3a5f;
  --chat-bot-border: rgba(255, 255, 255, 0.08);
  --input-bg: #1e3a5f;
  --card-bg: #1a2744;
  --pro-card-border: rgba(255, 255, 255, 0.08);
  --overlay-blur: blur(20px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
textarea { font-family: inherit; resize: none; }
img { max-width: 100%; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner.wide { max-width: 1200px; }

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 48px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all var(--transition);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary.large { padding: 16px 32px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}
.btn-ghost.large { padding: 16px 32px; font-size: 1rem; }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all var(--transition);
  background: transparent;
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost-white.large { padding: 16px 32px; font-size: 1rem; }

.btn-outline {
  display: inline-block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
  background: var(--bg-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  height: 60px;
  width: auto;
}

.logo-mark {
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 9px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
  transform: scale(1.05);
}

[data-theme="light"] .theme-icon.moon { display: block; }
[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="dark"] .theme-icon.moon { display: none; }

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text);
  padding: 6px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn-primary { margin-top: 8px; text-align: center; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}
.blob1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.blob2 {
  width: 500px;
  height: 500px;
  background: var(--accent-light);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
  opacity: 0.15;
}
.blob3 {
  width: 400px;
  height: 400px;
  background: var(--accent-dark);
  top: 40%;
  left: 35%;
  animation: float 12s ease-in-out infinite;
  opacity: 0.1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Chat Preview Window */
.hero-chat-preview { position: relative; }

.chat-preview-window {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.chat-preview-window:hover { transform: perspective(800px) rotateY(0) rotateX(0); }

.cpw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

.cpw-dots { display: flex; gap: 6px; }
.cpw-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cpw-dots span:nth-child(1) { background: #ef4444; }
.cpw-dots span:nth-child(2) { background: #eab308; }
.cpw-dots span:nth-child(3) { background: #22c55e; }

.cpw-status { margin-left: auto; color: #22c55e; font-size: 0.78rem; }

.cpw-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpw-msg { display: flex; gap: 10px; align-items: flex-start; }
.cpw-msg.user { justify-content: flex-end; }
.cpw-msg.user .cpw-bubble {
  background: var(--accent);
  color: white;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-size: 0.9rem;
  max-width: 80%;
}
.cpw-msg.bot .cpw-bubble {
  background: var(--bg-3);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.55;
}
.cpw-msg.bot .cpw-bubble.solved {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  font-size: 0.83rem;
}
.cpw-msg.bot .cpw-bubble a { color: var(--accent); text-decoration: underline; }

.bot-avatar {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  color: white;
  flex-shrink: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon { font-size: 2rem; margin-bottom: 12px; }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.step-arrow {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 300;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-section {
  padding: 100px 0;
  background: var(--bg);
}

.demo-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* Quick prompts */
.quick-prompts {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.qp-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.qp-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
  margin-bottom: 6px;
  background: var(--bg-3);
}
.qp-btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateX(3px); }

/* Chat Window */
.chat-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 680px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.chat-ai-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}
.ai-avatar.sm { width: 30px; height: 30px; font-size: 9px; border-radius: 7px; flex-shrink: 0; }

.chat-ai-info strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.online-dot { font-size: 0.75rem; color: #22c55e; }

.clear-chat-btn {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--transition);
}
.clear-chat-btn:hover { color: var(--accent); border-color: var(--accent); }

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

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeSlideIn 0.3s ease;
}

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

.chat-msg.user { justify-content: flex-end; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 76%;
}

.msg-bubble.user {
  background: var(--accent);
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.msg-bubble.bot {
  background: var(--chat-bot-bg);
  border: 1px solid var(--chat-bot-border);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.msg-bubble.typing {
  padding: 14px 18px;
}

.msg-bubble.hazard {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
}

.msg-bubble.hazard-critical {
  background: rgba(220, 38, 38, 0.1);
  border: 1.5px solid rgba(220, 38, 38, 0.5);
}

.hazard-alert {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hazard-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hazard-content {
  flex: 1;
}

.hazard-title {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4px;
  color: #dc2626;
}

.hazard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hazard-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.hazard-action-btn.emergency {
  background: #dc2626;
  color: white;
}
.hazard-action-btn.emergency:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.hazard-action-btn.info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.hazard-action-btn.info:hover {
  background: rgba(59, 130, 246, 0.2);
}

.hazard-action-btn.continue {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.hazard-action-btn.continue:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.msg-bubble.suggestion {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.suggestion-title {
  font-weight: 700;
  color: #15803d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  font-size: 0.88rem;
}

.step-number {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
}

.step-text {
  color: var(--text);
  line-height: 1.5;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.action-button {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.action-button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.book-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.book-pro-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,53,0.35); }

/* File Preview */
.file-preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
}
.file-preview-area:not(:empty) { padding: 12px 20px; border-top: 1px solid var(--border); }

.file-thumb {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.file-thumb img, .file-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.file-thumb .remove-file {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Chat Input */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--input-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: all var(--transition);
}
.chat-input-bar:focus-within {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.attach-btn {
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.attach-btn:hover { color: var(--accent); }

#chatInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 24px;
  max-height: 150px;
  padding: 0;
}
#chatInput::placeholder { color: var(--text-light); }

.send-btn {
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.send-btn:hover { background: var(--accent-dark); transform: scale(1.03); }

.input-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* ============================================
   PROFESSIONALS SECTION
   ============================================ */
.pros-section {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.pros-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sort-controls select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-controls select:focus { border-color: var(--accent); }

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

.pro-card {
  background: var(--card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  animation: fadeSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.pro-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.pro-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
  display: block;
}

.pro-name-block { 
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.pro-name-block strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.pro-name-block span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pro-avatar {
  width: 60px; 
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.pro-rating {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pro-rating span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pro-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.pro-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.pro-meta-item { 
  display: flex; 
  flex-direction: column;
  gap: 2px;
}
.pro-meta-item .label { 
  color: var(--text-light); 
  font-size: 0.7rem; 
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.pro-meta-item strong { 
  font-family: var(--font-display); 
  font-weight: 700; 
  font-size: 1rem;
  color: var(--text);
}
.pro-meta-item strong.price { color: var(--accent); }

.pro-slots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.slot-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.slot-chip:hover, .slot-chip.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.pro-book-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.pro-book-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
  padding: 100px 0;
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.category-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.category-card p { font-size: 0.83rem; color: var(--text-muted); }

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

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

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: scale(1.02);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pricing-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pricing-badge.free { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.pricing-badge.pro { background: rgba(37, 99, 235, 0.12); color: var(--accent); }
.pricing-badge.business { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}
.pricing-price span { font-size: 1rem; color: var(--text-muted); }

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li { font-size: 0.9rem; color: var(--text-muted); }

.pricing-card.featured .btn-primary {
  display: block;
  text-align: center;
  justify-content: center;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--bg);
}

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

.testimonial-card {
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.testimonial-card.featured-testimonial {
  border-color: var(--accent);
  position: relative;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.testimonial-card.featured-testimonial::before {
  content: '⭐ Top Review';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}

.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 14px; }

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-weight: 700; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  color: #f1f5f9;
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
}

.cta-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.final-cta p {
  font-size: 1.05rem;
  color: rgba(241, 245, 249, 0.7);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--brand-dark);
  color: #cbd5e1;
  padding: 60px 0 0;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-brand .logo { margin-bottom: 12px; display: inline-flex; }
.footer-brand .logo-image { height: 42px; }
.footer-brand .logo-text { color: #f1f5f9; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #94a3b8; }

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #f1f5f9;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.footer-links a { font-size: 0.88rem; color: #94a3b8; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================
   PRICE COMPARISON TABLE
   ============================================ */
.comparison-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}

.comparison-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--bg-3);
  border-bottom: 2px solid var(--border);
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.comparison-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   INLINE SVG ICON SYSTEM
   ============================================ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.icon-sm { width: 16px; height: 16px; font-size: 0.9rem; }
.icon-md { width: 24px; height: 24px; font-size: 1.2rem; }
.icon-lg { width: 32px; height: 32px; font-size: 1.5rem; }

.icon-primary { color: var(--accent); }
.icon-success { color: #22c55e; }
.icon-warning { color: #f59e0b; }
.icon-danger { color: #ef4444; }

/* Light/Dark mode icon support */
[data-theme="light"] .icon-light { display: inline-flex; }
[data-theme="light"] .icon-dark { display: none; }
[data-theme="dark"] .icon-light { display: none; }
[data-theme="dark"] .icon-dark { display: inline-flex; }

/* ============================================
   ESCALATION FLOW STYLING
   ============================================ */
.escalation-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}

.escalation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--accent);
}

.escalation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.escalation-btn {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.escalation-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.escalation-btn.video {
  border-color: #3b82f6;
  color: #3b82f6;
}
.escalation-btn.video:hover {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.escalation-btn.pro {
  border-color: #2563eb;
  color: #2563eb;
}
.escalation-btn.pro:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(16px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-confirm-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  text-align: center;
}
.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 24px;
}
.modal-content .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ============================================
   SCROLLBAR
   ============================================ */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-chat-preview { display: none; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .demo-layout { grid-template-columns: 1fr; }
  .quick-prompts { position: static; }
  .pricing-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions a,
  .nav-actions .btn-ghost { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner { padding: 48px 24px; }
  .hero-ctas { flex-direction: column; }
  .pros-controls { flex-direction: column; align-items: flex-start; }
  .chat-window { max-height: 500px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .msg-bubble { max-width: 90%; }
  .pros-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CUSTOMER APP LAYOUT
   ============================================ */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 48px;
  display: grid;
  gap: 14px;
}

.card-shell {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.app-greeting {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: center;
}

.app-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.15;
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-kpis div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--bg-3);
}

.app-kpis strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.app-kpis span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.app-chat-shell {
  padding: 14px;
}

.app-chat-shell .chat-messages {
  min-height: 360px;
  max-height: 430px;
}

.app-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.side-title {
  font-family: var(--font-display);
  font-size: 1rem;
}

.status-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-3);
}

.status-tile strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.status-tile p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pros-inline {
  transition: all var(--transition);
}

.is-hidden {
  display: none;
}

.pro-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-3);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.activity-item strong {
  font-size: 0.96rem;
}

.activity-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.activity-status {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  white-space: nowrap;
}

.activity-status.ai-resolved { background: #22c55e; }
.activity-status.booked { background: #3b82f6; }
.activity-status.completed { background: #8b5cf6; }

.app-user-nav {
  position: relative;
}

.user-menu-wrap {
  position: relative;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  padding: 4px 10px 4px 4px;
}

.user-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.user-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  padding: 7px;
  display: none;
  z-index: 1001;
}

.user-dropdown.open {
  display: grid;
}

.user-dropdown a,
.user-dropdown button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--bg-3);
}

.mobile-menu button {
  border: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: left;
}

.preview-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preview-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.preview-thumb.video {
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.75rem;
}

.file-video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 1500;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-greeting {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-main {
    padding-top: 90px;
  }

  .app-kpis {
    grid-template-columns: 1fr;
  }

  .app-user-nav .user-name {
    display: none;
  }
}

/* ============================================
   LANDING ADDITIONS
   ============================================ */
.features-strip {
  padding: 8px 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-tile {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feature-tile h3 {
  font-family: var(--font-display);
  font-size: 1rem;
}

.feature-tile p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.comparison-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 14px;
}

.comparison-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  font-size: 0.88rem;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.signin-prompt {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.prompt-card {
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), var(--card-bg));
  box-shadow: var(--shadow);
  padding: 18px;
}

.prompt-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.prompt-card p {
  color: var(--text-muted);
  margin-top: 8px;
}

.prompt-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TRUST & SAFETY ENHANCEMENTS
   ============================================ */
.safety-banner {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 1100;
  display: none;
  gap: 10px;
}

.safety-banner.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.safety-banner.severity-critical {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(120deg, rgba(239, 68, 68, 0.14), var(--card-bg));
}

.safety-banner.severity-high {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.14), var(--card-bg));
}

.safety-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.safety-content p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.safety-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.54);
}

.modal-overlay.open {
  display: grid;
}

.modal {
  width: min(860px, 100%);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  max-height: 86vh;
  overflow: auto;
}

.modal-close {
  float: right;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  color: var(--text);
}

.legal-modal h3,
.profile-modal h3,
.video-modal h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.legal-modal p {
  color: var(--text-muted);
}

.legal-check {
  margin: 14px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.legal-check input {
  width: auto;
}

.legal-modal ul {
  margin-top: 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

.pro-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.pro-rating span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.profile-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
}

.profile-head img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
}

.profile-head p {
  color: var(--text-muted);
}

.profile-rating {
  font-size: 0.88rem;
  margin-top: 6px;
}

.profile-bio {
  margin-top: 10px;
  color: var(--text-muted);
}

.profile-skills {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-3);
  padding: 6px 10px;
  font-size: 0.78rem;
}

.profile-columns {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-columns h4,
.profile-modal h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.profile-columns ul {
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.availability-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-slots {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.booking-slot {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-3);
  padding: 12px;
  text-align: left;
  transition: 0.2s ease;
}

.booking-slot:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.booking-slot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.booking-slot span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.booking-slot .slot-price {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.booking-confirm {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), var(--bg-2));
}

.booking-confirm p {
  color: var(--text-muted);
}

.live-help-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.video-options {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.video-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-3);
  padding: 12px;
  text-align: left;
  transition: 0.2s ease;
}

.video-option:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.video-option strong {
  display: block;
  font-family: var(--font-display);
}

.video-option p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.video-option span {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 700;
}

.call-state {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.video-stage {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
}

.video-feed {
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 130px;
  background: linear-gradient(120deg, var(--bg-3), rgba(37, 99, 235, 0.1));
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.video-feed.large { min-height: 210px; }

.call-tips,
.call-pricing {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .safety-banner.show {
    grid-template-columns: 1fr;
  }

  .video-options,
  .profile-columns,
  .video-stage {
    grid-template-columns: 1fr;
  }

  .profile-head {
    grid-template-columns: 1fr;
  }
}
