/* ==========================================================================
   ARTHCARD — India's Credit Card Platform
   Core Design System & Global Styles
   ========================================================================== */

:root {
  /* Color Palette - Executive Financial Theme */
  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1c2940;
  --bg-subtle: #1f293d;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border: var(--border-subtle);
  --border-focus: #3b82f6;
  --border-highlight: rgba(59, 130, 246, 0.4);

  --text-main: #f8fafc;
  --text-muted: #a3b3c6;
  --text-dim: #8798ae;
  --text-inverse: #0a0e17;

  /* Brand Accents */
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --blue: var(--primary-light);
  --primary-glow: rgba(59, 130, 246, 0.25);
  
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --gold: #f59e0b;
  --amber: var(--gold);
  --gold-bg: rgba(245, 158, 11, 0.12);
  --gold-border: rgba(245, 158, 11, 0.3);

  --ruby: #fb7185;
  --rose: var(--ruby);
  --ruby-bg: rgba(244, 63, 94, 0.12);
  --ruby-border: rgba(244, 63, 94, 0.3);

  --purple: #a78bfa;
  --purple-bg: rgba(139, 92, 246, 0.12);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --max-width: 1240px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.2);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Executive Light Theme Overrides (Single-Click Switcher)
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.96);

  --border-subtle: #e2e8f0;
  --border: var(--border-subtle);
  --border-focus: #2563eb;
  --border-highlight: #bfdbfe;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #4e5d71;
  --text-inverse: #ffffff;

  --primary: #2563eb;
  --primary-light: #1d4ed8;
  --blue: var(--primary-light);
  --primary-glow: #eff6ff;

  --emerald: #047857;
  --emerald-light: #065f46;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --gold: #b45309;
  --amber: var(--gold);
  --gold-bg: #fffbeb;
  --gold-border: #fde68a;

  --ruby: #be123c;
  --rose: var(--ruby);
  --ruby-bg: #fff1f2;
  --ruby-border: #fecdd3;

  --purple: #7c3aed;
  --purple-bg: #faf5ff;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.1);
}

