﻿/* ================================================
   Voola — Global Stylesheet
   Font: Inter | Primary: #2563eb | BG: #f8fafc
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-mid:    #dbeafe;
  --text:        #0f172a;
  --text-mid:    #374151;
  --text-soft:   #64748b;
  --text-muted:  #94a3b8;
  --border:      #e2e8f0;
  --border-mid:  #cbd5e1;
  --bg:          #f8fafc;
  --bg-card:     #ffffff;
  --radius:      16px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:0 4px 20px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  --transition:  0.18s ease;

  /* Airline colors */
  --smiles:      #f97316;
  --latam:       #1e40af;
  --tudoazul:    #0284c7;
  --voeazul:     #0369a1;
  --tap:         #059669;
  --iberia:      #dc2626;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: 36px; font-weight: 900; letter-spacing: -0.8px; line-height: 1.2; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p  { color: var(--text-soft); }

/* ── NAVBAR ── */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  background: var(--blue);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg);
}

.nav-spacer { flex: 1; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-plan-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-nav {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-nav:hover { background: var(--blue-dark); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: white;
  border-color: var(--border-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
}
.btn-ghost:hover { background: var(--blue-light); }

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 56px 32px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(37,99,235,0.3) 0%, transparent 68%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.18);
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 16px;
  position: relative;
}

.hero h1 {
  color: white;
  margin-bottom: 10px;
  position: relative;
}

.hero h1 span { color: #60a5fa; }

.hero .subtitle {
  font-size: 16px;
  color: #94a3b8;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

/* ── SEARCH CARD ── */
.search-card {
  background: white;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: -44px auto 32px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.trip-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.trip-tab {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-soft);
  transition: all 0.2s;
}

.trip-tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fields-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.field {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: background var(--transition);
  min-width: 0;
  position: relative;
}

.field:hover { background: #f8fafc; }
.field:focus-within { background: #eff6ff; }
.field + .field { border-left: 1.5px solid var(--border); }

.field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.field input,
.field select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 0;
  outline: none;
  width: 100%;
  cursor: pointer;
}

.field input::placeholder { color: var(--text-muted); font-weight: 500; }

.field .fsub {
  font-size: 11px;
  color: var(--text-muted);
}

.swap-btn {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.2s;
  background: white;
  border-top: none;
  border-bottom: none;
}

.swap-btn:hover {
  background: #f1f5f9;
  color: var(--blue);
  transform: rotate(180deg);
}

.passengers-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.pax-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.pax-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

.pax-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.pax-counter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pax-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.pax-btn:hover { border-color: var(--blue); color: var(--blue); }

.pax-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 18px;
  text-align: center;
}

/* ── AIRLINE CHIPS ── */
.airlines-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.airlines-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.cia-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
  color: var(--text-mid);
  user-select: none;
}

.cia-chip:hover { border-color: var(--border-mid); }

.cia-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cia-chip.on { color: white; border-color: transparent; }

.cia-smiles  .dot { background: var(--smiles); }
.cia-latam   .dot { background: var(--latam); }
.cia-tudoazul .dot { background: var(--tudoazul); }
.cia-voeazul .dot { background: var(--voeazul); }
.cia-tap     .dot { background: var(--tap); }
.cia-iberia  .dot { background: var(--iberia); }

.cia-smiles.on   { background: var(--smiles); }
.cia-latam.on    { background: var(--latam); }
.cia-tudoazul.on { background: var(--tudoazul); }
.cia-voeazul.on  { background: var(--voeazul); }
.cia-tap.on      { background: var(--tap); }
.cia-iberia.on   { background: var(--iberia); }

.search-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.search-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.search-btn:active { transform: translateY(0); }

/* ── LAYOUT CONTAINERS ── */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  padding: 32px 0 64px;
}

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--border-mid);
}

/* ── AIRLINE RESULT CARDS ── */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.r-card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  overflow: hidden;
}

.r-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.r-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.r-cia-badge {
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.r-card-header h4 {
  font-size: 15px;
  color: var(--text);
}

.r-card-header .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.r-open-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.r-open-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── FARE ROWS ── */
.fare-rows { padding: 0; }

.fare-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto 120px;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--transition);
}

