/* RemessaCV — Main Stylesheet */
:root {
  --primary: #0A2463;
  --secondary: #1E88E5;
  --accent: #F4A300;
  --accent-dark: #F57C00;
  --success: #2E7D32;
  --danger: #D32F2F;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --border: #E8ECF1;
  --text: #4A5568;
  --heading: #1A202C;
  --hero-gradient: linear-gradient(135deg, #0A2463 0%, #1E88E5 100%);
  --cta-gradient: linear-gradient(90deg, #F4A300 0%, #F57C00 100%);
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,36,99,0.10);
  --shadow-hover: 0 8px 32px rgba(10,36,99,0.18);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-alt); }
/* comparar.html two-column layout */
.compare-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; position: -webkit-sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 2px 12px rgba(10,36,99,0.07);
  overflow: visible;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.4rem; color: var(--primary); text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-brand span { color: var(--accent); }
.navbar-brand .flag { font-size: 1.2rem; vertical-align: middle; }
/* flag-icons sizing */
.fi { vertical-align: -0.1em; }
.guide-card .guide-flag .fi { display: block; font-size: inherit; }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; flex-wrap: wrap; }
.navbar-nav a {
  padding: 0.4rem 0.85rem; border-radius: 8px;
  font-weight: 500; color: var(--text); transition: all .2s;
}
.navbar-nav a:hover, .navbar-nav a.active { background: var(--bg-alt); color: var(--primary); text-decoration: none; }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* ── LANG DROPDOWN (navbar) ── */
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  transition: all .2s; white-space: nowrap;
  font-family: var(--font); line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.lang-dropdown-btn:hover,
.lang-dropdown-btn[aria-expanded="true"] {
  border-color: var(--primary); color: var(--primary);
  background: rgba(10,36,99,0.04);
}
.lang-arrow { transition: transform .2s; flex-shrink: 0; }
.lang-dropdown-btn[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 130px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(10,36,99,0.14);
  list-style: none; padding: 0.3rem;
  z-index: 1100;
  animation: langFadeDown .18s ease;
}
@keyframes langFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-menu.open { display: block; }
.lang-menu li { list-style: none; }

/* ── LANG BTN (shared: dropdown items + footer standalone) ── */
.lang-switcher { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.lang-btn {
  padding: 0.28rem 0.52rem; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; font-size: 0.72rem; font-weight: 700;
  color: var(--text); transition: all .2s; letter-spacing: 0.02em;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { background: var(--bg-alt); color: var(--primary); border-color: var(--primary); }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Inside dropdown: override to list-item style */
.lang-menu .lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.45rem 0.75rem;
  border: none; border-radius: 7px;
  font-size: 0.85rem; letter-spacing: normal;
  text-align: left; justify-content: flex-start;
}
.lang-menu .lang-btn:hover { background: var(--bg-alt); color: var(--primary); border-color: transparent; }
.lang-menu .lang-btn.active { background: var(--primary); color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  flex-shrink: 0;
}
.hamburger span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: .3s; }


/* ── HERO ── */
.hero {
  background: var(--hero-gradient);
  color: #fff; min-height: 100vh;
  position: relative;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── HERO LIGHT VARIANT ── */
.hero.hero-light {
  background: linear-gradient(145deg, #EBF4FF 0%, #FFFFFF 55%, #F0F9FF 100%);
  color: var(--heading);
  min-height: auto;
  padding: 4.5rem 0 3rem;
}
.hero.hero-light::before { display: none; }

/* Decorative background shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; }
.hero-shape-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(30,136,229,0.09) 0%, transparent 68%);
  right: -180px; top: -200px;
}
.hero-shape-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(10,36,99,0.06) 0%, transparent 68%);
  left: -120px; bottom: -160px;
}
.hero-shape-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,163,0,0.10) 0%, transparent 68%);
  left: 42%; top: 5%;
}

.hero-container { position: relative; z-index: 1; padding: 3rem 0 2rem; display: flex; flex-direction: column; gap: 2rem; }
.hero.hero-light .hero-container { padding: 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; min-width: 0; }
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hero-text h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero-text h1 span { color: var(--accent); }
.hero-text p { font-size: 1.15rem; opacity: 0.88; max-width: 500px; }

/* Light variant text overrides */
.hero.hero-light .hero-text h1 { color: var(--heading); }
.hero.hero-light .hero-text h1 span { color: var(--primary); }
.hero.hero-light .hero-text p { color: var(--text); opacity: 1; }

.hero-globe { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; min-width: 0; overflow: hidden; }
#globe-container {
  width: 530px; height: 390px; max-width: 100%;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.55), 0 0 40px rgba(10,36,99,0.5), 0 0 0 1px rgba(244,163,0,0.2);
  cursor: grab;
}

