/* ============================================================
   ZERODAY — THEME OVERRIDE v1.0
   "Your reality check starts here."
   Dark cinematic · Neon glow · High contrast · No mercy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

/* ── Override CSS Variables (dark theme only) ────────────── */
[data-theme="dark"] {
  --bg:           #030712;              /* Super deep space navy background */
  --bg2:          #080f26;             /* Rich dark cyber navy */
  --bg3:          #111d3f;             /* Vibrant navy accents */
  --card:         rgba(6, 12, 32, 0.65); /* Glassmorphic card base */
  --card2:        rgba(14, 25, 61, 0.8);
  --border:       rgba(0, 162, 255, 0.15); /* Tech style blue border */
  --border-hover: rgba(0, 240, 255, 0.35); /* Electric neon cyan hover border */
  --text:         #f1f5f9;            /* Bright clean slate white */
  --text2:        #94a9c9;           /* Soft metallic blue-grey */
  --text3:        #4f6b96;           /* Muted cool grey-blue */
  --accent:       #00d2ff;          /* Brand primary accent: bright cyber blue */
  --accent2:      #3b82f6;         /* Brand logo secondary: royal blue */
  --accent-glow:  rgba(0, 210, 255, 0.18);
  --accent-grad:  linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
  --green:        #00e5a0;           /* Electric green */
  --orange:       #ff9340;          /* Solar flare orange */
  --red:          #ff4d6a;             /* Electric crimson */
  --blue:         #3b82f6;            /* Logo blue */
  --purple:       #8b5cf6;          /* Hyper-modern violet */
  --teal:         #00d2ff;
  --shadow:       0 20px 60px rgba(0, 3, 15, 0.6);
  --shadow-sm:    0 4px 20px rgba(0, 3, 15, 0.35);
  --shadow-card:  0 2px 12px rgba(0, 3, 15, 0.4);
  --radius:       18px;
  --radius-sm:    12px;
  --radius-xs:    8px;
  --sidebar-w:    260px;
  --glass:        rgba(6, 12, 32, 0.7);
  --glass-border: rgba(0, 162, 255, 0.18);

  /* ZEROday-specific tokens */
  --zd-cyan:      #00d2ff;
  --zd-purple:    #3b82f6;
  --zd-green:     #00e5a0;
  --zd-red:       #ff4d6a;
  --zd-orange:    #ff9340;
  --zd-gold:      #ffd166;
  --zd-noise:     url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── Global Body ─────────────────────────────────────────── */
body {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  background: var(--bg);
  letter-spacing: -0.01em;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(at 0% 0%, rgba(3, 30, 94, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 59, 150, 0.25) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(0, 240, 255, 0.05) 0px, transparent 35%);
  pointer-events: none;
}

/* ── Component styles scoped to dark theme (hardcoded dark rgba values) ── */
[data-theme="dark"] {

/* ── Auth Screen ─────────────────────────────────────────── */
.auth-brand h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.auth-brand p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 500;
}
.brand-logo {
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 0 16px rgba(124,111,255,0.1);
  animation: none;
}
.auth-card {
  background: rgba(12, 13, 22, 0.95);
  border: 1px solid rgba(124, 111, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 32px 80px rgba(0,0,0,0.7);
  border-radius: 16px;
}
.auth-orb {
  filter: blur(120px);
  opacity: 0.08;
}
.auth-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

/* ── AUTH DIVIDER ────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 1.25rem;
  color: var(--text3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(124, 111, 255, 0.12);
}

/* ── PASSWORD INPUT WRAPPER & TOGGLE ─────────────────────── */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  width: 100%;
  padding-right: 2.8rem !important;
}
.pw-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 0;
  z-index: 2;
}
.pw-toggle-btn:hover {
  color: var(--accent);
  background: rgba(124, 111, 255, 0.1);
}
.pw-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.eye-icon { display: block; pointer-events: none; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  background: rgba(5, 5, 8, 0.98);
  border-right: 1px solid rgba(124, 111, 255, 0.08);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
}

