* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #080808;
  --bg-secondary: #0a0a0a;
  --bg-card: #111;
  --accent: #ff3333;
  --accent2: #aa0000;
  --gold: #ff5522;
  --text: #f0f0f0;
  --text-dim: #999;
  --dim: #999;
  --glass: rgba(0,0,0,0.5);
  --glass-border: rgba(255,255,255,0.06);
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --neon: 0 0 10px rgba(255,0,0,0.3), 0 0 30px rgba(255,0,0,0.1);
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; box-shadow: 0 0 15px rgba(255,0,0,0.4); }

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content { text-align: center; }
.preloader-logo {
  width: 200px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
.preloader-bar {
  width: 260px;
  height: 3px;
  background: rgba(255,0,0,0.1);
  border-radius: 3px;
  margin: 25px auto 15px;
  overflow: hidden;
}
.preloader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--gold));
  border-radius: 3px;
  animation: preloaderFill 1.8s ease forwards;
}
.preloader-content p {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 6px;
  color: var(--text-dim);
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255,0,0,0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(255,0,0,0.6)); }
}
@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--gold));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 15px rgba(255,0,0,0.4);
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 40px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8,8,8,0.85);
  border-bottom: 1px solid var(--glass-border);
  transition: 0.3s;
}
.bottom-nav { display: none; }
nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav .logo img { height: 38px; }
nav .logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav .nav-links { display: flex; gap: 8px; align-items: center; }
nav .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  transition: 0.3s;
  position: relative;
}
nav .nav-links a:hover {
  color: var(--accent);
  background: rgba(255,0,0,0.08);
}
nav .nav-links .nav-admin {
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  font-size: 0.85rem;
}
nav .nav-links .nav-admin:hover {
  border-color: var(--accent);
  box-shadow: var(--neon);
}
nav .nav-links .nav-music {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
}
nav .nav-links .nav-music:hover {
  color: var(--accent);
  background: rgba(255,0,0,0.08);
}
nav .nav-links .nav-music.playing {
  color: var(--accent);
  animation: musicPulse 2s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 10px rgba(255,51,51,0.3); }
}
nav .nav-links .nav-theme {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
}
nav .nav-links .nav-theme:hover {
  color: var(--accent);
  background: rgba(255,0,0,0.08);
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 2001; }
.menu-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.show { opacity: 1; }

/* === HERO === */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #080808;
  overflow: hidden;
  padding: 130px 20px 70px;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.hero-content .logo-main {
  width: 650px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 50px rgba(255,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  min-height: 60px;
  text-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 80px rgba(0,0,0,0.5);
}
.hero-content h1 .cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }
.hero-content p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 30px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  text-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 40px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 30px rgba(255,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(255,0,0,0.5), var(--neon);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--neon);
}

.particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0.2;
  box-shadow: 0 0 6px rgba(255,0,0,0.5);
}

/* === SECTIONS === */
section { padding: 100px 40px; position: relative; z-index: 1; will-change: transform; }
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
  animation: titleLine 0.8s ease forwards;
  transform-origin: center;
}
@keyframes titleLine {
  from { transform: translateX(-50%) scaleX(0); opacity: 0; }
  to { transform: translateX(-50%) scaleX(1); opacity: 1; }
}
.section-title span { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 50px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

/* === ABOUT === */
.about {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.about-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { color: var(--text-dim); line-height: 1.8; margin-bottom: 18px; font-size: 1.1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent), transparent);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: gradientShift 3s ease infinite;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--neon);
}
.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .label { color: var(--text-dim); margin-top: 5px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }

/* === ROSTER === */
.roster {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.roster-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.roster-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.roster-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent), transparent);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.roster-card:hover::before { opacity: 1; }
.roster-card:hover {
  border-color: transparent;
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--neon);
}
.roster-card .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  transition: 0.3s;
}
.roster-card:hover .avatar { border-color: var(--accent); box-shadow: 0 0 20px rgba(255,0,0,0.3); }

.glow-line {
  width: 70%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  box-shadow: 0 0 6px var(--accent), 0 0 20px var(--accent);
}


.roster-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.roster-card h4 { font-size: 0.85rem; font-weight: 600; }
.roster-card .role { color: var(--accent); font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; margin-top: 3px; font-family: var(--font-heading); }