/* ── HERO BADGES ── */
.hero-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; }
/* Light variant badges */
.hero.hero-light .badge {
  background: rgba(10,36,99,0.06);
  border-color: rgba(10,36,99,0.14);
  color: var(--primary);
}
.hero.hero-light .badge .dot { background: #2E7D32; }

/* ── HERO PARTNER LOGOS ── */
.hero-partners {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  max-width: 520px;
}
.hero.hero-light .hero-partners {
  background: rgba(10,36,99,0.04);
  border-color: rgba(10,36,99,0.11);
  backdrop-filter: none;
}
.hero-partners-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; opacity: 0.55; white-space: nowrap;
  color: inherit;
}
.hero.hero-light .hero-partners-label { color: var(--text); }
.hero-partner-logos { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.partner-logo-pill {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 8px; overflow: hidden;
  padding: 5px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}
.partner-logo-pill img {
  height: 22px; width: auto; max-width: 72px;
  object-fit: contain; display: block;
}
.partner-logo-pill:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ── CUSTOM FLAG SELECT ── */
.flag-select {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: 8px;
  background: var(--bg-alt);
  font-size: 1rem; font-family: var(--font); color: var(--heading);
  cursor: pointer; user-select: none;
  transition: border-color .2s, background .2s;
}
.flag-select:hover,
.flag-select[aria-expanded="true"] { border-color: var(--secondary); background: #fff; }
.flag-select-val { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.flag-select-val .fi { font-size: 1.15rem; flex-shrink: 0; }
.flag-select-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag-select-arrow { flex-shrink: 0; opacity: 0.5; transition: transform .2s; }
.flag-select[aria-expanded="true"] .flag-select-arrow { transform: rotate(180deg); }

.flag-select-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(10,36,99,0.13);
  list-style: none; padding: 0.3rem; margin: 0;
  z-index: 500; max-height: 280px; overflow-y: auto;
  animation: flagMenuOpen .15s ease;
}
@keyframes flagMenuOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flag-select[aria-expanded="true"] .flag-select-menu { display: block; }
.flag-select-menu li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.75rem; border-radius: 7px;
  font-size: 0.9rem; cursor: pointer;
  transition: background .15s;
}
.flag-select-menu li .fi { font-size: 1.1rem; }
.flag-select-menu li:hover { background: var(--bg-alt); color: var(--primary); }
.flag-select-menu li.selected { background: rgba(10,36,99,0.07); font-weight: 600; color: var(--primary); }

/* ── HERO FORM — destination field + inline currency ── */
.hero-form-row { grid-template-columns: 1fr 1fr 1.2fr auto; }
.form-label-icon { font-size: 0.85em; margin-right: 0.1rem; }
.form-destination {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  color: var(--heading);
  user-select: none;
}
.form-destination .fi { font-size: 1.15rem; }
.form-destination-lock { margin-left: auto; font-size: 0.75rem; opacity: 0.45; }
.amount-input-wrap {
  display: flex; border: 2px solid var(--border); border-radius: 8px;
  overflow: hidden; background: var(--bg-alt);
  transition: border-color .2s; width: 100%;
}
.amount-input-wrap:focus-within { border-color: var(--secondary); background: #fff; }
.amount-input-wrap input {
  border: none; background: transparent; flex: 1; min-width: 0;
  padding: 0.75rem 0.75rem;
  font-size: 1rem; font-family: var(--font); color: var(--heading);
}
.amount-input-wrap input:focus { outline: none; }
.currency-select {
  border: none; border-left: 2px solid var(--border) !important;
  background: #fff; padding: 0 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: var(--primary);
  cursor: pointer; min-width: 72px; max-width: 90px; flex-shrink: 0;
  border-radius: 0 !important;
  appearance: auto;
}
.currency-select:focus { outline: none; }
.btn-hero-cta { padding: 0.85rem 2rem; font-size: 1rem; letter-spacing: 0.01em; }

/* ── COMPARISON CHART SECTION ── */
.comparison-chart-section { background: var(--bg); }
.comparison-chart-section h2 { margin-bottom: 0.5rem; }
.comparison-chart-section > .container > p { color: var(--text); margin-bottom: 1.75rem; }

.chart-wrapper {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
}
.chart-legend {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

.chart-bars { display: flex; flex-direction: column; gap: 0.9rem; }
.chart-row {
  display: grid;
  grid-template-columns: 80px 1fr 260px;
  align-items: center; gap: 0.85rem;
}
.chart-label { display: flex; align-items: center; justify-content: flex-end; }
.chart-label img { height: 26px; width: auto; max-width: 76px; object-fit: contain; border-radius: 5px; }
.chart-bar-track {
  background: var(--bg-alt); border-radius: 8px; height: 36px;
  overflow: hidden; position: relative;
}
.chart-bar {
  height: 100%; border-radius: 8px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.75rem;
  transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
  min-width: 64px;
  position: relative;
}
.chart-bar-val {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: #fff; white-space: nowrap;
}
.chart-bar-best { background: linear-gradient(90deg, #2E7D32, #43A047); }
.chart-bar-mid  { background: linear-gradient(90deg, #1565C0, #1E88E5); }
.chart-bar-worst{ background: linear-gradient(90deg, #B71C1C, #E53935); }

.chart-meta {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.chart-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.55rem;
  border-radius: 12px; width: fit-content;
}
.chart-badge-best  { background: rgba(46,125,50,0.12); color: var(--success); }
.chart-badge-worst { background: rgba(211,47,47,0.1); color: var(--danger); }
.chart-detail {
  font-size: 0.75rem; color: var(--text); opacity: 0.75;
}
.chart-row-best .chart-bar-track { box-shadow: 0 0 0 2px rgba(46,125,50,0.3); }
.chart-row-worst .chart-bar-track { box-shadow: 0 0 0 2px rgba(211,47,47,0.2); }

.chart-disclaimer {
  margin-top: 1.25rem; font-size: 0.75rem; color: var(--text);
  opacity: 0.55; font-style: italic; text-align: right; margin-bottom: 0;
}

/* ── COMPARATOR FORM ── */
.comparator-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  color: var(--heading); min-width: 0; overflow: hidden;
}
.comparator-card h3 { margin-bottom: 1.25rem; color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group select, .form-group input {
  padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: var(--font); color: var(--heading);
  background: var(--bg-alt); transition: border-color .2s;
  appearance: none;
}
.form-group select:focus, .form-group input:focus { outline: none; border-color: var(--secondary); background: #fff; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; font-family: var(--font); font-weight: 700; border-radius: 8px; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cta-gradient); color: #fff; padding: 0.8rem 1.75rem; font-size: 1rem; box-shadow: 0 4px 16px rgba(244,163,0,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(244,163,0,0.45); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn-secondary:hover { background: #0d2f7a; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 0.65rem 1.25rem; font-size: 0.9rem; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-sm:hover { transform: scale(1.05); text-decoration: none; }
.link-btn { font-weight: 600; text-decoration: none; transition: transform .15s, opacity .15s; display: inline-flex; align-items: center; gap: 0.25rem; }
.link-btn:hover { text-decoration: none; transform: scale(1.06); opacity: 0.85; }

/* ── TABLE SCROLL WRAPPER ── */
.table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── RESULTS TABLE ── */
.results-section { margin-top: 2rem; }
.results-section h3 { margin-bottom: 1rem; color: var(--primary); }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.results-table th { background: var(--primary); color: #fff; padding: 0.55rem 0.75rem; text-align: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.results-table th:first-child { border-radius: 8px 0 0 0; }
.results-table th:last-child { border-radius: 0 8px 0 0; }
.results-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.results-table tr:hover td { background: var(--bg-alt); }
.results-table tr.best-deal td { background: rgba(244,163,0,0.06); }
/* Column sizing */
.results-table th:nth-child(1), .results-table td:nth-child(1) { min-width: 175px; }
.results-table th:nth-child(5), .results-table td:nth-child(5) { min-width: 90px; white-space: nowrap; }
.results-table th:nth-child(6), .results-table td:nth-child(6) { min-width: 140px; }
.results-table th:last-child   { text-align: center; padding-right: 1.25rem; }
.results-table td:last-child   { text-align: right; padding-right: 1.25rem; min-width: 140px; }
.results-table .btn-sm         { white-space: nowrap; }
.results-table .provider-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.provider-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.provider-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cve-cell { display: flex; align-items: center; gap: 0.45rem; }
.cve-cell-logo { height: 20px; width: auto; max-width: 52px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.amount-cve { font-family: var(--font-mono); font-weight: 700; font-size: 0.88rem; color: var(--success); }
.fee { color: var(--danger); font-family: var(--font-mono); }
.rate-cell { font-family: var(--font-mono); font-size: 0.88rem; }
.badge-best { background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; }
.badge-fast { background: var(--secondary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; }

/* ── COMPOSITE SCORE COLUMN ── */
.score-bar-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 90px;
}
.score-bar {
  height: 8px; border-radius: 4px; flex-shrink: 0;
  transition: width .6s ease;
}
.score-label {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
/* Result badges (Recomendado / Mais CVE) */
.badge-result {
  display: inline-flex; align-items: center;
  font-size: 0.66rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 10px; white-space: nowrap;
}
.badge-recomendado { background: rgba(46,125,50,0.12); color: var(--success); border: 1px solid rgba(46,125,50,0.25); }
.badge-mais-cve    { background: rgba(30,136,229,0.10); color: var(--secondary); border: 1px solid rgba(30,136,229,0.2); }
/* Score note below filter bar */
.score-note {
  font-size: 0.78rem; color: var(--text); opacity: 0.7;
  margin: 0.6rem 0 1rem; line-height: 1.5;
}
/* Sortable column headers */
.results-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.results-table th.sortable:hover { background: #0d2f7a; color: #fff; }
.results-table th.sort-active { background: var(--accent); color: #fff; }
.sort-arrow { opacity: 0.4; margin-left: 0.2rem; font-size: 0.8em; }
.sort-arrow.active { opacity: 1; }
.loading-row td { text-align: center; padding: 2rem; color: var(--text); font-style: italic; }
.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; height: 1rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── EXCHANGE RATE WIDGET ── */
.exchange-widget {
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 1.5rem; min-width: 260px;
}
.exchange-widget h4 { color: var(--accent); margin-bottom: 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.exchange-rates { display: flex; flex-direction: column; gap: 0.6rem; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rate-pair { font-size: 0.82rem; opacity: 0.75; }
.rate-value { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--accent); }
.rate-fixed { font-size: 0.7rem; opacity: 0.6; }
.exchange-source { margin-top: 1rem; font-size: 0.7rem; opacity: 0.55; }
.rate-updated { margin-top: 0.5rem; font-size: 0.7rem; opacity: 0.5; }

/* ── STATS SECTION ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.stat-card { text-align: center; padding: 2rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.stat-card .stat-value { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text); }

/* ── PROVIDERS SECTION ── */
.providers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.provider-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 2px solid var(--border); cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.provider-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .25s; border-radius: 0 0 0 0; }
.provider-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.provider-card:hover::before { width: 4px; }
.provider-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.provider-card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.provider-card-name { font-weight: 700; font-size: 1.1rem; color: var(--heading); }
.provider-card-type { font-size: 0.78rem; color: var(--text); }
.provider-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.provider-stat-item { display: flex; flex-direction: column; gap: 0.15rem; }
.provider-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); opacity: 0.7; }
.provider-stat-value { font-weight: 700; font-family: var(--font-mono); color: var(--heading); }
.tier-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 12px; margin-bottom: 0.5rem; }
.tier-1 { background: rgba(244,163,0,0.15); color: var(--accent-dark); }
.tier-2 { background: rgba(30,136,229,0.12); color: var(--secondary); }

/* ── ISLANDS SECTION ── */
.islands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.island-card {
  background: #fff; border-radius: var(--radius); padding: 1.25rem;
  border: 1px solid var(--border); transition: all .2s; cursor: pointer;
}
.island-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); transform: translateY(-2px); }
.island-card .island-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.island-card h4 { margin-bottom: 0.25rem; }
.island-card p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.island-card .island-meta { font-size: 0.75rem; color: var(--text); opacity: 0.7; font-family: var(--font-mono); }
.group-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 1rem; margin-top: 2rem; }

/* ── CORRIDORS SECTION ── */
.corridors-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.corridor-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: #fff; border-radius: 10px; border: 1px solid var(--border); transition: all .2s;
}
.corridor-item:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.corridor-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.corridor-info { flex: 1; }
.corridor-name { font-weight: 700; color: var(--heading); }
.corridor-pair { font-size: 0.82rem; color: var(--text); font-family: var(--font-mono); }
.corridor-bar { flex: 2; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.corridor-fill { height: 100%; background: var(--cta-gradient); border-radius: 3px; transition: width 1s ease; }

/* ── FAQ SECTION ── */
.faq-list { max-width: 760px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: #fff; border: none; cursor: pointer;
  padding: 1.1rem 1.25rem; font-weight: 600; font-size: 1rem; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font); transition: background .2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-arrow { font-size: 1.1rem; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1rem 1.25rem 1.25rem; font-size: 0.95rem; color: var(--text); border-top: 1px solid var(--border); background: var(--bg-alt); }
.faq-item.open .faq-answer { display: block; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--hero-gradient); color: #fff; text-align: center; padding: 4rem 1.5rem;
  border-radius: var(--radius); margin: 3rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.1rem; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: rgba(10,36,99,0.05); border-left: 3px solid var(--secondary);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; font-size: 0.82rem; color: var(--text);
  margin: 2rem 0;
}

/* ── FOOTER ── */
.footer { background: var(--heading); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 0.75rem; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; opacity: 0.6; margin-bottom: 1rem; }
.footer-col h5 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.footer-flags { display: flex; gap: 0.5rem; font-size: 1.1rem; }
.affiliate-notice { font-size: 0.75rem; opacity: 0.5; margin-top: 0.5rem; }

/* ── TOAST NOTIFICATION ── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--heading); color: #fff; padding: 0.85rem 1.25rem; border-radius: 10px;
  font-size: 0.88rem; max-width: 320px; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: slideIn .3s ease; display: flex; align-items: center; gap: 0.6rem;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── COUNTRY GUIDES ── */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.guide-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem; transition: all .2s;
}
.guide-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card .guide-flag { font-size: 2.5rem; }
.guide-card h3 { font-size: 1.1rem; }
.guide-card p { font-size: 0.88rem; flex: 1; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--heading); color: rgba(255,255,255,0.85);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; margin: 0; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .2s; }
.stagger.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: .3s; }
.stagger.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: .4s; }
.stagger.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: .5s; }
.stagger.visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: .6s; }
.stagger.visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: .7s; }
.stagger.visible > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: .8s; }
.stagger.visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: .9s; }
.stagger.visible > *:nth-child(11) { opacity: 1; transform: none; transition-delay: 1.0s; }
.stagger.visible > *:nth-child(12) { opacity: 1; transform: none; transition-delay: 1.1s; }

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 0.75rem 1rem 1rem; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(10,36,99,0.1);
    gap: 0.25rem; z-index: 200;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 0.75rem 1rem; border-radius: 8px; font-size: 1rem; }
  .lang-menu { right: 0; }

  /* ── Hero ── */
  .hero { min-height: auto; }
  /* Add horizontal padding so the comparator card doesn't touch screen edges */
  .hero-container { padding: 2rem 1.5rem 2rem; gap: 1.5rem; overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  /* Contain any section overflow on mobile */
  .section { overflow-x: hidden; }
  #globe-container { width: 100%; height: 240px; border-radius: 12px; }
  .hero-globe { order: -1; }
  .hero-badges { justify-content: center; }
  .hero-text p { font-size: 1rem; }

  /* ── Sections ── */
  .section { padding: 2rem 0; }
  .page-header { padding: 1.25rem 0; margin-bottom: 1.25rem; }

  /* ── Comparator ── */
  .comparator-card { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .btn { grid-column: 1 / -1; }
  .hero-form-row { grid-template-columns: 1fr 1fr; }
  .hero-form-row .btn-hero-cta { grid-column: 1 / -1; }
  .hero-form-row .form-group-amount { grid-column: 1 / -1; }

  /* ── Chart ── */
  .chart-row { grid-template-columns: 64px 1fr; }
  .chart-meta { grid-column: 2; }
  .chart-wrapper { padding: 1.25rem; }

  /* ── comparar.html two-column layout → single column ── */
  .compare-layout { grid-template-columns: 1fr !important; }

  /* ── Hero partners ── */
  .hero-partners { max-width: 100%; justify-content: center; align-self: center; }
  .hero-partner-logos { justify-content: center; }
  .partner-logo-pill { padding: 4px 6px; }
  .partner-logo-pill img { height: 18px; max-width: 56px; }

  /* ── Corridor bars (too cramped at mobile widths) ── */
  .corridor-bar { display: none; }
  .corridor-item { gap: 0.5rem; padding: 0.85rem 1rem; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* ── Table scroll wrapper: no horizontal scroll in card mode ── */
  .table-scroll-wrapper { overflow-x: visible; }

  /* ── Exchange widget ── */
  .exchange-widget { min-width: auto; }

  /* ── CTA Banner ── */
  .cta-banner { padding: 2.5rem 1.25rem; margin: 1.5rem 0; }
  .cta-banner h2 { font-size: clamp(1.2rem, 5vw, 1.8rem); }
  .cta-banner p { font-size: 1rem; margin-bottom: 1.25rem; }

  /* ── Toast notifications ── */
  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { max-width: 100%; }

  /* ── Cookie banner ── */
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; }
  .cookie-actions { width: 100%; }

  /* ── Provider cards ── */
  .providers-grid { grid-template-columns: 1fr 1fr; }

  /* ── Guide / Island grids ── */
  .guides-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .islands-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* ── Exchange widget: no fixed min-width in single-column layout ── */
  .exchange-widget { min-width: 0; width: 100%; }
}

@media (max-width: 600px) {
  /* Hide the CTA button from the navbar on small screens to give space for hamburger */
  .navbar-cta { display: none !important; }
}

@media (max-width: 480px) {
  /* ── Sections ── */
  .section { padding: 1.5rem 0; }
  .page-header { padding: 1rem 0; }

  /* ── Form ── */
  .form-row { grid-template-columns: 1fr; }
  .form-row .btn { width: 100%; justify-content: center; }
  .hero-form-row { grid-template-columns: 1fr; }
  .comparator-card { padding: 1rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: 1fr; }

  /* ── Navbar ── */
  .navbar-actions { gap: 0.4rem; }
  .lang-menu { min-width: 115px; }

  /* ── Corridor item: clip text overflow on very small screens ── */
  .corridor-item { flex-wrap: nowrap; gap: 0.5rem; padding: 0.75rem; }
  .corridor-info { min-width: 0; overflow: hidden; }
  .corridor-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .corridor-pair { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .corridor-bar { display: none; }

  /* ── CTA Banner ── */
  .cta-banner { padding: 2rem 1rem; }

  /* ── Grids ── */
  .guides-grid { grid-template-columns: 1fr; }
  .islands-grid { grid-template-columns: 1fr 1fr; }

  /* ── FAQ ── */
  .faq-question { font-size: 0.92rem; padding: 0.95rem 1rem; }

  /* ── Provider card stats ── */
  .provider-card-stats { grid-template-columns: 1fr; }

  /* ── Provider cards: single column on small screens ── */
  .providers-grid { grid-template-columns: 1fr; }

  /* ── Chart: prevent horizontal overflow on narrow screens ── */
  .chart-row { grid-template-columns: 52px 1fr; }
  .chart-label img { max-width: 48px; }
  .chart-detail { display: none; }
  .chart-meta { overflow: hidden; }
  .chart-bar-val { font-size: 0.68rem; }
  .chart-wrapper { overflow-x: hidden; }
}

/* ── PULSE ANIMATION FOR CTA ── */
/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 24px rgba(10,36,99,0.10);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: bottom 0.4s ease;
}
#cookie-banner.show { bottom: 0; }
.cookie-text { font-size: 0.88rem; color: var(--text); margin: 0; flex: 1; min-width: 200px; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 600px) {
  #cookie-banner { padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

@keyframes pulse { 0%, 100% { box-shadow: 0 4px 16px rgba(244,163,0,0.35); } 50% { box-shadow: 0 4px 28px rgba(244,163,0,0.6); } }
.btn-primary { animation: pulse 2.5s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* ── COUNT-UP ── */
.count-up { display: inline-block; }

/* ── PAGE HEADER ── */
.page-header { background: var(--hero-gradient); color: #fff; padding: 1.5rem 0; margin-bottom: 1.5rem; }
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; opacity: 0.7; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }

/* ── TABS ── */
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tab-btn { padding: 0.75rem 1.25rem; border: none; background: transparent; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; white-space: nowrap; font-family: var(--font); }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── ALERT ── */
.alert { padding: 1rem 1.25rem; border-radius: 10px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; }
.alert-info { background: rgba(30,136,229,0.08); border: 1px solid rgba(30,136,229,0.2); color: var(--secondary); }
.alert-success { background: rgba(46,125,50,0.08); border: 1px solid rgba(46,125,50,0.2); color: var(--success); }
.alert-warning { background: rgba(244,163,0,0.1); border: 1px solid rgba(244,163,0,0.25); color: var(--accent-dark); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.filter-btn {
  padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  color: var(--text); font-family: var(--font); transition: all .2s; white-space: nowrap;
}
.filter-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── SORT HEADERS ── */
.sort-th { cursor: pointer; user-select: none; white-space: nowrap; }
.sort-th:hover { color: var(--secondary); }
.sort-arrow { font-size: 0.75rem; opacity: 0.45; margin-left: 0.2em; }
.sort-arrow.active { opacity: 1; color: var(--accent); }

/* ── METHOD PILLS ── */
.method-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.method-pill {
  display: inline-flex; align-items: center; padding: 0.15rem 0.5rem;
  border-radius: 12px; font-size: 0.7rem; font-weight: 600; line-height: 1.4;
}
.method-bank  { background: rgba(30,136,229,0.1);  color: var(--secondary); }
.method-cash  { background: rgba(46,125,50,0.1);   color: var(--success); }
.method-mobile { background: rgba(244,163,0,0.12); color: var(--accent-dark); }

/* ── DISCLAIMER TOGGLE ── */
.disclaimer-toggle {
  margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.disclaimer-toggle summary {
  padding: 0.65rem 1rem; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  color: var(--text); list-style: none; background: var(--bg-alt);
  display: flex; align-items: center; gap: 0.4rem;
}
.disclaimer-toggle summary::-webkit-details-marker { display: none; }
.disclaimer-toggle summary::after { content: ' ▼'; font-size: 0.65rem; opacity: 0.5; margin-left: auto; }
.disclaimer-toggle[open] summary::after { content: ' ▲'; }
.disclaimer-body {
  padding: 0.85rem 1rem; font-size: 0.8rem; color: var(--text);
  border-top: 1px solid var(--border); line-height: 1.6;
}

/* ── MOBILE: results table → card layout ── */
@media (max-width: 768px) {
  /* Convert table structure to block/card */
  .results-table thead { display: none; }
  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td { display: block; width: 100%; }

  /* Each row becomes a card */
  .results-table tr {
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 0.75rem; padding: 0.85rem 1rem; background: #fff;
    box-shadow: 0 2px 8px rgba(10,36,99,0.06);
  }
  .results-table tr.best-deal { border-color: var(--accent); border-width: 2px; }

  /* Default data row: label on left, value on right */
  .results-table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.3rem 0; font-size: 0.9rem; border: none;
  }
  .results-table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--text); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.03em;
    flex-shrink: 0; margin-right: 0.75rem; white-space: nowrap;
  }

  /* Provider cell: full-width header row of the card */
  .results-table td:first-child {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0 0 0.7rem; border-bottom: 1px solid var(--border);
    margin-bottom: 0.35rem;
  }
  .results-table td:first-child::before { display: none; }
  .results-table td:first-child .provider-logo {
    flex-direction: row; align-items: center; gap: 0.65rem;
  }

  /* Hide rate (4th col) and method (6th col) — too detailed for mobile */
  .results-table td:nth-child(4),
  .results-table td:nth-child(6) { display: none; }

  /* Action cell: full-width CTA button at bottom of card */
  .results-table td:last-child {
    display: block; padding: 0.7rem 0 0;
    border-top: 1px solid var(--border); margin-top: 0.35rem;
  }
  .results-table td:last-child::before { display: none; }
  .results-table td:last-child .btn {
    width: 100%; justify-content: center;
    text-align: center; padding: 0.75rem 1rem;
  }
}
