/* ============================================================
   Evan's Dungeon — Dark Cinematic Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ---- Dark theme (default) — celestial night sky ---- */
:root {
  --bg: #0a0e1a;
  --bg-card: rgba(100, 180, 255, 0.05);
  --bg-card-hover: rgba(100, 180, 255, 0.1);
  --bg-surface: rgba(80, 160, 255, 0.04);
  --bg-nav: rgba(10, 14, 26, 0.9);
  --text: #b0c4de;
  --text-muted: #4a6a8a;
  --text-heading: #e4eeff;
  --accent: #4db8ff;
  --accent-hover: #7dccff;
  --accent-glow: rgba(77, 184, 255, 0.3);
  --accent-dim: rgba(77, 184, 255, 0.1);
  --gold: #e8a840;
  --gold-glow: rgba(232, 168, 64, 0.25);
  --border: rgba(100, 180, 255, 0.08);
  --border-light: rgba(120, 190, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glow-spread: 0 0 80px rgba(77, 184, 255, 0.1);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg: #edf3fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-surface: rgba(40, 100, 180, 0.04);
  --bg-nav: rgba(237, 243, 250, 0.92);
  --text: #2a3a50;
  --text-muted: #6a8098;
  --text-heading: #0e1e30;
  --accent: #2088d4;
  --accent-hover: #1870b8;
  --accent-glow: rgba(32, 136, 212, 0.18);
  --accent-dim: rgba(32, 136, 212, 0.08);
  --gold: #c08420;
  --gold-glow: rgba(192, 132, 32, 0.15);
  --border: rgba(0, 40, 100, 0.08);
  --border-light: rgba(0, 40, 100, 0.12);
  --shadow: rgba(0, 20, 60, 0.1);
  --glow-spread: 0 0 40px rgba(32, 136, 212, 0.08);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient orbs — disabled to prevent uneven brightness */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

/* Prevent flicker on page transition entry */
.page-transition-wrapper {
  opacity: 0;
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#ev-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   MINIMAL TOP BAR (logo left, menu icon right)
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading) !important;
  text-decoration: none;
}

.top-bar-logo img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  opacity: 0.9;
}

.top-bar-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.menu-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(18, 18, 26, 0.5);
  backdrop-filter: blur(12px);
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-trigger:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

.menu-trigger .menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-trigger .menu-icon span {
  display: block;
  height: 1.5px;
  background: var(--text-heading);
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.menu-trigger.active .menu-icon span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.menu-trigger.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-trigger.active .menu-icon span:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* ============================================================
   SLIDE-OUT MENU PANEL (from right, Unseen-style)
   ============================================================ */
.slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 85vw);
  height: 100vh;
  z-index: 99;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  overflow-y: auto;
}

.slide-menu.open {
  transform: translateX(0);
}

.slide-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-menu-nav {
  list-style: none;
  margin-bottom: 48px;
}

.slide-menu-item {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.slide-menu-item:first-child {
  border-top: 1px solid var(--border);
}

.slide-menu-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  color: var(--text-heading) !important;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.slide-menu-link:hover {
  color: var(--accent) !important;
}

.slide-menu-num {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  min-width: 24px;
}

.slide-menu-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Unseen-style hover: smooth skew to simulate italic + pop out */
.slide-menu-link:hover .slide-menu-label {
  transform: translateX(12px) skewX(-8deg);
  letter-spacing: 1px;
}

.slide-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.slide-menu-footer .sound-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slide-menu-footer .sound-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   INK BLEED PAGE TRANSITION OVERLAY
   ============================================================ */
.ink-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}

.ink-transition svg {
  width: 100%;
  height: 100%;
}

.ink-transition .ink-shape {
  fill: var(--bg);
}

/* ============================================================
   PARALLAX BACKGROUND (moves with cursor)
   ============================================================ */
.parallax-bg {
  position: fixed;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide old nav elements (backwards compat) */
.nav { display: none !important; }

/* ============================================================
   BACK BUTTON (inner pages)
   ============================================================ */
.back-btn {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: url('https://image2url.com/r2/default/images/1773549596003-7a925fb7-1cb8-472a-ac7e-f60b40df114b.png') center / contain no-repeat;
  border: none;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all var(--transition);
  font-size: 0;
  color: transparent !important;
  padding: 0;
  opacity: 0.7;
}

.back-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  color: transparent !important;
}

.back-btn::before {
  content: none;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-transition-wrapper {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-header {
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
}

/* ============================================================
   HOMEPAGE — FULL-SCREEN SECTIONS
   ============================================================ */
.home-wrapper {
  will-change: transform, opacity;
}

.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.home-hero .subtitle {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.home-hero .scroll-hint {
  position: absolute;
  bottom: 40px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse-float 2.5s ease-in-out infinite;
}

@keyframes pulse-float {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(8px); }
}

/* Section grid */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .sections-grid {
    grid-template-columns: 1fr;
  }
}

.section-card {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.section-card:hover::before {
  opacity: 1;
}

.section-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.section-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  will-change: transform;
}

.section-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 8px;
}

.section-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  color: #e0e0f0;
  transition: color 0.3s ease;
}