/* === JOIN === */
.join { content-visibility: auto; contain-intrinsic-size: 700px; position: relative; }
.join::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bg.png') center/cover no-repeat fixed;
  opacity: 0.5;
  pointer-events: none;
}
.form-container {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 45px;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 1px;
}
.form-group label span { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  transition: 0.3s;
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(255,0,0,0.15);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); color: var(--text); }
.form-group input[type="file"] { padding: 10px; }
.form-group input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  padding: 7px 18px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255,0,0,0.4), var(--neon);
}

/* === NEWS === */
.news {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.news-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.news-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.4s;
  backdrop-filter: blur(12px);
  perspective: 1000px;
}
.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255,0,0,0.15), var(--neon);
}
.news-card .img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.news-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.news-card:hover .img-wrap img { transform: scale(1.1); }
.news-card .img-wrap .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.3s;
  color: #fff;
  font-size: 1.5rem;
}
.news-card .img-wrap:hover .zoom-hint { opacity: 1; }
.news-card .body { padding: 22px; }
.news-card .body .tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.tag-news { background: rgba(255,0,0,0.12); color: var(--accent); }
.tag-event { background: rgba(255,69,0,0.12); color: var(--gold); }
.news-card .body h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 8px; letter-spacing: 1px; }
.news-card .body .date { color: var(--text-dim); font-size: 0.75rem; margin-top: 12px; opacity: 0.6; font-family: var(--font-heading); }
.news-card .see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 16px;
  background: rgba(255,0,0,.08);
  color: var(--accent);
  border: 1px solid rgba(255,0,0,.15);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  font-family: var(--font-heading);
  letter-spacing: .5px;
}
.news-card .see-more-btn:hover { background: rgba(255,0,0,.14); transform: translateY(-1px); }
.news-card .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  margin-left: 8px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  transition: .2s;
  vertical-align: bottom;
}
.news-card .share-btn:hover { background: rgba(88,101,242,0.12); color: #5865f2; border-color: rgba(88,101,242,0.2); transform: translateY(-1px); }

/* === SCHEDULE === */
.schedule {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--gold), transparent);
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
}
.tl-item:nth-child(odd) { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }
.tl-item .dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
  z-index: 1;
}
.tl-item .date-box {
  flex: 1;
  text-align: right;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.tl-item:nth-child(even) .date-box { text-align: left; }
.tl-item .info-box {
  flex: 1;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 18px 22px;
  backdrop-filter: blur(12px);
  transition: 0.3s;
}
.tl-item .info-box:hover {
  border-color: var(--accent);
  box-shadow: var(--neon);
}
.tl-item .info-box h4 { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 4px; }
.tl-item .info-box p { color: var(--text-dim); font-size: 0.8rem; }
.tl-item .info-box .game { color: var(--gold); font-size: 0.7rem; font-family: var(--font-heading); margin-top: 6px; }

/* === ACHIEVEMENTS === */
.achievements {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.ach-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.ach-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
}
.ach-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(255,69,0,0.15);
}
.ach-card .img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ach-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.ach-card:hover .img-wrap img { transform: scale(1.08); }
.ach-card .img-wrap .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.3s;
  color: #fff;
  font-size: 1.5rem;
}
.ach-card .img-wrap:hover .zoom-hint { opacity: 1; }
.ach-card .body { padding: 22px; }
.ach-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--gold); margin-bottom: 6px; letter-spacing: 1px; }
.ach-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }
.ach-card .date { color: var(--text-dim); font-size: 0.7rem; margin-top: 10px; opacity: 0.6; font-family: var(--font-heading); }

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  animation: fadeUp 0.3s ease;
}
.lightbox .close-btn, .news-lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  background: none;
  border: none;
  font-family: var(--font-heading);
  z-index: 1;
}
.lightbox .close-btn:hover, .news-lightbox .close-btn:hover { opacity: 1; }

/* === NEWS LIGHTBOX === */
.news-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.news-lightbox.show { display: flex; }
.news-lightbox-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  cursor: default;
  animation: fadeUp 0.3s ease;
}
.news-lb-img-wrap {
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #000;
}
.news-lb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 50vh;
}
.news-lb-body {
  padding: 24px 28px;
}
.news-lb-body .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-lb-body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.news-lb-body .date {
  color: var(--text-dim);
  font-size: 0.75rem;
  opacity: 0.6;
  font-family: var(--font-heading);
  margin-bottom: 14px;
}
.news-lb-body p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* === SPOTLIGHT === */
.spotlight {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.spotlight-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255,0,0,0.1); }
  50% { box-shadow: 0 0 60px rgba(255,0,0,0.25); }
}
.spotlight-card::before {
  content: 'SPOTLIGHT';
  position: absolute;
  top: 12px; right: 15px;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--accent);
  opacity: 0.4;
}
.spotlight-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(255,0,0,0.3);
}
.spotlight-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 4px; }
.spotlight-card .s-title { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 2px; font-family: var(--font-heading); }
.spotlight-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; max-width: 450px; margin: 0 auto; }

