:root {
  color-scheme: dark;
  --ink: #f7f3ec;
  --muted: #b7c1bb;
  --panel: rgba(18, 25, 28, 0.92);
  --line: rgba(247, 243, 236, 0.13);
  --teal: #35d0b0;
  --coral: #ff776b;
  --gold: #e5c45a;
  --green: #79db7d;
  --bg: #0b1012;
  --danger: #ff776b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(11, 16, 18, 0.72), #0b1012 56%),
    url("/assets/images/privacy-map.png") top center / cover fixed,
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar, .panel, .card, .table, .alert {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.brand { font-weight: 850; }
.nav, .actions, .row-actions, .status-grid { display: flex; align-items: center; gap: 8px; }
.nav { flex-wrap: wrap; }

.nav a, .button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.button.primary, button.primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #071110;
  font-weight: 800;
}

.button.danger, button.danger { color: #160707; background: var(--danger); font-weight: 800; }
.button.gold, button.gold { color: #161006; background: var(--gold); font-weight: 800; }

.hero, .layout, .admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}

.panel, .card, .table, .alert { padding: 18px; }

.hero-visual {
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(11, 16, 18, 0.08), rgba(11, 16, 18, 0.52)),
    url("/assets/images/privacy-map.png") center / cover;
}

.headline {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 18, 0.84);
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 12ch; margin-bottom: 18px; font-size: 46px; line-height: 1.02; }
h2 { margin-bottom: 14px; font-size: 22px; }
h3 { margin-bottom: 4px; font-size: 16px; }
p, .muted { color: var(--muted); }

.form {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status.good { color: var(--green); }
.status.warn { color: var(--gold); }
.status.bad { color: var(--coral); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 25, 28, 0.92);
  padding: 18px;
}

.stat span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat strong { font-size: 30px; }

.alert { margin-bottom: 16px; }
.alert.error { border-color: rgba(255, 119, 107, 0.6); }
.alert.success { border-color: rgba(121, 219, 125, 0.6); }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .hero, .layout, .admin-grid, .split, .stats { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 38px; }
}
