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

:root {
  --bg: #0a1628;
  --bg2: #0f1d32;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.08);
  --text: #e8edf5;
  --text-dim: #8494a7;
  --text-muted: #556677;
  --green: #00e676;
  --green-dim: rgba(0,230,118,0.15);
  --yellow: #ffc107;
  --yellow-dim: rgba(255,193,7,0.15);
  --orange: #ff9800;
  --orange-dim: rgba(255,152,0,0.15);
  --red: #ff5252;
  --red-dim: rgba(255,82,82,0.15);
  --blue: #448aff;
  --radius: 16px;
  --radius-sm: 10px;
}

html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 16px);
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 24px);
  position: relative;
  overflow: hidden;
}

.mountains {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}
.mountains svg { width: 100%; height: 320px; }

/* Header */
header {
  position: relative;
  z-index: 1;
  padding: 24px 0 8px;
}
.header-vibe {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.tab-switcher {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  padding: 6px;
  border-radius: 999px;
  width: fit-content;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.tab-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(68,138,255,0.35);
}
.tab-panel[hidden] { display: none; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plane-icon {
  font-size: 36px;
  display: inline-block;
  transition: transform 0.6s ease;
}
.plane-icon.landing { transform: rotate(15deg) translateY(4px); }
.plane-icon.nope { transform: rotate(-30deg) translateX(8px); }
h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* Dial + Verdict Row */
.dial-verdict-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 0 20px;
}
.dial-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.time-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.time-dial {
  width: 180px;
  height: 180px;
  position: relative;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
}
.dial-track {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
}
.dial-knob {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: grab;
  left: 76px;
  top: -4px;
  z-index: 2;
  transition: box-shadow 0.15s;
}
.dial-knob:active { cursor: grabbing; box-shadow: 0 2px 16px rgba(68,138,255,0.5); }
.dial-marks {
  position: absolute;
  inset: 0;
}
.dial-mark {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  transform-origin: center;
}
.dial-mark:nth-child(1) { top: 2px; left: 50%; transform: translateX(-50%); }
.dial-mark:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.dial-mark:nth-child(3) { bottom: 2px; left: 50%; transform: translateX(-50%); }
.dial-mark:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }
.dial-labels { text-align: center; }
.dial-time { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.dial-date { font-size: 0.7rem; color: var(--text-dim); }
.now-btn {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 14px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}
.now-btn:hover { background: rgba(68,138,255,0.1); }

.verdict-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.source-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.factor-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,152,0,0.12);
  color: var(--orange);
}
.score-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 4px;
}
.score-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.score-badge.good { background: rgba(0,230,118,0.18); color: var(--green); border-color: rgba(0,230,118,0.35); }
.score-badge.ok { background: rgba(255,193,7,0.18); color: var(--yellow); border-color: rgba(255,193,7,0.35); }
.score-badge.meh { background: rgba(255,152,0,0.18); color: var(--orange); border-color: rgba(255,152,0,0.35); }
.score-badge.bad { background: rgba(255,82,82,0.18); color: var(--red); border-color: rgba(255,82,82,0.35); }