/* === MVP === */
.mvp {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative; overflow: hidden;
}
.mvp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,69,0,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.mvp-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.mvp-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.mvp-card::before {
  content: 'MVP';
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #000;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.mvp-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(255,69,0,0.15);
}
.mvp-card .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 30px rgba(255,69,0,0.3);
}
.mvp-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mvp-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.mvp-card .mvp-title { color: var(--gold); font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; font-family: var(--font-heading); letter-spacing: 1px; }
.mvp-card p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.6; }

/* === FOOTER === */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 50px 40px 30px;
  text-align: center;
}
footer .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  letter-spacing: 3px;
}
footer p { color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-heading); letter-spacing: 1px; }
footer .socials { display: flex; justify-content: center; gap: 15px; margin: 18px 0; }
footer .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
}
footer .socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--neon);
}
footer .footer-credit {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-dim);
}
.rainbow-glow {
  background: linear-gradient(90deg, #ff3333, #ff8800, #ffcc00, #33ff33, #33ccff, #8833ff, #ff33cc, #ff3333);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowMove 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255,51,51,0.3));
  font-weight: 700;
}
@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 85px;
  right: 25px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast.success { background: rgba(255,0,0,0.12); border-color: var(--accent); color: var(--accent); }
.toast.error { background: rgba(255,23,68,0.12); border-color: #ff1744; color: #ff1744; }

/* === DISCORD WIDGET (DARK & PREMIUM) === */
.discord-widget {
  max-width: 820px; margin: 0 auto; padding: 40px 20px 10px;
  font-family: var(--font-body);
}
.dw-card {
  position: relative;
  background: rgba(12,12,18,0.75); backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
.dw-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(88,101,242,0.08), transparent 40%, transparent 60%, rgba(88,101,242,0.04));
  pointer-events: none;
}
.dw-card:hover {
  border-color: rgba(88,101,242,0.25);
  box-shadow: 0 0 60px rgba(88,101,242,0.08), inset 0 0 40px rgba(88,101,242,0.02);
}
.dw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative; z-index: 1;
}
.dw-header-left { display: flex; align-items: center; gap: 16px; }
.dw-icon {
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dw-card:hover .dw-icon { transform: scale(1.02); box-shadow: 0 0 0 1px rgba(88,101,242,0.2), 0 4px 16px rgba(88,101,242,0.15); }
.dw-title {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 2.2px; color: var(--text);
  text-transform: uppercase;
}
.dw-sub {
  font-size: 0.72rem; color: var(--dim); margin-top: 3px;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.3px;
}
.dw-online-num { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #57f287; animation: dwPulse 2s ease-in-out infinite; box-shadow: 0 0 8px rgba(87,242,135,0.4); }
@keyframes dwPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.dw-badge {
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  background: rgba(88,101,242,0.08); padding: 7px 16px;
  border-radius: 20px; border: 1px solid rgba(88,101,242,0.12);
  white-space: nowrap; font-weight: 500; letter-spacing: 0.3px;
  transition: 0.3s;
}
.dw-card:hover .dw-badge { border-color: rgba(88,101,242,0.25); background: rgba(88,101,242,0.12); }
.dw-badge span { color: #fff; font-weight: 700; }
.dw-body { padding: 20px 28px 12px; position: relative; z-index: 1; }
.dw-avatars {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  min-height: 32px; padding: 12px 16px;
  background: rgba(255,255,255,0.02); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
}
.dw-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dw-channel {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.03); padding: 7px 14px;
  border-radius: 10px; font-size: 0.75rem; color: var(--text);
  border: 1px solid rgba(255,255,255,0.04);
  transition: 0.25s; cursor: default;
}
.dw-channel:hover { background: rgba(88,101,242,0.06); border-color: rgba(88,101,242,0.12); }
.dw-ch-name { font-weight: 500; }
.dw-ch-tag {
  font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--dim); background: rgba(255,255,255,0.05);
  padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.dw-announce {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; margin-bottom: 6px;
  background: rgba(255,69,0,0.04); border: 1px solid rgba(255,85,34,0.1);
  border-radius: 12px; font-size: 0.78rem; color: var(--text); line-height: 1.5;
}
.dw-announce i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.dw-join {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 8px 28px 24px; padding: 15px 0;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 60%, #5865F2 100%);
  background-size: 200% 200%; animation: dwShimmer 4s ease-in-out infinite;
  color: #fff; border-radius: 14px;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
  z-index: 1;
}
@keyframes dwShimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.dw-join::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%); transition: 0.6s cubic-bezier(0.4,0,0.2,1);
}
.dw-join:hover::before { transform: translateX(100%); }
.dw-join:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(88,101,242,0.4); }
.dw-join:active { transform: translateY(-1px); }
.dw-join-arrow { transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); display: inline-block; }
.dw-join:hover .dw-join-arrow { transform: translateX(5px); }

