/* ============================================================
   compare.css  –  Credit Card & Savings Comparison Pages
   Holographic glass theme matching celestial library bg
   ============================================================ */

/* ── Page Layout ── */
.compare-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #060a12;
  color: #e8e0d4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background Layer ── */
.compare-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.compare-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.10) 0%,
    rgba(6, 10, 18, 0.20) 30%,
    rgba(6, 10, 18, 0.40) 70%,
    rgba(6, 10, 18, 0.55) 100%
  );
}

/* ── Main Content Container ── */
.compare-main {
  position: relative;
  z-index: 1;
  width: min(94%, 1200px);
  margin: 0 auto;
  padding: 100px 0 60px;
}

/* ── Hero Section ── */
.compare-hero {
  text-align: center;
  margin-bottom: 36px;
  padding: 48px 32px;
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.compare-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #c9a96e;
  margin: 0 0 12px;
  letter-spacing: 1px;
  line-height: 1.25;
  position: relative;
}

.compare-hero .hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(232, 224, 212, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
}

/* ============================================================
   MODE TOGGLE — Rewards ↔ Balance Transfer
   ============================================================ */

/* ── Selector Combo Wrapper ── */
.selector-combo {
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Region Toggle ── */
.region-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.region-toggle-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 28px;
  border: 1px solid rgba(120, 220, 255, 0.1);
  background: rgba(10, 20, 35, 0.4);
  color: rgba(224, 248, 255, 0.6);
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.region-toggle-option:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(10, 20, 35, 0.6);
}

.region-toggle-option.active {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.15) 0%,
    rgba(20, 184, 210, 0.08) 100%
  );
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

.region-flag-svg {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  filter: grayscale(80%) opacity(0.5);
  transition: all 0.3s ease;
}

.region-toggle-option:hover .region-flag-svg {
  filter: grayscale(20%) opacity(0.9);
}

.region-toggle-option.active .region-flag-svg {
  filter: grayscale(0%) opacity(1);
}

.region-label {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: inherit;
  text-transform: uppercase;
}

.region-toggle-option.active .region-label {
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}


/* ── Mode Toggle ── */
.mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 5px 0;
  position: relative;
  overflow: hidden;
}

.mode-toggle-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(232, 224, 212, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
  font-family: inherit;
}

.mode-toggle-option:hover:not(.active) {
  color: rgba(232, 224, 212, 0.8);
  background: rgba(34, 211, 238, 0.04);
}

.mode-toggle-option.active {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.12) 0%,
    rgba(20, 184, 210, 0.08) 100%
  );
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.12),
    inset 0 0 12px rgba(34, 211, 238, 0.06);
}

.mode-toggle-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mode-toggle-desc {
  font-size: 0.72rem;
  opacity: 0.6;
  line-height: 1.3;
}

.mode-toggle-option.active .mode-toggle-desc {
  opacity: 0.8;
}

.mode-toggle-option.active .mode-toggle-title svg {
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.6));
}

/* ── Category Filter Pills ── */
.category-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}

.category-bar.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  pointer-events: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.15);
  border-radius: 40px;
  color: rgba(232, 224, 212, 0.8);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.cat-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.cat-pill:hover {
  border-color: rgba(120, 220, 255, 0.4);
  color: #fff;
  background: rgba(10, 15, 25, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.15);
}

.cat-pill.active {
  border-color: rgba(34, 211, 238, 0.55);
  color: #fff;
  background: rgba(34, 211, 238, 0.10);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18), inset 0 0 12px rgba(34, 211, 238, 0.06);
}

.cat-pill.active svg {
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.6));
}

/* ============================================================
   FINANCE PANEL — Grouped Inputs
   ============================================================ */
