/* ═══════════════════════════════════════════════════════
   Nulvex Platform — Design System
   Shared across all platform pages (auth, forum, dashboard)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.cdnfonts.com/css/lemon-milk');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --accent:       #8b6fff;
  --accent2:      #5c48d3;
  --accent-blue:  #4f8fff;
  --accent-glow:  rgba(139,111,255,0.35);
  --red:          #ef4444;
  --red-glow:     rgba(239,68,68,0.3);
  --green:        #22c55e;
  --yellow:       #f59e0b;

  --bg:           #06060e;
  --surface:      #0c0c1a;
  --surface2:     #10101f;
  --surface3:     #151528;
  --border:       rgba(139,111,255,0.12);
  --border-hover: rgba(139,111,255,0.35);

  --text:         #e2e2f0;
  --text-muted:   #7070a0;
  --text-dim:     #3d3d5c;

  --nav-h:        60px;
  --sidebar-w:    260px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-head: 'LEMON MILK', var(--font-body);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
body.auth-page { padding-top: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #a98bff; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }
p  { color: var(--text-muted); }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(6,6,14,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span { color: #fff; }
.nav-logo .logo-nul { color: #fff; }
.nav-logo .logo-vex {
  color: var(--accent);
  animation: logoVexGlow 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes logoVexGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(139,111,255,0.5), 0 0 20px rgba(139,111,255,0.2); color: #8b6fff; }
  50%       { text-shadow: 0 0 14px rgba(139,111,255,0.8), 0 0 30px rgba(139,111,255,0.35); color: #a78bfa; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(139,111,255,0.1);
}
.nav-link.active { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-coin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,111,255,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
.nav-coin-badge svg { width: 14px; height: 14px; }

/* ─── Page Layout ───────────────────────────────────────── */
.page-wrap {
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 440px; margin: 0 auto; padding: 0 24px; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-hover); }
.card-sm { padding: 16px; border-radius: var(--radius-sm); }
.card-lg { padding: 32px; border-radius: var(--radius-lg); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,111,255,0.25);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139,111,255,0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,0.05); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
}

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* ─── Inputs ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,111,255,0.12);
}
.form-input::placeholder { color: var(--text-dim); }
.form-input.error { border-color: var(--red); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.78rem; color: #fca5a5; }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-purple { background: rgba(139,111,255,0.12); color: var(--accent); border: 1px solid rgba(139,111,255,0.2); }
.badge-blue   { background: rgba(79,143,255,0.12);  color: var(--accent-blue); border: 1px solid rgba(79,143,255,0.2); }
.badge-red    { background: rgba(239,68,68,0.1);    color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.badge-green  { background: rgba(34,197,94,0.1);    color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.badge-gold   { background: rgba(245,158,11,0.1);   color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.badge-dim    { background: var(--surface2);         color: var(--text-muted); border: 1px solid var(--border); }

/* Role badges */
.role-admin { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.role-mod   { background: rgba(34,197,94,0.1);  color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.role-user  { background: rgba(139,111,255,0.08); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Owner badge ── */
@keyframes ownerShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes ownerPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(167,139,250,0.35); }
  50%       { box-shadow: 0 0 10px rgba(167,139,250,0.5), 0 0 20px rgba(167,139,250,0.15); }
}
.badge-owner, .role-owner {
  background: linear-gradient(90deg,
    #6d28d9 0%, #a855f7 30%, #c4b5fd 50%,
    #a855f7 70%, #7c3aed 100%);
  background-size: 250% auto;
  color: #fff;
  border: 1px solid rgba(167,139,250,0.45);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  animation: ownerShimmer 4s linear infinite, ownerPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-owner::before, .role-owner::before {
  content: '✦';
  margin-right: 3px;
  font-size: .7em;
  opacity: .8;
}
.badge-owner::after, .role-owner::after {
  content: '✦';
  margin-left: 3px;
  font-size: .7em;
  opacity: .8;
}

/* ─── Beta User badge ────────────────────────────────────── */
.badge-beta {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
  background-size: 200% auto;
  color: #fff;
  border: 1px solid rgba(56,189,248,0.45);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: betaShimmer 3s linear infinite;
}
@keyframes betaShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* ─── Dividers ───────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.9em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm  { width: 28px;  height: 28px;  font-size: 0.7rem; }
.avatar-md  { width: 36px;  height: 36px;  font-size: 0.85rem; }
.avatar-lg  { width: 48px;  height: 48px;  font-size: 1rem; }
.avatar-xl  { width: 80px;  height: 80px;  font-size: 1.5rem; }

/* ─── Toast notifications ────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  max-width: 360px;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast.success .toast-dot { background: var(--green); }
.toast.error   .toast-dot { background: var(--red); }
.toast.info    .toast-dot { background: var(--accent); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Loading spinner ────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(139,111,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Coin display ───────────────────────────────────────── */
.coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--accent);
}
.coin-icon {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

/* ─── Alert banners ──────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-width: 1px;
  border-style: solid;
}
.alert-warn  { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); color: #fcd34d; }
.alert-error { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-info  { background: rgba(139,111,255,0.06); border-color: var(--border);         color: var(--text-muted); }
.alert-success { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.25);  color: #86efac; }

/* ─── Auth page layout ───────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-orb-1 { width: 600px; height: 600px; background: #3b2080; top: -200px; left: -150px; opacity: 0.2; }
.auth-orb-2 { width: 400px; height: 400px; background: #1e3a8a; bottom: -100px; right: -100px; opacity: 0.18; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid rgba(139,111,255,0.18);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-text {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
}
.auth-logo-text span { color: var(--accent); }
.auth-tagline { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ─── Forum layout ───────────────────────────────────────── */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 24px;
  padding: 32px 0;
}
.forum-main { min-width: 0; }
.forum-sidebar { display: flex; flex-direction: column; gap: 16px; }

.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
  transform: translateY(-2px);
  color: var(--text);
}
.category-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(139,111,255,0.08);
  border: 1px solid var(--border);
}
.category-info { flex: 1; min-width: 0; }
.category-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.category-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-meta { font-size: 0.78rem; color: var(--text-dim); text-align: right; flex-shrink: 0; }

.thread-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: rgba(139,111,255,0.03); }
.thread-info { flex: 1; min-width: 0; }
.thread-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-title a { color: inherit; }
.thread-title a:hover { color: var(--accent); }
.thread-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }
.thread-stats { display: flex; gap: 16px; text-align: right; flex-shrink: 0; font-size: 0.78rem; color: var(--text-dim); }
.thread-pin { color: var(--accent); opacity: 0.6; }

/* Post / reply */
.post {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; }
.post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
  flex-shrink: 0;
  text-align: center;
}
/* Badges inside post-author: remove side margin, keep centered */
.post-author .badge-owner,
.post-author .badge-admin,
.post-author .badge-mod {
  margin-left: 0;
  margin-right: 0;
  display: inline-block;
  max-width: 100%;
}
.post-author-name { font-size: 0.75rem; font-weight: 700; color: #fff; word-break: break-all; }
.post-author-role { margin-top: 2px; }
.post-body { flex: 1; min-width: 0; }
.post-content {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}
/* Markdown content styles */
.post-content p  { margin-bottom: 0.8em; color: var(--text); }
.post-content a  { color: var(--accent); }
.post-content code {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #c4b5fd;
}
.post-content pre {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  margin: 1em 0;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--text); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 0.8em 0;
  color: var(--text-muted);
}
.post-content h1, .post-content h2, .post-content h3 { margin: 1em 0 0.5em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 0.8em; }
.post-content li { color: var(--text); margin-bottom: 0.3em; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.post-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s;
}
.post-like-btn:hover, .post-like-btn.liked {
  border-color: rgba(139,111,255,0.4);
  color: var(--accent);
  background: rgba(139,111,255,0.06);
}
.post-like-btn svg { width: 13px; height: 13px; }