@media (max-width: 600px) {
  .discord-widget { padding: 20px 10px 0; }
  .dw-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dw-header-left { width: 100%; }
  .dw-badge { align-self: flex-start; }
  .dw-body { padding: 16px 16px 8px; }
  .dw-avatars { padding: 10px 14px; }
  .dw-join { margin: 6px 16px 18px; padding: 13px 0; font-size: 0.85rem; }
  .dw-channels { gap: 6px; }
  .dw-channel { font-size: 0.7rem; padding: 5px 11px; }
}

.legacy-sidebar { display: none; }

/* === DISCORD SIDEBAR === */
.discord-sidebar {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  z-index: 100; width: 200px;
  background: rgba(8,8,8,0.85); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-body);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.discord-sidebar:hover { border-color: rgba(255,51,51,0.2); }
.discord-sidebar.minimized {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  cursor: pointer; gap: 0; border-color: rgba(255,51,51,0.15);
}
.discord-sidebar.minimized:hover { border-color: rgba(255,51,51,0.4); }
.discord-sidebar .ds-header,
.discord-sidebar .ds-stats,
.discord-sidebar .ds-announce,
.discord-sidebar .ds-join { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.discord-sidebar.minimized .ds-header { opacity: 0; transform: scale(0.8); pointer-events: none; }
.discord-sidebar.minimized .ds-stats,
.discord-sidebar.minimized .ds-announce,
.discord-sidebar.minimized .ds-join { opacity: 0; transform: scale(0.8); pointer-events: none; }
.ds-header { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.ds-toggle {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(8,8,8,0.85); border: 1px solid rgba(255,255,255,0.1);
  color: var(--dim); font-size: 0.7rem; cursor: pointer; transition: 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); line-height: 1; z-index: 2; padding: 0;
}
.ds-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.discord-sidebar.minimized .ds-toggle { right: 50%; top: 50%; transform: translate(50%, -50%); }
.discord-sidebar.minimized .ds-toggle i { transform: rotate(180deg); }
.ds-icon { width: 48px; height: 48px; border-radius: 12px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.discord-sidebar.minimized .ds-icon {
  width: 28px; height: 28px; border-radius: 6px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ds-name { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); text-align: center; }
.ds-stats { display: flex; gap: 6px; width: 100%; }
.ds-stat { flex: 1; text-align: center; padding: 8px 4px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.04); }
.ds-stat-num { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--accent); }
.ds-stat-lbl { display: block; font-size: 0.6rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.ds-announce { width: 100%; padding: 10px 12px; background: rgba(255,69,0,0.04); border: 1px solid rgba(255,85,34,0.12); border-radius: 8px; }
.ds-announce-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.ds-announce-text { font-size: 0.75rem; color: var(--text); line-height: 1.4; }
.ds-join {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px 0;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
  text-decoration: none; transition: 0.3s;
}
.ds-join:hover { transform: translateY(-2px); }

/* === CHAT WIDGET === */
.chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 9998; font-family: var(--font-body); line-height: 0; }
.chat-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; filter: drop-shadow(0 0 15px rgba(255,0,0,0.35));
  transition: 0.3s; position: relative;
}
.chat-bubble:hover { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(255,0,0,0.5)); }
.chat-bubble .badge {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gold); color: #000;
  font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
}
.chat-panel {
  position: absolute; bottom: 72px; right: 0; width: 360px; height: 480px;
  background: #0d0d0d; border: 1px solid var(--glass-border); border-radius: 14px;
  display: none; flex-direction: column; overflow: hidden;
  backdrop-filter: blur(10px);
}
.chat-panel.open { display: flex; }
.chat-header {
  padding: 16px 18px; background: rgba(255,0,0,0.06); border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.4); }