.spending-panel {
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Finance Bar — compact inline layout */
.finance-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.finance-bar-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.finance-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.finance-inline label {
  font-size: 0.7rem;
  color: rgba(232, 224, 212, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  margin: 0;
}

.finance-input-wrap {
  display: flex;
  align-items: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 220, 255, 0.15);
  border-radius: 6px;
  padding: 5px 8px;
  transition: border-color 0.3s ease;
}

.finance-input-wrap:focus-within {
  border-color: rgba(120, 220, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.finance-dollar {
  color: rgba(232, 224, 212, 0.3);
  font-size: 0.9rem;
}

/* Finance Input Grid */
.finance-input {
  width: 80px;
  padding: 2px 0;
  background: transparent;
  border: none;
  color: #f0c070;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  outline: none;
}

.finance-input::-webkit-inner-spin-button,
.finance-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.finance-input { -moz-appearance: textfield; }

.finance-input::placeholder {
  color: rgba(232, 224, 212, 0.2);
}

/* Net Burn Badge */
.burn-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(232, 224, 212, 0.5);
  white-space: nowrap;
}

.burn-badge strong {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.8rem;
}

.burn-badge.positive strong {
  color: #10b981;
}

.burn-badge.positive {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* ── Breakdown Number Input ── */
.bk-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-num {
  width: 42px;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 220, 255, 0.15);
  border-radius: 4px;
  color: #f0c070;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.bk-num::-webkit-inner-spin-button,
.bk-num::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bk-num:focus {
  border-color: rgba(120, 220, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.bk-pct {
  color: rgba(232, 224, 212, 0.4);
  font-size: 0.75rem;
}

/* ── Breakdown Toggle ── */
.breakdown-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(34, 211, 238, 0.6);
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
  width: auto;
  text-transform: uppercase;
}

.breakdown-toggle-btn:hover {
  color: #22d3ee;
  background: none;
}

.breakdown-toggle-btn svg {
  transition: transform 0.3s ease;
}

.breakdown-toggle-btn.open svg {
  transform: rotate(90deg);
}

/* ── Category Breakdown Sliders ── */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease 0.1s;
}

.breakdown-grid.open {
  max-height: 600px;
  opacity: 1;
}

.bk-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bk-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(232, 224, 212, 0.7);
  margin: 0;
}

.bk-row label span {
  color: #f0c070;
  font-weight: 600;
  font-size: 0.85rem;
}

.bk-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

.bk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22d3ee;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  transition: box-shadow 0.2s;
}

.bk-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
}

.bk-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22d3ee;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.bk-other {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgba(80, 220, 255, 0.06);
}

.bk-other .bk-other-value {
  font-size: 0.85rem;
  color: rgba(232, 224, 212, 0.5);
  font-style: italic;
}

/* ============================================================
   BT MODE — Debt Input Panel
   ============================================================ */
.bt-debt-panel {
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: none;
}

.bt-debt-panel.visible {
  display: block;
}

.bt-debt-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(80, 220, 255, 0.8);
  margin: 0 0 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bt-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Reuse .finance-card styling for BT inputs */

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   INDIVIDUAL CARD — Light Blue Hologram
   ============================================================ */
