:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --brand: #7aa2ff;
  --danger: #ff6b6b;
  --ok: #1dd1a1;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(122, 162, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(29, 209, 161, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: underline;
}
a:hover {
  color: white;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.92rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.9), rgba(29, 209, 161, 0.8));
  color: #0b1220;
}
.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav__link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero */
.hero {
  padding: 34px 0 8px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  line-height: 1.18;
}
.hero p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}
.hero__bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card__title {
  font-weight: 800;
  margin-bottom: 10px;
}
.card__steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.card__hint {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 26px 0;
}
.section--alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.section__head p {
  margin: 0 0 16px;
}

/* Controls */
.controls__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 0.92rem;
  color: var(--muted);
}
input[type="date"],
select {
  appearance: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}
input[type="date"]:focus,
select:focus {
  border-color: rgba(122, 162, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.18);
}

.controls__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 650;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn--primary {
  border-color: rgba(122, 162, 255, 0.55);
  background: rgba(122, 162, 255, 0.18);
}
.btn--primary:hover {
  background: rgba(122, 162, 255, 0.28);
}
.btn--danger {
  border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.14);
}
.btn--danger:hover {
  background: rgba(255, 107, 107, 0.22);
}
.btn--ghost {
  background: transparent;
}

.controls__status {
  margin-top: 12px;
}
.status {
  min-height: 22px;
  color: var(--muted);
}
.status--ok {
  color: rgba(29, 209, 161, 0.9);
}
.status--err {
  color: rgba(255, 107, 107, 0.95);
}

/* Layout grids */
.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.grid--2 {
  grid-template-columns: 1.2fr 0.8fr;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat__label {
  font-size: 0.92rem;
  color: var(--muted);
}
.stat__value {
  font-size: 1.55rem;
  font-weight: 900;
  margin-top: 8px;
}
.stat__value--small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

/* Map */
.map {
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Table */
.table-tools {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.table-wrap {
  margin-top: 10px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.95rem;
}
.table th {
  position: sticky;
  top: 0;
  background: rgba(11, 18, 32, 0.94);
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.data-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .controls__row {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

