/* ==========================================================================
   ARTHCARD — Specialized Component Styles
   Comparison Matrix, Finder Wizard, Calculators, Changes & Admin
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Comparison Matrix Component
   -------------------------------------------------------------------------- */
.compare-container {
  margin: 2rem 0;
}

.compare-selector-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.compare-card-selector {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
  max-width: 100%;
}

.compare-card-selector select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  outline: none;
}

.compare-card-selector select:focus {
  border-color: var(--border-focus);
}

.compare-matrix-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.compare-matrix-table th,
.compare-matrix-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: top;
  font-size: 0.9rem;
}

.compare-matrix-table th:last-child,
.compare-matrix-table td:last-child {
  border-right: none;
}

.compare-header-row th {
  background: var(--bg-card);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  text-align: center;
}

.compare-feature-label-cell {
  width: 220px;
  min-width: 180px;
  background: var(--bg-subtle) !important;
  font-weight: 700;
  color: var(--text-main);
  text-align: left !important;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
}

.compare-header-row .compare-feature-label-cell {
  z-index: 20;
}

.compare-card-column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.compare-card-thumb {
  width: 100px;
  height: 62px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

.compare-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.compare-row-category-header td {
  background: var(--bg-main);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
}

.compare-cell-val {
  color: var(--text-main);
  line-height: 1.5;
}

.compare-highlight-diff {
  background: rgba(59, 130, 246, 0.05);
}

/* --------------------------------------------------------------------------
   2. Card Finder Wizard Component
   -------------------------------------------------------------------------- */
.finder-wizard-container {
  max-width: 860px;
  margin: 2rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.wizard-step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.wizard-step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.wizard-step-indicator.active .wizard-step-bubble {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.wizard-step-indicator.completed .wizard-step-bubble {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.wizard-step-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.finder-question-block {
  display: none;
}

.finder-question-block.active {
  display: block;
}

.finder-question-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.finder-question-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.finder-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.finder-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.finder-option-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.finder-option-card.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-glow);
}

.finder-option-card input[type="radio"],
.finder-option-card input[type="checkbox"] {
  accent-color: var(--primary);
}

.finder-option-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.finder-option-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.finder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Recommendation Results Box */
.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: center;
}

.recommendation-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.recommendation-rationale {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.recommendation-rationale strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   3. Financial Calculators Component
   -------------------------------------------------------------------------- */
.calculator-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.calculator-inputs-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  min-width: 0;
  width: 100%;
}

.calculator-results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  min-width: 0;
  width: 100%;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.calc-val-display {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.calc-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-subtle);
  accent-color: var(--primary);
  outline: none;
  cursor: pointer;
}

.calc-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.net-value-hero-box {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.net-value-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.net-value-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--emerald);
  line-height: 1;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-row.total {
  font-weight: 700;
  color: var(--text-main);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   4. Change Detection & What Changed Tracker
   -------------------------------------------------------------------------- */
.change-timeline {
  position: relative;
  max-width: 860px;
  margin: 2rem auto;
  padding-left: 2rem;
}

.change-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--border-subtle);
}

.change-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.change-node-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--primary-light);
}