.chat-header h4 { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 1px; }
.chat-close { color: var(--dim); font-size: 1.4rem; cursor: pointer; transition: 0.3s; line-height: 1; }
.chat-close:hover { color: var(--text); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.chat-welcome {
  text-align: center; padding: 40px 20px; color: var(--dim);
}
.chat-welcome i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.3; }
.chat-welcome p { font-size: 0.85rem; line-height: 1.5; }
.msg.system { align-self: center; background: rgba(255,69,0,0.08); color: var(--gold); font-size: 0.75rem; border-radius: 6px; padding: 8px 14px; text-align: center; max-width: 90%; }
.msg.details-card { align-self: stretch; background: rgba(255,69,0,0.05); border: 1px solid rgba(255,85,34,0.2); border-radius: 10px; padding: 14px 16px; margin-bottom: 4px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 0.8rem; }
.details-grid div { display: flex; flex-direction: column; }
.details-grid div span { font-size: 0.65rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1px; }
.msg-row { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.msg-row.left { flex-direction: row; }
.msg-row.right { flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.msg-col { max-width: calc(100% - 50px); }
.msg-name { font-size: .7rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.msg-row.right .msg-name { color: var(--dim); }
.msg { max-width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word; animation: fadeUp 0.25s ease; }
.msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.msg.admin { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-bottom-left-radius: 3px; }
.msg .time { font-size: 0.6rem; opacity: 0.5; margin-top: 4px; text-align: right; }
.msg-row.right .msg .time { opacity: 0.7; }
.chat-input-area {
  padding: 12px 14px; border-top: 1px solid var(--glass-border);
  display: flex; gap: 10px; background: rgba(0,0,0,0.3);
}
.chat-input-area input {
  flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text);
  font-size: 0.85rem; font-family: inherit; transition: 0.2s;
}
.chat-input-area input:focus { outline: none; border-color: var(--accent); }
.chat-input-area input::placeholder { color: var(--dim); }
.chat-input-area button {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; cursor: pointer; transition: 0.3s;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.chat-input-area button:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,0,0,0.3); }
.chat-input-area button:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(80px);
  transition: 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 20px rgba(255,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 0 40px rgba(255,0,0,0.6);
  transform: translateY(-4px);
}



/* === CURSOR GLOW === */
/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Enhanced reveal variants */
.reveal-scale {
  opacity: 0;
  transform: translateY(30px) scale(0.93);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
/* Stagger for grid children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.active > *:nth-child(9) { transition-delay: 0.48s; }
.reveal-stagger.active > *:nth-child(10) { transition-delay: 0.54s; }
.reveal-stagger.active > *:nth-child(11) { transition-delay: 0.6s; }
.reveal-stagger.active > *:nth-child(12) { transition-delay: 0.66s; }
.reveal-stagger.active > *:nth-child(13) { transition-delay: 0.72s; }
.reveal-stagger.active > *:nth-child(14) { transition-delay: 0.78s; }
.reveal-stagger.active > *:nth-child(15) { transition-delay: 0.84s; }
.reveal-stagger.active > *:nth-child(16) { transition-delay: 0.9s; }
.reveal-stagger.active > *:nth-child(17) { transition-delay: 0.96s; }
.reveal-stagger.active > *:nth-child(18) { transition-delay: 1.02s; }
.reveal-stagger.active > *:nth-child(19) { transition-delay: 1.08s; }
.reveal-stagger.active > *:nth-child(20) { transition-delay: 1.14s; }
.reveal-stagger.active > * { opacity: 1; transform: translateY(0); }

/* Text split - word animation */
.text-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(40deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-word.show {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
.text-word:nth-child(1) { transition-delay: 0s; }
.text-word:nth-child(2) { transition-delay: 0.08s; }
.text-word:nth-child(3) { transition-delay: 0.16s; }
.text-word:nth-child(4) { transition-delay: 0.24s; }
.text-word:nth-child(5) { transition-delay: 0.32s; }
.text-word:nth-child(6) { transition-delay: 0.4s; }
.text-word:nth-child(7) { transition-delay: 0.48s; }
.text-word:nth-child(8) { transition-delay: 0.56s; }
.text-word:nth-child(9) { transition-delay: 0.64s; }
.text-word:nth-child(10) { transition-delay: 0.72s; }

/* Parallax container */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute; inset: -20% 0;
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}
.parallax-content { position: relative; z-index: 1; }

/* === IMAGE FADE === */
img.fade-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
img.fade-in.loaded {
  opacity: 1;
  transform: scale(1);
}

/* === SPONSORS === */
.sponsors {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sponsors-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.sponsor-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.sponsor-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255,0,0,0.15), var(--neon);
}
.sponsor-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent), transparent);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: gradientShift 3s ease infinite;
}
.sponsor-card:hover::before { opacity: 0.3; }
.sponsor-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(255,0,0,0.2);
}
.sponsor-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.sponsor-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.sponsor-tag {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,0,0,0.1);
  color: var(--accent);
  border: 1px solid rgba(255,0,0,0.15);
}
.sponsor-slot {
  border-style: dashed;
  border-color: var(--glass-border);
  opacity: 0.6;
}
.sponsor-slot:hover { opacity: 1; }
.sponsor-slot .sponsor-icon { background: var(--glass); color: var(--dim); }
.sponsor-slot .sponsor-tag { background: rgba(255,255,255,0.04); color: var(--dim); border-color: var(--glass-border); }

