

/* Bank Hub Isolation Namespace (.bh-*) */

.bh-container { width: 100%; max-width: 1180px; margin: 0 auto; }



/* Hero Screen */

.bh-hero {

  background: radial-gradient(120% 120% at 50% 0%, #172a45 0%, #0d1624 100%);

  border-radius: 16px;

  padding: 36px 32px;

  color: #fff;

  margin-bottom: 24px;

  box-shadow: 0 10px 30px rgba(13, 22, 36, 0.2);

}

.bh-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.bh-hero-badge {

  background: rgba(255, 255, 255, 0.12);

  color: #93c5fd;

  font-size: 12px;

  font-weight: 700;

  padding: 4px 12px;

  border-radius: 20px;

  border: 1px solid rgba(147, 197, 253, 0.25);

}

.bh-hero h1 {

  font-size: 32px;

  font-weight: 900;

  line-height: 1.25;

  margin: 0 0 12px 0;

  color: #ffffff;

}

.bh-hero-subtitle {

  font-size: 16px;

  color: #cbd5e1;

  max-width: 820px;

  line-height: 1.55;

  margin: 0 0 24px 0;

}



/* Interactive Finder Box inside Hero */

.bh-finder-box {

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 14px;

  padding: 20px;

  backdrop-filter: blur(8px);

}

.bh-finder-title {

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: #94a3b8;

  font-weight: 800;

  margin-bottom: 12px;

}

.bh-finder-toggles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

.bh-toggle-btn {

  background: #1e293b;

  border: 1.5px solid #334155;

  color: #e2e8f0;

  font-size: 14px;

  font-weight: 700;

  padding: 8px 18px;

  border-radius: 10px;

  cursor: pointer;

  transition: all .15s ease;

}

.bh-toggle-btn:hover { background: #334155; border-color: #64748b; }

.bh-toggle-btn.active {

  background: #2563eb;

  border-color: #60a5fa;

  color: #fff;

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);

}

.bh-chip-scenarios { display: flex; gap: 8px; flex-wrap: wrap; }

.bh-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.bh-chip-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}
.bh-chip-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

/* In dark hero headers: keep white translucent look */
.bh-hero .bh-chip-btn,
.brand-hero .bh-chip-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}
.bh-hero .bh-chip-btn:hover,
.brand-hero .bh-chip-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.bh-hero .bh-chip-btn.active,
.brand-hero .bh-chip-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #041f3d;
  font-weight: 800;
}



/* Quick Picks Section (6 scenarios) */

.bh-quick-picks { margin-bottom: 32px; }

.bh-section-head { margin-bottom: 16px; }

.bh-section-head h2 { font-size: 22px; font-weight: 900; color: #0f172a; margin: 0; }

.bh-section-head p { font-size: 14px; color: #64748b; margin: 4px 0 0 0; }



.bh-picks-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));

  gap: 12px;

}

.bh-pick-card {

  background: #ffffff;

  border: 1.5px solid #e2e8f0;

  border-radius: 12px;

  padding: 14px;

  cursor: pointer;

  transition: all .2s ease;

  display: flex;

  flex-direction: column;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);

}

.bh-pick-card:hover {

  transform: translateY(-2px);

  border-color: #2563eb;

  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);

}

.bh-pick-icon { font-size: 24px; margin-bottom: 6px; }

.bh-pick-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }

.bh-pick-bank { font-size: 13px; font-weight: 700; color: #2563eb; margin-top: auto; }



/* Filter & Sort Controls */

.bh-filter-bar {

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 14px;

  padding: 16px 20px;

  margin-bottom: 20px;

  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

}

.bh-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.bh-filter-row:last-child { margin-bottom: 0; }

.bh-filter-label { font-size: 12px; font-weight: 700; color: #64748b; min-width: 80px; flex-shrink: 0; }

.bh-sort-btn {

  border: 1.5px solid #e2e8f0;

  background: #f8fafc;

  color: #334155;

  font-size: 12px;

  font-weight: 700;

  padding: 6px 14px;

  border-radius: 8px;

  cursor: pointer;

  transition: all .15s ease;

}

.bh-sort-btn.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }



.bh-stats-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 13px;

  color: #64748b;

  margin-bottom: 14px;

  padding: 0 4px;

}



/* Bank Offer Card (Clean Fintech Style) */

