/**
 * TickerPulse - Ultimate Modern Design System (CSS) - tickerpulse.in
 * Dark Fintech + Modern AI + Tech Editorial Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ==========================================================================
     TICKERPULSE OFFICIAL DESIGN TOKEN SYSTEM
     ========================================================================== */
  /* PRIMARY */
  --color-navy: #0B1220;
  --color-white: #FFFFFF;

  /* BRAND */
  --color-teal: #10B981;

  /* SECONDARY */
  --color-blue: #3B82F6;
  --color-purple: #8B5CF6;

  /* SEMANTIC */
  --color-positive: #10B981;
  --color-negative: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  /* NEUTRALS */
  --color-slate-900: #0F172A;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;

  /* Core Color Palette (Fintech Dark System) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-body: #090d16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  --border-glow: rgba(16, 185, 129, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Accent Colors */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-sapphire: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  --grad-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%);

  /* Typography with Robust Fallbacks */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1320px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables - Alpine Studio Pro (Fintech Ultra-Clean) */
[data-theme="light"] {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef2f6;
  --bg-body: #f4f6fb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --border-color: #e2e8f0;
  --border-focus: rgba(37, 99, 235, 0.5);
  --border-glow: rgba(5, 150, 105, 0.25);

  --text-primary: #090e1a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  --accent-sapphire: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-violet: #7c3aed;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;
  --accent-cyan: #0284c7;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
  --shadow-emerald: 0 0 25px rgba(5, 150, 105, 0.15);
}

[data-theme="light"] body {
  background-color: #f4f6fb;
  color: #090e1a;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.02) 0px, transparent 50%);
}

