/* ===================================================================
   DOLA ONLINE - OPEN HUB (open.dolaonline.com)
   Official Knowledge, Lore, Server Monitor & Community Portal
   Design: Modern Dark Fantasy & Chibi Neon Aesthetic
=================================================================== */

:root {
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-surface: rgba(16, 24, 43, 0.75);
  --bg-surface-hover: rgba(23, 35, 64, 0.85);
  --bg-surface-active: rgba(30, 48, 88, 0.9);
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-glow: rgba(56, 189, 248, 0.45);
  
  /* Fate Thread Palette */
  --thread-cyan: #38bdf8;
  --thread-blue: #0284c7;
  --thread-pink: #f43f5e;
  --thread-pink-light: #fb7185;
  --thread-purple: #a855f7;
  --thread-gold: #fbbf24;
  
  /* Text colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-highlight: #38bdf8;
  
  /* Status */
  --status-smooth: #10b981;
  --status-normal: #38bdf8;
  --status-busy: #f59e0b;
  --status-full: #ef4444;

  /* Fonts */
  --font-display: 'Chakra Petch', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-glow-cyan: 0 0 25px rgba(56, 189, 248, 0.25);
  --shadow-glow-pink: 0 0 25px rgba(244, 63, 94, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151e36 0%, #070a12 60%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--thread-cyan);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--thread-cyan) 60%, var(--thread-pink-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #fff 10%, var(--thread-pink) 60%, var(--thread-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================================
   NAVIGATION BAR
=================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.08) rotate(-4deg);
}

.nav-brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--thread-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--thread-cyan);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sound Toggle Button */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: #fff;
  border-color: var(--thread-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

/* Play Now CTA Button */
.btn-play-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #e11d48 50%, #be123c);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-play-game:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-play-game .icon-arrow {
  transition: transform 0.2s ease;
}
.btn-play-game:hover .icon-arrow {
  transform: translateX(4px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

#fateThreadsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.blob-cyan {
  top: -100px;
  right: 5%;
  background: #0ea5e9;
}

.blob-pink {
  bottom: 0;
  left: 10%;
  background: #f43f5e;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-smooth);
  box-shadow: 0 0 10px var(--status-smooth);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--thread-cyan);
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--thread-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item h4 {
  font-size: 1.6rem;
  color: #fff;
}
.stat-item p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Hero Visual / Chibi Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.hero-avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.4);
  animation: rotate-ring 24s linear infinite;
}

@keyframes rotate-ring {
  100% { transform: rotate(360deg); }
}

.hero-avatar-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
  animation: float-char 4s ease-in-out infinite;
}

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

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--thread-pink-light);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.hero-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-mini-status {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-status-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mini-status-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--status-smooth);
}

/* ===================================================================
   SECTION COMMON STYLES
=================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.6) 0%, rgba(7, 10, 18, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--thread-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   SERVER STATUS MONITOR SECTION
=================================================================== */
.monitor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.monitor-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.summary-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.summary-badge strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--thread-cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--thread-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.channel-card.recommended::before {
  content: '🌟 RECOMMENDED';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.channel-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.channel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.status-smooth-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-smooth);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-normal-pill {
  background: rgba(56, 189, 248, 0.15);
  color: var(--thread-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-busy-pill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-busy);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 40px;
}

.channel-meter-wrap {
  margin-bottom: 14px;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.meter-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--thread-cyan), var(--thread-pink));
  transition: width 0.6s ease;
}

/* ===================================================================
   LORE & STORYLINE SECTION
=================================================================== */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lore-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lore-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}

.lore-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.lore-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.lore-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.lore-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--thread-cyan);
}

/* ===================================================================
   CLASSES & JOBS SECTION (Interactive Sprite Studio)
=================================================================== */
.class-studio-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.class-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.class-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.class-tab-btn:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.class-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.15));
  border-color: var(--thread-cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.class-showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.sprite-stage {
  position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0.6) 80%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#spriteCanvas {
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.7));
}

.sprite-pedestal {
  width: 140px;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: -10px;
}

.sprite-stage-info {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-details h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.class-role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.role-tank { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.role-dps-magic { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.role-dps-range { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.role-speed-burst { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }
.role-troll { background: rgba(251, 191, 36, 0.2); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.4); }

.class-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.class-radar-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--thread-cyan);
  border-radius: var(--radius-pill);
}

.skills-preview-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #fff;
}

/* ===================================================================
   AUTONOMOUS AI BOTS SECTION
=================================================================== */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.bot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
}

.bot-card:hover {
  transform: translateY(-4px);
  border-color: var(--thread-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.bot-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bot-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bot-meta h4 {
  font-size: 1.1rem;
}

.bot-meta p {
  font-size: 0.8rem;
  color: var(--thread-cyan);
}

.bot-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--thread-cyan);
}

.bot-details-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* ===================================================================
   NEWS & PATCH NOTES SECTION
=================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.news-card:hover {
  border-color: var(--thread-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-category-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.15);
  color: var(--thread-pink-light);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.news-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--thread-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-read-more:hover {
  color: #fff;
}

/* ===================================================================
   LEADERBOARD SECTION
=================================================================== */
.leaderboard-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  background: rgba(7, 10, 18, 0.9);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.leaderboard-table td {
  padding: 16px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.leaderboard-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.rank-1 { background: #fbbf24; color: #000; box-shadow: 0 0 12px rgba(251, 191, 36, 0.5); }
.rank-2 { background: #94a3b8; color: #000; }
.rank-3 { background: #b45309; color: #fff; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.char-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

/* ===================================================================
   OPEN-SOURCE & SYSTEM SPECS
=================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.spec-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.spec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================================================================
   MODAL DIALOG
=================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--thread-pink);
  transform: rotate(90deg);
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--thread-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES
=================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 32px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-quick-stats {
    justify-content: center;
  }
  .lore-grid {
    grid-template-columns: 1fr;
  }
  .class-showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
