/* ═══════════════════════════════════════════
   YojanaBot — Master Stylesheet v2
   Additions: Voice Btn, Nav Links, Mobile Menu,
              Voice Status Bar, Topbar utils
   ═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --bg-deep:        #050b1a;
  --bg-mid:         #0a1628;
  --glass-bg:       rgba(255,255,255,0.05);
  --glass-border:   rgba(255,255,255,0.10);
  --glass-hover:    rgba(255,255,255,0.09);
  --blue-500:       #3b82f6;
  --blue-600:       #2563eb;
  --blue-400:       #60a5fa;
  --indigo-500:     #6366f1;
  --indigo-400:     #818cf8;
  --gold:           #f59e0b;
  --gold-light:     #fbbf24;
  --white:          #ffffff;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --text-primary:   rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted:     rgba(255,255,255,0.35);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 40px rgba(59,130,246,0.2);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --font-display:   'Syne', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;
  --sidebar-w:      260px;
  --nav-h:          68px;
  --transition:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Background ─── */
.bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  top: -200px; left: -100px; animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: 30%; right: -150px; animation-delay: -4s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
  bottom: -100px; left: 40%; animation-delay: -8s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5,11,26,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s var(--transition);
}
.navbar.scrolled {
  background: rgba(5,11,26,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; gap: 16px;
}

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: var(--white); letter-spacing: -0.02em;
}
.brand-tag {
  background: linear-gradient(135deg, var(--gold), #fb923c);
  color: #1a0a00;
  font-size: 0.58rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); background: var(--glass-hover); }