.economic-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.economic-panel .econ-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.economic-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.economic-panel li {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.economic-panel .econ-snark {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Alternative airport banner */
.alt-airport-banner {
  margin: 10px auto 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  animation: slideUp 0.4s ease-out;
  max-width: 340px;
}
.alt-airport-banner.alt-unlikely {
  background: var(--orange-dim);
  border: 1px solid rgba(255,152,0,0.25);
  color: var(--orange);
}
.alt-airport-banner.alt-nope {
  background: var(--red-dim);
  border: 1px solid rgba(255,82,82,0.25);
  color: var(--red);
}
.alt-airport-banner strong { color: var(--text); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.verdict-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--green) 360deg, rgba(255,255,255,0.06) 0);
  transition: background 0.6s ease;
  position: relative;
}
.verdict-inner {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.verdict-score {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--verdict-color, var(--text));
  transition: color 0.6s;
}
.verdict-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verdict-color, var(--text-dim));
  margin-top: 4px;
  transition: color 0.6s;
}
.verdict-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.flight-cat {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flight-cat.VFR { background: var(--green-dim); color: var(--green); }
.flight-cat.MVFR { background: rgba(68,138,255,0.15); color: var(--blue); }
.flight-cat.IFR { background: var(--orange-dim); color: var(--orange); }
.flight-cat.LIFR { background: var(--red-dim); color: var(--red); }

/* Condition Cards */
.conditions, .approach-info, .forecast, .raw-section {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.3s;
}
.card.warn { border-color: var(--yellow); }
.card.danger { border-color: var(--red); }
.card.good { border-color: var(--green); border-color: rgba(0,230,118,0.3); }
.card-icon { font-size: 1.2rem; margin-bottom: 6px; }
.card-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.card-value {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-detail {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Flight Board */
.flight-board { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.flight-board::-webkit-scrollbar { width: 4px; }
.flight-board::-webkit-scrollbar-track { background: transparent; }
.flight-board::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
.flight-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--flight-color, var(--text-muted));
  cursor: pointer;
  transition: border-color 0.15s;
}
.flight-row:hover { border-color: var(--blue); }
.flight-row.diverted { border-left-color: var(--red); opacity: 0.6; }
.flight-row.cancelled { border-left-color: var(--red); opacity: 0.4; text-decoration: line-through; }
.flight-ident {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 70px;
  color: var(--text);
}
.flight-origin {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 36px;
}
.flight-eta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  min-width: 65px;
}
.flight-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.flight-status.en-route { background: rgba(0,230,118,0.12); color: var(--green); }
.flight-status.delayed { background: rgba(255,193,7,0.12); color: var(--yellow); }
.flight-status.scheduled { background: rgba(59,130,246,0.1); color: var(--blue); }
.flight-status.landed { background: rgba(0,230,118,0.2); color: var(--green); }
.flight-status.cancelled { background: rgba(255,82,82,0.12); color: var(--red); }
.flight-status.diverted { background: rgba(255,82,82,0.15); color: var(--red); }
.flight-status.taxiing { background: rgba(255,193,7,0.15); color: var(--yellow); }
.flight-delay {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(255,82,82,0.15);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
}
.flight-score {
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.flight-score span {
  font-size: 0.55rem;
  font-weight: 700;
  opacity: 0.7;
}
.flight-scores {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.flight-scores .flight-score { margin-left: 0; }
.flight-score.econ {
  background: rgba(68,138,255,0.16);
  color: var(--blue);
}
.flight-score.overall {
  background: rgba(0,230,118,0.18);
  color: var(--green);
}
.flight-progress {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.flight-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width 0.3s;
}

/* Approach Info */
.approach-bar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.approach-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
  gap: 8px;
}
.approach-item:last-child { border-bottom: none; }
.approach-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0;
}
.approach-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Forecast */
.forecast-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--fc-color, var(--text-muted));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.fc-block:active {
  background: rgba(255,255,255,0.05);
}
.fc-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 58px;
  text-align: center;
  line-height: 1.2;
}
.fc-score-pill {
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 8px;
}
.fc-details {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.fc-prob {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--yellow);
  background: var(--yellow-dim);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.loading-text { color: var(--text-muted); font-size: 0.85rem; }

/* Raw METAR */
details summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
}
details pre {
  font-size: 0.65rem;
  color: var(--text-dim);
  background: var(--card-bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px 0 8px;
  border-top: 1px solid var(--card-border);
}
footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.disclaimer { font-size: 0.6rem !important; color: #445566 !important; }
.built-by {
  font-size: 0.7rem !important;
  color: var(--text-dim) !important;
  margin-top: 10px !important;
  letter-spacing: 0.01em;
}
.built-by strong { color: var(--text); font-weight: 700; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulsing { animation: pulse 2s ease infinite; }

/* Responsive */
@media (max-width: 400px) {
  .app { padding: 0 14px; }
  .dial-row { gap: 14px; }
  .time-dial { width: 140px; height: 140px; }
  .dial-knob { left: 56px; top: -4px; }
  .verdict-ring { width: 110px; height: 110px; }
  .verdict-inner { width: 90px; height: 90px; }
  .verdict-score { font-size: 1.8rem; }
  .cards { gap: 8px; }
  .card { padding: 10px; }
  .card-value { font-size: 1.1rem; }
}

@media (min-width: 481px) {
  .app { padding: 0 32px; }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
}

/* Help/Glossary Modal */
.help-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.help-btn:hover { border-color: var(--blue); color: var(--text); }

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.help-overlay.open { opacity: 1; pointer-events: auto; }

.help-modal {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.help-modal h2 { font-size: 1.2rem; margin: 0 0 16px; color: var(--text); }
.help-modal h3 { font-size: 0.85rem; font-weight: 700; color: var(--blue); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.help-modal p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin: 0 0 8px; }
.help-modal .score-example { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; margin: 0 3px; }
.help-modal .close-help {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.help-modal .close-help:hover { background: var(--blue); color: #fff; }

/* Data Sources Bar */
.sources-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 8px 16px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 4px;
}
.sources-bar span { white-space: nowrap; }
.sources-bar .src-label { color: var(--text-dim); font-weight: 600; margin-right: 4px; }
.sources-bar .src-dot { color: var(--green); margin: 0 2px; }
.sources-bar .src-dot-econ { color: var(--blue); }

/* Will It Go */
.go-hero {
  margin: 12px 0 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(68,138,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
}
.go-hero h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.go-subtitle {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.go-flights {
  padding-bottom: 24px;
}
.go-search {
  margin: 8px 0 12px;
}
.go-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.go-search-form input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.go-search-form input::placeholder { color: var(--text-dim); }
.go-search-form button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 16px rgba(68,138,255,0.25);
  cursor: pointer;
}
.go-search-status {
  min-height: 16px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.go-summary {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.go-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.go-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.go-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.go-card-main {
  flex: 1;
}
.go-flight {
  font-size: 0.95rem;
  font-weight: 700;
}
.go-flight-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
}
.go-time-line {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.go-time-text {
  font-weight: 700;
  color: var(--text);
}
.go-time-was {
  color: var(--text-muted);
  font-weight: 600;
}
.go-time-divider {
  height: 1px;
  background: var(--card-border);
  margin-top: 8px;
}
.go-inbound-line {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}
.go-status-pill {
  align-self: flex-start;
  margin-top: 6px;
}
.go-route { color: var(--text-dim); font-weight: 600; }
.go-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 90px;
}
.go-delay-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,82,82,0.85);
  display: inline-flex;
  align-items: center;
}
.go-delay-badge.early {
  background: rgba(0,200,83,0.75);
}
.go-score-badge {
  min-width: 54px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.go-econ-badge {
  min-width: 72px;
  height: 28px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: rgba(68,138,255,0.18);
  color: var(--blue);
}
.go-econ-badge.good { background: rgba(0,230,118,0.2); color: var(--green); }
.go-econ-badge.ok { background: rgba(255,193,7,0.22); color: var(--yellow); }
.go-econ-badge.meh { background: rgba(255,152,0,0.24); color: var(--orange); }
.go-econ-badge.bad { background: rgba(255,82,82,0.22); color: var(--red); }
.go-score-badge.good { background: rgba(0,230,118,0.2); color: var(--green); }
.go-score-badge.ok { background: rgba(255,193,7,0.22); color: var(--yellow); }
.go-score-badge.meh { background: rgba(255,152,0,0.24); color: var(--orange); }
.go-score-badge.bad { background: rgba(255,82,82,0.22); color: var(--red); }
.go-snark {
  font-size: 0.7rem;
  color: var(--text);
  text-align: right;
  font-weight: 600;
  line-height: 1.3;
}
.go-card-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.go-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px;
}
.go-section-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.go-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.go-section-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.go-section-detail {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.go-score-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.go-score-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}
.go-score-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.go-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease;
}
.go-score-row.good .go-score-bar span { background: var(--green); }
.go-score-row.ok .go-score-bar span { background: var(--yellow); }
.go-score-row.meh .go-score-bar span { background: var(--orange); }
.go-score-row.bad .go-score-bar span { background: var(--red); }
.go-score-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.go-card-highlight {
  border-color: rgba(68,138,255,0.6);
  box-shadow: 0 0 0 1px rgba(68,138,255,0.5), 0 12px 24px rgba(68,138,255,0.18);
  transform: translateY(-2px);
}

/* Built-by header credit */
.built-by-header {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin: -0.25rem 0 0.5rem 0;
  text-align: center;
}
.built-by-header strong { color: rgba(255,255,255,0.65); }

/* Contact link in footer */
.contact-footer-link { margin-top: 0.5rem; }
.contact-link-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.contact-link-btn:hover { color: rgba(255,255,255,0.8); }

/* Contact modal */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.contact-modal {
  background: #0f1e35;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  color: var(--text);
}
.contact-modal h2 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.contact-modal p { font-size: 0.85rem; color: var(--text-dim); margin: 0 0 1.25rem 0; }
.contact-modal label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.3rem; }
.contact-modal input, .contact-modal textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}
.contact-modal input:focus, .contact-modal textarea:focus {
  outline: none;
  border-color: rgba(68,138,255,0.6);
}
.required-note { font-weight: 400; color: #ef4444; }
.contact-actions { display: flex; gap: 0.75rem; }
.contact-actions button[type="submit"] {
  flex: 1;
  background: #448aff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.contact-actions button[type="submit"]:hover { background: #2979ff; }
.contact-actions button[type="button"] {
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.contact-status { margin-top: 0.75rem; font-size: 0.82rem; min-height: 1.2em; }