[data-theme="light"] .market-ticker-wrapper {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ticker-item {
  color: #475569;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ticker-name {
  color: #0f172a;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   OFFICIAL BRAND LOGO STYLING & DYNAMIC THEME SWITCHING
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.brand-logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Default (Dark Theme) */
.brand-logo-dark-theme {
  display: block !important;
}
.brand-logo-light-theme {
  display: none !important;
}

/* Light Theme Switching */
[data-theme="light"] .brand-logo-dark-theme {
  display: none !important;
}
[data-theme="light"] .brand-logo-light-theme {
  display: block !important;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 30px;
    max-width: 135px;
  }
}

[data-theme="light"] .brand-logo {
  color: #0f172a !important;
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .nav-dropdown-item {
  color: #1e293b;
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

[data-theme="light"] .header-search-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .header-search-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .header-search-btn kbd {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
}

[data-theme="light"] .nav-ai-btn,
[data-theme="light"] .btn-ai {
  background: #f5f3ff !important;
  border: 1px solid #ddd6fe !important;
  color: #7c3aed !important;
}

[data-theme="light"] .nav-ai-btn:hover,
[data-theme="light"] .btn-ai:hover {
  background: #ede9fe !important;
  border-color: #c4b5fd !important;
  color: #6d28d9 !important;
}

[data-theme="light"] .nav-login-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .nav-login-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}


[data-theme="light"] .mobile-nav-toggle {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .card, 
[data-theme="light"] .admin-card, 
[data-theme="light"] .product-card,
[data-theme="light"] div[style*="background: rgba(15, 23, 42"] {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .card * {
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ai-omnibar-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .ai-omnibar-input {
  color: #0f172a;
}

[data-theme="light"] .ai-pill-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

[data-theme="light"] .ai-pill-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .form-label {
  color: #1e293b !important;
}

[data-theme="light"] .hero-stat-card,
[data-theme="light"] .pillar-card,
[data-theme="light"] .category-hub-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .category-hub-name,
[data-theme="light"] .pillar-card h3,
[data-theme="light"] .product-title,
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4 {
  color: #0f172a;
}

[data-theme="light"] .product-img-wrap,
[data-theme="light"] div[style*="background: #0b1120"] {
  background: #f1f5f9 !important;
}

[data-theme="light"] div[style*="background: rgba(30, 41, 59"] {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Universal Font Visibility & Contrast Shield for Clean Light Mode */
[data-theme="light"] *[style*="color:#fff"],
[data-theme="light"] *[style*="color: #fff"],
[data-theme="light"] *[style*="color:#ffffff"],
[data-theme="light"] *[style*="color: #ffffff"],
[data-theme="light"] *[style*="color:white"],
[data-theme="light"] *[style*="color: white"],
[data-theme="light"] *[style*="color:#f8fafc"],
[data-theme="light"] *[style*="color: #f8fafc"],
[data-theme="light"] *[style*="color:#f1f5f9"],
[data-theme="light"] *[style*="color: #f1f5f9"],
[data-theme="light"] *[style*="color:#e2e8f0"],
[data-theme="light"] *[style*="color: #e2e8f0"] {
  color: #0f172a !important;
}

[data-theme="light"] *[style*="color:#94a3b8"],
[data-theme="light"] *[style*="color: #94a3b8"],
[data-theme="light"] *[style*="color:#cbd5e1"],
[data-theme="light"] *[style*="color: #cbd5e1"] {
  color: #475569 !important;
}

/* Explicitly preserve colored button and badge text colors */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-emerald,
[data-theme="light"] .btn-emerald *,
[data-theme="light"] .btn-danger,
[data-theme="light"] .btn-danger *,
[data-theme="light"] .badge-rose,
[data-theme="light"] .badge-emerald,
[data-theme="light"] .brand-logo span:first-child,
[data-theme="light"] .user-avatar-pill,
[data-theme="light"] .impersonation-banner,
[data-theme="light"] .impersonation-banner *,
[data-theme="light"] .badge-live,
[data-theme="light"] .badge-tag,
[data-theme="light"] .deal-tab-btn.active,
[data-theme="light"] .badge-active {
  color: #ffffff !important;
}

[data-theme="light"] *[style*="color: var(--text-muted)"] {
  color: #64748b !important;
}

[data-theme="light"] *[style*="color: var(--text-secondary)"] {
  color: #475569 !important;
}

[data-theme="light"] .product-card h3,
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card label {
  color: #0f172a !important;
}

[data-theme="light"] .store-price-badge {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .store-price-badge.lowest {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
}

[data-theme="light"] .hero-badge {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #4338ca !important;
}

[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
}

[data-theme="light"] .footer-col h4 {
  color: #0f172a;
}

[data-theme="light"] .footer-col ul li a {
  color: #64748b;
}

[data-theme="light"] .footer-col ul li a:hover {
  color: #4338ca;
}

[data-theme="light"] input[type=range].fin-range-slider {
  background: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .table,
[data-theme="light"] table {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] table th {
  background: #f1f5f9;
  color: #334155;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #1e293b;
}

[data-theme="light"] .mobile-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .mobile-drawer .nav-link {
  color: #334155;
}

/* Membership Perks & Guest vs Member Comparison Section */
.member-perks-section {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .member-perks-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.guest-perks-card {
  padding: 2.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  opacity: 0.9;
}
[data-theme="light"] .guest-perks-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  opacity: 1 !important;
}
.guest-perks-card h3 {
  color: #94a3b8;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
[data-theme="light"] .guest-perks-card h3 {
  color: #1e293b !important;
}
.guest-perks-card ul {
  color: var(--text-secondary);
}
[data-theme="light"] .guest-perks-card ul {
  color: #475569 !important;
}

.member-perks-card {
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.18);
  position: relative;
}
[data-theme="light"] .member-perks-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.12) !important;
}
.member-perks-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
[data-theme="light"] .member-perks-card h3 {
  color: #0f172a !important;
}
.member-perks-card ul {
  color: #f8fafc;
}
[data-theme="light"] .member-perks-card ul {
  color: #334155 !important;
}
[data-theme="light"] .member-perks-card ul strong {
  color: #0f172a !important;
}

/* Affordability Interactive Simulator */
.affordability-calc-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(9, 13, 22, 0.95) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .affordability-calc-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.affordability-calc-card {
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .affordability-calc-card {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .affordability-calc-card label {
  color: #0f172a !important;
}
[data-theme="light"] .affordability-calc-card #liveCalcOutput {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .affordability-calc-card #calcCostPerUse {
  color: #0f172a !important;
}



/* ========================================================================
   GLOBAL HEADER, MEGA NAVIGATION & MODAL SEARCH
   ======================================================================== */

.market-ticker-wrapper {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  height: 36px;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  z-index: 910;
  position: relative;
}

.market-ticker-wrapper::-webkit-scrollbar {
  display: none;
}

.market-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  white-space: nowrap;
  min-width: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
  padding: 0 0.75rem;
  text-decoration: none;
  border-right: 1px solid var(--border-color);
  transition: color 0.15s ease;
}

.ticker-item:hover {
  color: var(--text-primary);
}

.ticker-name {
  font-weight: 800;
  color: var(--text-primary);
}

.ticker-val {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 700;
}

/* Site Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  transition: background 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-logo span:first-child {
  width: 30px;
  height: 30px;
  font-size: 1.05rem;
  border-radius: 8px;
}

.brand-logo:hover {
  color: #ffffff;
}

/* Desktop Navigation Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.36rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 950;
  backdrop-filter: blur(24px);
  min-width: 250px;
}

.nav-item:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  color: var(--text-primary);
}

.dropdown-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* ========================================================================
   GLOBAL BUTTON SYSTEM
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.815rem;
}

.btn-md {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  color: #ffffff !important;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
  color: #ffffff !important;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.btn-danger {
  background: #f43f5e;
  color: #ffffff !important;
}

.btn-danger:hover {
  background: #e11d48;
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0 !important;
  flex-wrap: nowrap;
  margin-left: auto;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.header-search-btn .search-btn-text,
.header-search-btn kbd {
  display: none;
}

@media (min-width: 1600px) {
  .header-search-btn {
    width: auto;
    height: auto;
    padding: 0.4rem 0.75rem;
  }
  .header-search-btn .search-btn-text,
  .header-search-btn kbd {
    display: inline;
  }
}

.nav-ai-btn {
  display: none !important; /* Kept in bottom-right floating pill and hero search */
}

@media (min-width: 1680px) {
  .nav-ai-btn {
    display: inline-flex !important;
  }
}

.nav-actions .nav-login-btn {
  padding: 0.32rem 0.65rem;
  font-size: 0.785rem;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-actions .nav-register-btn,
.nav-actions a[href*="register.php"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 0.36rem 0.95rem !important;
  font-size: 0.825rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  letter-spacing: 0.2px;
}

.nav-actions .nav-register-btn:hover,
.nav-actions a[href*="register.php"]:hover {
  background: #059669 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
}

[data-theme="light"] .mobile-nav-toggle {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

/* Header Responsive Breakpoints */
@media (max-width: 1150px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

.nav-reg-short {
  display: none;
}
.nav-reg-long {
  display: inline;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.75rem;
    gap: 0.35rem;
  }
  .header-search-btn {
    padding: 0.35rem 0.5rem;
    width: 32px;
    height: 32px;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .nav-actions .btn-sm {
    padding: 0.32rem 0.6rem;
    font-size: 0.775rem;
  }
  .brand-logo-img {
    height: 28px !important;
    max-width: 120px !important;
  }
}

@media (max-width: 576px) {
  .nav-reg-long {
    display: none !important;
  }
  .nav-reg-short {
    display: inline !important;
  }
  .nav-actions .nav-register-btn,
  .nav-actions a[href*="register"] {
    font-size: 0.75rem !important;
    padding: 0.32rem 0.65rem !important;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1rem;
    gap: 0.25rem;
  }
  .brand-logo-img {
    height: 26px !important;
    max-width: 110px !important;
  }
  .nav-actions .nav-login-btn,
  .nav-actions a[href*="login.php"] {
    display: none !important;
  }
  .nav-actions .user-name-text {
    display: none !important;
  }
  .nav-actions .user-profile-btn {
    padding: 0.2rem 0.35rem !important;
  }
}

@media (max-width: 380px) {
  .nav-actions .nav-register-btn,
  .nav-actions a[href*="register"] {
    padding: 0.28rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .brand-logo-img {
    height: 24px !important;
    max-width: 95px !important;
  }
}

/* Omnibar Modal Dialog */
.omnibar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
}

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

.omnibar-modal {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(24px);
}

.omnibar-input-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.omnibar-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
}

.omnibar-results {
  max-height: 420px;
  overflow-y: auto;
}

.omnibar-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.omnibar-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: none;
}

.mobile-drawer-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 9999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  backdrop-filter: blur(24px);
}

.mobile-drawer.open {
  right: 0;
}

/* Universal High-Performance 2-State Theme Toggle Button */
.theme-toggle-btn,
.admin-theme-switch-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn svg,
.admin-theme-switch-btn svg {
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover,
.admin-theme-switch-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.theme-toggle-btn:hover svg,
.admin-theme-switch-btn:hover svg {
  transform: rotate(15deg);
}

.theme-toggle-btn:active,
.admin-theme-switch-btn:active {
  transform: scale(0.92);
}

[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .admin-theme-switch-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .admin-theme-switch-btn:hover {
  border-color: #3b82f6 !important;
  background: #f8fafc !important;
  color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18) !important;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

[data-theme="light"] html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, #10b981, #6366f1);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* AI Omnibar Search */
.ai-omnibar-box {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 0.6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
  transition: var(--transition);
  position: relative;
}

.ai-omnibar-box:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.35);
}

.ai-omnibar-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-icon-pulse {
  color: #818cf8;
  padding-left: 0.75rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ai-omnibar-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.ai-omnibar-input::placeholder {
  color: var(--text-muted);
}

.ai-suggestions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ai-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.ai-pill-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Cards & Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b1120;
  aspect-ratio: 16/10;
  margin-bottom: 1.25rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-emerald { background: #10b981; color: #fff; }
.badge-indigo { background: #6366f1; color: #fff; }
.badge-amber { background: #f59e0b; color: #090d16; }
.badge-rose { background: #f43f5e; color: #fff; }

.watchlist-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.watchlist-toggle-btn:hover, .watchlist-toggle-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.star.filled { color: #f59e0b; }
.star.empty { color: var(--text-muted); }
.rating-num { color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; margin-left: 0.25rem; }

.ai-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.original-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-tag {
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
}

.merchant-pill-row {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Affordability Badge */
.affordability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.affordability-pill.comfortable { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.affordability-pill.manageable { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.affordability-pill.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.affordability-pill.danger { background: rgba(244, 63, 94, 0.15); color: #f87171; border: 1px solid rgba(244, 63, 94, 0.4); }

/* Multi-Store Price Comparison Table */
.store-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin: 1.5rem 0;
}

.store-compare-table tr {
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.store-compare-table tr:hover {
  background: rgba(30, 41, 59, 0.85);
}

.store-compare-table td {
  padding: 1rem 1.25rem;
}

.store-compare-table td:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.store-compare-table td:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.store-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.store-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #070a11;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.affiliate-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating AI Copilot Trigger */
.floating-ai-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}

.floating-ai-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

/* AI Copilot Drawer */
.ai-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.ai-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ai-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid var(--border-color);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}
[data-theme="light"] .ai-drawer {
  background: #ffffff !important;
  border-left: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15) !important;
}

.ai-drawer-overlay.open .ai-drawer {
  right: 0;
}

.ai-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.6);
}
[data-theme="light"] .ai-drawer-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.ai-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-main);
}
[data-theme="light"] .ai-drawer-body {
  background: #f8fafc !important;
}

.ai-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.6);
}
[data-theme="light"] .ai-drawer-footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.chat-bubble {
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 92%;
  word-break: break-word;
}

.chat-bubble.user {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  font-weight: 500;
}

.chat-bubble.assistant {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .chat-bubble.assistant {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.ai-quick-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="light"] .ai-quick-pill {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}
.ai-quick-pill:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.ai-chat-product-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
[data-theme="light"] .ai-chat-product-item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.ai-login-callout {
  margin-top: 1rem;
  padding: 1.15rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.95));
  border: 1px solid #10b981;
  border-radius: 12px;
  text-align: center;
}
[data-theme="light"] .ai-login-callout {
  background: linear-gradient(135deg, #ecfdf5, #ffffff) !important;
  border: 1px solid #10b981 !important;
}

.ai-uncataloged-callout {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  text-align: center;
}
[data-theme="light"] .ai-uncataloged-callout {
  background: linear-gradient(135deg, #eef2ff, #ffffff) !important;
  border: 1px solid #a5b4fc !important;
}

/* AI Copilot Table & Markdown Enhancements */
.chat-bubble.assistant table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  font-size: 0.82rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.chat-bubble.assistant th,
.chat-bubble.assistant td {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  line-height: 1.4;
}
.chat-bubble.assistant th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  color: #f8fafc;
}
.chat-bubble.assistant tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .chat-bubble.assistant table {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .chat-bubble.assistant th,
[data-theme="light"] .chat-bubble.assistant td {
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #1e293b !important;
}
[data-theme="light"] .chat-bubble.assistant th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .chat-bubble.assistant tr:nth-child(even) td {
  background: #f8fafc !important;
}

.chat-bubble.assistant blockquote {
  border-left: 3px solid #6366f1;
  padding: 0.4rem 0 0.4rem 0.85rem;
  margin: 0.6rem 0;
  color: #94a3b8;
  font-size: 0.88rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 6px 6px 0;
}
[data-theme="light"] .chat-bubble.assistant blockquote {
  color: #475569 !important;
  background: #f1f5f9 !important;
  border-left-color: #4f46e5 !important;
}

.ai-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.ai-header-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}
.ai-header-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}
[data-theme="light"] .ai-header-btn {
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #64748b !important;
}
[data-theme="light"] .ai-header-btn:hover {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* AI Copilot Interactive Actions & Slash Menu */
.chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .chat-bubble-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.chat-copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.chat-copy-btn:hover {
  border-color: #6366f1;
  color: #818cf8;
}
[data-theme="light"] .chat-copy-btn {
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #64748b !important;
}
[data-theme="light"] .chat-copy-btn:hover {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
}

.ai-tenure-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0;
}
.ai-tenure-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-tenure-btn:hover, .ai-tenure-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #ffffff;
}
[data-theme="light"] .ai-tenure-btn {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}
[data-theme="light"] .ai-tenure-btn:hover, [data-theme="light"] .ai-tenure-btn.active {
  background: #e0e7ff !important;
  border-color: #4f46e5 !important;
  color: #4338ca !important;
}

.ai-action-waiting-room {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-action-waiting-room:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
}

.ai-slash-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10002;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 220px;
  overflow-y: auto;
}
[data-theme="light"] .ai-slash-menu {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}
.ai-slash-item {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #f8fafc;
  transition: background 0.15s ease;
}
.ai-slash-item:hover, .ai-slash-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
[data-theme="light"] .ai-slash-item {
  color: #1e293b !important;
}
[data-theme="light"] .ai-slash-item:hover, [data-theme="light"] .ai-slash-item.active {
  background: #f1f5f9 !important;
  color: #4f46e5 !important;
}


/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-indigo);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.3s ease;
  line-height: 1.4;
}

.toast.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid #10b981;
  color: #6ee7b7;
}

