:root {
  --white: #fff;
  --glass: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.15);
  --line: rgba(255,255,255,0.18);
  --text-soft: rgba(255,255,255,0.78);
  --shadow: 0 24px 70px rgba(69, 8, 89, 0.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, system-ui, sans-serif; color: var(--white); }
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #a84cf4 0%, #ef2ba6 45%, #ff6a1a 100%);
  position: relative;
  overflow-x: hidden;
}
.bg-orb { position: fixed; border-radius: 50%; filter: blur(60px); opacity: 0.6; pointer-events: none; }
.orb-a { width: 280px; height: 280px; background: rgba(255,255,255,0.12); top: -40px; left: -50px; }
.orb-b { width: 360px; height: 360px; background: rgba(255,210,230,0.16); right: -20px; top: 100px; }
.orb-c { width: 320px; height: 320px; background: rgba(255,195,150,0.14); left: 35%; bottom: -60px; }
.app-shell { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 40px 24px 72px; }
.hero-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.brand-wrap { display: flex; gap: 18px; align-items: center; }
.brand-icon {
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px;
  background: rgba(255,255,255,0.11); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(255,255,255,0.08);
}
.brand-wrap h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; font-weight: 900; }
.brand-wrap p { margin: 10px 0 0; font-size: clamp(18px, 2vw, 32px); color: var(--text-soft); }
.hud-wrap { display: flex; gap: 12px; }
.hud-pill {
  min-width: 92px; text-align: center; padding: 14px 16px; border-radius: 22px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.10); backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.08);
}
.hud-icon { font-size: 22px; }
.hud-value { font-size: 2rem; font-weight: 900; line-height: 1; margin-top: 4px; }
.hud-label { font-size: 13px; color: var(--text-soft); margin-top: 4px; }
.glass { background: rgba(255,255,255,0.09); border: 1px solid var(--line); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.search-card { margin-top: 26px; border-radius: 28px; padding: 28px; }
.search-rail { display: flex; gap: 14px; align-items: center; }
.search-input-wrap { position: relative; flex: 1; }
.search-pin { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.search-input-wrap input {
  width: 100%; height: 74px; border-radius: 18px; border: 2px solid rgba(255,255,255,0.2);
  background: #fff; color: #242438; font-size: 1.8rem; font-weight: 600; padding: 0 24px 0 56px; outline: none;
}
.btn {
  border: 0; height: 74px; min-width: 136px; padding: 0 26px; color: white; border-radius: 18px; font-size: 1.25rem;
  font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 18px 30px rgba(0,0,0,0.16);
}
.btn-search { background: linear-gradient(135deg, #8a2cff 0%, #d60084 100%); }
.btn-near { background: linear-gradient(135deg, #ff7b00 0%, #ff5f92 100%); }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip, .mini-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18); font-size: 14px; color: rgba(255,255,255,0.92);
}
.flash { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }
.hidden { display: none !important; }
.empty-state { min-height: 420px; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.empty-icon { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.empty-state h2 { font-size: clamp(42px, 6vw, 64px); line-height: 1.02; margin: 22px 0 10px; }
.empty-state p { font-size: clamp(22px, 2.2vw, 32px); color: var(--text-soft); max-width: 880px; margin: 0; }
.results-grid { display: grid; gap: 24px; grid-template-columns: 0.92fr 1.08fr; }
.left-column, .right-column { display: grid; gap: 24px; }
.card { border-radius: 28px; padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-head.compact { align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.72); }
.big-price { margin-top: 14px; font-size: clamp(52px, 5vw, 72px); font-weight: 900; line-height: 1; }
.station-name { margin-top: 10px; font-size: 1.4rem; font-weight: 700; }
.station-address { margin-top: 4px; font-size: .98rem; color: rgba(255,255,255,0.74); }
.winner-badge { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,0.12); font-size: 32px; }
.mini-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.level-title { margin-top: 10px; font-size: 2rem; font-weight: 800; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 16px; color: rgba(255,255,255,0.82); font-size: 14px; }
.progress-bar { height: 14px; margin-top: 10px; background: rgba(255,255,255,0.16); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #fff 0%, #ffd1f4 100%); border-radius: 999px; }
.leaderboard-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.leaderboard-head h3 { margin: 10px 0 0; font-size: 2rem; }
.leader-row { border-radius: 24px; padding: 18px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 35px rgba(69,8,89,0.12); }
.leader-top { display: flex; justify-content: space-between; gap: 16px; }
.leader-main { display: flex; gap: 14px; }
.rank-pill { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,0.16); font-size: 18px; font-weight: 900; }
.leader-name { font-size: 1.3rem; font-weight: 800; }
.leader-address { margin-top: 4px; color: rgba(255,255,255,0.7); font-size: .95rem; }
.leader-price { text-align: right; }
.leader-price .price { font-size: 2rem; font-weight: 900; }
.leader-price .hint { color: rgba(255,255,255,0.7); font-size: .9rem; }
.fuel-badge-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.fuel-badge { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); padding: 9px 12px; border-radius: 999px; font-size: 14px; }
.meta-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); padding: 8px 12px; border-radius: 999px; font-size: 13px; }
.mission-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.mission-card { border-radius: 24px; padding: 22px; }
.mission-card h4 { font-size: 1.35rem; margin: 14px 0 8px; }
.mission-card p { margin: 0; color: rgba(255,255,255,0.75); }
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .app-shell { padding: 24px 16px 48px; }
  .hero-header { flex-direction: column; }
  .search-card { padding: 18px; }
  .search-rail { flex-direction: column; }
  .search-input-wrap input, .btn { width: 100%; min-width: 0; font-size: 1.2rem; height: 64px; }
  .brand-wrap h1 { font-size: 3.2rem; }
}
