:root {
  --bg: #0a0a0f;
  --panel: rgba(255,255,255,0.03);
  --card: rgba(255,255,255,0.04);
  --primary: #9333ea;
  --primary-2: #ec4899;
  --warning: #f59e0b;
  --danger: #ef4444;
  --muted: #9ca3af;
  --text: #f8fafc;
  --accent: #9333ea;
  --success: #22c55e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0b2e 50%, #0a0a0f 100%);
  color: var(--text);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(17,24,39,0.75);
  border-bottom: 1px solid rgba(148,163,184,0.14);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56,189,248,0.14);
  color: var(--primary);
  font-size: 13px;
}

.header-right { display: flex; align-items: center; gap: 14px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.16);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1220;
}

.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 700; font-size: 13px; }
.user-discord { color: var(--muted); font-size: 12px; }

main { padding: 28px; max-width: 1200px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 { margin: 0; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; }
.badges { display: flex; gap: 8px; }
.badge {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.badge-premium { color: var(--text); background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: none; }
.badge-public { color: var(--success); background: rgba(34,197,94,0.1); }
.badge-private { color: var(--muted); background: rgba(148,163,184,0.1); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.35);
}
button.secondary { background: #1f2937; color: var(--text); border: 1px solid rgba(148,163,184,0.2); }
button:active { transform: translateY(1px); }

.empty { text-align: center; color: var(--muted); padding: 30px; border: 1px dashed rgba(148,163,184,0.25); border-radius: 14px; background: rgba(17,24,39,0.5); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal {
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.modal h2 { margin: 0 0 10px 0; }
.modal p { color: var(--muted); }
.modal .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.plan {
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  padding: 12px;
  background: rgba(17,24,39,0.6);
}
.plan h4 { margin: 0 0 6px 0; }
.plan ul { padding-left: 18px; margin: 8px 0; color: var(--muted); }
.close { float: right; cursor: pointer; color: var(--muted); }
.hidden { display: none !important; }

.glow-check {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34,211,238,0.8), 0 0 16px rgba(34,211,238,0.5);
  font-weight: 700;
}

.glow-x {
  color: #f87171;
  text-shadow: 0 0 8px rgba(248,113,113,0.7);
  font-weight: 700;
}

/* Staff panel */
.staff-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.staff-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.requests-grid { margin-top: 8px; }

.request-card {
  position: relative;
  overflow: hidden;
  animation: riseIn 420ms ease var(--delay, 0ms);
  animation-fill-mode: both;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-pending { background: rgba(245,158,11,0.18); color: #f8fafc; }
.status-approved { background: rgba(34,197,94,0.16); color: #34d399; }
.status-denied { background: rgba(239,68,68,0.16); color: #f87171; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.field input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.25);
  background: #0b1220;
  color: var(--text);
}

.toggles {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}