/* Light Theme Element & Typography Overrides */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .gradient-text,
[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-badge {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

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

[data-theme="light"] .stat-label {
  color: #475569;
}

[data-theme="light"] .hero-glow-bg {
  opacity: 0.15;
}

[data-theme="light"] .card-item,
[data-theme="light"] .calc-card,
[data-theme="light"] .category-card,
[data-theme="light"] .bank-card,
[data-theme="light"] .offer-card,
[data-theme="light"] .change-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .card-item:hover,
[data-theme="light"] .calc-card:hover,
[data-theme="light"] .category-card:hover,
[data-theme="light"] .bank-card:hover,
[data-theme="light"] .offer-card:hover,
[data-theme="light"] .change-card:hover {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .card-key-highlight {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .card-visual,
[data-theme="light"] .card-large-visual {
  background: linear-gradient(145deg, #f8fafc, #edf2f7);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Light Theme High-Contrast Badges */
[data-theme="light"] .badge-blue,
[data-theme="light"] .badge-primary {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700;
}

[data-theme="light"] .badge-emerald {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700;
}

[data-theme="light"] .badge-gold,
[data-theme="light"] .badge-amber {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 700;
}

[data-theme="light"] .badge-ruby,
[data-theme="light"] .badge-rose {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 700;
}

[data-theme="light"] .badge-purple {
  background: #faf5ff !important;
  color: #6d28d9 !important;
  border: 1px solid #e9d5ff !important;
  font-weight: 700;
}

[data-theme="light"] .badge-outline {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600;
}

[data-theme="light"] .badge-secondary {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600;
}

[data-theme="light"] .badge-verified {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700;
}

[data-theme="light"] .calc-tag.cashback {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}
[data-theme="light"] .calc-tag.surcharge {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}
[data-theme="light"] .calc-tag.miles {
  color: #0369a1;
  border-color: #bae6fd;
  background: #f0f9ff;
}
[data-theme="light"] .calc-tag.forex,
[data-theme="light"] .calc-tag.rupay {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
[data-theme="light"] .calc-tag.emi {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}
[data-theme="light"] .calc-tag.fuel {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}
[data-theme="light"] .calc-tag.lounge {
  color: #6d28d9;
  border-color: #e9d5ff;
  background: #faf5ff;
}

/* Light Theme Card Detail Hero, Sidebar & Preview Box */
[data-theme="light"] .card-detail-hero {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .card-preview-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .sidebar-fee-label {
  color: #64748b !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

[data-theme="light"] .sidebar-fee-value {
  color: #059669 !important;
  font-weight: 800;
}

[data-theme="light"] .sidebar-fee-subtext {
  color: #64748b !important;
  font-weight: 500;
}

[data-theme="light"] .sidebar-source-note {
  color: #64748b !important;
}

/* Light Theme Key Highlights Callout */
[data-theme="light"] .card-highlights-box {
  background: #f0f7ff !important;
  border: 1px solid #bfdbfe !important;
  border-left: 4px solid #2563eb !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
}

[data-theme="light"] .card-highlights-title {
  color: #1e40af !important;
  font-weight: 800;
  letter-spacing: 0.05em;
}

[data-theme="light"] .card-highlights-list li {
  color: #1e293b !important;
  font-weight: 500;
}

[data-theme="light"] .card-highlights-list li::before {
  color: #2563eb !important;
  font-weight: 700;
}

/* Light Theme In-Page Sticky Jump Navigation */
[data-theme="light"] .card-jump-nav {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .jump-link {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 0.32rem 0.65rem !important;
}

[data-theme="light"] .jump-link:hover {
  color: #1e293b !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .jump-link.active {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  font-weight: 700 !important;
}

/* Light Theme At-a-Glance Summary Cards */
[data-theme="light"] .glance-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .glance-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .glance-label {
  color: #64748b !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  font-size: 0.74rem !important;
}

[data-theme="light"] .glance-value {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .glance-value.emerald {
  color: #059669 !important;
}

[data-theme="light"] .glance-subtext {
  color: #475569 !important;
  font-weight: 500;
}

/* Light Theme Interactive Calculator Box */
[data-theme="light"] .card-calculator-interactive-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .calc-range-slider {
  background: #e2e8f0 !important;
}

/* Light Theme Pros, Cons & Verdict Boxes */
[data-theme="light"] .pros-box {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .pros-box h3 {
  color: #065f46 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .cons-box {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
}

[data-theme="light"] .cons-box h3 {
  color: #9f1239 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .pros-list li,
[data-theme="light"] .cons-list li {
  color: #1e293b !important;
}

/* Light Theme Breadcrumbs */
[data-theme="light"] .breadcrumbs {
  color: #64748b !important;
}

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

[data-theme="light"] .breadcrumbs a:hover {
  color: #2563eb !important;
}

[data-theme="light"] .breadcrumbs .current {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Light Theme Official Verification Banner */
[data-theme="light"] .card-source-verification-note {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #059669 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

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

/* Light Theme Button Adjustments */
[data-theme="light"] .btn-secondary {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control,
.calc-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.calc-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

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

[data-theme="light"] .data-table {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

[data-theme="light"] .data-table th,
[data-theme="light"] .compare-header-row th {
  background: #f8fafc;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
}

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

[data-theme="light"] .compare-feature-label-cell {
  background: #f8fafc !important;
  color: #0f172a;
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .data-table tr:hover td {
  background: #f1f5f9;
}

[data-theme="light"] a:hover {
  color: #1e40af;
}

[data-theme="light"] .search-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .search-modal {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .compare-dock {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .search-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .search-result-item.selected {
  background: #f1f5f9;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 10050;
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  word-break: break-word;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #60a5fa;
}

ul, ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.35rem;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Global Navigation */
.navbar {
  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-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1360px;
  padding: 0 1.5rem;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-symbol {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap;
}

.logo-text span {
  color: var(--emerald);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.35rem;
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.has-dropdown:hover > .nav-link,
.has-dropdown:focus-within > .nav-link,
.has-dropdown.is-open > .nav-link {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

/* Dropdown Chevrons & Badges */
.dropdown-chevron {
  transition: transform var(--transition-fast);
  stroke: currentColor;
  opacity: 0.65;
  margin-top: 1px;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown:focus-within .dropdown-chevron,
.has-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 0.35rem;
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 120;
  padding: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
}

[data-theme="light"] .dropdown-menu {
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.14), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Open States */
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Invisible hover bridge to prevent menu from flickering on cursor transition */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Menu Sizes */
.dropdown-cards {
  width: 650px;
}

.dropdown-tools {
  width: 760px;
}

.dropdown-research {
  width: 440px;
}

/* Dropdown Grid */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.dropdown-cards .dropdown-grid {
  grid-template-columns: 1.06fr 1fr;
}

.dropdown-tools .dropdown-grid {
  grid-template-columns: 1fr 1.04fr;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dropdown-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
}

.dropdown-col-side {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  justify-content: flex-start;
}

/* Dropdown Item */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-subtle);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--primary-light);
}

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

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.dropdown-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Compact Filter Items */
.dropdown-item-compact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item-compact .badge {
  width: 78px;
  min-width: 78px;
  justify-content: center;
  text-align: center;
  padding: 0.24rem 0.4rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-item-compact > span:last-child {
  white-space: nowrap;
}

.dropdown-item-compact:hover {
  background: var(--bg-subtle);
  color: var(--primary-light);
}

/* Tools 2-column or list grid */
.dropdown-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.22rem;
}

.dropdown-calc-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.44rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-calc-link > span:last-child {
  white-space: nowrap;
}

.dropdown-calc-link:hover {
  background: var(--bg-subtle);
  color: var(--primary-light);
}

.calc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.24rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 74px;
  min-width: 74px;
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-tag.cashback {
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.calc-tag.surcharge {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.calc-tag.miles {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.calc-tag.forex {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

.calc-tag.emi {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.calc-tag.rupay {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.calc-tag.fuel {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.08);
}

.calc-tag.lounge {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
  background: rgba(192, 132, 252, 0.08);
}

/* Dropdown Footer */
.dropdown-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-footer-link:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
  color: var(--primary-light);
}

/* Mobile Nav Drawer Sections */
.mobile-nav-quick {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-nav-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  padding: 0 0.25rem;
}

.mobile-nav-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--bg-subtle);
  color: var(--primary-light);
}

.mobile-nav-link-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mobile-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-nav-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-nav-footer-cta {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-light);
  font-weight: 700;
}
[data-theme="light"] .mobile-nav-footer-cta {
  background: #eff6ff;
  color: #1d4ed8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.search-trigger-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-trigger-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-focus);
  color: var(--text-main);
}

.search-key-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

/* Dark mode (default): show Sun icon to switch to Light mode */
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}

/* Light mode: show Moon icon to switch to Dark mode */
[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--bg-main);
  padding: 1rem 1rem 2.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 1rem;
  z-index: 99999;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-main);
}

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

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

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

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-blue {
  background: var(--primary-glow);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-emerald {
  background: var(--emerald-bg);
  color: #6ee7b7;
  border: 1px solid var(--emerald-border);
}

.badge-gold,
.badge-amber {
  background: var(--gold-bg);
  color: #fde68a;
  border: 1px solid var(--gold-border);
}

.badge-ruby,
.badge-rose {
  background: var(--ruby-bg);
  color: #fda4af;
  border: 1px solid var(--ruby-border);
}

.badge-purple {
  background: var(--purple-bg);
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-outline,
.badge-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
}

.hero-title {
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Category Cards Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  background: var(--bg-card);
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.category-link-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Financial Calculator & Hub Cards */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
}

.calc-card:hover {
  background: var(--bg-card);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.calc-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.calc-card-badge {
  width: fit-content;
  margin-bottom: 0.85rem;
}

.calc-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.3;
}

.calc-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.calc-card .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: auto;
}

/* Credit Card Item Card */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spend-card-body {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .spend-card-body {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

.card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.card-item:hover {
  background: var(--bg-card);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-item-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
}

.card-visual {
  width: 90px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-item-meta {
  flex-grow: 1;
}

.card-bank-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.card-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-item-title a {
  color: var(--text-main);
  text-decoration: none;
}

.card-item-title a:hover {
  color: var(--primary-light);
}

.card-key-highlight {
  background: var(--bg-main);
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-specs-matrix {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.86rem;
  flex-grow: 1;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-cell-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.spec-cell-val {
  font-weight: 700;
  color: var(--text-main);
}

.spec-cell-val.free {
  color: var(--emerald);
}

.card-item-footer {
  padding: 1rem 1.5rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-compare-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.card-compare-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb,
ol.breadcrumbs,
ul.breadcrumbs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.breadcrumbs li,
.breadcrumb li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.breadcrumbs .separator {
  color: var(--text-dim);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Card Detail Page */
.card-detail-hero {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.6) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: clip;
}

.card-detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.card-detail-layout > main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.card-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  min-width: 0;
  max-width: 100%;
}

.card-preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.card-large-visual {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-large-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Detail Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: top;
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Pros and Cons Box */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-box, .cons-box {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.pros-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cons-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.pros-box h3 { color: #34d399; margin-bottom: 1rem; }
.cons-box h3 { color: #fb7185; margin-bottom: 1rem; }

.pros-list, .cons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pros-list li, .cons-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

.cons-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--ruby);
  font-weight: 800;
}

/* Verification Provenance Bar (Legacy / Backward Compatibility) */
.provenance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.provenance-info {
  display: flex;
  flex-direction: column;
}

.provenance-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provenance-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Bank-Branded Card Visual Placeholder (Strictly Bank Name, Bank Logo/Theme, Card Name) */
.card-visual-placeholder {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.4rem 1.6rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.card-visual-placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Bank-Specific Theme Palettes */
.card-theme-hdfc {
  background: linear-gradient(135deg, #002855 0%, #004c8f 60%, #001a38 100%) !important;
}
.card-theme-aubank {
  background: linear-gradient(135deg, #361259 0%, #5c1869 60%, #200839 100%) !important;
}
.card-theme-axis {
  background: linear-gradient(135deg, #670b34 0%, #97144d 60%, #450320 100%) !important;
}
.card-theme-icici {
  background: linear-gradient(135deg, #7f1d1d 0%, #b02a30 60%, #450a0a 100%) !important;
}
.card-theme-sbi {
  background: linear-gradient(135deg, #0a3d91 0%, #155799 60%, #002244 100%) !important;
}
.card-theme-kotak {
  background: linear-gradient(135deg, #8b0000 0%, #ed1c24 60%, #5c0000 100%) !important;
}
.card-theme-idfc {
  background: linear-gradient(135deg, #5c0914 0%, #8d1424 60%, #3d050d 100%) !important;
}
.card-theme-indusind {
  background: linear-gradient(135deg, #4a0a10 0%, #7a111b 60%, #2d0408 100%) !important;
}
.card-theme-amex {
  background: linear-gradient(135deg, #002663 0%, #003da5 60%, #001333 100%) !important;
}
.card-theme-default {
  background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #0f172a 100%) !important;
}

.card-placeholder-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-placeholder-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-placeholder-bank {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.card-placeholder-body {
  margin-top: auto;
  padding-top: 1.5rem;
}

.card-placeholder-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Compact Card Visual for Grid & Listings */
.card-visual-compact {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.card-compact-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-compact-bank {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-compact-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Card Header Badges */
.card-header-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Card Lead Description */
.card-lead-description {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* Card Highlights Box */
.card-highlights-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.card-highlights-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.65rem;
}

.card-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-highlights-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.card-highlights-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-size: 0.85rem;
}

/* At-a-Glance Summary Grid */
.at-a-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

@media (max-width: 960px) {
  .at-a-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .at-a-glance-grid {
    grid-template-columns: 1fr;
  }
}

.glance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.glance-card:hover {
  border-color: var(--border-highlight);
}

.glance-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.glance-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.glance-value.emerald {
  color: var(--emerald);
}

.glance-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.35;
}

/* Card Visitor Source Note */
.card-source-verification-note {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
}

.source-verification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  flex: 1;
  min-width: 260px;
}

.source-verification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.source-verification-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Sidebar Specific Styles */
.sidebar-fee-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.sidebar-fee-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.sidebar-fee-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.sidebar-source-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
  text-align: center;
}

/* Search Modal Overlay */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.25rem;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.search-input-field {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.15rem;
  outline: none;
}

.search-input-field::placeholder {
  color: var(--text-dim);
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--bg-card);
  outline: 1px solid var(--border-focus);
}

/* Compare Sticky Bottom Dock */
.compare-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(250%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 10005;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
  max-width: 95vw;
}

.compare-dock.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dock-header {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
}

.dock-card-slots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.dock-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.dock-chip-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
}

.dock-chip-remove:hover {
  color: var(--ruby);
}

.dock-clear-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dock-clear-btn:hover {
  color: var(--ruby);
  border-color: var(--ruby);
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-disclaimer-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Comprehensive Mobile-First & Responsive Media Queries
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1080px) */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .card-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-detail-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets Portrait & Handheld Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  html, body {
    max-width: 100vw;
    overflow-x: clip;
  }

  /* Typography Fluid Scaling */
  h1, .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem) !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem) !important;
    line-height: 1.3 !important;
  }
  h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
  }

  /* Containers & Padding */
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .section-tight {
    padding: 1.5rem 0;
  }

  /* Header & Navigation Actions */
  .nav-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  /* On mobile top bar, collapse search text to an icon; keep label inside mobile menu drawer */
  .navbar .search-trigger-btn span {
    display: none !important;
  }
  .navbar .search-trigger-btn {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .mobile-nav .search-trigger-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 42px !important;
    justify-content: flex-start !important;
    padding: 0 0.85rem !important;
    background: var(--bg-card) !important;
    border-radius: 10px !important;
  }
  .mobile-nav .search-trigger-btn span {
    display: inline !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-nav-wallet-btn {
    height: 42px !important;
    padding: 0 0.85rem !important;
    border-radius: 10px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .wallet-nav-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    height: 38px;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 1.15rem;
    padding: 0 !important;
    line-height: 1;
  }

  /* Mobile Nav Drawer Full Polish */
  .mobile-nav {
    z-index: 99999 !important;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding: 0.9rem 1rem 2.75rem;
  }
  body.mobile-menu-open {
    overflow: hidden !important;
  }

  /* Hero Section */
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-glow-bg {
    width: 100%;
    max-width: 100vw;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
    margin-bottom: 2rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Credit Cards Grid */
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  /* Forms & Inputs: enforce 16px to prevent iOS Safari auto-zoom */
  input[type="text"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Table Horizontal Scrolling & Compact Cell Padding */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
  }
  .data-table th,
  .table-responsive th {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }
  .data-table td,
  .table-responsive td {
    padding: 0.7rem 0.75rem !important;
    font-size: 0.84rem !important;
  }

  /* Comparison Matrix on Mobile (Tablets & Phones) */
  .compare-matrix-wrapper {
    border-radius: var(--radius-lg);
  }
  .compare-feature-label-cell {
    width: 115px !important;
    min-width: 110px !important;
    max-width: 120px !important;
    font-size: 0.7rem !important;
    padding: 0.65rem 0.5rem !important;
    letter-spacing: 0.02em;
  }
  .compare-matrix-table th,
  .compare-matrix-table td {
    padding: 0.75rem 0.65rem !important;
    font-size: 0.82rem !important;
    min-width: 155px;
  }
  .compare-card-thumb {
    width: 72px;
    height: 45px;
  }
  .compare-card-column-header h3 {
    font-size: 0.88rem !important;
  }

  /* Fixed Mobile Bottom Dock on Card Pages */
  .mobile-card-actions-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  }
  [data-theme="light"] .mobile-card-actions-dock {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
  }
  body:has(.mobile-card-actions-dock) {
    padding-bottom: 74px !important;
  }
  body:has(.mobile-card-actions-dock) .footer {
    padding-bottom: 5.5rem !important;
  }

  /* Compare Dock on Mobile */
  .compare-dock {
    width: calc(100% - 1.5rem);
    max-width: 440px;
    left: 50% !important;
    transform: translateX(-50%) translateY(120%);
    bottom: 1rem;
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    z-index: 10005;
  }
  .compare-dock.visible {
    transform: translateX(-50%) translateY(0);
  }
  body:has(.mobile-card-actions-dock) .compare-dock {
    bottom: 4.75rem;
  }
  .dock-actions {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .dock-actions .dock-compare-link {
    flex: 1;
    text-align: center;
  }

  /* Search Modal Backdrop */
  .search-modal-backdrop {
    padding: 1.25rem 0.75rem;
    align-items: flex-start;
  }
  .search-results-list {
    max-height: calc(100vh - 180px);
  }

  /* Footer Grid Stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .at-a-glance-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Compact Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }

  /* Header Branding */
  .logo-text {
    font-size: 1.15rem;
  }
  .logo-symbol {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  /* Card Item Mobile Structure */
  .card-item-header {
    padding: 1rem 1rem 0.75rem;
    gap: 0.75rem;
  }
  .card-visual {
    width: 72px;
    height: 45px;
  }
  .card-item-title {
    font-size: 1.05rem;
  }
  .card-key-highlight {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
  .card-specs-matrix {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    font-size: 0.82rem;
  }
  .card-item-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .card-item-footer .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Calculator Panels Mobile */
  .calculator-inputs-panel,
  .calculator-results-panel {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .calculator-card-layout {
    margin: 1.25rem 0 !important;
    gap: 1.25rem !important;
  }

  /* Quick Swipe / Decision Helper */
  .quick-swipe-controls-card,
  .quick-swipe-decision-card {
    padding: 1.25rem 1rem !important;
  }
  .quick-swipe-cats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }
  .quick-swipe-cat-btn {
    padding: 0.5rem 0.25rem !important;
  }
  .quick-swipe-card-slots {
    grid-template-columns: 1fr !important;
  }

  /* Drawers */
  .quick-compare-drawer-header,
  .wallet-drawer-header {
    padding: 1rem 1.15rem;
  }
  .quick-compare-drawer-body,
  .wallet-drawer-body {
    padding: 1.15rem 1rem 2rem;
  }

  /* Breadcrumbs Clean Wrap */
  .breadcrumbs {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  /* Badges & Tags */
  .badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  /* Button Touch Targets */
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }
  .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Narrow Phone Top Navbar Actions (<= 520px) */
@media (max-width: 520px) {
  .navbar .wallet-nav-btn > span:not(.wallet-badge) {
    display: none !important;
  }
  .navbar .wallet-nav-btn {
    padding: 0 0.55rem !important;
    gap: 0.35rem !important;
    height: 36px !important;
  }
  .navbar .theme-toggle-btn,
  .navbar .search-trigger-btn,
  .navbar .mobile-menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}

/* ==========================================================================
   Homepage Search, Discovery Hubs, Symmetric Calculators Grid & FAQs
   ========================================================================== */
.hero-search-wrap {
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.hero-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hero-search-bar:hover,
.hero-search-bar:focus-visible {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
  color: var(--text-main);
  outline: none;
}

.hero-search-placeholder {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.85rem;
}

.hero-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-quick-chip:hover {
  border-color: var(--border-focus);
  color: var(--primary-light);
  background: var(--bg-card);
  transform: translateY(-1px);
}

[data-theme="light"] .hero-search-bar {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .hero-quick-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .hero-quick-chip:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.category-card-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.home-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-discovery-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .home-discovery-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}

.home-discovery-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.home-discovery-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.home-pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  align-content: flex-start;
}

.home-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.home-pill-link:hover {
  border-color: var(--border-focus);
  color: var(--primary-light);
}

[data-theme="light"] .home-pill-link {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .home-pill-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.home-pill-count {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
}

.home-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.home-compare-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-compare-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .home-compare-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.home-research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-research-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.home-research-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

[data-theme="light"] .home-research-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.home-calcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: 1.25rem;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.home-faq-item[open] {
  border-color: var(--border-highlight);
}

[data-theme="light"] .home-faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

.home-faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  cursor: pointer;
}

.home-faq-summary::-webkit-details-marker {
  display: none;
}

.home-faq-summary h3 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.home-faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.home-faq-item[open] .home-faq-chevron {
  transform: rotate(45deg);
}

.home-faq-answer {
  padding: 0 1.35rem 1.25rem;
}

.home-faq-answer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .home-discovery-grid {
    grid-template-columns: 1fr;
  }
  .home-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-search-bar {
    padding: 0.55rem 0.6rem 0.55rem 0.9rem;
    font-size: 0.88rem;
  }
  .hero-search-bar .search-key-badge {
    display: none;
  }
  .home-compare-grid,
  .home-research-grid {
    grid-template-columns: 1fr;
  }
}
