:root {
  --bg: #090a0e;
  --bg-soft: #121622;
  --surface: #191f2d;
  --surface-strong: #1f2638;
  --text: #f1f5f9;
  --muted: #a3b1c6;
  --accent: #22c55e;
  --accent-soft: #14532d;
  --gold: #f8c146;
  --danger: #ef4444;
  --border: rgba(163, 177, 198, 0.25);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, #204327 0%, transparent 34%),
    radial-gradient(circle at 85% 80%, #1e293b 0%, transparent 38%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.shell {
  width: min(1100px, 94vw);
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(25, 31, 45, 0.95), rgba(18, 22, 34, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.dot:nth-child(1) {
  background: #ef4444;
}

.dot:nth-child(2) {
  background: #f59e0b;
}

.dot:nth-child(3) {
  background: #22c55e;
}

.brand {
  margin-left: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.content {
  padding: 32px 28px 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--muted);
}

.quote {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(248, 193, 70, 0.08);
  border-radius: 8px;
  color: #f8fafc;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.card-face {
  border: 1px solid rgba(248, 193, 70, 0.45);
  border-radius: 12px;
  padding: 14px;
  min-height: 150px;
  background: linear-gradient(140deg, rgba(6, 78, 59, 0.45), rgba(15, 23, 42, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8fafc;
}

.card-corner {
  font-size: 1.5rem;
  font-weight: 700;
}

.card-center {
  text-align: center;
  font-size: 2.2rem;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 83, 45, 0.2);
  color: #d1fae5;
}

.small {
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.nav a {
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.nav a.active {
  background: var(--accent-soft);
  border-color: rgba(34, 197, 94, 0.5);
}

.nav a.admin-tab {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  padding: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.5);
}

.kpi .value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

select {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

thead th {
  text-align: left;
  background: rgba(2, 6, 23, 0.7);
  font-weight: 600;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

tbody tr:nth-child(even) {
  background: rgba(2, 6, 23, 0.25);
}

.footer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #7f8ea5;
}

.code-pill {
  display: inline-block;
  font-family: Consolas, Monaco, monospace;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  color: #d1d5db;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}