.toast.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  color: #fcd34d;
}

/* Light Theme Overrides for Toast & Error Alerts */
[data-theme="light"] .toast {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .toast.error {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  border-left: 4px solid #ef4444 !important;
  color: #991b1b !important;
}

[data-theme="light"] .toast.success {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  border-left: 4px solid #10b981 !important;
  color: #166534 !important;
}

[data-theme="light"] .toast.warning {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  border-left: 4px solid #f59e0b !important;
  color: #92400e !important;
}

@keyframes slide-in {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Announcement Ticker Bar */
.top-announcement-bar {
  background: linear-gradient(90deg, #0b0f19 0%, #1e1b4b 50%, #064e3b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  text-align: center;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
  position: relative;
  z-index: 101;
}

.top-announcement-bar .badge-live {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-announcement-bar .badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Enhanced Sticky Glassmorphic Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Nav Links & Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.925rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.nav-item:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #38bdf8;
  transform: translateX(3px);
}

.nav-dropdown-item .dropdown-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-dropdown-item .dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.nav-dropdown-item .dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Header Omnibar Trigger / Search Button */
.header-search-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.header-search-btn kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  font-family: inherit;
  color: #cbd5e1;
}

/* User Profile Nav Dropdown */
.user-profile-menu {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

/* Hero Statistics Live Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  text-align: left;
}

.hero-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(30, 41, 59, 0.7);
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.hero-stat-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Feature Pillar Cards */
.pillar-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Range Sliders for Interactive Affordability Calculator */
input[type=range].fin-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  margin: 0.75rem 0;
}

input[type=range].fin-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  transition: transform 0.15s ease;
}

input[type=range].fin-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Mobile Drawer Menu */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #0b1120;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  z-index: 9999;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Category Hub Cards */
.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-hub-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.2);
}