.fare-row:last-child { border-bottom: none; }
.fare-row:hover { background: #fafafa; }

.fare-row.best-fare { background: #f0fdf4; }
.fare-row.best-fare:hover { background: #dcfce7; }

.fare-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fare-name .fare-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Bagagem icons */
.baggage-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bag-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.bag-tag.included { background: #dcfce7; color: #15803d; }
.bag-tag.not-included { background: #fef2f2; color: #b91c1c; }
.bag-tag.addable { background: #fef9c3; color: #854d0e; }
.bag-tag.carry-on { background: #eff6ff; color: #1d4ed8; }

.fare-price {
  text-align: right;
}

.fare-price .price-main {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.fare-price .price-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.fare-calc {
  text-align: right;
}

.fare-calc .miles-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.fare-calc .miles-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.fare-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.fare-open-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fare-open-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── CALCULATOR PANEL ── */
.calc-panel {
  background: var(--blue-light);
  border-top: 1px solid var(--blue-mid);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.calc-input {
  width: 110px;
  padding: 6px 10px;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color var(--transition);
}

.calc-input:focus { border-color: var(--blue); }

.calc-result {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  flex: 1;
}

.calc-result .calc-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.calc-result .calc-economy {
  color: #15803d;
  font-weight: 700;
}

.calc-result .calc-diff {
  color: #b91c1c;
  font-weight: 700;
}

/* ── RESULTS HEADER ── */
.results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.results-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  flex: 1;
}

.results-title strong { color: var(--text); }

.config-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.config-link:hover { background: var(--blue-mid); }

/* ── SETTINGS PAGE ── */
.settings-section {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.settings-section-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.settings-section-header .section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.settings-body { padding: 20px 24px; }

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.settings-row.single { grid-template-columns: 1fr; }
.settings-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.input-group .input-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.form-input::placeholder { color: var(--text-muted); font-weight: 400; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.toggle-row:last-child { border-bottom: none; padding-bottom: 0; }

.toggle-info { flex: 1; }
.toggle-info .toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-info .toggle-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-mid);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

.tier-config {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.tier-config:last-child { margin-bottom: 0; }

.tier-label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.tier-label .tier-range { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }

/* ── CALENDAR PAGE ── */
.calendar-wrap {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.calendar-month-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-soft);
  transition: all var(--transition);
}

.cal-nav-btn:hover { border-color: var(--blue); color: var(--blue); }

.duration-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.duration-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: 4px;
}

.dur-btn {
  padding: 5px 11px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
}

.dur-btn:hover { border-color: var(--blue); color: var(--blue); }
.dur-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.calendar-grid { padding: 16px 20px 20px; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: 1.5px solid transparent;
  min-height: 56px;
}

.cal-day:hover { transform: scale(1.04); box-shadow: var(--shadow-hover); }
.cal-day.empty { cursor: default; }
.cal-day.empty:hover { transform: none; box-shadow: none; }

.cal-day.selected { border-color: var(--text) !important; box-shadow: 0 0 0 2px var(--text); }

.cal-day .day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.cal-day .day-price {
  font-size: 10px;
  font-weight: 600;
  color: inherit;
  margin-top: 2px;
}

/* Price color tiers */
.price-cheap  { background: #14532d; color: white; }
.price-cheap .day-num, .price-cheap .day-price { color: white; }

.price-low    { background: #16a34a; color: white; }
.price-low .day-num, .price-low .day-price { color: white; }

.price-medium { background: #ca8a04; color: white; }
.price-medium .day-num, .price-medium .day-price { color: white; }

.price-high   { background: #dc2626; color: white; }
.price-high .day-num, .price-high .day-price { color: white; }

.price-none   { background: #f1f5f9; }
.price-none .day-num { color: var(--text-muted); }
.price-none .day-price { color: var(--text-muted); }

/* Calendar legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* ── CALENDAR DETAIL PANEL ── */
.calendar-detail {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.detail-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header h3 { font-size: 15px; }
.detail-header .close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-soft);
  transition: all var(--transition);
}
.detail-header .close-btn:hover { border-color: var(--text); color: var(--text); }

.detail-cia-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--transition);
}

.detail-cia-row:last-child { border-bottom: none; }
.detail-cia-row:hover { background: #fafafa; }

.detail-cia-name { display: flex; align-items: center; gap: 8px; }
.detail-cia-dot { width: 8px; height: 8px; border-radius: 50%; }
.detail-cia-label { font-size: 13px; font-weight: 600; color: var(--text); }

.detail-price-group { text-align: right; }
.detail-price-r { font-size: 14px; font-weight: 800; color: var(--text); }
.detail-price-m { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── LOGIN PAGE ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 24px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.auth-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 20px;
  text-decoration: none;
}

.auth-header h2 { font-size: 20px; margin-bottom: 6px; }
.auth-header p { font-size: 13px; }

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  background: white;
  border-top: none;
  border-left: none;
  border-right: none;
}

.auth-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.auth-body { padding: 28px 32px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 5px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-google:hover { background: var(--bg); border-color: var(--border-mid); }

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover { background: var(--blue-dark); }

/* ── PLANS PAGE ── */
.plans-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.plans-toggle label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
}

.plans-toggle label.active { color: var(--text); }

.annual-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.plan-card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
}

.plan-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-hover);
}

.plan-featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.plan-price sup { font-size: 16px; font-weight: 700; vertical-align: super; }
.plan-price .period { font-size: 14px; font-weight: 500; color: var(--text-soft); }

.plan-users {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
}

.plan-features li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-plan {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
}

.btn-plan:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.plan-card.featured .btn-plan { background: var(--blue); color: white; border-color: var(--blue); }
.plan-card.featured .btn-plan:hover { background: var(--blue-dark); }

/* ── WISE RATE INDICATOR ── */
.wise-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

.wise-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── AZUL SPECIAL CARD ── */
.azul-options { padding: 4px 20px 20px; }

.azul-option-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-bottom: 4px;
}

.azul-option-row:hover { background: var(--bg); }
.azul-option-row.best { background: #f0fdf4; }

.azul-opt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.azul-opt-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.azul-opt-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  text-align: right;
}

.azul-opt-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* ── FREE / PLAN GATE ── */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.upgrade-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--blue-light);
  transition: background var(--transition);
}
.upgrade-link:hover { background: var(--blue-mid); }

/* Mode toggle */
.mode-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.mode-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: 4px;
}

.mode-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text-soft);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mode-btn:hover:not(.locked) { border-color: var(--blue); color: var(--blue); }
.mode-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.mode-btn.locked {
  cursor: default;
  color: var(--text-muted);
  border-style: dashed;
}

.lock-icon { font-size: 11px; }

/* Chip counter badge */
.chips-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 8px;
  margin-left: 4px;
}

.chips-counter.at-limit { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

.cia-chip.locked-chip {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}

/* Upgrade inline nudge */
.upgrade-nudge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #92400e;
  font-weight: 500;
  margin-bottom: 12px;
}

.upgrade-nudge.visible { display: flex; }
.upgrade-nudge a { color: var(--blue); font-weight: 700; text-decoration: none; }
.upgrade-nudge a:hover { text-decoration: underline; }

/* Calendar gate overlay */
.cal-gate {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cal-gate-card {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.cal-gate-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.cal-gate-card h2 { font-size: 22px; margin-bottom: 8px; }
.cal-gate-card p { font-size: 14px; margin-bottom: 24px; }

/* Result card mode-aware */
.r-card.mode-miles .fare-calc,
.r-card.mode-cash  .fare-price.miles-price { display: none; }

/* Free plan results banner */
.free-results-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.free-results-banner p {
  font-size: 13px;
  color: #78350f;
  font-weight: 500;
}

/* ── TOAST / NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: slide-in 0.2s ease;
  max-width: 300px;
}

.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }

@keyframes slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 300px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding: 36px 16px 72px; }
  .hero h1 { font-size: 28px; }
  .search-card { margin: -36px 12px 24px; padding: 18px; border-radius: 16px; }
  .fields-row { flex-direction: column; border-radius: 12px; }
  .field + .field { border-left: none; border-top: 1.5px solid var(--border); }
  .swap-btn { display: none; }
  .container { padding: 0 16px; }
  .fare-row { grid-template-columns: 1fr; gap: 6px; }
  .fare-row .fare-price, .fare-row .fare-calc, .fare-row .fare-action { text-align: left; }
  .plans-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .settings-row { grid-template-columns: 1fr; }
  .settings-row.triple { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
  .auth-card { border-radius: 16px; }
  .auth-body { padding: 20px; }
  .auth-header { padding: 24px 20px 18px; }
}
