/* ============================================
   TUVUELO - Flight Deals Finder
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --bg-input: #1a1a25;
  --border: #2a2a3a;
  --text: #e8e8ef;
  --text-dim: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --green: #00d68f;
  --green-dim: rgba(0, 214, 143, 0.12);
  --orange: #ffa348;
  --orange-dim: rgba(255, 163, 72, 0.12);
  --red: #ff6b6b;
  --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.logo-icon { font-size: 1.5rem; }
.logo-svg { width: 28px; height: 28px; vertical-align: middle; margin-right: 4px; }
.logo-svg-sm { width: 22px; height: 22px; }
.logo-accent { color: var(--accent-light); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-badge {
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.15);
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

/* --- Hero --- */
.hero {
  min-height: auto;
  display: flex; align-items: center;
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(116, 185, 255, 0.08), transparent);
}
.hero-content { position: relative; text-align: center; max-width: 1100px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-size: 0.85rem; font-weight: 500;
  color: var(--green);
  background: var(--green-dim);
  padding: 8px 20px; border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 214, 143, 0.2);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 16px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 540px; margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Search Box --- */
.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow), 0 0 80px rgba(108, 92, 231, 0.05);
}
.search-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.search-input-wrap { position: relative; }
.search-input {
  width: 100%; padding: 16px 20px;
  font-size: 1.1rem; font-family: var(--font);
  background: var(--bg-input); color: var(--text);
  border: 2px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 4px;
  max-height: 240px; overflow-y: auto;
  display: none; z-index: 50;
  box-shadow: var(--shadow);
}
.search-suggestions.show { display: block; }
.suggestion-item {
  padding: 12px 20px; cursor: pointer;
  font-size: 0.95rem; color: var(--text);
  transition: background 0.15s;
  display: flex; justify-content: space-between; align-items: center;
}
.suggestion-item:hover { background: var(--bg-card-hover); }
.suggestion-item .code { color: var(--text-dim); font-size: 0.8rem; }

.selected-origin {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; margin-bottom: 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius); font-weight: 500;
}
.selected-origin .change-btn {
  margin-left: auto; background: none; border: none;
  color: var(--accent-light); cursor: pointer; font-size: 0.85rem;
  font-family: var(--font);
}
.selected-origin .change-btn:hover { text-decoration: underline; }

