/* ==========================================================================
   MALABARCOMMUNITY — APPLE-INSPIRED RED GAMING EXPERIENCE
   ========================================================================== */

:root {
  /* Dark Obsidian & Crimson-tinted Dark Surfaces */
  --bg-main: #070507;
  --bg-surface: #100a0e;
  --bg-surface-elevated: #180f15;
  --bg-card: rgba(20, 12, 17, 0.85);
  --bg-card-hover: rgba(28, 16, 24, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-glow-red: rgba(239, 68, 68, 0.45);
  --border-glow-green: rgba(34, 197, 94, 0.4);
  --border-glow-amber: rgba(234, 179, 8, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #070507;

  /* Signature Red / Crimson Gaming Palette */
  --color-primary: #ef4444;
  --color-primary-hover: #f87171;
  --color-primary-dark: #dc2626;
  --color-primary-glow: rgba(239, 68, 68, 0.45);
  --color-crimson: #e11d48;
  --color-crimson-glow: rgba(225, 29, 72, 0.45);

  /* Server Status Colors */
  --color-green: #22c55e;
  --color-green-glow: rgba(34, 197, 94, 0.35);
  --color-amber: #eab308;
  --color-amber-glow: rgba(234, 179, 8, 0.35);
  --color-cyan: #38bdf8;
  --color-discord: #5865f2;
  --color-discord-hover: #4752c4;
  --color-bedrock: #f43f5e;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-apple: 0.85s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
  --shadow-card-featured: 0 24px 60px -12px rgba(239, 68, 68, 0.25), 0 0 0 1px var(--border-glow-red);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════════════════
   100x UPGRADED AMBIENT BACKGROUND LIGHTING, CURSOR AURA & PARTICLE SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Interactive Cursor Ambient Aura */
.cursor-ambient-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(239, 68, 68, 0.16) 0%,
    rgba(225, 29, 72, 0.05) 45%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

body:hover .cursor-ambient-aura {
  opacity: 1;
}

/* Background Ember/Sparkle Particles Canvas */
.bg-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* Floating Mesh Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  will-change: transform;
}

.glow-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #ef4444 0%, rgba(239, 68, 68, 0) 70%);
  top: -160px;
  left: 10%;
  animation: orbFloat1 22s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #e11d48 0%, rgba(225, 29, 72, 0) 70%);
  top: 30%;
  right: -5%;
  animation: orbFloat2 25s ease-in-out infinite alternate;
}

.glow-orb-3 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, #991b1b 0%, rgba(153, 27, 27, 0) 70%);
  top: 60%;
  left: 5%;
  opacity: 0.22;
  animation: orbFloat1 28s ease-in-out infinite alternate;
}

.glow-orb-4 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #dc2626 0%, rgba(220, 38, 38, 0) 70%);
  bottom: -100px;
  right: 15%;
  opacity: 0.25;
  animation: orbFloat2 20s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, -30px) scale(1.1); }
  100% { transform: translate(40px, 50px) scale(0.92); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 88%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FRAMER-MOTION / APPLE REVEAL ANIMATIONS (PROGRESSIVE ENHANCEMENT)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity var(--transition-apple), transform var(--transition-apple), filter var(--transition-apple);
  will-change: opacity, transform, filter;
}

/* When JS is ready, prepare un-revealed elements for smooth scroll entry */
html.js-ready .reveal:not(.is-revealed) {
  opacity: 0;
}

html.js-ready .reveal[data-reveal="fade-up"]:not(.is-revealed) {
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
}

html.js-ready .reveal[data-reveal="scale-up"]:not(.is-revealed) {
  transform: scale(0.92);
  filter: blur(12px);
}

.reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

/* Stagger Delays */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="450"] { transition-delay: 0.45s; }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.brand-img {
  height: 38px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 30%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  padding: 12px 22px;
  font-size: 0.95rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 26px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--color-discord);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: var(--color-discord-hover);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