.section-card:hover h2 {
  color: var(--accent-hover);
}

.section-card .section-desc {
  color: #a0a0b8;
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.section-card .section-cta {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: #c0c0d0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.section-card:hover .section-cta {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-spread);
}

.section-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 800;
  color: var(--text-heading);
  opacity: 0.02;
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
  user-select: none;
}

/* Mouse tracking for radial gradient */
.section-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}


.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow), var(--glow-spread);
  color: inherit;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.card-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}


.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #8aa4ff 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn:active {
  transform: scale(0.96);
}

/* ============================================================
   STATS / DASHBOARD WIDGETS
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--glow-spread);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--text-heading);
  font-weight: 700;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
.settings-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}


.settings-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
  box-shadow: var(--glow-spread);
}

.settings-panel {
  position: fixed;
  top: 56px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 90;
  min-width: 200px;
  box-shadow: 0 16px 48px var(--shadow);
  backdrop-filter: blur(20px);
  display: none;
}

.settings-panel.open { display: block; }

.settings-panel h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text-heading);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.theme-toggle {
  display: flex;
  gap: 8px;
}

.theme-option {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}


.theme-option:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(108, 140, 255, 0.1); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.anim-scale-in {
  opacity: 0;
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.35s; }
.anim-delay-4 { animation-delay: 0.5s; }
.anim-delay-5 { animation-delay: 0.65s; }
.anim-delay-6 { animation-delay: 0.8s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FLOATING LOGO (hidden by default)
   ============================================================ */
.floating-logo { display: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-1 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Glow border on focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Shared input styles */
input, textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Journal / tools page specific overrides */
@keyframes pageIn {
  from { transform: rotateY(-90deg); opacity: 0; }
  to { transform: rotateY(0); opacity: 1; }
}

@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* ============================================================
   MINI-PLAYER BAR
   ============================================================ */
.mini-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 24px;
}

/* ============================================================
   SELECTION & SCROLLBAR
   ============================================================ */
::selection {
  background: var(--accent-dim);
  color: var(--text-heading);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   MAGNETIC CLASS
   ============================================================ */
.magnetic {
  will-change: transform;
}

/* ============================================================
   AURORA / COMET GRADIENT BANDS
   ============================================================ */
#ev-aurora {
  mix-blend-mode: screen;
}

.aurora-band {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: aurora-drift linear infinite;
}

.aurora-band-1 {
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(77, 184, 255, 0.15) 0%, rgba(0, 200, 180, 0.08) 50%, transparent 70%);
  top: 10%;
  left: -10%;
  animation-duration: 25s;
}

.aurora-band-2 {
  width: 500px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(100, 60, 200, 0.1) 0%, rgba(77, 184, 255, 0.06) 50%, transparent 70%);
  top: 60%;
  right: -15%;
  animation-duration: 30s;
  animation-direction: reverse;
}

.aurora-band-3 {
  width: 400px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(0, 200, 180, 0.08) 0%, rgba(77, 184, 255, 0.05) 50%, transparent 70%);
  top: 35%;
  left: 30%;
  animation-duration: 35s;
}

@keyframes aurora-drift {
  0% { transform: translateX(-20%) translateY(0) rotate(0deg); }
  25% { transform: translateX(15%) translateY(-30px) rotate(3deg); }
  50% { transform: translateX(30%) translateY(10px) rotate(-2deg); }
  75% { transform: translateX(10%) translateY(-20px) rotate(4deg); }
  100% { transform: translateX(-20%) translateY(0) rotate(0deg); }
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.card,
.stat-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 25, 50, 0.5);
  border: 1px solid rgba(100, 180, 255, 0.1);
}

.card:hover {
  background: rgba(20, 35, 70, 0.6);
  border-color: rgba(77, 184, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(77, 184, 255, 0.08);
}

.section-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 20, 45, 0.3);
}

.section-card:hover {
  background: rgba(15, 30, 60, 0.5);
  border-color: rgba(77, 184, 255, 0.2);
}

.settings-panel,
.slide-menu {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.menu-trigger {
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============================================================
   ENHANCED MICRO-INTERACTIONS
   ============================================================ */

/* Smooth card tilt on hover (via will-change) */
.card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

/* Button press ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
  border-radius: inherit;
}

.btn:active::after {
  opacity: 1;
  transform: scale(2);
  transition: all 0.15s ease;
}

/* Section card hover glow pulse */
.section-card::before {
  transition: opacity 0.6s ease;
}

/* Heading gradient shimmer */
.page-header h1 {
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
}

/* Hover lift for stat cards */
.stat-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 184, 255, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 40px rgba(77, 184, 255, 0.06);
}

/* Enter button glow pulse */
.enter-pill {
  position: relative;
}

.enter-pill::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(77, 184, 255, 0.3), rgba(0, 200, 180, 0.2), rgba(100, 60, 200, 0.2));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}

.enter-pill:hover::before {
  opacity: 1;
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Menu link hover glow */
.slide-menu-link {
  position: relative;
}

.slide-menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 200, 180, 0.5));
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-menu-link:hover::after {
  width: 100%;
}