.category-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.category-hub-card:hover .category-hub-icon {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, #6366f1, #10b981);
  color: #fff;
}

.category-hub-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.category-hub-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Deal Tab Filters */
.deal-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.deal-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.deal-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.deal-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Store Price Pills */
.store-price-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.store-price-badge.lowest {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 700;
}

/* ==========================================================================
   Comprehensive Responsive Grid & Mobile Optimization System (320px - 4K)
   ========================================================================== */

/* Universal Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Base Responsive Grid Defaults */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Large Tablets & Small Laptops (<= 1100px) */
@media (max-width: 1100px) {
  .container { max-width: 96%; padding: 0 1.25rem; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 2.6rem; }
}

/* Medium Tablets (<= 992px) */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .header-search-btn {
    display: inline-flex;
    padding: 0.35rem 0.55rem;
  }
  .header-search-btn .search-btn-text,
  .header-search-btn kbd {
    display: none;
  }
  .mobile-nav-toggle { display: block; }
  .hero-stats-strip { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .category-hub-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  
  /* Two-column layout collapse */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns: 2.5fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Small Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 2.5rem 0; }
  .hero-section { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .category-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .category-hub-card { padding: 1rem 0.5rem; }
  .category-hub-icon { width: 38px; height: 38px; font-size: 1.15rem; }
  .category-hub-name { font-size: 0.82rem; }

  .card { padding: 1.5rem !important; }
  .ai-omnibar-box { border-radius: var(--radius-md); }
  
  .ai-suggestions-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ai-suggestions-row::-webkit-scrollbar { display: none; }
  .ai-pill-btn { white-space: nowrap; flex-shrink: 0; }

  .deal-tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .deal-tabs-row::-webkit-scrollbar { display: none; }
  .deal-tab-btn { white-space: nowrap; flex-shrink: 0; }
  
  .top-announcement-bar {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  .top-announcement-bar span:nth-child(3),
  .top-announcement-bar span:nth-child(4) {
    display: none;
  }
}

/* Standard Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  html { font-size: 14.5px; }
  .container { padding: 0 1rem; }
  .hero-title { font-size: 1.95rem; line-height: 1.25; }
  .hero-stats-strip { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hero-stat-num { font-size: 1.5rem; }
  
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1rem; }
  .category-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  
  .card { padding: 1.25rem !important; border-radius: var(--radius-md); }
  
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
  .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
  
  .form-control, input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 0.75rem 0.85rem;
  }

  /* Omnibar Stack on Phones */
  .ai-omnibar-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .ai-omnibar-form .btn {
    width: 100%;
  }

  /* Price Comparison Pills */
  .merchant-pill-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .merchant-pill-row .btn {
    width: 100%;
  }
}