.sidebar-brand {
  padding: 1.5rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(124, 111, 255, 0.08);
}
.sidebar-brand span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-user {
  padding: 1rem 1.2rem;
  margin: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(124, 111, 255, 0.06);
  border: 1px solid rgba(124, 111, 255, 0.1);
  transition: border-color 0.2s;
}
.sidebar-user:hover {
  border-color: rgba(124, 111, 255, 0.22);
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 111, 255, 0.4);
  box-shadow: 0 0 12px rgba(124, 111, 255, 0.2);
  overflow: hidden;
}
.sidebar-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.sidebar-class {
  font-size: 0.73rem;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav links */
.nav-links {
  padding: 0.5rem 0.8rem;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-xs);
  color: var(--text2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-grad);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(0.4);
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(124, 111, 255, 0.07);
}
.nav-link.active {
  color: #fff;
  background: rgba(124, 111, 255, 0.12);
  font-weight: 600;
}
.nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.nav-link.active .nav-svg {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(124,111,255,0.6));
}
.nav-link-admin {
  color: var(--zd-red) !important;
  opacity: 0.8;
}
.nav-link-admin:hover {
  background: rgba(255, 59, 92, 0.08) !important;
  opacity: 1;
}

/* Logout button */
.logout-btn {
  margin: 0.8rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 59, 92, 0.2);
  color: rgba(255, 59, 92, 0.7);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logout-btn:hover {
  background: rgba(255, 59, 92, 0.1);
  border-color: rgba(255, 59, 92, 0.5);
  color: var(--red);
  box-shadow: 0 0 20px rgba(255, 59, 92, 0.15);
}

/* ── MOBILE TOPBAR ───────────────────────────────────────── */
.mobile-topbar {
  background: rgba(5, 5, 8, 0.96);
  border-bottom: 1px solid rgba(124, 111, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hamburger {
  background: transparent;
  border: 1px solid rgba(124,111,255,0.15);
  color: var(--text2);
  border-radius: 8px;
  transition: all 0.2s;
}
.hamburger:hover {
  background: rgba(124,111,255,0.1);
  border-color: rgba(124,111,255,0.3);
  color: var(--accent);
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 2rem 2rem 1.2rem;
  border-bottom: 1px solid rgba(124, 111, 255, 0.06);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.page-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.page-header p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Dashboard greeting override */
#dashboard-greeting {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 2rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(124,111,255,0.2);
}
.stat-card:hover::before { opacity: 1; }

/* Accent variants */
.stat-card.accent-blue {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(12,13,22,1) 60%);
  border-color: rgba(0, 212, 255, 0.12);
}
.stat-card.accent-blue:hover {
  box-shadow: 0 0 0 1px rgba(0,212,255,0.2), 0 16px 40px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.3);
}
.stat-card.accent-purple {
  background: linear-gradient(135deg, rgba(189, 93, 255, 0.08) 0%, rgba(12,13,22,1) 60%);
  border-color: rgba(189, 93, 255, 0.12);
}
.stat-card.accent-purple:hover {
  box-shadow: 0 0 0 1px rgba(189,93,255,0.2), 0 16px 40px rgba(189,93,255,0.12);
  border-color: rgba(189,93,255,0.3);
}
.stat-card.accent-green {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08) 0%, rgba(12,13,22,1) 60%);
  border-color: rgba(0, 229, 160, 0.12);
}
.stat-card.accent-green:hover {
  box-shadow: 0 0 0 1px rgba(0,229,160,0.2), 0 16px 40px rgba(0,229,160,0.12);
  border-color: rgba(0,229,160,0.3);
}
.stat-card.accent-orange {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(12,13,22,1) 60%);
  border-color: rgba(255, 107, 53, 0.12);
}
.stat-card.accent-orange:hover {
  box-shadow: 0 0 0 1px rgba(255,107,53,0.2), 0 16px 40px rgba(255,107,53,0.12);
  border-color: rgba(255,107,53,0.3);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 600;
}

/* ── AURA CARD — CENTERPIECE ────────────────────────────── */
.aura-card {
  background: linear-gradient(135deg,
    rgba(124, 111, 255, 0.15) 0%,
    rgba(0, 212, 255, 0.08) 50%,
    rgba(12, 13, 22, 0.9) 100%) !important;
  border: 1px solid rgba(124, 111, 255, 0.3) !important;
  position: relative;
  overflow: visible !important;
}
.aura-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(124,111,255,0.5), rgba(0,212,255,0.3), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  pointer-events: none;
}
.aura-card:hover {
  box-shadow:
    0 0 0 1px rgba(124,111,255,0.4),
    0 20px 60px rgba(124,111,255,0.25),
    0 0 80px rgba(0,212,255,0.1) !important;
  transform: translateY(-5px) scale(1.02) !important;
}

.aura-glow-ring {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,111,255,0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: auraPulse 3s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}

