*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f7f7f9;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:root {
  color-scheme: light;
  --primary: #6366f1;
  --primary-light: #eef2ff;
  --primary-hover: #4f46e5;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --bg: #f7f7f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --max-w: 1320px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }
.label-uppercase { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary); flex-shrink: 0;
}
.icon-box svg { width: 18px; height: 18px; stroke-width: 2; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { font-size: 17px; font-weight: 700; }
.section-subtitle { font-size: 13px; color: var(--text-muted); margin-top: -8px; margin-bottom: 16px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Sub Navbar */
.sub-nav {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 20px; background: #f9fafb;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w); width: 100vw;
  position: relative; left: 50%; transform: translateX(-50%);
}
.sub-nav-links { display: flex; align-items: center; gap: 14px; flex: 1; }
.sub-nav-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; text-decoration: none; transition: color 0.15s; }
.sub-nav-links a:hover { color: var(--text); }
.sub-nav-links a.active { color: var(--primary); }
.sub-nav-dropdown { position: relative; }
.sub-nav-dropdown > a { display: flex; align-items: center; gap: 2px; cursor: pointer; color: var(--text-muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color 0.15s; text-decoration: none; }
.sub-nav-dropdown > a:hover { color: var(--text); }
.sub-nav-dropdown > a::after { content: "▾"; font-size: 9px; vertical-align: middle; }
.sub-nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 6px; z-index: 101; margin-top: 0;
}
.sub-nav-dropdown-menu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.sub-nav-dropdown:hover .sub-nav-dropdown-menu { display: block; }
.sub-nav-dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); border-radius: 6px; white-space: nowrap; text-decoration: none;
}
.sub-nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.sub-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.sub-nav-toggle { display: none; background: none; font-size: 22px; color: var(--text); padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: var(--primary); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 600; transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary svg { width: 16px; height: 16px; }

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-w); width: 100vw;
  position: relative; left: 50%; transform: translateX(-50%);
  margin-top: 16px; padding: 0 20px; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 600; }
.breadcrumb .sep { margin: 0 6px; }

