:root {
  --bg: #f0eee9;
  --fg: #1a1a2e;
  --accent: #e07c24;
  --accent-soft: #fef3e6;
  --surface: #ffffff;
  --border: #ddd8cf;
  --muted: #7a746d;
  --tag-bg: #e8e4de;
  --scanner-ct: #1a6b3c;
  --scanner-mixed: #7c4d0a;
  --scanner-standard: #5c3d7a;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: var(--fg);
  color: #fff;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #fff;
}
.logo-accent { color: var(--accent); }
.nav-tagline {
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions { }
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  box-shadow: 0 2px 12px rgba(26,26,46,0.06);
  margin-bottom: 0.8rem;
}
.search-icon {
  padding: 0 0.8rem;
  color: var(--accent);
  font-size: 1rem;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
}
.search-btn {
  background: var(--fg);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.search-btn:hover { background: var(--accent); }
.hero-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Departure Board */
.departure-board {
  background: var(--fg);
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,26,46,0.2);
  font-family: 'Sora', sans-serif;
}
.board-header {
  background: var(--accent);
  padding: 0.7rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.9);
}
.board-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.board-row-head {
  background: rgba(255,255,255,0.08);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.2rem;
  color: rgba(255,255,255,0.5);
}
.board-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  align-items: center;
  gap: 0.5rem;
}
.board-row:last-child { border-bottom: none; }
.airport-code {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.scanner-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.05em;
}
.scanner-ct { background: rgba(26,107,60,0.3); color: #4ade80; }
.scanner-mixed { background: rgba(124,77,10,0.3); color: #fbbf24; }
.scanner-standard { background: rgba(92,61,122,0.3); color: #c084fc; }
.lane-info {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
}
.board-row-more {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* Proof */
.proof {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}
.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.proof-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--fg);
  display: block;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-top: 0.3rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.proof-quote blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.proof-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

/* Features */
.features {
  padding: 5rem 2rem;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(26,26,46,0.07);
}
.feature-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Airports */
.airports {
  padding: 4rem 2rem 5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.airports-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.airport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.airport-tag {
  display: inline-block;
  background: var(--fg);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
}
.airports-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 5rem 2rem;
  background: var(--fg);
  color: #fff;
  text-align: center;
}
.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cta-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.cta-sub {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}
.cta-search .search-icon {
  color: var(--accent);
  padding: 0 0.8rem;
  font-size: 1rem;
}
.cta-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.95rem 0;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.cta-btn:hover { background: #c96a15; }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.footer-brand p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--fg); }
.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Checklist */
.checklist {
  padding: 2.5rem 2rem 5rem;
}
.checklist-inner {
  max-width: 680px;
  margin: 0 auto;
}
.checklist-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.checklist-back:hover { color: var(--fg); }

.checklist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.checklist-title-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.checklist-airport-code {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  line-height: 1;
}
.checklist-airport-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.checklist-airport-city {
  font-size: 0.85rem;
  color: var(--muted);
}
.scanner-badge {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  align-self: center;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.checklist-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.checklist-item-tip {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.checklist-item-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  padding-top: 0.1rem;
}
.checklist-item-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.checklist-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.checklist-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.checklist-cta-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.checklist-cta-btn {
  display: inline-block;
  background: var(--fg);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}
.checklist-cta-btn:hover { background: var(--accent); }

/* Not Found */
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}
.not-found-code {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1rem;
  opacity: 0.3;
  letter-spacing: -0.02em;
}
.not-found-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.8rem;
}
.not-found-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .proof-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof-stats { flex-wrap: wrap; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .board-row { grid-template-columns: 50px 1fr 1fr; font-size: 0.75rem; padding: 0.6rem 0.9rem; }
  .nav-tagline { display: none; }
  .hero-headline { font-size: 2.2rem; }
  .checklist-header { flex-direction: column; }
  .checklist-airport-code { font-size: 1.6rem; }
  .checklist-inner { padding-left: 0; padding-right: 0; }
}

/* Community Tips */
.tips-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.tips-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.tips-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
}
.tips-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.tip-submit-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.tip-submit-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}
.tip-form {}
.tip-form-row { margin-bottom: 0.8rem; }
.tip-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg);
  outline: none;
}
.tip-select:focus { border-color: var(--accent); }
.tip-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg);
  resize: vertical;
  min-height: 80px;
  outline: none;
  line-height: 1.5;
}
.tip-textarea:focus { border-color: var(--accent); }
.tip-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}
.tip-char-count { font-size: 0.75rem; color: var(--muted); }
.tip-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.tip-submit-btn:hover { background: #c96a15; }

.tip-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 1px solid #16a34a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.8rem;
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 500;
}
.tip-success-icon { font-size: 1rem; }
.tip-error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.8rem;
  color: #dc2626;
  font-size: 0.88rem;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tips-loading, .tips-empty {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.tips-empty { border-style: dashed; }

.tip-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  align-items: flex-start;
}
.tip-vote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  min-width: 32px;
}
.vote-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  transition: all 0.15s;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.vote-up.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.vote-btn.vote-down.active { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.tip-score {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  min-width: 20px;
  text-align: center;
}
.tip-content-box { flex: 1; }
.tip-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.tip-text {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.55;
}

/* Leaderboard table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.leaderboard-table th {
  background: var(--fg);
  color: rgba(255,255,255,0.7);
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}
.leaderboard-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr:hover td { background: var(--bg); }
.lb-rank {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--accent);
  width: 40px;
}
.lb-name { font-weight: 500; color: var(--fg); }
.lb-num { color: var(--muted); }
.badge-trusted {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* Admin */
.admin-tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}
.admin-tip-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.admin-airport-code {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}
.admin-date { font-size: 0.78rem; color: var(--muted); }
.admin-tip-text {
  font-size: 0.92rem;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.admin-actions { display: flex; gap: 0.7rem; }
.admin-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.admin-btn:hover { opacity: 0.8; }
.approve-btn { background: #16a34a; color: #fff; }
.reject-btn { background: #dc2626; color: #fff; }

@media (max-width: 768px) {
  .tip-card { flex-direction: column; }
  .tip-vote-box { flex-direction: row; align-self: flex-start; gap: 0.5rem; }
  .leaderboard-table { font-size: 0.82rem; }
}