:root {
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --panel: #1a1a1a;
  --card: #1f1f1f;
  --gold: #d4af37;
  --gold-hover: #e5c158;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --text: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border: rgba(212, 175, 55, 0.2);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --panel-radius: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

html, body { height: 100%; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Header & Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--gold);
  letter-spacing: 1px;
}

.header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header nav a:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

/* Cards & Panels */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background: #252525;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
button, .btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--panel-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--gold);
  color: #000000;
}

button:hover, .btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

button.secondary {
  background: var(--panel);
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

button.secondary:hover {
  background: var(--gold-dim);
}

button.danger {
  background: var(--danger);
  color: white;
}

button.danger:hover {
  background: #dc2626;
}

button.success {
  background: var(--success);
  color: white;
}

button.success:hover {
  background: #059669;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

thead {
  background: var(--panel);
  border-bottom: 2px solid var(--border);
}

th {
  padding: 16px;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text);
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: var(--panel);
  border-color: var(--gold);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.online {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.badge.offline {
  background: rgba(128, 128, 128, 0.2);
  color: var(--text-muted);
}

.badge.gold {
  background: var(--gold-dim);
  color: var(--gold);
}

/* Headings */
h1 { font-size: 28px; color: var(--gold); margin-bottom: 24px; }
h2 { font-size: 22px; color: var(--text); margin-bottom: 16px; }
h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 12px; }

/* Utility Classes */
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }

.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Stats Cards */
.stat-card {
  background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 20px;
  text-align: center;
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--panel-radius);
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert.error, .alert.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.alert.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: var(--info);
}

/* Responsive */
@media (max-width: 768px) {
  .wrap { padding: 16px; }
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header nav { flex-direction: column; gap: 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  table { font-size: 12px; }
  th, td { padding: 10px 12px; }
}
