:root {
  --bg0: #111114;
  --bg1: #15151a;
  --panel: rgba(34, 34, 40, 0.76);
  --panel2: rgba(34, 34, 40, 0.56);
  --border: rgba(255, 255, 255, 0.12);
  --border2: rgba(255, 255, 255, 0.08);
  --text: #f6f6f6;
  --muted: #d2d2d2;
  --muted2: #b6b6b6;
  --accent: #f5f5f5;
  --accent2: #d6d6d6;
  --gold: #c9a227;
  --gold2: #8e6b12;
  --good: #34d399;
  --bad: #fb7185;
}

html, body {
  height: 100%;
  background: var(--bg0) !important;
  color: var(--text);
}

body {
  background-image:
    radial-gradient(1200px 800px at 50% -200px, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(255, 255, 255, 0.08), transparent 65%),
    radial-gradient(900px 600px at 10% 30%, rgba(255, 255, 255, 0.06), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.02em;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
}

.card-muted {
  background: var(--panel2);
  border: 1px solid var(--border2);
}

.hero-card {
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(52, 52, 60, 0.78);
  color: var(--text);
}

.btn:hover { background: rgba(68, 68, 78, 0.90); }

.btn-primary,
.btn-cta {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.95), rgba(142, 107, 18, 0.95));
  border-color: rgba(201, 162, 39, 0.42);
  color: #0b0b0c;
}

.btn-primary:hover,
.btn-cta:hover {
  background: linear-gradient(180deg, rgba(215, 176, 55, 1), rgba(160, 121, 24, 1));
  border-color: rgba(215, 176, 55, 0.55);
}

.btn-quiet {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--accent);
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.07);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  border: 1px solid var(--border2);
  background: rgba(15, 23, 42, 0.55);
  color: var(--accent);
}

select, input, textarea {
  outline: none;
}

select {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
}

#proxies-table thead th {
  background: rgba(28, 28, 34, 0.92) !important;
  border-bottom: 1px solid var(--border);
}

#proxies-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.08) !important;
}

.modal-bg {
  background: rgba(2, 6, 23, 0.78);
}

#map, #home-map {
  border: 1px solid var(--border2);
  background: rgba(18, 18, 22, 0.45);
}

.leaflet-container.leaflet-dark {
  background: #0b0b0c;
}

.leaflet-container.leaflet-dark .leaflet-tile-pane {
  filter: invert(1) grayscale(1) brightness(0.78) contrast(1.12);
}

.leaflet-container.leaflet-dark .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.35);
  color: #e6e6e6;
}

.leaflet-container.leaflet-dark .leaflet-control-attribution a {
  color: var(--accent2);
}

.text-good { color: var(--good); }
.text-bad { color: var(--bad); }

.site-banner {
  margin: 2rem 0 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(40, 40, 46, 0.65);
  padding: 0.9rem 1rem;
}

.site-banner--warn {
  border-color: rgba(201, 162, 39, 0.40);
  background:
    radial-gradient(800px 240px at 20% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    rgba(40, 40, 46, 0.65);
}

.site-banner__title {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f5f5f5;
}

.site-banner__body {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35rem;
}

.site-banner__body strong {
  color: var(--gold);
  font-weight: 800;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-logo--header {
  height: 64px;
}

.site-logo--footer {
  height: 52px;
}

.about-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 520px;
}

.about-illustration-wrap {
  display: flex;
  flex: 0 1 360px;
  align-self: center;
  justify-content: center;
  align-items: center;
}

.about-illustration {
  width: clamp(260px, 28vw, 360px);
  max-width: 100%;
  height: auto;
}

.bg-slate-950 { background-color: #0d0d10 !important; }
.bg-slate-900 { background-color: var(--bg0) !important; }
.bg-slate-800 { background-color: #1a1a1f !important; }
.bg-slate-700 { background-color: #23232a !important; }

.text-slate-100 { color: var(--text) !important; }
.text-slate-200 { color: #e6e6e6 !important; }
.text-slate-300 { color: #d2d2d2 !important; }
.text-slate-400 { color: #b6b6b6 !important; }
.text-slate-500 { color: #8c8c8c !important; }

.border-slate-900,
.border-slate-800,
.border-slate-700 { border-color: var(--border) !important; }

.ring-slate-400 { --tw-ring-color: rgba(255, 255, 255, 0.22) !important; }
