@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08070c;
  --surface: #0f0d15;
  --surface-2: #14101d;
  --purple: #6843ce;
  --purple-soft: #8465d8;
  --text: #f7f5fb;
  --muted: #aaa3af;
  --line: rgba(132, 101, 216, .22);
  --success: #4ade80;
  --danger: #fb7185;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(800px 420px at 50% -220px, rgba(104,67,206,.18), transparent 72%),
    var(--bg);
  color: var(--text);
  font-family: "Work Sans", sans-serif;
}

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  height: 74px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.staff-pill {
  border: 1px solid var(--line);
  background: rgba(104,67,206,.08);
  color: #bcaee6;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-page {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.login-card {
  width: min(520px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(104,67,206,.10), rgba(15,13,21,.96) 48%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  text-align: center;
}

.login-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(104,67,206,.28));
}

.eyebrow {
  margin-top: 22px;
  color: var(--purple-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}

.gradient {
  background: linear-gradient(90deg, #8b6ce0, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copy {
  margin: 0 auto 26px;
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.discord-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.discord-btn,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, #7653d8, var(--purple));
  box-shadow: 0 12px 28px rgba(104,67,206,.22);
}

.discord-btn:hover,
.primary-btn:hover { filter: brightness(1.08); }

.discord-btn svg { width: 18px; height: 18px; }

.error {
  display: none;
  margin: 0 0 18px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251,113,133,.25);
  background: rgba(251,113,133,.08);
  color: #fda4af;
  font-size: 11px;
}

.dashboard {
  padding: 40px 0 70px;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-head h1 {
  font-size: 38px;
  margin: 0 0 8px;
}

.dashboard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.user-box img,
.avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(104,67,206,.18);
}

.user-name { font-size: 12px; font-weight: 700; }
.user-id { color: var(--muted); font-size: 9px; margin-top: 2px; }

.logout {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.logout:hover { color: white; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(104,67,206,.08), rgba(14,12,19,.94) 52%),
    var(--surface);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132,101,216,.28);
  border-radius: 10px;
  background: rgba(104,67,206,.10);
  color: #ad98e5;
  margin-bottom: 22px;
}

.card-icon svg { width: 17px; height: 17px; }
.card h2 { margin: 0 0 7px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.card.disabled { opacity: .58; }

.footer {
  padding: 24px 0;
  color: #716a7a;
  font-size: 10px;
  border-top: 1px solid rgba(104,67,206,.15);
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 64px; }
  .login-page { min-height: calc(100vh - 64px); padding: 24px 0; }
  .login-card { padding: 28px 18px; }
  .discord-btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .user-box { width: 100%; }
  .dashboard-head h1 { font-size: 32px; }
}