.btn-discord-outline {
  background: rgba(88, 101, 242, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.btn-discord-outline:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: var(--color-discord);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-xs { padding: 6px 12px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   1. SCROLL-BASED CANVAS HERO (120 FRAMES + FEATURE CHAPTERS)
   ========================================================================== */
.hero-scroll-track {
  height: 420vh;
  position: relative;
  background: #070507;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070507;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.92;
}

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(11, 7, 9, 0.4) 0%, rgba(7, 5, 7, 0.85) 100%),
              linear-gradient(180deg, rgba(7, 5, 7, 0.8) 0%, transparent 25%, transparent 70%, #070507 100%);
  pointer-events: none;
}

.hero-chapters-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Pure floating text overlay — no box, no card, no background ── */
.hero-chapter {
  position: absolute;
  width: 420px;
  max-width: calc(100vw - 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity  0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Top-Left — slides in from above */
.hero-chapter.pos-top-left {
  top: 100px;
  left: 52px;
  transform: translateY(-18px);
  filter: blur(6px);
}

/* Bottom-Left — slides in from below */
.hero-chapter.pos-bottom-left {
  bottom: 52px;
  left: 52px;
  transform: translateY(18px);
  filter: blur(6px);
}

/* Active: fully in place */
.hero-chapter.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

/* ── Overline label ── */
.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.chapter-badge.badge-minecraft { color: #86efac; }
.chapter-badge.badge-samp      { color: #fde047; }
.chapter-badge.badge-performance { color: #fca5a5; }

/* ── Main Title ── */
.chapter-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.6);
}

/* Red gradient accent */
.chapter-title .text-gradient-red,
.chapter-title span {
  background: linear-gradient(125deg, #ef4444 10%, #fb923c 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subtitle ── */
.chapter-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

/* ── IP Chips: no box, just a subtle separator row ── */
.chapter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.chapter-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* ── Thin red accent line to the left of card ── */
.hero-chapter::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, #ef4444 0%, transparent 100%);
  border-radius: 2px;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 720px) {
  .hero-chapter {
    width: calc(100vw - 48px);
    max-width: none;
  }

  .hero-chapter.pos-top-left {
    top: 78px;
    left: 24px;
  }

  .hero-chapter.pos-bottom-left {
    bottom: 32px;
    left: 24px;
  }

  .chapter-title {
    font-size: 1.45rem;
  }
}

/* Minimalist Apple Scroll Cue Pinned to Bottom Right or Center of Stage */
.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 0 12px var(--color-primary);
  transition: width 0.15s ease-out;
}

.scroll-mouse-track {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   2. KEYNOTE METRIC COUNTERS
   ========================================================================== */
.metrics-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 10, 14, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.metric-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.metric-val {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-unit {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.metric-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   3. SERVERS MATRIX & CARDS
   ========================================================================== */
.servers-section {
  padding: 110px 0;
  position: relative;
}

.section-intro {
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.section-badge-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
}

.section-subtext {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  margin-top: 12px;
  line-height: 1.6;
}

.section-intro.text-center .section-subtext {
  margin-left: auto;
  margin-right: auto;
}

/* ── Global Network Telemetry Bar ── */
.network-telemetry-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(18, 12, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 24px;
  margin-top: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.net-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
}

.net-label {
  color: var(--text-muted);
  font-weight: 600;
}

.net-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #f1f5f9;
}

.net-icon {
  font-size: 0.9rem;
}

.net-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* Status dots */
.status-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-sm.online {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite;
}
.status-dot-sm.coming-soon {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* ── Interactive Server Filter Tabs ── */
.server-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px;
  margin-top: 24px;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.filter-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* ── Servers Grid Layout ── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  align-items: stretch;
  margin-top: 40px;
}

.server-card {
  background: rgba(14, 9, 14, 0.78);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  overflow: hidden;
}

.server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(239, 68, 68, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.server-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.18);
}

.featured-server-card {
  border-color: rgba(239, 68, 68, 0.32);
}

.featured-server-card:hover {
  border-color: rgba(239, 68, 68, 0.55);
}

.samp-card {
  border-color: rgba(234, 179, 8, 0.25);
}

.samp-card:hover {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 179, 8, 0.15);
}

/* Ribbons */
.card-ribbon-red {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  text-align: center;
  text-transform: uppercase;
}

.card-ribbon-gold {
  background: linear-gradient(90deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  text-align: center;
  text-transform: uppercase;
}

.card-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.server-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-avatar-glow {
  background: radial-gradient(circle, #22c55e15 0%, #111e15 100%);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.35);
}

.smp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.samp-avatar {
  background: radial-gradient(circle, #f59e0b15 0%, #150508 100%);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.35);
  padding: 6px;
  overflow: hidden;
}

.samp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.6));
}

.server-titles { flex: 1; }

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.server-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.server-genre {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-online .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite;
}

.badge-coming-soon {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-coming-soon .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.badge-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-offline .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.card-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.connection-details-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.connection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.connection-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.version-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.version-tag strong {
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.connection-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edition-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edition-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
}

.java-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.bedrock-badge {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.edition-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.code-address {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.btn-copy-address {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-address:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.bedrock-display { flex-wrap: wrap; }

.bedrock-fields {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.field-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.code-port {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.highlight-port {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* ═══════════════════════════════════════
   SAMP CARD DETAILS & READINESS TRACKER
═══════════════════════════════════════ */
.samp-brand-showcase {
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.18) 0%, rgba(10, 13, 20, 0.75) 100%);
  border: 1px solid rgba(225, 29, 72, 0.32);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(225, 29, 72, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
  gap: 10px;
}

.samp-showcase-logo {
  max-width: 220px;
  width: 85%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(225, 29, 72, 0.55));
  transition: transform 0.3s ease;
}

.samp-card:hover .samp-showcase-logo {
  transform: scale(1.05);
}

.samp-showcase-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}

.story-tagline-box {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(20, 20, 20, 0.5) 100%);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
}

.quote-mark {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-amber);
  opacity: 0.4;
  font-family: serif;
  position: absolute;
  top: 10px;
  right: 16px;
}

.story-tagline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.story-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Development Readiness Tracker */
.dev-readiness-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.readiness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.readiness-title {
  font-size: 0.70rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.08em;
}

.readiness-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
}

.readiness-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.readiness-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.roadmap-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.roadmap-item.checked .r-icon {
  color: #22c55e;
  font-weight: 900;
}
.roadmap-item.checked .r-text {
  color: #cbd5e1;
}

.roadmap-item.in-progress .r-icon {
  color: #f59e0b;
  font-weight: 900;
}
.roadmap-item.in-progress .r-text {
  color: #94a3b8;
}

.card-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .featured-server-card .card-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
  }

  .samp-card .card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .network-telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    padding: 14px 18px;
  }

  .net-divider {
    display: none;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. APPLE-STYLE PRECISION ENGINEERING BENTO MATRIX
   ========================================================================== */
.bento-section {
  padding: 110px 0 120px;
  background: radial-gradient(circle at 50% 10%, rgba(225, 29, 72, 0.08) 0%, rgba(7, 5, 7, 0.95) 75%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Subtle Tech Matrix Grid Overlay */
.bento-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.badge-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-red 1.8s infinite;
  display: inline-block;
  margin-right: 4px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Base Bento Card */
.bento-card {
  background: rgba(15, 10, 15, 0.72);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(239, 68, 68, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.15);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-wide {
  grid-column: span 2;
}

/* Header & Tags */
.bento-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bento-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.bento-svg-icon {
  width: 22px;
  height: 22px;
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fca5a5;
  text-transform: uppercase;
}

.bento-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Split Layout inside Wide Bento Cards */
.bento-split-content {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.bento-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Device Compatibility Pills */
.crossplay-devices-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.device-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.device-pill:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* Telemetry Bridge Box */
.bridge-telemetry-box {
  background: rgba(8, 4, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.bridge-nodes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bridge-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.java-node { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.06); }
.bedrock-node { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); }

.node-icon { font-size: 1.2rem; margin-bottom: 2px; }
.node-name { font-size: 0.78rem; font-weight: 700; color: #ffffff; }
.node-status { font-family: var(--font-mono); font-size: 0.68rem; color: #94a3b8; }

.bridge-pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 0 4px;
}

.pipe-pulse {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #22c55e);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse-glow 1.5s ease-in-out infinite alternate;
}

.pipe-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
  white-space: nowrap;
}

.bridge-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.b-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b-stat-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.b-stat-label {
  font-size: 0.66rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Security Terminal Box */
.bento-terminal-box {
  background: #09060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
  font-family: var(--font-mono);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #eab308; }
.term-dot.green { background: #22c55e; }

.term-title {
  font-size: 0.68rem;
  color: #64748b;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.term-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-body code {
  font-size: 0.72rem;
  line-height: 1.4;
  background: transparent;
  padding: 0;
  border: none;
  display: block;
}

.term-green { color: #4ade80; }
.term-cyan { color: #38bdf8; }
.term-gray { color: #64748b; }

/* Hardware Specs Matrix */
.bento-hw-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hw-spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hw-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
}

.hw-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hw-val.text-green {
  color: #4ade80;
}

/* Economy Market Widget */
.bento-market-widget {
  background: #09060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
}

.market-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.market-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
}

.market-trend-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.market-sparkline {
  width: 100%;
  height: 48px;
  display: block;
}

.market-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.m-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* SAMP Blueprint Box */
.samp-blueprint-box {
  background: rgba(8, 4, 8, 0.85);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.1);
}

.samp-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.bp-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.bp-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde047;
}

.samp-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.samp-f-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.samp-f-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.samp-f-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.samp-f-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.samp-f-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.bento-visual-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bento-pill {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Responsive Breakpoints for Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-section {
    padding: 70px 0;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .bento-split-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   5. DETAILS & PRICING / SUPPORTER PERKS SECTION
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
  position: relative;
}

.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin: 36px auto 0;
}

.toggle-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 700;
}

.discount-pill {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.pricing-toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  padding: 2px;
  transition: background var(--transition-normal);
}

.toggle-switch-handle {
  display: block;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: translateX(24px); /* Default active on Lifetime */
  transition: transform var(--transition-normal);
}

.pricing-toggle-switch.monthly-active .toggle-switch-handle {
  transform: translateX(0px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.featured-pricing-card {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: var(--shadow-card-featured);
  background: linear-gradient(180deg, rgba(30, 16, 24, 0.9) 0%, rgba(20, 12, 17, 0.9) 100%);
}

.popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.tier-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.badge-knight { color: var(--color-primary); }
.badge-champ { color: #f43f5e; }

.tier-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tier-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  min-height: 40px;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 18px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.tier-features-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.tier-features-list code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: #fca5a5;
  font-size: 0.84rem;
}

.check-icon {
  color: var(--color-green);
  font-weight: 900;
  font-size: 1rem;
}

.check-icon-red {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1rem;
}

/* Pay to win pledge banner */
.p2w-pledge-banner {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.p2w-icon { font-size: 2.2rem; }

.p2w-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.p2w-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   6. "HOW TO JOIN" MODAL DIALOG
   ========================================================================== */
.guide-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 680px;
  width: 90%;
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: visible;
}

.guide-modal::backdrop {
  background: rgba(4, 3, 4, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(239, 68, 68, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-appear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-appear {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon { font-size: 1.8rem; }
.modal-title { font-size: 1.35rem; font-weight: 800; }
.modal-subtitle { font-size: 0.86rem; color: var(--text-secondary); }

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-modal svg { width: 20px; height: 20px; }

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.modal-tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px 0;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.tab-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.tab-pill.java { background: rgba(56, 189, 248, 0.25); color: #38bdf8; }
.tab-pill.bedrock { background: rgba(244, 63, 94, 0.25); color: #fb7185; }

.guide-tab-panel {
  padding: 24px 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.quick-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }
.summary-code { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: #ffffff; }
.summary-val { font-size: 0.88rem; color: #4ade80; font-weight: 600; }

.mini-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.mini-copy-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.guide-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.step-content { flex: 1; }
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.step-copy-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.step-copy-bar code { font-family: var(--font-mono); font-size: 0.88rem; color: #fca5a5; }

.step-bedrock-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.step-field {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-title { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.field-with-btn { display: flex; align-items: center; gap: 8px; }
.field-with-btn code { font-family: var(--font-mono); font-size: 0.88rem; }

.modal-footer {
  padding: 18px 28px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. DISCORD CTA & FOOTER
   ========================================================================== */
.discord-cta-section {
  padding: 40px 0 90px;
}

.discord-banner-card {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22) 0%, rgba(20, 12, 17, 0.92) 100%);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.discord-banner-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.discord-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #a5b4fc;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.discord-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.discord-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.discord-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #180d15;
  border: 1px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(239, 68, 68, 0.35);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toast-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}

.toast.toast-out {
  animation: toast-out 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

.site-footer {
  background: #040203;
  border-top: 1px solid rgba(239, 68, 68, 0.15);
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-servers-list ul, .footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-servers-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-servers-list code {
  font-family: var(--font-mono);
  color: #fca5a5;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.status-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-sm.online { background: var(--color-green); box-shadow: 0 0 6px var(--color-green); }
.status-dot-sm.coming-soon { background: var(--color-amber); box-shadow: 0 0 6px var(--color-amber); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  background: #020102;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-version { font-family: var(--font-mono); color: var(--text-secondary); }

.copied-active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .nav-links { display: none; }
  
  .hero-cinematic { padding: 60px 0 40px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .hero-emblem-img { max-width: 320px; }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .discord-banner-card {
    padding: 32px 24px;
  }

  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .toast { max-width: 100%; }
}

/* -----------------------------------------------------------
   SPOTIFY FLOATING WIDGET
------------------------------------------------------------ */
.spotify-floa/* ==========================================================================
   HEADER AUDIO TOGGLE & FLOATING BGM CONTROLLER
   ========================================================================== */

/* ── Header Sound Toggle Button ── */
.btn-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-audio-toggle:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.btn-audio-toggle.is-playing {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

/* Header Audio Wave Icon */
.audio-wave-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.wave-bar {
  flex: 1;
  background: currentColor;
  border-radius: 1px;
  height: 3px;
  transition: height 0.2s ease;
}

.btn-audio-toggle.is-playing .wave-bar {
  animation: waveBounce 1.2s ease-in-out infinite alternate;
}
.btn-audio-toggle.is-playing .wave-bar:nth-child(1) { animation-delay: 0.0s; }
.btn-audio-toggle.is-playing .wave-bar:nth-child(2) { animation-delay: 0.25s; }
.btn-audio-toggle.is-playing .wave-bar:nth-child(3) { animation-delay: 0.1s; }
.btn-audio-toggle.is-playing .wave-bar:nth-child(4) { animation-delay: 0.35s; }

@keyframes waveBounce {
  0%   { height: 3px; }
  50%  { height: 14px; }
  100% { height: 6px; }
}

/* ── Floating BGM Dock ── */
.bgm-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.bgm-dock-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 8, 14, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.2);
}

.bgm-dock.is-playing .bgm-dock-inner {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 68, 68, 0.35);
}

/* Play/Pause Button */
.bgm-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
  outline: none;
}

.bgm-play-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.bgm-play-btn svg {
  width: 16px;
  height: 16px;
}

.icon-play {
  margin-left: 2px;
}

.is-hidden {
  display: none !important;
}

/* Track Meta & Visualizer */
.bgm-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bgm-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  width: 16px;
}

.bgm-bar {
  flex: 1;
  background: #ef4444;
  border-radius: 1px;
  height: 3px;
  transition: height 0.15s ease;
}

.bgm-dock.is-playing .bgm-bar {
  animation: bgmBarPulse 0.9s ease-in-out infinite alternate;
}
.bgm-dock.is-playing .bgm-bar:nth-child(1) { animation-delay: 0.1s; }
.bgm-dock.is-playing .bgm-bar:nth-child(2) { animation-delay: 0.3s; }
.bgm-dock.is-playing .bgm-bar:nth-child(3) { animation-delay: 0.0s; }
.bgm-dock.is-playing .bgm-bar:nth-child(4) { animation-delay: 0.4s; }
.bgm-dock.is-playing .bgm-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes bgmBarPulse {
  0%   { height: 3px; }
  50%  { height: 16px; }
  100% { height: 5px; }
}

.bgm-track-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bgm-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bgm-status {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Volume Wrap */
.bgm-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.bgm-mute-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
  outline: none;
}

.bgm-mute-btn:hover {
  color: #ffffff;
}

.bgm-mute-btn svg {
  width: 16px;
  height: 16px;
}

.bgm-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bgm-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.bgm-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.bgm-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: none;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  cursor: pointer;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
  .btn-audio-toggle .audio-btn-label {
    display: none;
  }
  
  .bgm-dock {
    bottom: 16px;
    right: 16px;
    left: auto;
  }

  .bgm-dock-inner {
    padding: 6px 12px 6px 8px;
    gap: 10px;
  }

  .bgm-volume-slider {
    width: 45px;
  }
}