/* Ultra-Small Phones (<= 400px) */
@media (max-width: 400px) {
  .hero-title { font-size: 1.75rem; }
  .hero-stats-strip { grid-template-columns: 1fr; }
  .category-hub-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .brand-logo span:nth-child(2) { font-size: 1.1rem; }
  .logo-badge { display: none; }
}

/* ==========================================================================
   BUYHATKE + FINTECH SUPER-PLATFORM HOMEPAGE MODULES
   ========================================================================== */

/* 1. Live Real-Time Market Ticker */
.live-market-ticker {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  z-index: 90;
}
[data-theme="light"] .live-market-ticker {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: tickerScroll 40s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
}
[data-theme="light"] .ticker-item {
  color: #334155;
}
.ticker-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.ticker-pill.amazon { background: #ff9900; color: #000; }
.ticker-pill.flipkart { background: #2874f0; color: #fff; }
.ticker-pill.croma { background: #00e9bf; color: #000; }
.ticker-pill.reliance { background: #e42529; color: #fff; }
.ticker-pill.drop { background: #10b981; color: #fff; }

/* 2. Split Hero Layout */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
}

/* 3. Hero Copilot Glass Card (Buyhatke + AI Score Radar) */
.hero-copilot-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .hero-copilot-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 30px rgba(99, 102, 241, 0.1) !important;
}
.hero-copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .hero-copilot-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.copilot-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}
[data-theme="light"] .copilot-store-row {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.copilot-store-row.lowest-store {
  border: 1.5px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
}
[data-theme="light"] .copilot-store-row.lowest-store {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
}

/* 4. Category Filter Tabs */
.category-filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}
.category-filter-tabs::-webkit-scrollbar { display: none; }
.cat-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
[data-theme="light"] .cat-filter-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}
.cat-filter-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
}
[data-theme="light"] .cat-filter-btn:hover {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}
.cat-filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* 5. Modern Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}
.bento-col-7 { grid-column: span 7; }
.bento-col-5 { grid-column: span 5; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-col-7, .bento-col-5, .bento-col-6, .bento-col-4, .bento-col-8 {
    grid-column: span 12;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .bento-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.05);
}
.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* 6. Interactive 10-Second Tech Finder Wizard */
.tech-wizard-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .tech-wizard-card {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06) !important;
}

.wizard-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.wizard-choice-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="light"] .wizard-choice-btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}
.wizard-choice-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #fff;
}
[data-theme="light"] .wizard-choice-btn:hover {
  color: #059669;
}
.wizard-choice-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

/* 7. FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}
[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
[data-theme="light"] .faq-question {
  color: #0f172a;
}
.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
[data-theme="light"] .faq-answer {
  color: #475569;
}
.faq-item.open .faq-answer {
  display: block;
}

/* 8. Member Perks Comparison Cards */
.guest-perks-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}
[data-theme="light"] .guest-perks-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.member-perks-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #10b981;
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .member-perks-card {
  background: #ffffff !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.12) !important;
}

.perk-icon-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 900;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.perk-icon-cross {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  font-weight: 900;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 9. Floating WhatsApp Community Widget & Popover */
.wa-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  z-index: 9990;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.wa-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
.wa-ping-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f43f5e;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border: 2px solid var(--bg-main);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.wa-popover-card {
  position: fixed;
  bottom: 92px;
  left: 24px;
  right: auto;
  width: 350px;
  max-width: calc(100vw - 32px);
  background: #0f172a;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9991;
  animation: waSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .wa-popover-card {
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

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

.wa-popover-header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  padding: 1.15rem 1.25rem;
  color: #ffffff;
  position: relative;
}
.wa-popover-body {
  padding: 1.25rem;
}

/* ========================================================================
   TICKERPULSE V2 - FINANCIAL INTELLIGENCE DESIGN SYSTEM
   ======================================================================== */

/* 1. Live Market Pulse Ticker */
.market-ticker-wrapper {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem;
}
.market-ticker-wrapper::-webkit-scrollbar {
  display: none;
}
.market-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 100%;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.ticker-item:hover {
  opacity: 0.8;
}
.ticker-name {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.ticker-val {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 700;
}
.trend-up {
  color: #10b981 !important;
  font-weight: 700;
}
.trend-down {
  color: #f43f5e !important;
  font-weight: 700;
}
.trend-neutral {
  color: var(--text-muted) !important;
}

/* 2. Market Status Pills */
.market-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.pill-live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.pill-delayed {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.pill-closed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.5s infinite;
}
@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* 3. Market Change Badges */
.market-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', monospace;
}
.market-change-badge.trend-up {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.market-change-badge.trend-down {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* 4. Financial Metric Cards & Tables */
.fin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.fin-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fin-metric-box:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.fin-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.fin-metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.fin-metric-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 5. Stock & Crypto Cards */
.stock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}
.stock-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.stock-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.stock-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 6. Score Bar & Quality Meters */
.score-badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.1rem;
}
.score-meter-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.score-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #10b981);
}

/* 7. Financial Tabs Navigation */
.fin-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
}
.fin-tabs-bar::-webkit-scrollbar {
  display: none;
}
.fin-tab-link {
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.fin-tab-link:hover {
  color: var(--text-primary);
}
.fin-tab-link.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* 8. Mega-Dropdown Navigation Extensions */
.mega-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
}
.mega-nav-col-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