/* === STAFF === */
.staff {
  content-visibility: auto;
  contain-intrinsic-size: 450px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.staff-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.staff-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.4s;
}
.staff-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--neon);
}
.staff-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  box-shadow: 0 0 30px rgba(255,0,0,0.2);
}
.staff-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.staff-role {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.staff-card p {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* === TOURNAMENT BRACKET === */
.tournament {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tournament-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tournament-status {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}
.bracket-container {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 0;
}
.bracket-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.bracket-empty i {
  font-size: 3rem;
  opacity: 0.2;
  margin-bottom: 16px;
  display: block;
}
.bracket-empty p { font-size: 0.9rem; }
.bracket-visual {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  min-height: 200px;
  padding: 20px 0;
}
.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}
.bracket-round-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.7;
}
.bracket-match {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: 0.3s;
  position: relative;
}
.bracket-match:hover {
  border-color: var(--accent);
  box-shadow: var(--neon);
}
.bracket-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text);
}
.bracket-team.winner {
  color: #57f287;
  font-weight: 600;
}
.bracket-team .bracket-score {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.bracket-team.winner .bracket-score { color: #57f287; }
.bracket-vs {
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-dim);
  opacity: 0.3;
  padding: 2px 0;
  font-family: var(--font-heading);
}
.bracket-match .bracket-tbd {
  color: var(--text-dim);
  font-style: italic;
  opacity: 0.4;
  font-size: 0.75rem;
}
.tournament-info {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* === TEAM BUILDER === */
.teambuilder {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tb-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.tb-roster, .tb-field {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 22px;
  backdrop-filter: blur(12px);
}
.tb-roster h3, .tb-field h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--accent);
  letter-spacing: 1px;
}
.tb-roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}
.tb-roster-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}
.tb-roster-item:hover {
  background: rgba(255,0,0,0.06);
  border-color: var(--accent);
}
.tb-roster-item .tb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.tb-roster-item .tb-name { flex: 1; font-weight: 500; }
.tb-roster-item .tb-role { color: var(--text-dim); font-size: 0.7rem; }
.tb-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tb-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--glass-border);
  border-radius: 8px;
  transition: 0.3s;
  min-height: 44px;
}
.tb-slot.filled {
  border-style: solid;
  border-color: var(--accent);
  background: rgba(255,0,0,0.04);
}
.tb-slot .tb-pos {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tb-slot .tb-player-name {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.tb-slot .tb-remove {
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  transition: 0.2s;
  font-size: 0.85rem;
}
.tb-slot.filled:hover .tb-remove { opacity: 1; }
.tb-slot .tb-add {
  color: var(--dim);
  font-size: 0.8rem;
  opacity: 0.5;
}
.tb-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.tb-actions .btn { padding: 10px 20px; font-size: 0.7rem; }
.tb-output {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.tb-output h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.tb-output-content { font-size: 0.85rem; line-height: 1.6; margin-bottom: 10px; }
.tb-output .btn { padding: 8px 16px; font-size: 0.7rem; }

/* === FOOTER QUOTE === */
.footer-quote {
  max-width: 520px;
  margin: 16px auto;
  padding: 14px 24px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}
.footer-quote i {
  color: var(--accent);
  opacity: 0.3;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* === TYPING INDICATOR === */
.chat-typing {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 4px 16px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeUp 0.3s ease;
}
.chat-typing .typing-dots {
  display: flex;
  gap: 3px;
}
.chat-typing .typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingDot 1.4s ease-in-out infinite;
}
.chat-typing .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  nav { padding: 12px 20px; }
  .menu-toggle { display: flex; z-index: 2001; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  nav .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(8,8,8,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    padding: 80px 30px;
  }
  nav .nav-links.open { right: 0; }
  nav .nav-links a { font-size: 0.95rem; padding: 14px 24px; width: 100%; text-align: center; border-radius: 8px; }
  nav .nav-links a:hover { background: rgba(255,0,0,0.1); }
  nav .nav-links .nav-admin { border: none; }
  nav .nav-links .nav-music { justify-content: center; }

  .hero-content .logo-main { max-width: 90%; width: 380px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.8rem; letter-spacing: 3px; }

  section { padding: 60px 20px; }
  .section-title { font-size: 1.5rem; letter-spacing: 1px; }
  .about-content { grid-template-columns: 1fr; gap: 35px; }
  .form-container { padding: 25px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .mvp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .sponsors-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-container { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: row !important; gap: 15px; }
  .tl-item .dot { left: 20px; }
  .tl-item .date-box, .tl-item:nth-child(even) .date-box { text-align: left; font-size: 0.7rem; min-width: 60px; }
  .spotlight-card { padding: 30px 20px; }
  .discord-sidebar { display: none; }
  .chat-panel { width: calc(100vw - 30px); right: -10px; height: 420px; bottom: 62px; }
  .chat-widget { right: 15px; bottom: 15px; }

  /* === BOTTOM NAV === */
  .bottom-nav {
    display: flex; flex-direction: column;
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    background: rgba(10,10,10,0.92);
    border-top: 1px solid rgba(255,51,51,0.15);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom,0);
  }
  .bn-row {
    display: flex; justify-content: space-around; align-items: center;
    padding: 4px 2px;
  }
  .bn-row-2 {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap;
  }
  .bottom-nav.expanded .bn-row-2 { max-height: 70px; }
  .bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px;
    background: none; border: none;
    color: #777; font-size: 0.5rem;
    cursor: pointer; padding: 4px 8px;
    text-decoration: none; transition: color 0.2s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    font-family: inherit;
  }
  .bn-item i { font-size: 1rem; transition: color 0.2s; }
  .bn-item span { white-space: nowrap; }
  .bn-item.active { color: var(--accent); }
  .bn-item.active i { color: var(--accent); }
  .bn-item:active { opacity: 0.5; }
  .bn-expand { transition: transform 0.3s; }
  .bottom-nav.expanded .bn-expand { transform: rotate(180deg); }

  .bn-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .bn-overlay.show { opacity: 1; pointer-events: auto; }

  body { padding-bottom: 52px; }
  .chat-widget { bottom: 68px; }
  .chat-panel { bottom: 72px; }
}
@media(max-width:420px){
  .hero-content .logo-main { width: 260px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .bn-item { padding: 3px 6px; font-size: 0.45rem; }
  .bottom-nav.expanded .bn-row { max-height: 90px; }
}

/* === LIGHT MODE === */
[data-theme="light"] {
  --bg-primary: #e8e8ec;
  --bg-secondary: #f0f0f4;
  --bg-card: #f5f5f8;
  --text: #16161a;
  --text-dim: #4a4a50;
  --dim: #5a5a62;
  --glass: rgba(255,255,255,0.8);
  --glass-border: rgba(0,0,0,0.06);
  --neon: 0 0 10px rgba(255,0,0,0.12), 0 0 30px rgba(255,0,0,0.04);
}
[data-theme="light"] nav {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] nav .nav-links a { color: #555; }
[data-theme="light"] nav .nav-links a:hover { color: var(--accent); background: rgba(255,0,0,0.06); }
[data-theme="light"] nav .nav-links .nav-admin { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] nav .nav-links .nav-music { color: #555; }
[data-theme="light"] nav .nav-links .nav-theme { color: #555; }
[data-theme="light"] .menu-toggle span { background: #444; }
[data-theme="light"] .hero::after { background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(232,232,236,0.97) 100%); }
[data-theme="light"] .discord-sidebar { background: rgba(255,255,255,0.88); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .dw-card { background: rgba(255,255,255,0.82); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .dw-card::before { background: linear-gradient(135deg, rgba(255,51,51,0.04), transparent 40%, transparent 60%, rgba(255,51,51,0.02)); }
[data-theme="light"] .dw-avatars { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] .dw-channel { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] .dw-channel:hover { background: rgba(88,101,242,0.05); }
[data-theme="light"] .dw-badge { background: rgba(88,101,242,0.05); border-color: rgba(88,101,242,0.1); }
[data-theme="light"] .section-title { color: #16161a; }
[data-theme="light"] .section-sub { color: #6a6a72 !important; }
[data-theme="light"] .stats-grid .stat-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.05); box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
[data-theme="light"] .stats-grid .stat-card .label { color: #6a6a72; }
[data-theme="light"] .form-container { background: rgba(255,255,255,0.78); border-color: rgba(0,0,0,0.05); }
[data-theme="light"] .form-container input,
[data-theme="light"] .form-container textarea { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); color: #16161a; }
[data-theme="light"] .form-container label { color: #444; }
[data-theme="light"] .news-card,
[data-theme="light"] .ach-card,
[data-theme="light"] .roster-card,
[data-theme="light"] .mvp-card,
[data-theme="light"] .spotlight-card { background: rgba(255,255,255,0.78); border-color: rgba(0,0,0,0.04); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
[data-theme="light"] .tl-item .date-box { background: rgba(0,0,0,0.04); color: #16161a; }
[data-theme="light"] .tl-item .content { background: rgba(255,255,255,0.78); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] footer { border-top-color: rgba(0,0,0,0.05); background: var(--bg-secondary); }
[data-theme="light"] .chat-panel { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .chat-bubble { filter: drop-shadow(0 0 15px rgba(255,0,0,0.15)); }
[data-theme="light"] .about-text p { color: #444; }
[data-theme="light"] .dw-sub { color: #6a6a72; }
[data-theme="light"] .footer-credit { color: #888; }
[data-theme="light"] .ds-stat { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] .ds-announce,
[data-theme="light"] .dw-announce { background: rgba(255,69,0,0.03); border-color: rgba(255,85,34,0.1); }
[data-theme="light"] .scroll-progress { background: linear-gradient(90deg, var(--accent2), var(--accent), var(--gold)); }
[data-theme="light"] .back-to-top { box-shadow: 0 0 20px rgba(255,0,0,0.15); }
[data-theme="light"] .back-to-top:hover { box-shadow: 0 0 40px rgba(255,0,0,0.3); }
[data-theme="light"] .chat-input-area { background: rgba(0,0,0,0.02); }
[data-theme="light"] .chat-input-area input { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); color: #16161a; }
[data-theme="light"] .msg.admin { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] .chat-header { background: rgba(255,0,0,0.03); }
[data-theme="light"] .dw-online-num { box-shadow: 0 0 8px rgba(87,242,135,0.25); }
[data-theme="light"] .dw-ch-tag { background: rgba(0,0,0,0.03); color: #999; }
[data-theme="light"] .hero-content p { color: #aaa; }
[data-theme="light"] .news-card .share-btn { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.05); }
[data-theme="light"] .news-card .share-btn:hover { background: rgba(88,101,242,0.08); }
[data-theme="light"] .dw-title { color: #16161a; }
[data-theme="light"] .news-card .body .date { color: #888; }
[data-theme="light"] .roster-card .nickname { color: #6a6a72; }
[data-theme="light"] .mvp-card p { color: #555; }
[data-theme="light"] .ach-card p { color: #555; }
[data-theme="light"] .tl-item .content p { color: #555; }
[data-theme="light"] .spotlight-card blockquote { color: #555; }
[data-theme="light"] .sponsor-card,
[data-theme="light"] .staff-card,
[data-theme="light"] .tb-roster,
[data-theme="light"] .tb-field,
[data-theme="light"] .bracket-match { background: rgba(255,255,255,0.78); border-color: rgba(0,0,0,0.04); }
[data-theme="light"] .tb-slot { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .tb-roster-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .footer-quote { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .footer-quote { color: #666; }
