/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 22, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(10, 12, 22, 0.95);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo .accent { color: var(--purple); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--purple);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px var(--purple-glow);
}
.nav-cta:hover {
  background: #6a4ce8;
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--purple-glow);
}
.nav-cta::after { display: none !important; }
.nav-cta svg { width: 18px; height: 18px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 201;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE SIDEBAR ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar.open {
  transform: translateX(0);
  visibility: visible;
}
.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.sidebar > .sidebar-theme-btn {
  margin-top: auto;
}
.sidebar ul li a {
  display: block;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar ul li a:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.1);
}
.sidebar-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.85rem !important;
  background: var(--purple);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 20px var(--purple-glow);
  transition: all 0.3s;
}
.sidebar-cta:hover {
  background: #6a4ce8;
}
.sidebar-cta svg { width: 18px; height: 18px; }

@media (min-width: 901px) {
  .sidebar { display: none !important; }
  .sidebar-overlay { display: none !important; }
}
@media (max-width: 900px) {
  .sidebar { display: flex; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--purple), #6a4ce8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 30px var(--purple-glow);
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124, 92, 252, 0.4);
}
.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.05);
}

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: -2rem auto 0;
  padding: 2rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-value .accent { color: var(--purple); }
.stat-value .green { color: var(--green); }
.stat-value .yellow { color: #f0b429; }
.stat-value .red { color: #e53e3e; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}