/* 9. Omnibar Live Search Modal */
.omnibar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  z-index: 9999;
}
.omnibar-overlay.active {
  display: flex;
}
.omnibar-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
  overflow: hidden;
}
.omnibar-input-box {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}
.omnibar-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
}
.omnibar-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}
.omnibar-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.omnibar-result-item:hover,
.omnibar-result-item.selected {
  background: rgba(56, 189, 248, 0.12) !important;
  outline: 1px solid rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .omnibar-overlay {
  background: rgba(15, 23, 42, 0.45);
}
[data-theme="light"] .omnibar-modal {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
}
[data-theme="light"] .omnibar-input-box {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .omnibar-input {
  color: #0f172a !important;
}
[data-theme="light"] .omnibar-result-item {
  color: #0f172a !important;
}
[data-theme="light"] .omnibar-result-item:hover,
[data-theme="light"] .omnibar-result-item.selected {
  background: rgba(2, 132, 199, 0.08) !important;
  outline: 1px solid rgba(2, 132, 199, 0.2) !important;
}

/* ========================================================================
   TICKERPULSE V2 - MODERN FINTECH HERO & ULTRA-CLEAN UI SYSTEM
   ======================================================================== */

.hero-v2-container {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.22) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .hero-ambient-glow {
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  filter: blur(50px);
}

/* Ultra-Clean Modern AI Omnibar Box */
.ai-omnibar-box-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

.ai-omnibar-box-v2:focus-within {
  border-color: #6366f1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.omnibar-input-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .omnibar-input-inner {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.ai-omnibar-box-v2:focus-within .omnibar-input-inner {
  border-color: rgba(99, 102, 241, 0.5);
}

/* Ticker Strip Enhancement */
.ticker-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-strip-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Stock & Crypto Card Refinements */
.stock-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.stock-card-v2:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .stock-card-v2:hover {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* Interactive Slider & Split Bar */
.calc-split-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.calc-split-inv {
  background: #6366f1;
  transition: width 0.3s ease;
}

.calc-split-gain {
  background: #10b981;
  transition: width 0.3s ease;
}

/* Tech Product Store Badges */
.merchant-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.merchant-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.merchant-pill-item.best-deal {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

[data-theme="light"] .merchant-pill-item {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

/* Header Search Omnibar Trigger Button */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.header-search-btn kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: inherit;
  color: var(--text-muted);
}

[data-theme="light"] .header-search-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

[data-theme="light"] .header-search-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .header-search-btn kbd {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #475569;
}



/* User Profile Menu */
.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .user-profile-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
}

/* ========================================================================
   INLINE OMNIBAR AUTOCOMPLETE & HERO CENTERPIECE
   ======================================================================== */

.hero-search-centerpiece {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 10;
}

.hero-search-box-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(24px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .hero-search-box-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08), 0 0 25px rgba(16, 185, 129, 0.06);
}

.search-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-category-tabs .tab-btn,
.search-cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-category-tabs .tab-btn:hover,
.search-cat-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.search-category-tabs .tab-btn.active,
.search-cat-btn.active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .search-category-tabs .tab-btn,
[data-theme="light"] .search-cat-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .search-category-tabs .tab-btn:hover,
[data-theme="light"] .search-cat-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .search-category-tabs .tab-btn.active,
[data-theme="light"] .search-cat-btn.active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Hero Search Input Wrapper */
.hero-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(11, 18, 32, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.55rem 0.65rem 0.55rem 1.15rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-input-wrapper:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-input-wrapper {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.hero-input-wrapper .search-icon {
  color: #10b981;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
  width: 100%;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

[data-theme="light"] .hero-search-input {
  color: #0f172a;
}

.hero-search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.25rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
  font-family: inherit;
}

.hero-search-submit-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.hero-search-submit-btn kbd {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-family: monospace;
}

/* AI Suggestions & Example Prompts */
.ai-suggestions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ai-pill-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

.ai-pill-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  transform: translateY(-1px);
}

[data-theme="light"] .ai-pill-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .ai-pill-btn:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* Inline Live Autocomplete Dropdown */
.inline-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15);
  display: none;
  flex-direction: column;
  max-height: 480px;
  overflow-y: auto;
  z-index: 100;
  backdrop-filter: blur(20px);
  padding: 0.75rem;
  text-align: left;
}

.inline-search-dropdown.active {
  display: flex;
}

.search-group-header {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.75rem 0.25rem;
}

.search-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.search-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .search-item-row:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* AI Mockup Card Component */
.ai-mockup-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .ai-mockup-card {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08), 0 0 25px rgba(139, 92, 246, 0.08);
}

.ai-chat-bubble-user {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-left: auto;
  max-width: 85%;
  text-align: right;
}