.bh-cards-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.bh-card {

  background: #ffffff;

  border: 1.5px solid #e2e8f0;

  border-radius: 16px;

  padding: 24px;

  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);

  transition: all .2s ease;

  position: relative;

}

.bh-card:hover {

  border-color: #93c5fd;

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);

  transform: translateY(-2px);

}

.bh-card[hidden] { display: none !important; }



.bh-card-top {

  display: flex;

  align-items: center;

  gap: 16px;

  flex-wrap: wrap;

  margin-bottom: 18px;

  padding-bottom: 14px;

  border-bottom: 1px solid #f1f5f9;

}

.bh-card-logo-wrap {

  width: 52px;

  height: 52px;

  border-radius: 12px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  padding: 6px;

}

.bh-card-logo { width: 100%; height: 100%; object-fit: contain; }

.bh-card-main-info { flex: 1; min-width: 200px; }

.bh-card-bank-name { font-size: 18px; font-weight: 900; color: #0f172a; display: flex; align-items: center; gap: 8px; }

.bh-card-tariff-name { font-size: 13px; color: #64748b; margin-top: 2px; }

.bh-card-rating {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  font-size: 12px;

  font-weight: 800;

  color: #0f172a;

  background: #fef3c7;

  color: #92400e;

  padding: 2px 8px;

  border-radius: 6px;

}

.bh-card-badge {

  font-size: 11px;

  font-weight: 800;

  color: #ffffff;

  padding: 4px 12px;

  border-radius: 20px;

  white-space: nowrap;

}



/* Key Metrics Row (4 columns) */

.bh-metrics-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

  background: #f8fafc;

  border: 1px solid #f1f5f9;

  border-radius: 12px;

  padding: 14px 16px;

  margin-bottom: 16px;

}

.bh-metric-item { display: flex; flex-direction: column; }

.bh-metric-label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: 4px; }