.nav-link.active { color: var(--blue-400); background: rgba(59,130,246,0.1); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--blue-400); border-radius: 2px;
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.state-selector-wrap { position: relative; display: flex; align-items: center; }
.select-icon {
  position: absolute; left: 10px;
  width: 14px; height: 14px;
  color: var(--blue-400);
  pointer-events: none; z-index: 1;
}
.state-select {
  appearance: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.8rem;
  padding: 8px 14px 8px 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
  max-width: 140px;
}
.state-select:focus { outline: none; border-color: var(--blue-500); }
.state-select option { background: #0f1a2e; color: var(--white); }

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.04em;
}
.lang-toggle:hover { border-color: var(--blue-500); color: var(--white); }
.lang-en, .lang-hi { transition: color 0.2s; }
.lang-en.active, .lang-hi.active { color: var(--blue-400); }
.lang-divider { opacity: 0.3; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
  color: white; border: none;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 9px 20px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(59,130,246,0.45); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(5,11,26,0.95);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mob-link {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: none; border: none;
  cursor: pointer; font-family: var(--font-body);
  text-align: left; width: 100%;
  transition: all 0.2s;
}
.mob-link:hover, .mob-link.active { color: var(--text-primary); background: var(--glass-hover); }
.mob-link.active { color: var(--blue-400); }
.mob-divider { height: 1px; background: var(--glass-border); margin: 6px 0; }

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  max-width: 1300px; margin: 0 auto;
  gap: 60px; flex-wrap: wrap;
}
.hero-content {
  flex: 1; min-width: 280px; max-width: 580px;
  animation: heroFadeUp 0.8s var(--transition) both;
}
@keyframes heroFadeUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 6px 16px; border-radius: 30px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--blue-400); margin-bottom: 28px; letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.title-line-1 { display: block; color: var(--white); }
.title-line-2 { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #fb923c 40%, var(--blue-400) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

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

.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.stat-chip {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 10px 18px;
  display: flex; flex-direction: column; align-items: center;
  backdrop-filter: blur(10px); transition: border-color 0.2s;
}
.stat-chip:hover { border-color: rgba(59,130,246,0.4); }
.stat-num {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 800; color: var(--blue-400); line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.voice-stat-chip { border-color: rgba(245,158,11,0.3); }
.voice-stat-chip .stat-num { font-size: 1.2rem; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
  color: white; border: none;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 14px 26px; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(59,130,246,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  cursor: pointer; backdrop-filter: blur(10px); transition: all 0.25s;
}
.btn-secondary svg { width: 16px; height: 16px; }
.btn-secondary:hover { border-color: var(--blue-400); transform: translateY(-2px); }

/* ─── Hero Visual ─── */
.hero-visual {
  flex: 1; min-width: 280px; max-width: 420px; position: relative;
  animation: heroFadeUp 0.8s 0.2s var(--transition) both;
}
.visual-card {
  background: rgba(10,22,40,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl); padding: 24px;
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card-header-mini {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.avatar-mini {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(59,130,246,0.15);
  display: flex; align-items: center; justify-content: center;
}
.avatar-mini svg { width: 22px; height: 22px; }
.online-tag { font-size: 0.78rem; color: var(--text-secondary); flex: 1; }
.voice-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px; padding: 3px 9px;
  font-size: 0.65rem; font-weight: 600; color: var(--gold-light);
}
.voice-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-light);
  animation: pulse 1.5s infinite;
}

.preview-bubbles { display: flex; flex-direction: column; gap: 10px; }
.preview-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; max-width: 85%; }
.user-bubble { background: linear-gradient(135deg, var(--blue-600), var(--indigo-500)); align-self: flex-end; }
.bot-bubble { background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); align-self: flex-start; }
.preview-scheme-card {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md); padding: 12px 14px; margin-top: 4px;
}
.mini-scheme { display: flex; align-items: center; gap: 10px; }
.mini-icon { font-size: 1.4rem; }
.mini-name { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.mini-benefit { font-size: 0.7rem; color: var(--blue-400); margin-top: 2px; }

.floating-chip {
  position: absolute;
  background: rgba(10,22,40,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(16px); border-radius: 30px;
  padding: 8px 14px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md);
  animation: floatChip 4s ease-in-out infinite;
}
.chip-1 { top: -18px; right: 30px; animation-delay: 0s; }
.chip-2 { bottom: 60px; right: -20px; animation-delay: -1.3s; }
.chip-3 { bottom: -14px; left: 30px; animation-delay: -2.6s; }
@keyframes floatChip {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── APP SECTION ─── */
.app-section { position: relative; z-index: 1; min-height: 100vh; padding: 40px 24px; }
.app-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; gap: 20px;
  height: calc(100vh - 120px); min-height: 600px;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: rgba(10,22,40,0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: all 0.35s var(--transition);
  box-shadow: var(--shadow-md);
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header h3 {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 700; color: var(--text-secondary);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sidebar-close {
  display: none; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px;
}

.category-list { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.cat-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; width: 100%; text-align: left; transition: all 0.2s;
}
.cat-btn:hover { background: var(--glass-hover); border-color: var(--glass-border); color: var(--text-primary); }
.cat-btn.active { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: var(--blue-400); }
.cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.cat-count {
  margin-left: auto;
  background: rgba(59,130,246,0.15); color: var(--blue-400);
  font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.sidebar-divider { height: 1px; background: var(--glass-border); margin: 4px 12px; }

.quick-prompts { padding: 14px 12px; flex: 1; overflow-y: auto; }
.sidebar-label {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px; padding-left: 4px;
}
.prompt-chips { display: flex; flex-direction: column; gap: 6px; }
.prompt-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: transparent;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: all 0.2s; width: 100%;
}
.prompt-chip:hover {
  background: var(--glass-hover); border-color: rgba(59,130,246,0.3);
  color: var(--text-primary); transform: translateX(2px);
}

/* Sidebar nav links (bottom) */
.sidebar-nav-links { padding: 10px 12px; }
.snav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: all 0.2s; margin-bottom: 2px;
}
.snav-link:hover { color: var(--text-primary); background: var(--glass-hover); }
.snav-link.active { color: var(--blue-400); background: rgba(59,130,246,0.08); }

.sidebar-footer {
  padding: 14px 16px; border-top: 1px solid var(--glass-border);
}
.powered-by { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--text-muted); }
.powered-by svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── CHAT MAIN ─── */
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(10,22,40,0.6);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  backdrop-filter: blur(24px); overflow: hidden;
  box-shadow: var(--shadow-md); min-width: 0;
}

/* Topbar */
.chat-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0;
}
.sidebar-toggle {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); width: 36px; height: 36px;
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.sidebar-toggle svg { width: 18px; height: 18px; }
.sidebar-toggle:hover { border-color: var(--blue-400); color: var(--blue-400); }