[data-theme="light"] .ai-chat-bubble-user {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.ai-chat-bubble-ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

[data-theme="light"] .ai-chat-bubble-ai {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.ai-structured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.ai-struct-box {
  background: rgba(11, 18, 32, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[data-theme="light"] .ai-struct-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Responsive Grid Extensions */
@media (max-width: 768px) {
  .hero-v2-container {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-search-centerpiece {
    margin-bottom: 2rem;
  }
  .fin-metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mega-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   MASTER UI SYSTEM: FIVE QUESTIONS, AI MOCKUP & NAVIGATION ENHANCEMENTS
   ======================================================================== */

/* 1. Five Questions Section */
.five-questions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .five-questions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .five-questions-grid {
    grid-template-columns: 1fr;
  }
}

.five-q-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.five-q-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .five-q-card:hover {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.five-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.five-q-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.five-q-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.five-q-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #38bdf8;
}

/* 2. Stock Search Dedicated Block */
.stock-search-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.popular-research-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.25rem;
}

.popular-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.popular-stock-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

[data-theme="light"] .popular-stock-pill {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

/* 3. AI Financial Intelligence Interface Mockup */
.ai-mockup-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .ai-mockup-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.ai-chat-bubble-user {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px 16px 4px 16px;
  padding: 0.85rem 1.25rem;
  max-width: 75%;
  margin-left: auto;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

[data-theme="light"] .ai-chat-bubble-user {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #4338ca;
}

.ai-chat-bubble-ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 16px 4px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-primary);
}

[data-theme="light"] .ai-chat-bubble-ai {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #1e293b;
}

.ai-structured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.ai-struct-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

[data-theme="light"] .ai-struct-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

/* 4. 6-Column Semantic Footer */
.footer-grid-6 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid-6 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 5. Floating "Ask AI" Action Pill */
.floating-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.45);
  cursor: pointer;
  z-index: 990;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-ai-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
  color: #fff;
}

/* 6. Mobile Bottom Navigation Bar (< 768px) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  z-index: 998;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  .floating-ai-btn {
    bottom: 74px;
    right: 16px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  body {
    padding-bottom: 60px;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.mobile-bottom-item.active, .mobile-bottom-item:hover {
  color: #38bdf8;
}

.mobile-bottom-item svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   TICKERPULSE GLOBAL COMPONENT SYSTEM (BUTTONS, CARDS, FIVE QUESTIONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-emerald, .btn-primary, .btn-teal {
  background: var(--color-teal);
  color: #ffffff !important;
  border-color: transparent;
}

.btn-emerald:hover, .btn-primary:hover, .btn-teal:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: #ffffff !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.btn-ai {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa !important;
  border-color: rgba(139, 92, 246, 0.3);
}

.btn-ai:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  color: #ffffff !important;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-md {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
}

/* Five Questions Clean Layout */
.five-questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.five-q-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.five-q-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-md);
}

.five-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-blue);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.five-q-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

.five-q-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.five-q-cta {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-top: 1.25rem;
}

/* ==========================================================================
   TICKERPULSE FORMS, INPUTS & ACCOUNT WORKSPACE DESIGN SYSTEM
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  margin: 0;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: var(--bg-tertiary);
}

.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--text-muted);
}

/* Light Mode Overrides for Form Inputs */
[data-theme="light"] .form-control,
[data-theme="light"] input.form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] textarea.form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] input.form-control:focus,
[data-theme="light"] select.form-control:focus,
[data-theme="light"] textarea.form-control:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
  background: #ffffff !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] input.form-control::placeholder,
[data-theme="light"] textarea.form-control::placeholder {
  color: #94a3b8 !important;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-md {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-emerald {
  background: #10b981;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: #ef4444;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Account Workspace Components */
.account-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.account-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-nav-pills {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.account-nav-pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.account-nav-pill:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.account-nav-pill.active {
  background: #10b981;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .account-nav-pills {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .account-nav-pill {
  color: #64748b;
}

[data-theme="light"] .account-nav-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .account-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Global Card Component */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

/* ==========================================================================
   TICKERPULSE 2.0 - MASTER LIGHT / WHITE THEME HARMONIZATION SUITE
   Guarantees 100% Crisp Visual Hierarchy, Text Legibility & Contrast
   ========================================================================== */

/* 1. Global Light Background & Hero Banners */
[data-theme="light"] .research-hero-banner,
[data-theme="light"] .crypto-hero-banner,
[data-theme="light"] .markets-hero-banner,
[data-theme="light"] .section-hero-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .research-hero-banner h1,
[data-theme="light"] .crypto-hero-banner h1,
[data-theme="light"] .markets-hero-banner h1 {
  color: #0f172a !important;
}

[data-theme="light"] .research-hero-banner p,
[data-theme="light"] .crypto-hero-banner p,
[data-theme="light"] .markets-hero-banner p {
  color: #334155 !important;
}

/* 2. Research Theme Cards & Screener Containers */
[data-theme="light"] .research-theme-card,
[data-theme="light"] .screener-kpi-card,
[data-theme="light"] .screener-slider-card,
[data-theme="light"] .fin-metric-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .research-tab-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .research-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .research-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

[data-theme="light"] .screener-query-bar {
  background: #f8fafc !important;
  border: 1px dashed #94a3b8 !important;
}

/* 3. Inputs, Search Bars & Modals in Light Mode */
[data-theme="light"] #researchStockSearch,
[data-theme="light"] #valSearchInput,
[data-theme="light"] #valStatusFilter,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select.form-control,
[data-theme="light"] textarea.form-control {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] #researchStockSearch::placeholder,
[data-theme="light"] input::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] #researchSearchResults {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12) !important;
}