.bh-metric-val { font-size: 15px; font-weight: 800; color: #0f172a; }

.bh-metric-val.green { color: #16a34a; }



/* Perks list */

.bh-card-perks {

  list-style: none;

  padding: 0;

  margin: 0 0 18px 0;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px 16px;

}

.bh-card-perks li {

  font-size: 13px;

  color: #334155;

  padding-left: 20px;

  position: relative;

  line-height: 1.45;

}

.bh-card-perks li::before {

  content: "✓";

  position: absolute;

  left: 0;

  color: #10b981;

  font-weight: 900;

}



/* Bottom Action Row */

.bh-card-bottom {

  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 12px;

  padding-top: 14px;

  border-top: 1px solid #f1f5f9;

}

.bh-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bh-cta-btn {

  display: inline-block;

  background: #16a34a;

  color: #ffffff !important;

  text-decoration: none !important;

  font-size: 14px;

  font-weight: 800;

  padding: 12px 24px;

  border-radius: 10px;

  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);

  transition: all .15s ease;

  white-space: nowrap;

}

.bh-cta-btn:hover {

  background: #15803d;

  box-shadow: 0 5px 16px rgba(22, 163, 74, 0.45);

  transform: translateY(-1px);

}



.bh-compare-checkbox {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: 13px;

  font-weight: 600;

  color: #475569;

  cursor: pointer;

  user-select: none;

  padding: 8px 12px;

  border-radius: 8px;

  border: 1px solid #e2e8f0;

  background: #f8fafc;

  transition: all .15s ease;

}

.bh-compare-checkbox:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

.bh-compare-checkbox input { cursor: pointer; accent-color: #2563eb; width: 16px; height: 16px; }



/* Expandable details */

.bh-card-details { margin-top: 14px; }

.bh-card-details summary {

  cursor: pointer;

  font-size: 13px;

  font-weight: 700;

  color: #2563eb;

  list-style: none;

  display: inline-flex;

  align-items: center;

  gap: 6px;

}

.bh-card-details summary::after { content: "↓"; font-weight: 900; }

.bh-card-details[open] summary::after { content: "↑"; }

.bh-details-table {

  width: 100%;

  border-collapse: collapse;

  margin-top: 12px;

  font-size: 13px;

}

.bh-details-table td {

  padding: 8px 12px;

  border-bottom: 1px solid #f1f5f9;

}

.bh-details-table td:first-child { color: #64748b; font-weight: 600; width: 35%; }

.bh-details-table td:last-child { color: #0f172a; font-weight: 700; }



.bh-ad-erid { font-size: 11px; color: #94a3b8; display: block; margin-top: 8px; }



/* Sticky Compare Bar */

.bh-sticky-compare {

  position: fixed;

  bottom: 24px;

  left: 50%;

  transform: translateX(-50%) translateY(120px);

  background: #0f172a;

  color: #ffffff;

  padding: 14px 24px;

  border-radius: 50px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  display: flex;

  align-items: center;

  gap: 16px;

  z-index: 9999;

  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);

}

.bh-sticky-compare.active { transform: translateX(-50%) translateY(0); }

.bh-compare-text { font-size: 14px; font-weight: 700; }

.bh-compare-open-btn {

  background: #2563eb;

  color: #fff;

  border: none;

  font-size: 13px;

  font-weight: 800;

  padding: 8px 18px;

  border-radius: 20px;

  cursor: pointer;

  transition: background .15s ease;

}

.bh-compare-open-btn:hover { background: #3b82f6; }

.bh-compare-clear-btn { background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; padding: 0 4px; }



/* Compare Modal */

.bh-modal-overlay {

  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.7);

  backdrop-filter: blur(4px);

  z-index: 10000;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

}

.bh-modal-overlay.active { display: flex; }

.bh-modal-content {

  background: #ffffff;

  border-radius: 20px;

  width: 100%;

  max-width: 980px;

  max-height: 90vh;

  overflow-y: auto;

  padding: 28px;

  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  position: relative;

}

.bh-modal-close {

  position: absolute;

  top: 20px;

  right: 20px;

  background: #f1f5f9;

  border: none;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  font-size: 20px;

  font-weight: 700;

  color: #475569;

  cursor: pointer;

}

.bh-compare-table {

  width: 100%;

  border-collapse: collapse;

  margin-top: 16px;

  font-size: 13px;

}

.bh-compare-table th, .bh-compare-table td {

  padding: 12px 14px;

  border-bottom: 1px solid #e2e8f0;

  text-align: left;

  vertical-align: middle;

}

.bh-compare-table th { background: #f8fafc; font-weight: 800; color: #0f172a; }

.bh-compare-table tr:hover td { background: #f8fafc; }



/* SEO Matrix Table */

.bh-matrix-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid #e2e8f0; border-radius: 12px; }

.bh-matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }

.bh-matrix-table th { background: #0f172a; color: #ffffff; padding: 12px 14px; font-weight: 700; white-space: nowrap; }

.bh-matrix-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }

.bh-matrix-table tr:nth-child(even) { background: #f8fafc; }



/* Editorial layer */

.bh-editorial { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; margin-top: 32px; }

.bh-editorial h2 { font-size: 22px; font-weight: 900; color: #0f172a; margin: 28px 0 12px 0; }

.bh-editorial h2:first-child { margin-top: 0; }

.bh-editorial p { font-size: 14px; color: #334155; line-height: 1.65; margin-bottom: 14px; }

.bh-editorial ul { margin: 0 0 16px 0; padding-left: 24px; font-size: 14px; color: #334155; line-height: 1.6; }



/* Trust badge & Disclosure */

.bh-trust-box {

  background: #f0fdf4;

  border: 1px solid #bbf7d0;

  border-radius: 12px;

  padding: 16px 20px;

  margin-top: 24px;

  font-size: 13px;

  color: #166534;

  display: flex;

  align-items: center;

  gap: 12px;

}

.bh-disclosure-box {

  font-size: 11px;

  color: #94a3b8;

  line-height: 1.5;

  margin-top: 16px;

  border-top: 1px solid #e2e8f0;

  padding-top: 14px;

}



/* Mobile Adjustments */

@media (max-width: 768px) {

  .bh-hero { padding: 24px 18px; }

  .bh-hero h1 { font-size: 24px; }

  .bh-metrics-grid { grid-template-columns: 1fr 1fr; }

  .bh-card-perks { grid-template-columns: 1fr; }

  .bh-card-top { gap: 10px; }

  .bh-card-bank-name { font-size: 16px; }

  .bh-card-badge { display: none; }

  .bh-picks-grid { grid-template-columns: 1fr 1fr; }

}