.change-node-dot.high {
  border-color: var(--ruby);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.change-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.change-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.change-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.change-comparison-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.val-old {
  color: var(--ruby);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.val-new {
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   5. Admin Portal Component
   -------------------------------------------------------------------------- */
.admin-dashboard {
  margin: 2rem 0;
}

.admin-header-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.admin-stat-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.admin-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.35rem;
}

.admin-card-manager {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.admin-toolbar {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.admin-search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  width: 280px;
}

/* --------------------------------------------------------------------------
   6. Bank Intelligence Hubs & Offers Components (Phase 3)
   -------------------------------------------------------------------------- */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.bank-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bank-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bank-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-light);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   8. In-Page Sticky Jump Navigation Bar
   -------------------------------------------------------------------------- */
.card-jump-nav {
  position: sticky;
  top: calc(var(--header-height) + 6px);
  z-index: 95;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card-jump-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px;
}

.card-jump-nav-inner::-webkit-scrollbar {
  height: 3px;
}

.card-jump-nav-inner::-webkit-scrollbar-track {
  background: transparent;
}

.card-jump-nav-inner::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  background: transparent;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  flex-shrink: 0;
  white-space: nowrap;
}

.jump-link:hover {
  color: var(--text-main);
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.jump-link.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. Spend Illustration & Net Annual Value Table
   -------------------------------------------------------------------------- */
.spend-illustration-table {
  width: 100%;
}

.spend-illustration-table th {
  background: var(--bg-subtle);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.spend-illustration-table td {
  vertical-align: middle;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. Interactive Calculator Cross-Promotion Banner
   -------------------------------------------------------------------------- */
.card-calculator-cta-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.calculator-cta-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.calculator-cta-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-cta-info {
  flex: 1;
}

.calculator-cta-info h3,
.calculator-cta-info h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.calculator-cta-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Mobile Sticky Action Bar */
.mobile-card-actions-dock {
  display: none;
}

/* Directory Advanced Filter Styles */
.dir-quick-pill {
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.dir-quick-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-focus);
}
.dir-quick-pill.active {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: var(--primary) !important;
  color: var(--primary-light) !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .dir-quick-pill.active {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--primary) !important;
}

.dir-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 500;
}
.dir-filter-chip button {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1;
}
.dir-filter-chip button:hover {
  color: #ef4444;
}

/* Milestone Benefits Visualizer & Road Styles */
.milestone-node-card {
  transition: all var(--transition-normal);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  user-select: none;
}
.milestone-node-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}
.milestone-node-card.milestone-unlocked {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
[data-theme="light"] .milestone-node-card.milestone-unlocked {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
.milestone-node-card.milestone-unlocked .milestone-status-chip {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--emerald) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 700;
}

/* Quick Compare Drawer Styles */
.quick-compare-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10020;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.quick-compare-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quick-compare-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-bottom: none;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: 100%;
  max-width: 1150px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .quick-compare-drawer-overlay {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .quick-compare-drawer {
  border-color: #cbd5e1;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.14);
}

.quick-compare-drawer-overlay.active .quick-compare-drawer {
  transform: translateY(0);
}

.quick-compare-drawer-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.quick-compare-close-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.quick-compare-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.quick-compare-drawer-body {
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.quick-compare-differentiators-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.quick-compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition-fast);
}

.quick-compare-col:hover {
  border-color: var(--border-focus);
}

.quick-compare-field {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.quick-compare-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-compare-field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.quick-compare-field-val {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

/* My Saved Wallet Button & Drawer Styles */
.wallet-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary-light);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wallet-nav-btn:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: var(--primary);
  color: var(--text-main);
}

.wallet-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  line-height: 1;
}

.wallet-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10025;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.wallet-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wallet-drawer {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-highlight);
  width: 100%;
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}

[data-theme="light"] .wallet-drawer-overlay {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .wallet-drawer {
  border-left-color: #e2e8f0;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
}

.wallet-drawer-overlay.active .wallet-drawer {
  transform: translateX(0);
}

.wallet-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.wallet-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

#walletQuickAddSelect {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-overflow: ellipsis;
  overflow: hidden;
}

.wallet-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  transition: border-color var(--transition-fast);
}

.wallet-card-item:hover {
  border-color: var(--border-focus);
}

/* Quick "Which Card to Swipe?" Decision Tool Styles */
.quick-swipe-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
  position: relative;
}

.quick-swipe-container {
  max-width: 1200px;
  margin: 0 auto;
}

.quick-swipe-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.quick-swipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.quick-swipe-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

.quick-swipe-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-swipe-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-swipe-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  gap: 0.25rem;
}

.quick-swipe-cat-btn .cat-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.quick-swipe-cat-btn .cat-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.quick-swipe-cat-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.quick-swipe-cat-btn.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.quick-swipe-card-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.quick-swipe-card-slots > div {
  min-width: 0;
}

.quick-swipe-card-slots select.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.quick-swipe-slot-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.quick-swipe-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-swipe-preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-swipe-preset-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Decision Result Card */
.quick-swipe-decision-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.quick-swipe-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .quick-swipe-winner-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.quick-swipe-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.quick-swipe-bank-name {
  font-size: 0.88rem;
  color: var(--primary-light);
  font-weight: 600;
}

.quick-swipe-rate-callout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 1.25rem 0 0.85rem;
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.quick-swipe-rate-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--emerald);
  line-height: 1;
}

.quick-swipe-rate-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-swipe-reason-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.quick-swipe-alert-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #fcd34d;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

