:root {
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --bg: #080808;
  --panel: #0f0f0f;
  --card: #111111;
  --border: #1f1f1f;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: #ececec;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }

.uppercase-tracked {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  color: #8a8a8a;
}

.shadow-gold { box-shadow: 0 4px 24px -6px rgba(212, 175, 55, .45); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.card-gold {
  background: linear-gradient(160deg, rgba(212,175,55,.10), rgba(212,175,55,.02) 60%), #0f0f0f;
  border-color: rgba(212,175,55,.35);
}
.card-hover { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 12px 40px -12px rgba(212,175,55,.25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #0a0a0a;
  box-shadow: 0 6px 24px -8px rgba(212,175,55,.55);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline {
  border-color: #2c2c2c;
  color: #d8d8d8;
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-danger { background: rgba(220,38,38,.12); color: #f87171; border-color: rgba(220,38,38,.3); }
.btn-danger:hover { background: rgba(220,38,38,.2); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 8px; }

/* ---------- Forms ---------- */
.input, select.input, textarea.input {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 11px 14px;
  color: #ececec;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
.input:focus { border-color: var(--gold); }
[x-cloak] { display: none !important; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #9a9a9a;
  margin-bottom: 6px;
}

/* ---------- Nav ---------- */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #a8a8a8;
  transition: all .15s ease;
  font-size: 13.5px;
}
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.active { background: rgba(212,175,55,.12); color: var(--gold-bright); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-gold { background: rgba(212,175,55,.15); color: var(--gold-bright); border: 1px solid rgba(212,175,55,.35); }
.badge-green { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-red { background: rgba(220,38,38,.12); color: #f87171; border: 1px solid rgba(220,38,38,.3); }
.badge-purple { background: rgba(168,85,247,.12); color: #c084fc; border: 1px solid rgba(168,85,247,.3); }
.badge-amber { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-muted { background: rgba(255,255,255,.05); color: #8a8a8a; border: 1px solid #262626; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7a7a;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid #181818; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* ---------- Toasts ---------- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  max-width: 420px;
  transform: translateX(120%);
  transition: transform .3s ease;
  border: 1px solid;
}
.toast.show { transform: translateX(0); }
.toast-success { background: #0e1a14; border-color: rgba(16,185,129,.4); color: #a7f3d0; }
.toast-error { background: #1c0e0e; border-color: rgba(220,38,38,.4); color: #fecaca; }

/* ---------- Live console ---------- */
.console {
  background: #080808;
  border: 1px solid #1c1c1c;
  border-radius: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  max-height: 420px;
  overflow-y: auto;
}
.console-line { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #131313; align-items: flex-start; }
.console-line:last-child { border-bottom: none; }
.console-line .t { color: #555; white-space: nowrap; }
.console-line.done { color: #9f9f9f; }
.console-line.running { color: #f5d76e; background: rgba(212,175,55,.04); }
.console-line.failed { color: #f87171; }
.console-line .dot { margin-top: 3px; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.console-line.running .dot { animation: pulse-dot 1s infinite; }

/* ---------- Fade-in ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .35s ease both; }

.muted { color: #8a8a8a; }
.gold-text { color: var(--gold-bright); }
.divider-dashed { border: none; border-top: 1px dashed #262626; margin: 14px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

@media (max-width: 640px) {
  .card { padding: 16px; }
}