.cc-card {
  background: linear-gradient(
    145deg,
    rgba(10, 25, 45, 0.6) 0%,
    rgba(15, 35, 60, 0.45) 40%,
    rgba(8, 20, 35, 0.6) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 220, 255, 0.2);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.5s ease both;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  box-shadow:
    0 4px 20px rgba(0, 60, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Always-visible hologram scanlines */
.cc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(120, 220, 255, 0.04) 2px,
    rgba(120, 220, 255, 0.04) 4px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.cc-card:hover::after {
  opacity: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(120, 220, 255, 0.07) 2px,
    rgba(120, 220, 255, 0.07) 4px
  );
}

.cc-card > * {
  position: relative;
  z-index: 1;
}

/* Subtle Staggered Scanlines */
.cc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: 
    linear-gradient(to bottom, transparent, rgba(220, 250, 255, 0.4) 50%, transparent),
    linear-gradient(to bottom, transparent, rgba(220, 250, 255, 0.2) 50%, transparent);
  background-size: 100% 3px, 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 -20px, 0 -80px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cc-card:hover::before {
  opacity: 1;
  animation: crtScanline 5s linear infinite;
}

@keyframes crtScanline {
  0%   { background-position: 0 -20px, 0 -120px; }
  100% { background-position: 0 650px, 0 550px; }
}

/* Hover: XCOM hologlobe — glow, particles */
.cc-card:hover {
  border-color: rgba(34, 211, 238, 0.6);
  transform: translateY(-3px) translateZ(0) perspective(800px) rotateY(0.5deg);
  background: linear-gradient(
    145deg,
    rgba(160, 225, 250, 0.45) 0%,
    rgba(180, 240, 255, 0.38) 40%,
    rgba(150, 220, 245, 0.45) 100%
  );
  box-shadow:
    /* Core glow */
    0 0 18px rgba(34, 211, 238, 0.2),
    0 0 45px rgba(34, 211, 238, 0.1),
    /* Scattered energy particles */
    10px -6px 10px -4px rgba(34, 211, 238, 0.18),
    -8px 12px 12px -5px rgba(120, 255, 220, 0.14),
    15px 8px 8px -4px rgba(80, 200, 255, 0.12),
    -12px -10px 14px -4px rgba(34, 211, 238, 0.16),
    6px 16px 6px -3px rgba(120, 230, 255, 0.10),
    -18px 4px 10px -5px rgba(34, 240, 200, 0.12),
    /* Distant particles */
    24px -16px 16px -8px rgba(34, 211, 238, 0.06),
    -22px 18px 14px -8px rgba(120, 255, 230, 0.05),
    /* Inner glow */
    inset 0 0 25px rgba(120, 220, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cc-card.hidden {
  display: none;
}

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

.cc-card:nth-child(1)  { animation-delay: 0.05s; }
.cc-card:nth-child(2)  { animation-delay: 0.10s; }
.cc-card:nth-child(3)  { animation-delay: 0.15s; }
.cc-card:nth-child(4)  { animation-delay: 0.20s; }
.cc-card:nth-child(5)  { animation-delay: 0.25s; }
.cc-card:nth-child(6)  { animation-delay: 0.30s; }
.cc-card:nth-child(7)  { animation-delay: 0.35s; }
.cc-card:nth-child(8)  { animation-delay: 0.40s; }
.cc-card:nth-child(9)  { animation-delay: 0.45s; }
.cc-card:nth-child(10) { animation-delay: 0.50s; }

/* Card Header */
.cc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cc-card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0f8ff;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.cc-card:hover .cc-card-name {
  color: #020810;
}

.cc-card-issuer {
  font-size: 0.75rem;
  color: rgba(120, 220, 255, 0.7);
  margin-top: 2px;
  transition: color 0.4s ease;
}

.cc-card:hover .cc-card-issuer {
  color: rgba(2, 8, 16, 0.75);
}

.cc-card-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-cashback {
  background: rgba(5, 120, 85, 0.15);
  color: #34d399;
  border: 1px solid rgba(5, 120, 85, 0.3);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cc-card:hover .badge-cashback {
  color: #000000;
  border-color: rgba(5, 120, 85, 0.5);
}

.badge-travel {
  background: rgba(67, 56, 202, 0.12);
  color: #818cf8;
  border: 1px solid rgba(67, 56, 202, 0.25);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cc-card:hover .badge-travel {
  color: #000000;
  border-color: rgba(67, 56, 202, 0.5);
}

.badge-dining {
  background: rgba(180, 100, 0, 0.12);
  color: #fb923c;
  border: 1px solid rgba(180, 100, 0, 0.25);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cc-card:hover .badge-dining {
  color: #000000;
  border-color: rgba(180, 100, 0, 0.5);
}

.badge-perks {
  background: rgba(190, 40, 110, 0.12);
  color: #f472b6;
  border: 1px solid rgba(190, 40, 110, 0.25);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cc-card:hover .badge-perks {
  color: #000000;
  border-color: rgba(190, 40, 110, 0.5);
}

.badge-bt {
  background: rgba(8, 145, 178, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(8, 145, 178, 0.3);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cc-card:hover .badge-bt {
  color: #000000;
  border-color: rgba(8, 145, 178, 0.5);
}

/* Card Reward Rates */
.cc-card-rates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.rate-cat {
  color: rgba(224, 248, 255, 0.75);
  transition: color 0.4s ease;
}

.cc-card:hover .rate-cat {
  color: rgba(2, 8, 16, 0.85);
}

.rate-val {
  color: #22d3ee;
  font-weight: 600;
  transition: color 0.4s ease;
}

.cc-card:hover .rate-val {
  color: #020810;
}

/* Card Details */
.cc-card-details {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 220, 255, 0.15);
  font-size: 0.78rem;
}

.cc-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-detail-label {
  color: rgba(120, 220, 255, 0.55);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.cc-card:hover .cc-detail-label {
  color: rgba(2, 8, 16, 0.65);
}

.cc-detail-value {
  color: #e0f8ff;
  font-weight: 500;
  transition: color 0.4s ease;
}

.cc-card:hover .cc-detail-value {
  color: #020810;
}

/* ── Runway Extension Badge (Rewards mode) ── */
.runway-badge {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 10px;
  text-align: center;
}

.runway-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(120, 220, 255, 0.6);
  margin-bottom: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .runway-label {
  color: rgba(2, 8, 16, 0.75);
}

.runway-months {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.cc-card:hover .runway-months {
  color: #000000;
  text-shadow: none;
}

.runway-months-unit {
  font-size: 0.75rem;
  color: rgba(120, 220, 255, 0.5);
  font-weight: 400;
  margin-left: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .runway-months-unit {
  color: rgba(2, 8, 16, 0.65);
}

.runway-dollars {
  font-size: 0.75rem;
  color: rgba(120, 220, 255, 0.5);
  margin-top: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .runway-dollars {
  color: rgba(2, 8, 16, 0.65);
}

/* ── BT Savings Badge ── */
.bt-savings-badge {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  text-align: center;
}

.bt-savings-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(16, 185, 129, 0.5);
  margin-bottom: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .bt-savings-label {
  color: #000000;
}

.bt-savings-amount {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #34d399;
  line-height: 1;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.cc-card:hover .bt-savings-amount {
  color: #000000;
  text-shadow: none;
}

.bt-savings-amount .bt-unit {
  font-size: 0.75rem;
  color: rgba(52, 211, 153, 0.6);
  font-weight: 400;
  margin-left: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .bt-savings-amount .bt-unit {
  color: #000000;
}

.bt-savings-sub {
  font-size: 0.75rem;
  color: rgba(52, 211, 153, 0.5);
  margin-top: 4px;
  transition: color 0.4s ease;
}

.cc-card:hover .bt-savings-sub {
  color: #000000;
}

/* BT Card Detail Rows */
.bt-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 4px 0;
}

.bt-detail-row:not(:last-child) {
  border-bottom: 1px solid rgba(80, 220, 255, 0.08);
}

.bt-detail-key {
  color: rgba(224, 248, 255, 0.65);
  transition: color 0.4s ease;
}

.cc-card:hover .bt-detail-key {
  color: rgba(2, 8, 16, 0.75);
}

.bt-detail-val {
  color: #e0f8ff;
  font-weight: 500;
  transition: color 0.4s ease;
}

.cc-card:hover .bt-detail-val {
  color: #020810;
}

.bt-detail-val.highlight {
  color: #34d399;
}
.cc-card:hover .bt-detail-val.highlight {
  color: #000000;
}

.bt-detail-val.fee {
  color: #fbbf24;
}
.cc-card:hover .bt-detail-val.fee {
  color: #000000;
}

.bt-detail-val.apr {
  color: #22d3ee;
}
.cc-card:hover .bt-detail-val.apr {
  color: #020810;
}

.bt-detail-val.reg-apr {
  color: rgba(232, 224, 212, 0.6);
  font-size: 0.78rem;
  transition: color 0.4s ease;
}
.cc-card:hover .bt-detail-val.reg-apr {
  color: rgba(2, 8, 16, 0.75);
}

/* ── Card CTA ── */
.cc-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(10, 37, 64, 0.85);
  border: 1px solid rgba(10, 37, 64, 0.3);
  border-radius: 8px;
  color: #b4ebff;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.cc-card-cta:hover {
  background: rgba(10, 37, 64, 0.95);
  border-color: rgba(10, 37, 64, 0.5);
  color: #fff;
  text-decoration: none;
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 60, 100, 0.2);
}

.cc-card-cta svg {
  width: 14px;
  height: 14px;
}

/* ── No Results Message ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(232, 224, 212, 0.4);
  font-style: italic;
  font-size: 1rem;
}

/* ── Disclaimer ── */
.compare-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(224, 248, 255, 0.75);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
  background: rgba(10, 20, 35, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ── Back Link ── */
.compare-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(10, 20, 35, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.compare-back:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.7);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* ── Footer ── */
.global-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.75rem;
  color: rgba(232, 224, 212, 0.35);
  line-height: 1.8;
}

.global-footer a {
  color: rgba(232, 224, 212, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.global-footer a:hover {
  color: #22d3ee;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 639px) {
  .compare-main {
    padding: 80px 0 40px;
  }

  .compare-hero {
    padding: 32px 20px;
    margin-bottom: 28px;
  }

  .mode-toggle {
    flex-direction: column;
  }

  .mode-toggle-option {
    padding: 14px 16px;
  }

  .cat-pill {
    padding: 8px 16px;
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .cat-pill svg {
    width: 15px;
    height: 15px;
  }

  .spending-panel,
  .bt-debt-panel {
    padding: 20px 16px;
  }

  .finance-grid,
  .bt-input-grid {
    grid-template-columns: 1fr;
  }

  .breakdown-grid {
    grid-template-columns: 1fr;
  }

  .cc-card {
    padding: 22px 18px;
  }

  .spending-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Legacy compat — keep .savings-row/.savings-input/.shortfall-display working if referenced */
.savings-row {
  display: none;
}

.spending-total-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spending-total-row label {
  font-size: 0.85rem;
  color: rgba(232, 224, 212, 0.6);
  white-space: nowrap;
}

.spending-input {
  width: 140px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(80, 220, 255, 0.2);
  border-radius: 8px;
  color: #f0c070;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.3s ease;
}

.spending-input:focus {
  outline: none;
  border-color: rgba(80, 220, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
}