.chat-title-area { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.bot-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25); animation: pulse 2s infinite;
}
.chat-title-text {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 700; color: var(--text-primary);
}
.chat-status {
  font-size: 0.72rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-muted); width: 34px; height: 34px;
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  text-decoration: none;
}
.topbar-icon-btn svg { width: 15px; height: 15px; }
.topbar-icon-btn:hover { border-color: var(--blue-400); color: var(--blue-400); }
.clear-chat-btn {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-muted); width: 34px; height: 34px;
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.clear-chat-btn svg { width: 15px; height: 15px; }
.clear-chat-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ─── Chat Messages ─── */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 24px 20px; display: flex; flex-direction: column; gap: 20px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ─── Message Rows ─── */
.msg-row { display: flex; gap: 12px; animation: msgFadeIn 0.35s var(--transition) both; }
@keyframes msgFadeIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.msg-row.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-top: 2px;
}
.msg-avatar.bot-av {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-500));
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.msg-avatar.user-av {
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); font-size: 0.85rem;
}
.msg-content { display: flex; flex-direction: column; gap: 6px; max-width: 80%; }
.msg-row.user .msg-content { align-items: flex-end; }
.msg-bubble {
  padding: 12px 16px; border-radius: 18px;
  font-size: 0.88rem; line-height: 1.65;
}
.msg-bubble.bot {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--text-primary); border-bottom-left-radius: 5px;
}
.msg-bubble.user {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-500));
  color: white; border-bottom-right-radius: 5px;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.msg-time { font-size: 0.67rem; color: var(--text-muted); padding: 0 4px; }

/* Voice transcribing indicator in bubble */
.voice-transcribing {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--gold-light); font-style: italic;
}
.voice-transcribing::before { content: '🎙️'; }

/* ─── Scheme Cards in Chat ─── */
.scheme-results { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 600px; }
.scheme-card {
  background: rgba(10,22,40,0.7); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: all 0.3s var(--transition); cursor: default;
  animation: cardSlideIn 0.4s var(--transition) both; position: relative; overflow: hidden;
}
.scheme-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--blue-500), var(--indigo-500));
  border-radius: 3px 0 0 3px;
}
.scheme-card:hover {
  border-color: rgba(59,130,246,0.35); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(59,130,246,0.1);
}
@keyframes cardSlideIn {
  from { opacity:0; transform:translateX(-12px); }
  to   { opacity:1; transform:translateX(0); }
}
.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.card-title-area { flex: 1; min-width: 0; }
.card-name { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 3px; line-height: 1.3; }
.card-category-badge {
  display: inline-block;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-400); font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em;
}
.card-details { display: flex; flex-direction: column; gap: 8px; }
.card-detail-row { display: flex; gap: 8px; align-items: flex-start; }
.detail-label {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  flex-shrink: 0; width: 70px; padding-top: 1px;
}
.detail-value { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.detail-value.benefit-val { color: #4ade80; }
.card-footer {
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--glass-border);
}
.apply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
  color: white; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-sm); text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(59,130,246,0.35);
}
.apply-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.5); }
.apply-btn svg { width: 13px; height: 13px; }

/* ─── Typing Indicator ─── */
.typing-indicator {
  display: flex; gap: 5px; align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  border-radius: 18px; border-bottom-left-radius: 5px; width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px; background: var(--blue-400);
  border-radius: 50%; animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.5; }
  40%          { transform: translateY(-7px); opacity: 1; }
}

/* ─── Welcome Screen ─── */
.welcome-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 40px 20px; gap: 20px; height: 100%; min-height: 300px;
}
.welcome-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.2));
  border: 1px solid rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  animation: welcomePop 0.5s var(--transition) both;
}
@keyframes welcomePop { from { transform:scale(0.8);opacity:0; } to { transform:scale(1);opacity:1; } }
.welcome-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--white);
}
.welcome-sub { font-size: 0.88rem; color: var(--text-secondary); max-width: 380px; line-height: 1.7; }
.welcome-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 480px; }
.suggestion-pill {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 30px; padding: 8px 16px;
  font-size: 0.8rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.suggestion-pill:hover { border-color: var(--blue-400); color: var(--blue-400); transform: translateY(-1px); }

/* ─── VOICE STATUS BAR ─── */
.voice-status-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.05));
  border-top: 1px solid rgba(245,158,11,0.2);
  border-bottom: 1px solid rgba(245,158,11,0.15);
  animation: slideDown 0.3s var(--transition) both;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.voice-wave {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.voice-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: var(--gold-light);
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.voice-wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 8px;  animation-delay: 0.4s; }
@keyframes waveBar {
  from { transform: scaleY(0.4); opacity: 0.6; }
  to   { transform: scaleY(1.2); opacity: 1; }
}

