/* Shared chrome for the account pages. index.html keeps its own inline
   styles; these tokens are copied from it so the two stay visually
   consistent without refactoring the landing page. */
:root {
  --bg: #0b0c10;
  --bg-elevated: #14151b;
  --border: #23252e;
  --text: #e8e9ee;
  --text-dim: #9a9ca8;
  --accent: #e0459c;
  --accent-soft: rgba(224, 69, 156, 0.12);
  --discord: #5865f2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute is display:none in the UA stylesheet, which any
   author rule setting display beats - .btn is display:flex, so a hidden
   button stayed visible. */
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 12, 16, 0.85);
}
nav {
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 0.95rem; color: var(--text-dim); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.card {
  width: 100%; max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}
h1 { font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.sub { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 26px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 18px;
  border: 0; border-radius: 10px;
  font-size: 0.98rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { filter: brightness(1.08); }
.btn-secondary {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: #34374a; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.code-input {
  width: 100%; padding: 14px 16px; margin-bottom: 14px;
  background: #0e0f14; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 1.35rem; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center; letter-spacing: 0.16em; text-transform: uppercase;
}
.code-input:focus { outline: none; border-color: var(--accent); }

.row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.row:last-of-type { border-bottom: 0; }
.row .k { color: var(--text-dim); }
.row .v { font-weight: 600; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(224, 69, 156, 0.35);
}
.note {
  margin-top: 22px; font-size: 0.85rem; color: var(--text-dim); line-height: 1.6;
}
.msg { margin-top: 16px; font-size: 0.9rem; min-height: 1.4em; }
.msg.err { color: #ff8098; }
.msg.ok { color: #4ade80; }

footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center; color: var(--text-dim); font-size: 0.85rem;
}
footer a { text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }
