:root {
  --bg: #0a0a0c; --text: #f5f5f7; --muted: rgba(245,245,247,0.55);
  --accent: #0a84ff; --accent-2: #ff375f;
  --glass: rgba(255,255,255,0.08); --glass-border: rgba(255,255,255,0.14);
  --glass-strong: rgba(30,30,35,0.72); --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  min-height: 100vh; overflow-x: hidden; cursor: none;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(10,132,255,0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255,55,95,0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(94,92,230,0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #121218 100%);
}
.hidden { display: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,0.55);
  transition: width 0.15s, height 0.15s, border-color 0.15s;
}
body.hovering .cursor-ring { width: 52px; height: 52px; border-color: rgba(10,132,255,0.8); }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  html, body { cursor: auto; }
}
.glass {
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
#lock-screen {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.lock-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(10,132,255,0.25), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,55,95,0.18), transparent 40%);
}
.lock-center { position: relative; text-align: center; padding: 2rem; }
.magnetic-title {
  font-size: clamp(3.2rem, 12vw, 7rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.05;
  display: flex; justify-content: center; flex-wrap: wrap; user-select: none;
}
.magnetic-title .letter {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
  will-change: transform;
}
.magnetic-title .letter:hover,
.magnetic-title .letter.near {
  transform: scale(1.35); color: #fff;
  text-shadow: 0 0 40px rgba(10,132,255,0.55);
}
.magnetic-title .letter.space { width: 0.35em; }
.lock-sub { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.lock-actions {
  margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}
.topbar {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.7rem 1.25rem; position: sticky; top: 12px;
  margin: 12px 12px 0; border-radius: 16px; z-index: 100; flex-wrap: wrap;
}
.brand { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; cursor: none; white-space: nowrap; }
.nav-tabs { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.tab {
  background: transparent; border: none; color: var(--muted);
  padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.88rem;
  font-family: inherit; cursor: none; transition: 0.18s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.tab.active { color: var(--text); background: rgba(255,255,255,0.12); font-weight: 600; }
.auth-area { display: flex; align-items: center; gap: 0.5rem; }
.user-chip {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); cursor: none;
}
.user-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.user-chip span { font-size: 0.82rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn {
  border: none; border-radius: 999px; padding: 0.55rem 1.15rem;
  font-size: 0.9rem; font-family: inherit; font-weight: 550; cursor: none; transition: 0.18s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--glass-border); }
.btn.ghost:hover { background: rgba(255,255,255,0.14); }
.btn.google { background: #fff; color: #111; }
.btn.google:hover { background: #f0f0f0; }
.btn.full { width: 100%; margin-top: 0.5rem; }
.btn.small { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.glass-btn {
  background: rgba(255,255,255,0.1); color: var(--text);
  border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
}
.glass-btn.primary { background: rgba(10,132,255,0.85); border-color: rgba(10,132,255,0.5); }
.glass-btn:hover { background: rgba(255,255,255,0.18); }
.glass-btn.primary:hover { filter: brightness(1.12); }
main { padding: 1.75rem 1.25rem 3rem; max-width: 1080px; margin: 0 auto; }
.page { display: none; animation: fadeIn 0.35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero { text-align: center; padding: 3.5rem 1.5rem; border-radius: var(--radius); }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.subtitle { color: var(--muted); font-size: 1.05rem; }
h2 { margin-bottom: 1.1rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.card { border-radius: var(--radius); padding: 1.25rem; }
.card.notice { text-align: center; font-size: 1.05rem; color: var(--muted); padding: 2.5rem 1.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.download-card {
  border-radius: 14px; padding: 1.1rem; background: var(--glass-strong);
  backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 0.65rem;
}
.download-card h3 { font-size: 1rem; }
.download-card a { color: var(--accent); text-decoration: none; font-weight: 600; }
.download-card a:hover { text-decoration: underline; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 2rem;
  color: var(--muted); border-radius: var(--radius);
}
.muted { color: var(--muted); }
.hint { font-size: 0.78rem; color: var(--muted); margin: 0.2rem 0 0.5rem; }
.account-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.account-header img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-border);
}
.account-meta .uname { font-size: 1.15rem; font-weight: 650; }
.badge {
  display: inline-block; font-size: 0.68rem; padding: 0.15rem 0.5rem;
  border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--muted);
  width: fit-content; margin-top: 0.2rem;
}
.badge.admin { background: var(--accent); color: #fff; }
.badge.timeout { background: #ff9f0a; color: #111; }
.badge.banned { background: var(--accent-2); color: #fff; }
.stat-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 0.5rem;
  padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 600; padding: 1rem;
}
.modal-content { width: 100%; max-width: 400px; border-radius: 20px; padding: 1.75rem; position: relative; }
.close-modal {
  position: absolute; top: 0.8rem; right: 1rem; background: none; border: none;
  color: var(--muted); font-size: 1.4rem; cursor: none;
}
.close-modal:hover { color: var(--text); }
.auth-form h3 { margin-bottom: 1rem; letter-spacing: -0.02em; }
.auth-form input {
  width: 100%; background: rgba(0,0,0,0.35); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 0.7rem 0.9rem; color: var(--text);
  margin-bottom: 0.55rem; font-size: 0.95rem; font-family: inherit;
}
.auth-form input:focus {
  outline: none; border-color: rgba(10,132,255,0.7);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.2);
}
.switch-text { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.switch-text a { color: var(--accent); text-decoration: none; }
.error { color: #ff6b6b; font-size: 0.85rem; margin-top: 0.45rem; min-height: 1.2em; }
.avatar-preview { text-align: center; margin: 0.6rem 0; }
.avatar-preview img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--glass-border); }
#ban-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,0.92); backdrop-filter: blur(20px);
}
.ban-box { text-align: center; padding: 2.5rem; border-radius: 20px; max-width: 420px; }
.ban-box h1 { color: var(--accent-2); margin-bottom: 0.6rem; }
.ban-box p { color: var(--muted); }
@media (max-width: 720px) {
  .topbar { margin: 8px; gap: 0.6rem; }
  .nav-tabs { order: 3; width: 100%; }
  .magnetic-title { font-size: 3rem; }
}