[data-theme="light"] .quick-swipe-alert-box {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

[data-theme="light"] .quick-swipe-controls-card,
[data-theme="light"] .quick-swipe-decision-card {
  box-shadow: var(--shadow-md);
}

.quick-swipe-runner-up {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quick-swipe-runner-up strong {
  color: var(--text-main);
}

@media (max-width: 900px) {
  .quick-swipe-layout {
    grid-template-columns: 1fr;
  }
  .quick-swipe-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-swipe-card-slots {
    grid-template-columns: 1fr;
  }
}

/* Responsive Component Adjustments */
@media (max-width: 768px) {
  .calculator-card-layout {
    grid-template-columns: 1fr !important;
    margin: 1.25rem 0 !important;
    gap: 1.25rem !important;
  }
  .calculator-inputs-panel,
  .calculator-results-panel {
    position: static !important;
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .recommendation-card {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
  }
  .admin-header-stats {
    grid-template-columns: 1fr 1fr;
  }
  .change-comparison-box {
    grid-template-columns: 1fr !important;
  }
  .bank-grid, .offers-grid, .category-grid {
    grid-template-columns: 1fr !important;
  }
  .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);
  }
  .quick-compare-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .eligibility-layout {
    grid-template-columns: 1fr !important;
  }
  .eligibility-inputs-panel {
    position: static !important;
    padding: 1.25rem 1rem !important;
  }
  .eligibility-card-item {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* --------------------------------------------------------------------------
   8. Blog & Editorial Guides Component Styles
   -------------------------------------------------------------------------- */
.blog-header {
  padding: 3rem 0 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.blog-categories-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-cat-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

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

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Single Article Layout */
.blog-article-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin: 2.5rem 0 4rem;
}

.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
}

.blog-toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.blog-toc-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
  display: block;
}

.blog-toc-link:hover {
  color: var(--primary-light);
}

.blog-main-content {
  flex: 1;
  min-width: 0;
}

.blog-takeaways-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.blog-takeaways-box h3 {
  font-size: 1.1rem;
  color: var(--emerald);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-takeaways-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.blog-prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-main);
}

.blog-prose p {
  margin-bottom: 1.4rem;
  color: #cbd5e1;
}

.blog-prose ul, .blog-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-prose li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.blog-prose strong {
  color: var(--text-main);
}

[data-theme="light"] .blog-prose p,
[data-theme="light"] .blog-prose li {
  color: #334155;
}

.callout-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.callout-box.info {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--primary-light);
  color: #bfdbfe;
}

.callout-box.warning {
  background: rgba(244, 63, 94, 0.08);
  border-left: 4px solid var(--ruby);
  color: #fecdd3;
}

.callout-box.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--emerald);
  color: #a7f3d0;
}

[data-theme="light"] .callout-box.info {
  background: #eff6ff;
  color: #1e3a8a;
}

[data-theme="light"] .callout-box.warning {
  background: #fff1f2;
  color: #9f1239;
}

[data-theme="light"] .callout-box.tip {
  background: #ecfdf5;
  color: #065f46;
}

.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.92rem;
}

.table-responsive th {
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.blog-calc-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .blog-article-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100%;
    position: static;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Card Comparison Print & PDF Export Styles
   ========================================================================== */
.compare-print-header {
  display: none;
}

@media print {
  /* Hide non-essential site chrome, navigation, footers, and interactive buttons */
  header,
  footer,
  nav,
  .site-header,
  .footer,
  .breadcrumbs,
  .theme-toggle,
  .btn,
  button,
  .js-remove-slot,
  .compare-selector-bar,
  #quickComparisonSelector,
  #quickComparisonViewBtn,
  .quick-comparison-bar,
  .comparison-cat-filters,
  #popular-comparisons,
  #compareSpendRange,
  .quick-compare-dock,
  .quick-compare-drawer,
  #arthcalculatorLinkingHub,
  .no-print {
    display: none !important;
  }

  /* Force light theme colors for clean paper printing / PDF saving */
  :root,
  html,
  body {
    --bg-main: #ffffff !important;
    --bg-surface: #ffffff !important;
    --bg-card: #f8fafc !important;
    --bg-subtle: #f1f5f9 !important;
    --text-main: #0f172a !important;
    --text-muted: #334155 !important;
    --text-dim: #64748b !important;
    --border-subtle: #cbd5e1 !important;
    --border-card: #cbd5e1 !important;
    --emerald: #047857 !important;
    --ruby: #be123c !important;
    --gold: #b45309 !important;
    --primary: #2563eb !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5mm !important;
    margin: 0 !important;
  }

  .section,
  .section-tight {
    padding: 0 !important;
    margin: 0 0 10pt 0 !important;
    border: none !important;
    background: transparent !important;
  }

  /* Print-only authoritative header */
  .compare-print-header {
    display: block !important;
    border-bottom: 2px solid #0f172a !important;
    padding: 0 0 8pt 0 !important;
    margin-bottom: 12pt !important;
  }

  .compare-print-brand {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .compare-print-title {
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 4pt 0 0 0 !important;
  }

  .compare-print-meta {
    font-size: 8.5pt !important;
    color: #475569 !important;
    line-height: 1.4 !important;
  }

  /* Spend Simulator Banner in print */
  #compareSpendSimulatorBanner {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 4pt !important;
    padding: 8pt 10pt !important;
    margin-bottom: 12pt !important;
    page-break-inside: avoid !important;
  }

  /* Expand comparison table to full page width without clipping */
  .compare-matrix-wrapper,
  .table-responsive {
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    margin-bottom: 14pt !important;
  }

  .compare-matrix-table,
  .data-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
  }

  .compare-matrix-table tr,
  .data-table tr {
    page-break-inside: avoid !important;
  }

  .compare-matrix-table th,
  .compare-matrix-table td,
  .data-table th,
  .data-table td {
    padding: 6pt 8pt !important;
    font-size: 8.5pt !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    vertical-align: top !important;
  }

  .compare-feature-label-cell {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
    width: 130pt !important;
    position: static !important;
    box-shadow: none !important;
    font-size: 8pt !important;
  }

  .compare-header-row th {
    background: #f8fafc !important;
    position: static !important;
    border-bottom: 2px solid #94a3b8 !important;
  }

  .compare-row-category-header td {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 8.5pt !important;
    letter-spacing: 0.05em !important;
    padding: 5pt 8pt !important;
    page-break-after: avoid !important;
  }

  .compare-card-thumb {
    width: 50pt !important;
    height: 32pt !important;
    border: 1px solid #cbd5e1 !important;
  }

  .badge {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 7pt !important;
    padding: 1pt 4pt !important;
  }

  /* Clean up images and cards */
  img {
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   9. Credit Card Eligibility & Approval Odds Estimator Styles
   -------------------------------------------------------------------------- */
.eligibility-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.eligibility-inputs-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  min-width: 0;
  width: 100%;
}

.eligibility-field-group {
  margin-bottom: 1.35rem;
}

.eligibility-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.eligibility-slider-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-light);
}

.eligibility-pill-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.eligibility-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.eligibility-pill-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.eligibility-pill-btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.eligibility-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

.eligibility-summary-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.eligibility-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--emerald);
  line-height: 1;
}

.eligibility-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  transition: all var(--transition-fast);
}

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

.eligibility-odds-high {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.eligibility-odds-mod {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.eligibility-odds-guaranteed {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

[data-theme="light"] .eligibility-odds-high {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

[data-theme="light"] .eligibility-odds-mod {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

[data-theme="light"] .eligibility-odds-guaranteed {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .eligibility-layout {
    grid-template-columns: 1fr;
  }
  .eligibility-inputs-panel {
    position: static;
  }
  .eligibility-card-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Universal Filter, Pill & Preset Button Active Highlighting
   Guarantees that active filter buttons remain prominently highlighted
   across all themes and devices.
   -------------------------------------------------------------------------- */
.btn.active,
.btn-secondary.active,
.btn-primary.active,
.js-forex-preset.active,
.js-emi-preset.active,
.js-rupay-preset.active,
.js-fuel-preset.active,
.js-wallet-preset.active,
.js-tp-preset.active,
.offer-filter-cat.active,
.js-eligibility-filter.active,
.js-comp-filter.active,
.js-airport-filter.active,
.js-calc-filter.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn.active,
[data-theme="light"] .btn-secondary.active,
[data-theme="light"] .btn-primary.active,
[data-theme="light"] .js-forex-preset.active,
[data-theme="light"] .js-emi-preset.active,
[data-theme="light"] .js-rupay-preset.active,
[data-theme="light"] .js-fuel-preset.active,
[data-theme="light"] .js-wallet-preset.active,
[data-theme="light"] .js-tp-preset.active,
[data-theme="light"] .offer-filter-cat.active,
[data-theme="light"] .js-eligibility-filter.active,
[data-theme="light"] .js-comp-filter.active,
[data-theme="light"] .js-airport-filter.active,
[data-theme="light"] .js-calc-filter.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
  font-weight: 700 !important;
}

/* Transaction Channel Radio Active Highlighting */
.forex-channel-label {
  transition: all 0.2s ease;
}
.forex-channel-label.active,
.forex-channel-label:has(input:checked) {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.14) !important;
  box-shadow: 0 0 0 1px #3b82f6 inset, 0 2px 10px rgba(59, 130, 246, 0.15) !important;
}
[data-theme="light"] .forex-channel-label.active,
[data-theme="light"] .forex-channel-label:has(input:checked) {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb inset, 0 2px 10px rgba(37, 99, 235, 0.12) !important;
}

/* Quick Swipe Homepage Category Button Light Theme Contrast */
[data-theme="light"] .quick-swipe-cat-btn.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

/* Eligibility Pill Active Highlighting (Dark & Light Theme) */
.eligibility-pill-btn.active {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3) !important;
}
[data-theme="light"] .eligibility-pill-btn.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

/* Directory Grid Pagination */
#dirCardsContainer[data-paginated="initial"] .card-item:nth-child(n+37) {
  display: none;
}

.dir-hidden-page {
  display: none !important;
}

.dir-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.dir-load-more-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .dir-load-more-wrap .btn {
    width: 100%;
    max-width: 320px;
  }
}