.aura-icon {
  font-size: 1.1rem;
  background: rgba(124,111,255,0.15) !important;
  border-color: rgba(124,111,255,0.3) !important;
}

#aura-score {
  font-size: 2.8rem !important;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(124,111,255,0.5));
}

.aura-level {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
  margin-top: 0.2rem;
}
.aura-percentile {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

/* ── WEEKLY CHART CARD ───────────────────────────────────── */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 0 2rem 2rem;
}

.weekly-chart-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s;
}
.weekly-chart-card:hover {
  border-color: rgba(124,111,255,0.15);
}
.weekly-chart-card h3,
.quick-actions-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.weekly-bar {
  background: rgba(124,111,255,0.2);
  border-radius: 4px 4px 0 0;
  transition: background 0.2s, height 0.3s;
  position: relative;
}
.weekly-bar:hover {
  background: rgba(124,111,255,0.5);
}
.weekly-bar.today {
  background: linear-gradient(180deg, var(--zd-cyan), var(--zd-purple));
  box-shadow: 0 0 16px rgba(0,212,255,0.3);
}

/* ── QUICK ACTIONS CARD ──────────────────────────────────── */
.quick-actions-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s;
}
.quick-actions-card:hover {
  border-color: rgba(124,111,255,0.15);
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(124,111,255,0.07);
  border: 1px solid rgba(124,111,255,0.12);
  color: var(--text2);
  border-radius: var(--radius-xs);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
  text-align: left;
}
.qa-btn:last-child { margin-bottom: 0; }
.qa-btn:hover {
  background: rgba(124,111,255,0.14);
  border-color: rgba(124,111,255,0.3);
  color: var(--text);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(124,111,255,0.12);
}
.qa-btn svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #7c6fff 0%, #00d4ff 100%);
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124,111,255,0.35);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,111,255,0.5);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(124,111,255,0.25);
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(124,111,255,0.08);
  border-color: rgba(124,111,255,0.45);
  color: var(--text);
}

.btn-danger {
  background: linear-gradient(135deg, #ff3b5c, #ff6b35);
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,59,92,0.3);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,59,92,0.45);
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: block;
  font-family: 'Space Grotesk', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(124,111,255,0.15);
  color: var(--text);
  border-radius: var(--radius-xs);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(124,111,255,0.5);
  background: rgba(124,111,255,0.06);
  box-shadow: 0 0 0 3px rgba(124,111,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text3);
  font-size: 0.85rem;
}

/* ── TIMER PAGE ──────────────────────────────────────────── */
.timer-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
.timer-ring {
  position: relative;
  margin: 0 auto 2rem;
}
.ring-bg {
  stroke: rgba(124,111,255,0.08);
  stroke-width: 5;
}
.ring-progress {
  stroke: url(#timerGradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(124,111,255,0.5));
}
.timer-time {
  font-family: 'DM Mono', monospace;
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.timer-status {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-top: 0.4rem;
}

.timer-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  padding: 0.8rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.timer-btn.start {
  background: linear-gradient(135deg, #7c6fff, #00d4ff);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,111,255,0.4);
}
.timer-btn.start:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(124,111,255,0.55);
}
.timer-btn.stop {
  background: linear-gradient(135deg, #ff3b5c, #ff6b35);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255,59,92,0.35);
}
.timer-btn.stop:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255,59,92,0.5);
}

.session-history h3 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ── COMMUNITY ───────────────────────────────────────────── */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.2rem;
  padding: 0 2rem 2rem;
  align-items: start;
}

/* Community tabs */
.community-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(124,111,255,0.1);
  border-radius: var(--radius-xs);
  padding: 0.3rem;
}
.community-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}
.community-tab-btn.community-tab-active {
  background: linear-gradient(135deg, rgba(124,111,255,0.2), rgba(0,212,255,0.1));
  color: var(--text);
  border: 1px solid rgba(124,111,255,0.25);
  box-shadow: 0 2px 12px rgba(124,111,255,0.15);
}