.search-options {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.search-select {
  width: 100%; padding: 12px 16px;
  font-size: 0.9rem; font-family: var(--font);
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%238888a0' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.search-select:focus { border-color: var(--accent); }

.flight-type-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.ft-btn {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.ft-btn:hover { background: rgba(255,255,255,0.1); }
.ft-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-search {
  width: 100%; padding: 16px;
  font-size: 1.05rem; font-weight: 600; font-family: var(--font);
  color: white; background: var(--accent);
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-search:hover { background: #5a4bd1; transform: translateY(-1px); }
.btn-search:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hero-trust {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 32px; flex-wrap: wrap;
}
.trust-item {
  font-size: 0.85rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
}

/* --- Timeline filters --- */
.tl-filters {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 24px;
}
.tl-filter-group {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.tl-filter-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
  min-width: 50px; text-align: right;
}
.tl-origin-filter,
.tl-dest-filter {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.tl-btn {
  padding: 8px 18px; border-radius: 20px;
  font-size: 0.85rem; font-family: var(--font); font-weight: 500;
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.tl-btn:hover { border-color: var(--accent); color: var(--text); }
.tl-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* --- Timeline track --- */
.timeline-wrap {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 8px;
}
.timeline-track {
  display: flex; gap: 12px;
  min-width: max-content; padding: 4px 0;
}
.timeline-hint {
  text-align: right; font-size: 0.75rem;
  color: var(--text-dim); margin-top: 8px;
}

/* Timeline date groups */
.tl-date-group {
  min-width: 130px; max-width: 160px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  flex-shrink: 0; transition: border-color 0.2s;
}
.tl-date-group:hover { border-color: var(--accent); }
.tl-date-group.tl-hot { border-color: var(--green); border-width: 2px; }
.tl-date-group.tl-good { border-color: rgba(0, 214, 143, 0.4); }
.tl-date-group.tl-discovery { border-color: var(--orange); border-width: 2px; }

.tl-date-header {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.tl-weekday { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }
.tl-day { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); line-height: 1.2; }
.tl-month { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }

.tl-flights { display: flex; flex-direction: column; gap: 6px; }
.tl-flight {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 8px; border-radius: 6px;
  text-decoration: none; color: var(--text);
  transition: background 0.15s; font-size: 0.8rem;
}
.tl-flight:hover { background: var(--bg-card-hover); }
.tl-route-line { display: flex; align-items: center; gap: 4px; }
.tl-rank {
  font-size: 0.62rem; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  color: var(--accent-light); background: rgba(108, 92, 231, 0.2);
}
.tl-rank-1 { color: white; background: var(--green); }
.tl-rank-top { color: var(--green); background: var(--green-dim); }
.tl-rank-ok { color: var(--accent-light); background: rgba(108, 92, 231, 0.2); }
.tl-route { color: var(--text-dim); font-size: 0.72rem; }
.tl-price-line { display: flex; align-items: center; gap: 6px; }
.tl-price { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.tl-pct {
  font-size: 0.68rem; font-weight: 600;
  color: var(--green); background: var(--green-dim);
  padding: 1px 5px; border-radius: 3px;
}

/* Discovery styles */
.tl-flight-discovery { border-left: 2px solid var(--orange); }
.tl-flight-discovery .tl-price { color: var(--orange); }
.tl-flight-discovery .tl-pct { color: var(--orange); background: var(--orange-dim); }
.tl-discovery-badge {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px;
  color: white; background: var(--orange);
}
.rank-item-discovery { border-left: 3px solid var(--orange); }
.rank-discovery-tag {
  font-size: 0.62rem; font-weight: 600;
  color: var(--orange); background: var(--orange-dim);
  padding: 1px 5px; border-radius: 3px;
  margin-left: 4px;
}

/* Sort toggle */
.tl-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.tl-sort-toggle {
  display: flex; gap: 0; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border);
}
.tl-sort-btn {
  padding: 6px 14px; font-size: 0.8rem; font-family: var(--font);
  background: var(--bg-card); color: var(--text-dim);
  border: none; cursor: pointer; transition: all 0.2s;
}
.tl-sort-btn:hover { color: var(--text); }
.tl-sort-btn.active { background: var(--accent); color: white; font-weight: 600; }
.tl-empty { color: var(--text-dim); font-size: 0.9rem; padding: 24px; }

/* --- Rankings --- */
.rankings-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.ranking-col {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.ranking-header { margin-bottom: 16px; }
.ranking-header h3 {
  font-family: var(--font-display); font-size: 1.1rem; margin-top: 4px;
}
.ranking-icon { font-size: 1.3rem; }
.ranking-sub { font-size: 0.8rem; color: var(--text-dim); }

.ranking-list { display: flex; flex-direction: column; gap: 4px; }
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.rank-item:hover { background: var(--bg-card-hover); }
.rank-pos {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.72rem; font-weight: 700; color: white;
}
.rank-pos-hot { background: var(--green); }
.rank-pos-cheap { background: var(--accent); }
.rank-info { flex: 1; min-width: 0; }
.rank-route { font-size: 0.85rem; font-weight: 500; display: block; }
.rank-date { font-size: 0.75rem; color: var(--text-dim); }
.rank-right { text-align: right; flex-shrink: 0; }
.rank-pct { font-size: 0.9rem; font-weight: 700; color: var(--green); display: block; }
.rank-price { font-size: 0.78rem; color: var(--text-dim); }
.rank-price-big { font-size: 0.95rem; font-weight: 700; color: var(--green); display: block; }
.rank-pct-small { font-size: 0.72rem; color: var(--text-dim); }
.rank-secondary {
  display: block; font-size: 0.68rem; color: var(--accent-light);
  margin-top: 2px; opacity: 0.8;
}
.rank-empty { color: var(--text-dim); font-size: 0.85rem; padding: 12px; }

/* --- Discoveries --- */
.disc-origin-group { margin-bottom: 24px; }
.disc-origin-label {
  font-size: 0.8rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.disc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.disc-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  text-decoration: none; color: var(--text);
  transition: all 0.2s; border-left: 3px solid var(--orange);
}
.disc-card:hover { border-color: var(--orange); background: var(--bg-card-hover); }
.disc-dest {
  font-size: 1rem; font-weight: 700; font-family: var(--font-display);
  margin-bottom: 4px;
}
.disc-meta { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.disc-date {
  font-size: 0.68rem; color: var(--text-dim);
  background: rgba(255,255,255,0.05); padding: 1px 6px;
  border-radius: 3px;
}
.disc-pct {
  font-size: 0.68rem; font-weight: 600; color: var(--green);
  background: var(--green-dim); padding: 1px 6px;
  border-radius: 3px;
}
.disc-avg {
  font-size: 0.68rem; color: var(--text-dim); margin-top: 4px;
}
.disc-price {
  font-size: 1.1rem; font-weight: 700; color: var(--orange);
  font-family: var(--font-display);
}

/* --- Loading --- */
.loading-box {
  text-align: center; padding: 80px 0;
}
.loading-spinner {
  width: 48px; height: 48px; margin: 0 auto 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }
.loading-box p { color: var(--text-dim); margin-bottom: 32px; }
.loading-steps { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.loading-step {
  font-size: 0.85rem; color: var(--text-dim);
  padding: 8px 16px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s;
}
.loading-step.active {
  color: var(--accent-light);
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
}
.loading-step.done { color: var(--green); border-color: var(--green); }

/* --- Results --- */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.results-header h2 { font-family: var(--font-display); font-size: 1.8rem; }
.results-subtitle { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
.btn-new-search {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 20px; font-family: var(--font); font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-new-search:hover { border-color: var(--accent); }

/* --- Deal Cards --- */
.deals-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.deal-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}
.deal-card-badge {
  position: absolute; top: 10px; right: 16px;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
  z-index: 1;
}
.badge-hot { background: var(--red); color: white; }
.badge-save { background: var(--green); color: #0a0a0f; }
.badge-creative { background: var(--orange); color: #0a0a0f; }

.deal-header {
  padding: 24px 24px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.deal-route { flex: 1; }
.deal-cities {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.deal-arrow { color: var(--accent-light); font-size: 1rem; }
.deal-country { font-size: 0.8rem; color: var(--text-dim); }
.deal-price-box { text-align: right; }
.deal-price {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  color: var(--green);
}
.deal-price-currency { font-size: 1rem; }
.deal-price-original {
  font-size: 0.85rem; color: var(--text-dim);
  text-decoration: line-through;
}

.deal-body { padding: 16px 24px 24px; }
.deal-details {
  display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.deal-detail {
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
}
.deal-insight {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem; color: var(--accent-light);
  line-height: 1.5;
  margin-bottom: 16px;
}
.deal-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.deal-booking-note { font-size: 0.72rem; color: var(--muted); opacity: 0.7; }
.btn-deal {
  flex: 1; padding: 12px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; text-align: center; text-decoration: none;
  display: inline-block;
}
.btn-deal-primary {
  background: var(--accent); color: white; border: none;
}
.btn-deal-primary:hover { background: #5a4bd1; }
.btn-deal-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-deal-secondary:hover { border-color: var(--accent); }

/* --- No Results --- */
.no-results { text-align: center; padding: 60px 0; }
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-display); margin-bottom: 8px; }
.no-results p { color: var(--text-dim); }

/* --- Monitored Routes Dashboard --- */
.section-sub {
  color: var(--text-dim); font-size: 0.95rem;
  max-width: 560px; margin: 8px auto 0;
}
.monitored-filters {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.mf-btn {
  padding: 8px 20px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500; font-family: var(--font);
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.mf-btn:hover { border-color: var(--accent); color: var(--text); }
.mf-btn.active {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
  color: var(--accent-light); font-weight: 600;
}

.monitored-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.monitored-loading {
  grid-column: 1 / -1; text-align: center; padding: 40px 0;
}
.monitored-loading p { color: var(--text-dim); margin-top: 12px; }
.monitored-empty { text-align: center; padding: 40px 0; color: var(--text-dim); }

.mr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.3s;
  position: relative;
}
.mr-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.1);
}
.mr-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.mr-route {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
}
.mr-route-arrow { color: var(--accent-light); margin: 0 6px; }
.mr-type {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.mr-type-round { background: rgba(108, 92, 231, 0.15); color: var(--accent-light); }
.mr-type-oneway { background: var(--orange-dim); color: var(--orange); }

.mr-price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.mr-cheapest {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; color: var(--green);
}
.mr-cheapest-date {
  font-size: 0.8rem; color: var(--text-dim);
}
.mr-avg {
  font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 12px;
}

.mr-anomaly {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.mr-anomaly-good { background: var(--green-dim); color: var(--green); }
.mr-anomaly-incredible { background: var(--orange-dim); color: var(--orange); }
.mr-anomaly-error { background: rgba(255, 107, 107, 0.15); color: var(--red); }

.mr-trend {
  font-size: 0.78rem; color: var(--text-dim);
  margin-top: 8px;
}
.mr-trend-dropping { color: var(--green); }
.mr-trend-rising { color: var(--red); }

.mr-no-data {
  color: var(--text-dim); font-size: 0.88rem;
  padding: 12px 0;
}

.mr-cheapest-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  transition: opacity 0.15s;
}
.mr-cheapest-link:hover { opacity: 0.8; }

/* Discount badges */
.mr-discounts {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.mr-discount {
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
}
.mr-discount-period {
  background: var(--green-dim); color: var(--green);
}
.mr-discount-month {
  background: var(--orange-dim); color: var(--orange);
}

/* Top 5 cheapest dates */
.mr-top5 {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mr-top5-title {
  font-size: 0.75rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px; font-weight: 600;
}
.mr-top5-list {
  display: flex; flex-direction: column; gap: 4px;
}
.mr-top5-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  text-decoration: none; color: var(--text);
  transition: background 0.15s;
  font-size: 0.85rem;
}
.mr-top5-item:hover {
  background: var(--bg-card-hover);
}
.mr-top5-rank {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.7rem; font-weight: 700;
  background: var(--accent); color: white;
  flex-shrink: 0;
}
.mr-top5-item:first-child .mr-top5-rank {
  background: var(--green);
}
.mr-top5-date {
  flex: 1; color: var(--text-dim);
}
.mr-top5-pct {
  font-size: 0.72rem; font-weight: 600;
  color: var(--green); background: var(--green-dim);
  padding: 1px 5px; border-radius: 3px;
}
.mr-top5-price {
  font-weight: 600; color: var(--green);
}
.mr-top5-item:hover .mr-top5-price {
  text-decoration: underline;
}

/* --- How it works --- */
.section { padding: 80px 0; }
.section-dark {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent-light);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center; padding: 32px 24px;
  position: relative;
}
.step-number {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 800;
  color: rgba(108, 92, 231, 0.08);
  line-height: 1;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; position: relative; }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; margin-bottom: 8px; position: relative;
}
.step-card p { font-size: 0.9rem; color: var(--text-dim); position: relative; line-height: 1.6; }

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-content { text-align: center; }
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; margin-bottom: 8px;
}
.footer-brand p {
  color: var(--text-dim); font-size: 0.9rem;
  max-width: 480px; margin: 0 auto 24px;
}
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .deals-grid { grid-template-columns: 1fr; }
  .monitored-grid { grid-template-columns: 1fr; }
  .rankings-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
  .nav-right { gap: 12px; }
  .nav-link { display: none; }
  .hero { padding: 100px 0 40px; }
  .tl-date-group { min-width: 110px; }
}

@media (max-width: 480px) {
  .deal-cities { font-size: 1.1rem; }
  .deal-price { font-size: 1.4rem; }
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