/* 4. Crypto Intelligence Suite in Light Mode */
[data-theme="light"] .crypto-macro-card,
[data-theme="light"] .crypto-intel-card,
[data-theme="light"] .tax-calc-card,
[data-theme="light"] .correlation-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

/* 5. Sub-containers & Inner Boxes with Dark Transparent Backdrops */
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.02)"],
[data-theme="light"] div[style*="background: rgba(255,255,255,0.02)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.03)"],
[data-theme="light"] div[style*="background: rgba(255,255,255,0.03)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.04)"],
[data-theme="light"] div[style*="background: rgba(255,255,255,0.04)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="light"] div[style*="background: rgba(255,255,255,0.05)"],
[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.2)"],
[data-theme="light"] div[style*="background: rgba(0,0,0,0.2)"],
[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.3)"],
[data-theme="light"] div[style*="background: rgba(0,0,0,0.3)"],
[data-theme="light"] div[style*="background: var(--bg-tertiary)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* 6. Text Elements Contrast Safeguard */
[data-theme="light"] .fin-metric-value,
[data-theme="light"] .stock-price-heading,
[data-theme="light"] tr td strong,
[data-theme="light"] tr th,
[data-theme="light"] td strong {
  color: #0f172a;
}

[data-theme="light"] tr[style*="border-bottom"] {
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] tr[style*="background: rgba(255,255,255,0.02)"],
[data-theme="light"] tr[style*="background: rgba(255,255,255,0.03)"] {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .stocks-mode-switcher {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .mode-switch-btn {
  color: #475569 !important;
}

[data-theme="light"] .mode-switch-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .screener-recipe-badge {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .screener-recipe-badge:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .screener-recipe-badge.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

[data-theme="light"] .timeframe-pill {
  color: #475569 !important;
}

[data-theme="light"] .timeframe-pill:hover {
  color: #0f172a !important;
}

[data-theme="light"] .timeframe-pill.active-tf {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] .pdf-document-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .pdf-document-card h4 {
  color: #0f172a !important;
}

/* Master Universal Light Theme Polish */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
  color: #0f172a !important;
}

[data-theme="light"] .card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .form-label {
  color: #334155 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .dash-hero-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #f0fdf4 100%) !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .dash-kpi-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .dash-deck-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .table {
  color: #1e293b !important;
}

[data-theme="light"] .table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
}

/* ==========================================================================
   TICKERPULSE MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION (360px - 768px)
   ========================================================================== */

/* Universal Responsive Grid System */
.responsive-grid-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.responsive-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.journal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

/* Base Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .responsive-grid-split {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scrolling glitches and viewport shift */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body {
    padding-bottom: 74px !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* R:R Cockpit & Journal grids on phone */
  .rr-cockpit-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .rr-price-triad,
  .rr-account-grid,
  .rr-dir-symbol-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .rr-risk-selector {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  .rr-risk-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.45rem 0.25rem !important;
    font-size: 0.72rem !important;
  }

  /* Touch-friendly buttons (minimum 40px touch target) */
  .btn {
    min-height: 40px;
  }

  /* Auth wrapper on mobile */
  .auth-wrapper {
    margin: 1rem auto 2.5rem !important;
    padding: 0 0.5rem;
  }

  .login-glass-card {
    padding: 1.5rem !important;
  }

  /* Market ticker bar touch scrolling */
  .market-ticker-wrapper {
    font-size: 0.72rem !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Hero Section Mobile Polish */
  .hero-v2-container {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem) !important;
    line-height: 1.22 !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0.6rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Hero Search Centerpiece on Mobile */
  .hero-search-box-card {
    padding: 1.15rem 1rem !important;
    border-radius: 18px !important;
  }

  .search-category-tabs {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.4rem !important;
    width: 100% !important;
  }

  .search-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-category-tabs .tab-btn {
    flex-shrink: 0 !important;
    padding: 0.35rem 0.8rem !important;
    font-size: 0.775rem !important;
  }

  .hero-input-wrapper {
    padding: 0.45rem 0.5rem 0.45rem 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
  }

  .hero-search-input {
    font-size: 0.92rem !important;
  }

  .hero-search-submit-btn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.825rem !important;
    border-radius: 10px !important;
  }

  .hero-search-submit-btn kbd {
    display: none !important;
  }

  .ai-suggestions-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 0.25rem !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ai-suggestions-row::-webkit-scrollbar {
    display: none;
  }

  .ai-pill-btn {
    flex-shrink: 0 !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
  }

  /* 5 Questions Grid */
  .five-questions-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Omnibar Modal Mobile Fit */
  .omnibar-overlay {
    padding: 1.5rem 0.75rem 2rem !important;
  }

  .omnibar-modal {
    border-radius: var(--radius-lg) !important;
    max-height: 85vh !important;
  }

  .omnibar-input-box {
    padding: 0.85rem 1rem !important;
  }

  .omnibar-input {
    font-size: 0.95rem !important;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    width: min(320px, 85vw) !important;
  }

  /* Floating Ask AI Button & Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex !important;
  }

  .floating-ai-btn {
    bottom: 74px !important;
    right: 14px !important;
    padding: 0.45rem 0.8rem !important;
    font-size: 0.775rem !important;
  }

  /* 6-Column Semantic Footer on Tablet/Mobile */
  .footer-grid-6 {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  .footer-grid-6 > div:first-child {
    grid-column: 1 / -1 !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .responsive-grid-split {
    gap: 1.5rem !important;
  }

  .responsive-grid-2col {
    grid-template-columns: 1fr !important;
  }

  .journal-features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .ai-structured-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .ai-struct-box {
    padding: 0.6rem 0.65rem !important;
  }
}