/* Hero */
.hero-card {
  max-width: var(--max-w); width: 100vw;
  position: relative; left: 50%; transform: translateX(-50%);
  margin-top: 16px; padding: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.hero-image-area { display: flex; align-items: center; justify-content: center; }
.hero-image-box {
  width: 100%; aspect-ratio: 16 / 10;
  background: #f0f0f5; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.hero-image-box img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.hero-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-title-group { display: flex; flex-direction: column; gap: 6px; }
.hero-actions-right { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.hero-actions-right .btn-outline, .hero-actions-right .btn-primary { width: 100%; justify-content: center; white-space: nowrap; }
.hero-bank { display: flex; align-items: center; gap: 8px; }
.hero-bank-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: #f0f0f5; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.hero-bank-name { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.hero-card-title { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.pill-light { background: var(--primary-light); color: var(--primary); }
.pill-success { background: var(--success-light); color: var(--success); }
.pill-amber { background: var(--amber-light); color: var(--amber); }
.rating-row { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; font-size: 13px; flex-wrap: wrap; }
.rating-row .stars-container { display: inline-flex; gap: 1px; }
.rating-row .stars-container svg { width: 15px; height: 15px; }
.star-empty { stroke: #d1d5db; fill: none; }
.star-filled { stroke: var(--amber); fill: var(--amber); }
.rating-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.highlight-banner {
  padding: 10px 14px; background: var(--primary-light);
  border: 1px solid #c7d2fe; border-radius: 8px;
  color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.stat-box {
  background: #f9fafb; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; text-align: center;
}
.stat-box .stat-value { font-size: 17px; font-weight: 700; }
.stat-box .stat-value.green { color: var(--success); }
.stat-box .stat-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.hero-disclaimer { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; max-width: calc(var(--max-w) + 40px); margin: 20px auto; padding: 0 20px; }
.detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.detail-card + .detail-card { margin-top: 16px; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefit-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.benefit-item .check-icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.benefit-item .check-icon svg { width: 14px; height: 14px; stroke-width: 3; }

.reward-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reward-tile { background: var(--primary-light); border-radius: 12px; padding: 16px; text-align: center; }
.reward-tile .reward-icon { color: var(--primary); margin-bottom: 6px; }
.reward-tile .reward-icon svg { width: 22px; height: 22px; }
.reward-tile .reward-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.reward-tile .reward-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table tr { border-bottom: 1px solid var(--border); }
.fee-table tr:last-child { border-bottom: none; }
.fee-table td { padding: 10px 0; }
.fee-table td:last-child { text-align: right; font-weight: 600; }
.fee-table .waived td:last-child { color: var(--success); }
.fee-table .waived td:first-child { color: var(--text-muted); }

.travel-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.travel-tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; }
.travel-tile .tile-icon { color: var(--primary); }
.travel-tile .tile-icon svg { width: 20px; height: 20px; }
.travel-tile .tile-count { font-size: 18px; font-weight: 700; }
.travel-tile .tile-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.features-row { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all 0.12s; }
.feature-chip.active { background: var(--primary-light); color: var(--primary); border: 1px solid #c7d2fe; }
.feature-chip.inactive { background: #f3f4f6; color: var(--text-light); border: 1px solid transparent; }
.feature-chip svg { width: 14px; height: 14px; }

.empty-state { padding: 20px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; background: #fafafc; }
.empty-state p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.empty-state-box { padding: 14px; background: #f9fafb; border-radius: 8px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Right sidebar */
.elig-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.elig-row:last-of-type { border-bottom: none; }
.elig-label { color: var(--text-muted); }
.elig-value { font-weight: 600; }
.pill-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-badge.green { background: var(--success-light); color: var(--success); }
.pill-badge.purple { background: var(--primary-light); color: var(--primary); }
.pill-badge.amber { background: var(--amber-light); color: var(--amber); }
.employment-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.employment-tags span { padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; background: #f3f4f6; color: var(--text-muted); }
.info-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--amber-light); border: 1px solid #fde68a; border-radius: 10px; font-size: 12px; color: #92400e; margin-top: 12px; }
.info-box svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); stroke-width: 2; }

.pros-cons-section h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pros-cons-section h3.green { color: var(--success); }
.pros-cons-section h3.red { color: var(--danger); }
.pros-cons-section ul { margin-bottom: 14px; }
.pros-cons-section li { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; padding: 4px 0; line-height: 1.4; }
.pros-cons-section li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.pros-cons-section li .check { color: var(--success); }
.pros-cons-section li .cross { color: var(--danger); }
.pros-cons-divider { height: 1px; background: var(--border); margin: 10px 0; }

.who-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 8px; }
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text); transition: border-color 0.15s; white-space: nowrap; }
.quick-links .btn-outline { width: 100%; padding: 10px; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline.in-compare { background: var(--primary); color: #fff; border-color: var(--primary); }
.quick-link-time { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 6px; }

/* Related */
.related-section { max-width: calc(var(--max-w) + 40px); margin: 0 auto 20px; padding: 0 20px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-pills .pill { cursor: pointer; }
.filter-pills .pill.active { background: var(--primary); color: #fff; }
.related-heading { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: box-shadow 0.15s; }
.mini-card:hover { box-shadow: var(--shadow-md); }
.mini-card .mini-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mini-card .mini-fee { font-size: 12px; color: var(--text-muted); }
.mini-card .compare-link { font-size: 12px; color: var(--primary); font-weight: 600; display: inline-block; margin-top: 6px; }

/* Footer */



@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-area { max-width: 240px; }
  .detail-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ── Compare bar ── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 0.625rem 1rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.compare-bar.visible { display: flex; }
.compare-bar .cb-label {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.compare-bar .cb-cards {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.125rem 0;
}
.compare-bar .cb-card {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.compare-bar .cb-card .cb-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--text-muted);
}
.compare-bar .cb-card .cb-remove:hover { color: var(--danger); }
.compare-bar .cb-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.compare-bar .cb-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
}
.compare-bar .cb-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.compare-bar .cb-compare {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.compare-bar .cb-compare:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 768px) {
  .compare-bar { padding: 0.5rem; gap: 0.5rem; }
  .compare-bar .cb-label { font-size: 0.75rem; }
  .compare-bar .cb-card { font-size: 0.6875rem; }
  .hero-top-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions-right { width: 100%; }
}
@media (max-width: 480px) {
  .compare-bar .cb-label { display: none; }
  .compare-bar .cb-cards { flex: 1 1 100%; order: -1; }
}

@media (max-width: 768px) {
  .sub-nav-links { display: none; }
  .sub-nav-toggle { display: block; }
  .sub-nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 99; gap: 10px; }
  .sub-nav-links.mobile-open .sub-nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; margin-top: 4px; }
  .sub-nav-links.mobile-open .sub-nav-dropdown-menu::before { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .reward-tiles { grid-template-columns: 1fr; }
  .travel-tiles { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .hero-card-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Bottom padding for compare bar ── */
main { padding-bottom: 60px; }