/* Compose box */
.compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}
.compose h4 { margin-bottom: 14px; font-size: 0.88rem; color: var(--text-muted); }
.compose textarea.form-input { min-height: 100px; }

/* ─── Dashboard layout ───────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}
.dash-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.15s;
}
.dash-nav-item svg { width: 17px; height: 17px; opacity: 0.7; }
.dash-nav-item:hover { color: #fff; background: rgba(139,111,255,0.06); }
.dash-nav-item.active {
  color: var(--accent);
  background: rgba(139,111,255,0.1);
  border-right: 2px solid var(--accent);
}
.dash-nav-item.active svg { opacity: 1; }
.dash-content { padding: 32px; }
.dash-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 20px 4px;
}

/* ─── Stat cards ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }
.stat-value.red    { color: var(--red); }
.stat-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }

/* ─── Subscription status card ───────────────────────────── */
.sub-card {
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sub-card.active { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.2); }
.sub-card.trial  { background: rgba(139,111,255,0.05); border-color: var(--border); }
.sub-card.grace  { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.25); }
.sub-card.expired { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2); }
.sub-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sub-card.active  .sub-indicator { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.sub-card.trial   .sub-indicator { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sub-card.grace   .sub-indicator { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: pulse 2s infinite; }
.sub-card.expired .sub-indicator { background: var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Auth extras ────────────────────────────────────────── */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.auth-divider a { color: var(--accent); font-weight: 600; }
.auth-logo img { height: 42px; }

/* Password eye toggle */
.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 42px; }
.input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.input-eye:hover { color: var(--accent); }

/* Password strength meter */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.strength-label {
  font-size: 0.73rem;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

/* Form hint text */
.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 5px;
}

/* Form label link (e.g. Forgot password?) */
.form-label { display: flex; justify-content: space-between; align-items: center; }
.form-label-link {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.form-label-link:hover { text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}
@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .container, .container-sm, .container-xs { padding: 0 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .post { flex-direction: column; }
  .post-author { flex-direction: row; width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   Profile Hero Animated Backgrounds
   Applied as .profile-bg-{name} on .profile-hero
   Each uses a pseudo-layer: position:absolute;inset:0;z-index:0
   Hero content must have position:relative;z-index:1
   ═══════════════════════════════════════════════════════ */

/* ── Shared background layer pattern ── */
.profile-bg-nebula::after,
.profile-bg-matrix::after,
.profile-bg-aurora::after,
.profile-bg-void::after,
.profile-bg-prism::after,
.profile-bg-storm::after,
.profile-bg-ember::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* Ensure hero content stays above backgrounds */
.profile-bg-nebula .profile-hero-top,
.profile-bg-nebula .profile-bio,
.profile-bg-nebula .profile-actions,
.profile-bg-matrix .profile-hero-top,
.profile-bg-matrix .profile-bio,
.profile-bg-matrix .profile-actions,
.profile-bg-aurora .profile-hero-top,
.profile-bg-aurora .profile-bio,
.profile-bg-aurora .profile-actions,
.profile-bg-void .profile-hero-top,
.profile-bg-void .profile-bio,
.profile-bg-void .profile-actions,
.profile-bg-prism .profile-hero-top,
.profile-bg-prism .profile-bio,
.profile-bg-prism .profile-actions,
.profile-bg-storm .profile-hero-top,
.profile-bg-storm .profile-bio,
.profile-bg-storm .profile-actions,
.profile-bg-ember .profile-hero-top,
.profile-bg-ember .profile-bio,
.profile-bg-ember .profile-actions {
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────
   NEBULA — drifting purple/blue clouds, breathing pulse
   ────────────────────────────────────────────────────── */
.profile-bg-nebula {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(88, 28, 135, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 75% 60%, rgba(37, 38, 150, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(109, 40, 217, 0.35) 0%, transparent 60%),
    #080814;
  animation: nebula-drift 18s ease-in-out infinite alternate;
}
.profile-bg-nebula::after {
  background:
    radial-gradient(ellipse 40% 50% at 65% 25%, rgba(167, 139, 250, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 30% 70%, rgba(96, 165, 250, 0.12) 0%, transparent 60%);
  animation: nebula-pulse 6s ease-in-out infinite alternate;
}
@keyframes nebula-drift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 80%; }
  50%  { background-position: 15% 20%, 85% 70%, 40% 90%; }
  100% { background-position: 5% 10%, 90% 80%, 55% 75%; }
}
@keyframes nebula-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.04); }
}

/* ──────────────────────────────────────────────────────
   MATRIX — dark green falling code aesthetic (CSS only)
   ────────────────────────────────────────────────────── */
.profile-bg-matrix {
  background: #020c02;
  overflow: hidden;
}
.profile-bg-matrix::before {
  content: '';
  position: absolute;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 18px,
      rgba(0, 255, 65, 0.04) 18px,
      rgba(0, 255, 65, 0.04) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 22px,
      rgba(0, 200, 50, 0.025) 22px,
      rgba(0, 200, 50, 0.025) 24px
    );
  animation: matrix-scroll 8s linear infinite;
}
.profile-bg-matrix::after {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 80, 20, 0.5) 0%, rgba(2, 12, 2, 0.9) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(0, 255, 65, 0.06) 0px,
      transparent 2px,
      transparent 14px,
      rgba(0, 180, 45, 0.03) 14px,
      transparent 16px
    );
  animation: matrix-glow 4s ease-in-out infinite alternate;
}
@keyframes matrix-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(40px); }
}
@keyframes matrix-glow {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ──────────────────────────────────────────────────────
   AURORA — shifting northern lights (purple, teal, indigo)
   ────────────────────────────────────────────────────── */
.profile-bg-aurora {
  background: #04080f;
  animation: aurora-shift 14s ease-in-out infinite alternate;
}
.profile-bg-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg,
      rgba(16, 185, 129, 0.22) 0%,
      rgba(99, 102, 241, 0.28) 30%,
      rgba(139, 111, 255, 0.2) 55%,
      rgba(20, 184, 166, 0.18) 75%,
      transparent 100%
    );
  animation: aurora-wave1 10s ease-in-out infinite alternate;
}
.profile-bg-aurora::after {
  background:
    radial-gradient(ellipse 100% 40% at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 80% 35% at 70% 60%, rgba(20, 184, 166, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 60% 30% at 50% 10%, rgba(167, 139, 250, 0.2) 0%, transparent 60%);
  animation: aurora-wave2 13s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-shift {
  0%   { background-color: #04080f; }
  50%  { background-color: #050c12; }
  100% { background-color: #040910; }
}
@keyframes aurora-wave1 {
  0%   { transform: translateY(0); opacity: 0.7; }
  50%  { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(3px); opacity: 0.8; }
}
@keyframes aurora-wave2 {
  0%   { transform: translateX(0) scaleX(1); opacity: 0.8; }
  50%  { transform: translateX(10px) scaleX(1.05); opacity: 0.6; }
  100% { transform: translateX(-5px) scaleX(0.97); opacity: 0.9; }
}

/* ──────────────────────────────────────────────────────
   VOID — deep space, slowly orbiting star particles
   Uses box-shadow on pseudo-elements for star fields
   ────────────────────────────────────────────────────── */
.profile-bg-void {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, #080820 0%, #020208 100%);
}
.profile-bg-void::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 25%, rgba(200,200,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 72%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 50%, rgba(200,210,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 85%, rgba(180,180,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 88%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  40%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 90%, rgba(200,200,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 50%, rgba(255,255,255,0.35) 0%, transparent 100%);
  animation: void-orbit 30s linear infinite;
}
.profile-bg-void::after {
  background:
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(60, 40, 120, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 20% 80%, rgba(40, 30, 100, 0.2) 0%, transparent 60%);
  animation: void-pulse 8s ease-in-out infinite alternate;
}
@keyframes void-orbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes void-pulse {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ──────────────────────────────────────────────────────
   PRISM — rainbow prismatic light refractions on dark
   ────────────────────────────────────────────────────── */
.profile-bg-prism {
  background: #070710;
  animation: prism-base 16s ease-in-out infinite alternate;
}
.profile-bg-prism::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      125deg,
      rgba(139, 111, 255, 0.22) 0%,
      rgba(96, 165, 250, 0.18) 18%,
      rgba(52, 211, 153, 0.14) 34%,
      rgba(251, 191, 36, 0.1) 50%,
      rgba(239, 68, 68, 0.1) 66%,
      rgba(167, 139, 250, 0.16) 82%,
      rgba(99, 102, 241, 0.2) 100%
    );
  animation: prism-sweep 10s ease-in-out infinite alternate;
}
.profile-bg-prism::after {
  background:
    radial-gradient(ellipse 40% 60% at 70% 30%, rgba(139, 111, 255, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 70%, rgba(96, 165, 250, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 80% 75%, rgba(52, 211, 153, 0.12) 0%, transparent 60%);
  animation: prism-refract 12s ease-in-out infinite alternate-reverse;
}
@keyframes prism-base {
  0%   { background-color: #070710; }
  100% { background-color: #080812; }
}
@keyframes prism-sweep {
  0%   { background-position: 0% 50%; opacity: 0.7; }
  50%  { opacity: 1; }
  100% { background-position: 100% 50%; opacity: 0.85; }
}
@keyframes prism-refract {
  0%   { transform: scaleX(1)   translateX(0); opacity: 0.6; }
  50%  { transform: scaleX(1.1) translateX(5px); opacity: 0.9; }
  100% { transform: scaleX(0.95) translateX(-3px); opacity: 0.7; }
}

/* ──────────────────────────────────────────────────────
   STORM — dark thunderstorm with electric purple lightning
   ────────────────────────────────────────────────────── */
.profile-bg-storm {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(30, 20, 50, 0.9) 0%, transparent 70%),
    linear-gradient(180deg, #060410 0%, #0a0818 50%, #06040e 100%);
  animation: storm-cloud 20s ease-in-out infinite alternate;
}
.profile-bg-storm::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      220deg,
      transparent 0%,
      transparent 44%,
      rgba(180, 120, 255, 0.65) 45%,
      rgba(220, 180, 255, 0.8) 46%,
      rgba(180, 120, 255, 0.5) 47%,
      transparent 48%,
      transparent 60%,
      rgba(140, 90, 230, 0.35) 61%,
      rgba(160, 110, 245, 0.5) 62%,
      rgba(140, 90, 230, 0.25) 63%,
      transparent 64%
    ),
    radial-gradient(ellipse 90% 40% at 50% 10%, rgba(20, 10, 40, 0.8) 0%, transparent 100%);
  animation: storm-lightning 7s ease-in-out infinite;
}
.profile-bg-storm::after {
  background:
    radial-gradient(ellipse 60% 30% at 40% 20%, rgba(100, 60, 180, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 70% 40%, rgba(80, 50, 160, 0.15) 0%, transparent 65%);
  animation: storm-flash 7s ease-in-out infinite;
  animation-delay: 0.12s;
}
@keyframes storm-cloud {
  0%   { background-position: 0% 0%; }
  100% { background-position: 5% 3%; }
}
@keyframes storm-lightning {
  0%,  82%, 86%, 90%, 100% { opacity: 0; }
  83%, 85%                  { opacity: 1; }
  87%, 89%                  { opacity: 0.4; }
  88%                       { opacity: 0.8; }
}
@keyframes storm-flash {
  0%,  82%, 86%, 90%, 100% { opacity: 0; }
  83%, 85%                  { opacity: 0.6; }
  87%, 89%                  { opacity: 0.2; }
  88%                       { opacity: 0.5; }
}

/* ──────────────────────────────────────────────────────
   EMBER — dark embers / sparks floating upward
   ────────────────────────────────────────────────────── */
.profile-bg-ember {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80, 20, 5, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 80%, rgba(60, 15, 5, 0.5) 0%, transparent 60%),
    #08030a;
}
.profile-bg-ember::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(2px 3px at 15% 85%, rgba(255, 100, 20, 0.8) 0%, transparent 100%),
    radial-gradient(1px 2px at 25% 90%, rgba(255, 140, 40, 0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 38% 80%, rgba(255, 80, 10, 0.75) 0%, transparent 100%),
    radial-gradient(1px 3px at 50% 88%, rgba(255, 120, 30, 0.65) 0%, transparent 100%),
    radial-gradient(2px 2px at 62% 82%, rgba(255, 60, 5, 0.8) 0%, transparent 100%),
    radial-gradient(1px 2px at 75% 90%, rgba(255, 110, 25, 0.7) 0%, transparent 100%),
    radial-gradient(2px 3px at 88% 85%, rgba(255, 90, 15, 0.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 70%, rgba(255, 150, 50, 0.5) 0%, transparent 100%),
    radial-gradient(1px 2px at 45% 65%, rgba(255, 70, 8, 0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 72%, rgba(255, 130, 35, 0.5) 0%, transparent 100%);
  animation: ember-rise 6s ease-in infinite;
}
.profile-bg-ember::after {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(120, 40, 10, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 90%, rgba(180, 60, 10, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 80% 85%, rgba(150, 50, 8, 0.3) 0%, transparent 55%);
  animation: ember-glow 4s ease-in-out infinite alternate;
}
@keyframes ember-rise {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { opacity: 0.7; }
  100% { transform: translateY(-80px); opacity: 0; }
}
@keyframes ember-glow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ──────────────────────────────────────────────────────
   NONE — no background (default dark)
   ────────────────────────────────────────────────────── */
.profile-bg-none {
  /* No additional background — inherits .profile-hero base */
}

/* ──────────────────────────────────────────────────────
   Background Picker Panel
   ────────────────────────────────────────────────────── */
.bg-picker-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 12px;
  margin-bottom: 20px;
  animation: fade-in-down 0.2s ease;
}
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bg-picker-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.bg-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bg-picker-tile {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid rgba(139,111,255,0.15);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.bg-picker-tile:hover {
  border-color: rgba(139,111,255,0.5);
  transform: scale(1.04);
}
.bg-picker-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139,111,255,0.3);
}
.bg-picker-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 3px 4px;
}

/* Tile preview backgrounds (same as full backgrounds, scaled) */
.bg-tile-nebula {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(88, 28, 135, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 75% 60%, rgba(37, 38, 150, 0.65) 0%, transparent 65%),
    #080814;
  animation: nebula-drift 18s ease-in-out infinite alternate;
}
.bg-tile-matrix {
  background: #020c02;
  position: relative;
}
.bg-tile-matrix::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 80, 20, 0.6) 0%, transparent 100%),
    repeating-linear-gradient(180deg, rgba(0,255,65,0.08) 0px, transparent 2px, transparent 12px, rgba(0,180,45,0.04) 12px, transparent 14px);
  animation: matrix-glow 4s ease-in-out infinite alternate;
}
.bg-tile-aurora {
  background:
    linear-gradient(135deg, rgba(16,185,129,0.35) 0%, rgba(99,102,241,0.4) 40%, rgba(20,184,166,0.3) 80%, #04080f 100%),
    #04080f;
  animation: aurora-wave1 10s ease-in-out infinite alternate;
}
.bg-tile-void {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, #080820 0%, #020208 100%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(200,210,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 40%, rgba(180,180,255,0.6) 0%, transparent 100%);
}
.bg-tile-prism {
  background:
    linear-gradient(125deg, rgba(139,111,255,0.35) 0%, rgba(96,165,250,0.28) 20%, rgba(52,211,153,0.22) 40%, rgba(251,191,36,0.18) 60%, rgba(239,68,68,0.18) 80%, rgba(167,139,250,0.28) 100%),
    #070710;
  animation: prism-sweep 10s ease-in-out infinite alternate;
}
.bg-tile-storm {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(30,20,50,0.9) 0%, transparent 70%),
    linear-gradient(180deg, #060410 0%, #0a0818 100%);
}
.bg-tile-ember {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80,20,5,0.85) 0%, transparent 70%),
    #08030a;
}
.bg-tile-none {
  background: var(--surface);
  border: 1px dashed var(--border);
}
