:root {
  --ink: #e9eef4;
  --muted: #9aadc0;
  --line: rgba(201, 162, 39, 0.22);
  --gold: #d4b15a;
  --gold-2: #f0d48a;
  --sea: #0a1a28;
  --sea-2: #102433;
  --card: #143044;
  --card-2: #1a3b52;
  --danger: #e07a6a;
  --ok: #7dcea0;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", ui-sans-serif, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 177, 90, 0.14), transparent 50%),
    radial-gradient(900px 600px at 110% 0%, rgba(61, 184, 193, 0.12), transparent 45%),
    linear-gradient(180deg, #07131e 0%, var(--sea) 40%, #0d2233 100%);
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
header.app {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(10, 26, 40, 0.78);
  border-bottom: 1px solid var(--line);
}
header.app .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand {
  display: flex; align-items: baseline; gap: 10px; color: var(--ink);
}
.brand strong {
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.35rem; letter-spacing: 0.02em; font-weight: 700;
  color: var(--gold-2);
}
.brand span { color: var(--muted); font-size: 0.82rem; }
nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
nav a {
  margin-left: 0; color: var(--ink); font-size: 0.92rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav a.active, nav a:hover { border-bottom-color: var(--gold); color: var(--gold-2); }
.who { color: var(--muted); font-size: 0.8rem; margin-left: 0; }
h1 {
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 600; font-size: 1.7rem; margin: 28px 0 8px;
}
.lede { color: var(--muted); margin: 0 0 22px; }
.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--sea-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.filters.filters-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filters label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
input, select, button {
  font: inherit; color: var(--ink);
  background: #0c1e2c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
}
button, .btn {
  background: linear-gradient(180deg, #e1c16a, #b8892d);
  color: #1a1204; font-weight: 650; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 10px;
}
button.ghost, a.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.table-wrap { overflow: auto; border-radius: 12px; }
table {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
}
th, td {
  text-align: left; padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
th a { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
th a .arrow { color: var(--gold); }
td.wrap, th.ports { white-space: normal; max-width: 280px; }
tr:hover td { background: rgba(212, 177, 90, 0.06); }
.price { color: var(--gold-2); font-weight: 650; }
.muted { color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem;
}
.pager { display: flex; gap: 10px; align-items: center; margin-top: 16px; color: var(--muted); }
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth .card { width: min(440px, 100%); }
.auth h1 { margin-top: 0; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.auth input { font-size: 1rem; }
.error { color: var(--danger); margin: 0 0 10px; }
.secret-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #08151f; padding: 12px; border-radius: 10px;
  word-break: break-all; font-size: 0.9rem; border: 1px dashed var(--line);
}
.qr { display: block; margin: 12px auto; width: 210px; height: 210px; background: #fff; padding: 10px; border-radius: 12px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.stat {
  background: rgba(20, 48, 68, 0.7); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; min-width: 140px;
}
.stat b { display: block; font-size: 1.15rem; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 0.78rem; }
.detail dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.detail dd { margin: 0 0 12px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
@media (max-width: 980px) {
  .filters, .filters.filters-4 { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  header.app .row { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .filters, .filters.filters-4 { grid-template-columns: 1fr; }
  .filters button { width: 100%; }
}
