:root {
  --bg: #f6f9fc;
  --panel: rgba(255, 255, 255, 0.9);
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #d6dce7;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-dark: #115e59;
  --danger: #b91c1c;
  --warn-bg: #fef3c7;
  --radius: 18px;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at -20% -10%, #d5f5f0 0%, transparent 55%),
    radial-gradient(900px 700px at 120% 10%, #e4ecff 0%, transparent 58%),
    var(--bg);
  color: var(--ink);
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100vh;
  line-height: 1.4;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.45;
  z-index: -1;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-a {
  width: 240px;
  height: 240px;
  background: #93c5fd;
  top: -40px;
  left: -70px;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: #67e8f9;
  right: -90px;
  bottom: 20%;
}

.shell {
  width: min(960px, 100% - 24px);
  margin: 0 auto;
  padding: 22px 0 44px;
}

.hero {
  padding: 10px 6px 20px;
  animation: rise 400ms ease-out both;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
}

.hero h1 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(34px, 10vw, 50px);
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.hero-links {
  margin-top: 12px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 700;
  font-size: 13px;
}

.hero-link:hover {
  border-color: #2dd4bf;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  animation: rise 480ms ease-out both;
}

.panel h2 {
  margin: 0 0 14px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 18px;
}

.field-block {
  margin-bottom: 16px;
}

.field-label {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 14px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font-weight: 700;
  color: var(--muted);
}

.mode-option input:checked + span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.inline-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mini-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.mini-input input {
  width: 74px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px;
  font-weight: 700;
}

.text-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
}

.text-input:focus,
.mini-input input:focus {
  outline: 2px solid #7dd3fc;
  border-color: transparent;
}

.helper-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #7dd3fc;
}

.chip.is-selected {
  background: var(--accent-soft);
  border-color: #34d399;
  color: var(--accent-dark);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(120deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(20, 184, 166, 0.25);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid #8adfd7;
}

.check-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: #7c2d12;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cards {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.map-results-panel {
  animation: rise 520ms ease-out both;
}

.btn-fit-map {
  width: auto;
  padding: 8px 11px;
  font-size: 12px;
}

.results-map {
  margin-top: 10px;
  height: min(62vh, 460px);
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid #c9d8eb;
  overflow: hidden;
}

.map-pin {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.map-pin.user {
  background: #2563eb;
}

.card {
  border: 1px solid #dbe4f0;
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  display: grid;
  gap: 8px;
  animation: fade-in 320ms ease-out both;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.price {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.price small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.station-name {
  font-weight: 800;
  margin: 0;
  font-size: 16px;
}

.station-legal {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.station-meta {
  font-size: 13px;
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
}

.badge-yes {
  background: #d1fae5;
  color: #065f46;
}

.badge-no {
  background: #e5e7eb;
  color: #6b7280;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.link-btn {
  text-decoration: none;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 13px;
}

.empty {
  border: 1px dashed #bfd1e8;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  gap: 10px;
}

.admin-card {
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 7px 6px;
  vertical-align: top;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  color: #334155;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.error-text {
  color: var(--danger);
}

@media (min-width: 900px) {
  .shell {
    padding-top: 28px;
  }

  .panel {
    padding: 22px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-panel .cards .card:first-child {
    grid-column: 1 / -1;
  }
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(14px);
  }
}