/* Post Composer */
.post-composer {
  background: var(--card);
  border: 1px solid rgba(124,111,255,0.1);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.post-composer:focus-within {
  border-color: rgba(124,111,255,0.3);
  box-shadow: 0 0 0 3px rgba(124,111,255,0.08);
}
.post-composer textarea {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(124,111,255,0.08);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  resize: none;
  width: 100%;
  outline: none;
  margin-top: 0.4rem;
}
.post-composer textarea::placeholder { color: var(--text3); }
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(124,111,255,0.07);
}
.composer-hint {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Post Cards */
.post-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.22s ease;
  position: relative;
}
.post-card:hover {
  border-color: rgba(124,111,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.post-body {
  padding: 1.1rem 1.2rem;
}
.post-header { margin-bottom: 0.6rem; }
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(124,111,255,0.25);
  overflow: hidden;
  background: rgba(124,111,255,0.08);
  flex-shrink: 0;
}
.post-author-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.post-time {
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}
.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.post-content {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.post-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(124,111,255,0.06);
}
.emoji-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 99px;
  color: var(--text2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.emoji-vote-btn:hover {
  background: rgba(124,111,255,0.1);
  border-color: rgba(124,111,255,0.3);
  color: var(--accent);
}
.emoji-vote-btn.emoji-vote-active {
  background: rgba(124,111,255,0.15);
  border-color: rgba(124,111,255,0.4);
  color: var(--accent);
}
.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 99px;
  color: var(--text2);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}
.post-action-btn:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.25);
  color: var(--accent2);
}

/* Role badge */
.role-badge {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  display: inline-block;
}
.role-badge-admin {
  background: rgba(124,111,255,0.2);
  color: var(--accent);
  border: 1px solid rgba(124,111,255,0.3);
}
.role-badge-mod {
  background: rgba(0,229,160,0.15);
  color: var(--green);
  border: 1px solid rgba(0,229,160,0.25);
}

/* My Post card */
.my-post-card {
  border-color: rgba(124,111,255,0.12);
}
.my-post-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(124,111,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(124,111,255,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
}
.my-post-delete-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,59,92,0.2);
  color: rgba(255,59,92,0.6);
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.my-post-delete-btn:hover {
  background: rgba(255,59,92,0.1);
  border-color: rgba(255,59,92,0.45);
  color: var(--red);
}

/* Community sidebar */
.community-sidebar {
  position: sticky;
  top: 1.5rem;
}
.sidebar-section {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.sidebar-section:hover {
  border-color: rgba(124,111,255,0.12);
}
.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.sidebar-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.popular-posts-list { font-size: 0.82rem; }

/* Accordion */
.accordion-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(124,111,255,0.06);
  color: var(--text2);
  text-align: left;
  padding: 0.6rem 0;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.accordion-btn:hover { color: var(--text); }
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  font-size: 0.78rem;
  color: var(--text2);
}
.accordion-content ul {
  padding: 0.6rem 0 0.4rem 1.1rem;
  list-style: none;
}
.accordion-content li {
  padding: 0.15rem 0;
  position: relative;
}
.accordion-content li::before {
  content: '—';
  position: absolute;
  left: -1rem;
  color: var(--accent);
  opacity: 0.5;
}

/* ── OLD NOTIFICATION PAGE (hidden, but keep ID) ─────────── */
#page-notifications {
  display: none !important;
}

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.modal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.confirm-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.mute-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.mute-option-btn {
  padding: 0.6rem;
  background: rgba(124,111,255,0.08);
  border: 1px solid rgba(124,111,255,0.2);
  border-radius: 8px;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.mute-option-btn:hover {
  background: rgba(124,111,255,0.15);
  border-color: rgba(124,111,255,0.4);
  color: var(--accent);
}

/* Comment modal */
#comment-modal .modal {
  max-width: 560px;
}
.comment-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.comment-content {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.5;
}
.comment-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  align-items: flex-end;
}
.comment-input-row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(124,111,255,0.15);
  color: var(--text);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  resize: none;
  flex: 1;
  transition: all 0.2s;
}
.comment-input-row textarea:focus {
  outline: none;
  border-color: rgba(124,111,255,0.4);
  background: rgba(124,111,255,0.05);
}

/* ── SETTINGS ────────────────────────────────────────────── */
.settings-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.settings-card:hover { border-color: rgba(124,111,255,0.12); }
.settings-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.settings-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(124,111,255,0.1);
}

/* Theme swatches */
.theme-option {
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}
.theme-option.active,
.theme-option:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(124,111,255,0.2);
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 13, 22, 0.95);
  border: 1px solid rgba(124,111,255,0.25);
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  z-index: 99999;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 30px rgba(124,111,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(124,111,255,0.18);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124,111,255,0.35);
}
* { scrollbar-width: thin; scrollbar-color: rgba(124,111,255,0.18) transparent; }

/* ── SKELETON ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(124,111,255,0.05) 25%,
    rgba(124,111,255,0.1) 50%,
    rgba(124,111,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SESSIONS LIST ───────────────────────────────────────── */
.session-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: rgba(124,111,255,0.05);
  border: 1px solid rgba(124,111,255,0.08);
  border-radius: var(--radius-xs);
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  transition: border-color 0.18s;
}
.session-item:hover { border-color: rgba(124,111,255,0.2); }
.session-duration {
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent2);
}

/* ── WHITENOISE ──────────────────────────────────────────── */
.noise-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: all 0.22s;
  overflow: hidden;
}
.noise-card:hover {
  border-color: rgba(124,111,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.noise-card.playing {
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 0 0 1px rgba(0,229,160,0.15), 0 8px 32px rgba(0,229,160,0.08);
}

/* ── ADMIN PANEL ─────────────────────────────────────────── */
.admin-section {
  background: var(--card);
  border: 1px solid rgba(124,111,255,0.1);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.admin-section h3 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── EMPTY STATES ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text3);
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.my-posts-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.4; }
.my-posts-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 0.3rem;
}
.my-posts-empty-sub { font-size: 0.82rem; }

/* ── AURA LOADED ANIMATION ───────────────────────────────── */
.aura-card.aura-loaded #aura-score {
  animation: auraReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes auraReveal {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */






/* ── COMMENT PREVIEW ─────────────────────────────────────── */
.comments-preview {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.comment-preview-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.3rem 0;
}
.comment-preview-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(124,111,255,0.2);
  overflow: hidden;
  background: rgba(124,111,255,0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-preview-text { font-size: 0.78rem; color: var(--text2); }
.comment-preview-author {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.3rem;
}
.comment-preview-content { color: var(--text2); }
.view-more-comments-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.view-more-comments-btn:hover { color: var(--accent2); }

/* ── MY POST STATS ───────────────────────────────────────── */
.my-post-stats {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0 0;
}
.my-post-stat {
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── POPULAR POST ITEM ───────────────────────────────────── */
.popular-post-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(124,111,255,0.06);
  cursor: pointer;
  transition: opacity 0.15s;
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-item:hover { opacity: 0.8; }
.popular-post-author {
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.popular-post-title {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}
.popular-post-score {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.15rem;
  font-family: 'DM Mono', monospace;
}

/* ── PROFILE MODAL ───────────────────────────────────────── */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.pm-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(124,111,255,0.1), rgba(0,212,255,0.05));
  border-bottom: 1px solid rgba(124,111,255,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pm-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(124,111,255,0.4);
  overflow: hidden;
  background: rgba(124,111,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.pm-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.pm-meta {
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}
.pm-bio {
  padding: 0.8rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(124,111,255,0.06);
}
.pm-stats {
  display: flex;
  padding: 0.8rem 1.5rem;
  gap: 0;
}
.pm-stat { flex: 1; text-align: center; }
.pm-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.pm-stat-label {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.pm-stat-divider {
  width: 1px;
  background: rgba(124,111,255,0.1);
  margin: 0.5rem 0;
}
.pm-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text3);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pm-close-btn:hover {
  background: rgba(255,59,92,0.15);
  color: var(--red);
}
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-bottom { grid-template-columns: 1fr 1fr; }
  .aura-card { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 0 1rem; }
  .dashboard-bottom { grid-template-columns: 1fr; padding: 0 1rem 1.5rem; }
  .page-header { padding: 1.25rem 1rem 0.8rem; }
  .community-layout { padding: 0 1rem 1.5rem; }
  /* np-panel positioning handled by JS */
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat-value { font-size: 1.8rem; }
}

/* ── Fix gradient text visibility on non-dark themes ── */
:not([data-theme="dark"]) .post-title,
:not([data-theme="dark"]) .modal-post-title,
:not([data-theme="dark"]) .popular-post-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text);
  background-clip: unset;
  color: var(--text);
}

:not([data-theme="dark"]) .page-header h2,
:not([data-theme="dark"]) .auth-brand h1,
:not([data-theme="dark"]) .sidebar-brand span,
:not([data-theme="dark"]) .mobile-brand {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light & minimal: use solid accent color for gradient text elements
   so they remain readable against light backgrounds */
[data-theme="light"] .page-header h2,
[data-theme="minimal"] .page-header h2 {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .sidebar-brand span,
[data-theme="minimal"] .sidebar-brand span,
[data-theme="light"] .mobile-brand,
[data-theme="minimal"] .mobile-brand,
[data-theme="light"] .auth-brand h1,
[data-theme="minimal"] .auth-brand h1 {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}
