:root {
  --bg: #0b0b0f;
  --bg-2: #14141b;
  --card: #16161f;
  --line: #262633;
  --text: #f5f5f7;
  --muted: #9aa0aa;
  --accent: #7c5cff;
  --discord: #5865f2;
  --google: #ffffff;
  --danger: #ff6b6b;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  min-height: 100vh;
}

.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 18px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

h1 {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.providers {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
}

.btn-discord { background: var(--discord); color: #fff; }
.btn-discord .btn-glyph { background: rgba(255, 255, 255, 0.18); }
.btn-discord:hover { filter: brightness(1.08); }

.btn-google { background: var(--google); color: #1a1a1a; }
.btn-google .btn-glyph { background: #1a1a1a; color: #fff; }
.btn-google:hover { filter: brightness(0.96); }

.fine {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}

.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* ── Dashboard ─────────────────────────────────────────────── */

body.dash { padding: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}

body.dash .card {
  max-width: 680px;
  margin: 28px auto;
}

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 28px;
}

.profile h1 { font-size: 22px; margin: 0; }
.handle { color: var(--accent); margin: 2px 0 0; font-size: 14px; }
.muted { color: var(--muted); margin: 2px 0 0; font-size: 14px; }

.meta {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 24px;
}

.meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--bg-2);
  padding: 14px 16px;
}

.meta dt { color: var(--muted); font-size: 13px; }
.meta dd { margin: 0; font-size: 14px; text-align: right; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: #cfc4ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
  text-transform: capitalize;
}

.tier {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.tier-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(180deg, #20202c, #15151d);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tier h2 { font-size: 16px; margin: 0 0 4px; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