.voice-status-text {
  flex: 1; font-size: 0.82rem; font-weight: 500;
  color: var(--gold-light); font-style: italic;
}
.voice-cancel-btn {
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold-light); font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.voice-cancel-btn:hover { background: rgba(245,158,11,0.25); }

/* ─── VOICE BUTTON ─── */
.voice-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; color: var(--text-muted);
  position: relative;
}
.voice-btn svg { width: 18px; height: 18px; }
.voice-btn:hover { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: var(--gold-light); }
.voice-btn.listening {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.5);
  color: var(--gold-light);
  box-shadow: 0 0 0 0 rgba(245,158,11,0.4);
  animation: micPulse 1.2s ease-out infinite;
}
@keyframes micPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.voice-btn.not-supported { opacity: 0.35; cursor: not-allowed; }
.mic-icon, .stop-icon { transition: all 0.2s; }

/* ─── Chat Input Area ─── */
.chat-input-area { padding: 16px 20px 18px; border-top: 1px solid var(--glass-border); flex-shrink: 0; }
.input-wrapper {
  display: flex; align-items: flex-end; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 10px 10px 10px 16px; transition: border-color 0.2s;
}
.input-wrapper:focus-within {
  border-color: rgba(59,130,246,0.5); box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.chat-textarea {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: var(--font-body);
  font-size: 0.9rem; resize: none; max-height: 140px; min-height: 24px; line-height: 1.5;
}
.chat-textarea::placeholder { color: var(--text-muted); }
.send-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(59,130,246,0.3);
}
.send-btn svg { width: 17px; height: 17px; color: white; }
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.5); }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.input-disclaimer {
  font-size: 0.68rem; color: var(--text-muted);
  text-align: center; margin-top: 9px; line-height: 1.5;
}

/* ─── FEATURES STRIP ─── */
.features-strip {
  position: relative; z-index: 1; padding: 40px 24px;
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  background: rgba(10,22,40,0.4); backdrop-filter: blur(10px);
}
.features-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 40px; flex: 1; min-width: 200px;
}
.f-icon { font-size: 1.6rem; flex-shrink: 0; }
.feature-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.feature-item p { font-size: 0.75rem; color: var(--text-muted); }
.feature-sep { width: 1px; height: 40px; background: var(--glass-border); flex-shrink: 0; }

/* ─── FOOTER ─── */
.footer { position: relative; z-index: 1; padding: 28px 24px; text-align: center; }
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 8px; font-size: 0.95rem; color: var(--text-secondary);
}
.footer-brand .brand-name { color: var(--white); font-weight: 700; }
.footer-links {
  display: flex; gap: 20px; justify-content: center; margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.78rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-400); }
.footer-note { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Utilities ─── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { gap: 40px; }
  .hero-visual { max-width: 360px; }
  .feature-sep { display: none; }
  .feature-item { padding: 12px 20px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .state-selector-wrap,
  .nav-actions .nav-cta { display: none; }
  .hamburger { display: flex; }
  .lang-toggle { display: flex; }

  .hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-h) + 30px); }
  .hero-content { max-width: 100%; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .app-section { padding: 20px 12px; }
  .app-container { flex-direction: column; height: auto; min-height: calc(100vh - 80px); }
  .sidebar {
    width: 100%; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 900; border-radius: 0; transform: translateX(-110%);
    transition: transform 0.35s var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }

  .chat-main { height: calc(100vh - 120px); min-height: 500px; }
  .chat-status { display: none; }
  .msg-content { max-width: 90%; }
  .feature-item { flex: 1 1 45%; padding: 14px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .feature-item { flex: 1 1 100%; }
  .floating-chip { display: none; }
  .brand-tag { display: none; }
}
