/* ============================================
   ACECRAFT SMP - Modern Dark Gaming Theme
   Glassmorphism + Neon Accent Design
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors */
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-tertiary: #0f0f2e;
  --bg-card: rgba(15, 15, 40, 0.6);
  --bg-glass: rgba(15, 15, 46, 0.4);
  --bg-glass-hover: rgba(20, 20, 60, 0.6);
  --bg-input: rgba(15, 15, 46, 0.5);
  
  --border-glass: rgba(99, 102, 241, 0.15);
  --border-glass-hover: rgba(99, 102, 241, 0.3);
  --border-accent: rgba(139, 92, 246, 0.3);
  
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --text-accent: #818cf8;
  
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-gradient-hover: linear-gradient(135deg, #7c8af3 0%, #8b5cb5 100%);
  --accent-glow: rgba(99, 102, 241, 0.4);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  
  /* Rank Colors */
  --rank-iron: #9ca3af;
  --rank-gold: #fbbf24;
  --rank-diamond: #22d3ee;
  --rank-vip: #facc15;
  --rank-vipplus: #22c55e;
  --rank-mvp: #3b82f6;
  --rank-mvpplus: #ef4444;
  --rank-youtube: #ef4444;
  --rank-twitch: #a855f7;
  --rank-admin: #ef4444;
  --rank-owner: #3b82f6;
  
  /* Spacing */
  --nav-height: 72px;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#main-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height));
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

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

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
/* ============================================
   CRITICAL MOBILE FIX
   Force hamburger on ALL screen sizes < 769px
   ============================================ */

/* Desktop nav: HIDE on mobile by DEFAULT */
.nav-links-desktop {
  display: none !important;
}

.nav-auth-desktop {
  display: none !important;
}

.nav-hamburger {
  display: flex !important;
}

/* Only show desktop nav on ACTUAL desktop */
@media (min-width: 769px) {
  .nav-links-desktop {
    display: flex !important;
  }
  .nav-auth-desktop {
    display: flex !important;
  }
  .nav-hamburger {
    display: none !important;
  }
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
/* ============================================
   NAVBAR - COMPACT & MODERN
   ============================================ */
:root {
  --nav-height: 56px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(99, 102, 241, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

.nav-brand .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Nav Links */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links-desktop a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nav-links-desktop a:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.nav-links-desktop a.active {
  color: var(--accent-tertiary);
  background: rgba(99, 102, 241, 0.1);
}

.nav-links-desktop a i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Right Side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Desktop Auth */
.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-secondary {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-nav-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
  background: var(--bg-glass);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-nav-primary:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  color: white;
}

/* Nav User */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-user:hover {
  background: rgba(99, 102, 241, 0.08);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--border-glass);
}

.nav-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  font-size: 0.55rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.nav-user:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: rgba(12, 12, 30, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.05);
  z-index: 1010;
}

.nav-user:hover .nav-dropdown,
.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.05);
}

.nav-dropdown-header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.ndd-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 4px 6px;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}

.nav-dropdown a i {
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

.ndd-danger {
  color: var(--danger) !important;
}

.ndd-danger:hover {
  background: var(--danger-bg) !important;
}

/* === Hamburger === */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  padding: 0;
}

.nav-hamburger:hover {
  background: rgba(99, 102, 241, 0.08);
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-box span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

.nav-hamburger.active .hamburger-box span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger.active .hamburger-box span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.active .hamburger-box span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   MOBILE MENU (Slide from RIGHT)
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1098;
  pointer-events: none;
  transition: background 0.3s ease;
}

.mobile-menu-overlay.active {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 8, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(99, 102, 241, 0.1);
  z-index: 1099;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  flex-shrink: 0;
}

.mm-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-user img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border-glass);
}

.mm-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-tertiary);
}

.mm-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.mm-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Mobile Online */
.mm-online {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 8px 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

/* Mobile Nav Links */
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mm-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}

.mm-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-tertiary);
  font-weight: 600;
}

.mm-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.mm-link.active i {
  opacity: 1;
}

.mm-link-admin {
  color: var(--warning) !important;
}

.mm-link-danger {
  color: var(--danger) !important;
}

.mm-link-danger:hover {
  background: var(--danger-bg) !important;
}

.mm-btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-gradient);
  color: white !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.mm-btn-register:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.mm-divider {
  height: 1px;
  background: rgba(99, 102, 241, 0.08);
  margin: 6px 16px;
}

/* Mobile Footer */
.mm-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.mm-server-ip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-server-ip:hover {
  border-color: var(--accent-primary);
}

.mm-server-ip i:first-child {
  opacity: 0.5;
}

/* Stagger animation for mobile menu items */
.mobile-menu.active .mm-link,
.mobile-menu.active .mm-btn-register,
.mobile-menu.active .mm-online {
  animation: mmSlideIn 0.35s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu.active .mm-online { animation-delay: 0.05s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(2) { animation-delay: 0.12s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(3) { animation-delay: 0.16s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(4) { animation-delay: 0.20s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(5) { animation-delay: 0.24s; }
.mobile-menu.active .mm-nav .mm-link:nth-child(6) { animation-delay: 0.28s; }
.mobile-menu.active .mm-btn-register { animation-delay: 0.30s; }

@keyframes mmSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-links-desktop {
    display: none;
  }

  .nav-auth-desktop {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-overlay,
  .nav-hamburger {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .nav-brand .brand-text {
    font-size: 0.85rem;
  }

  .mobile-menu {
    width: 260px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 25px var(--accent-glow);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-success:hover {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   CARDS (Glass)
   ============================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.glass-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 16, 0.6) 0%,
    rgba(5, 5, 16, 0.4) 50%,
    rgba(5, 5, 16, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Server IP Copy Box */
.server-ip-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
}

.server-ip-box:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.server-ip-box .ip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.server-ip-box .ip-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-tertiary);
}

.server-ip-box .ip-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ANNOUNCEMENT CARDS
   ============================================ */
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.announcement-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.announcement-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.announcement-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.announcement-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.announcement-card:hover .announcement-card-image img {
  transform: scale(1.05);
}

.announcement-card-pinned {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--warning);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
}

.announcement-card-body {
  padding: 20px;
}

.announcement-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-card-author img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.announcement-card-author span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  gap: 8px;
}

/* ============================================
   DONATION LEADERBOARD
   ============================================ */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.leaderboard-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.leaderboard-item.top-1 {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.leaderboard-item.top-2 {
  border-color: rgba(156, 163, 175, 0.3);
  background: rgba(156, 163, 175, 0.05);
}

.leaderboard-item.top-3 {
  border-color: rgba(217, 119, 6, 0.3);
  background: rgba(217, 119, 6, 0.05);
}

.leaderboard-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
}

.leaderboard-rank.gold { color: #fbbf24; }
.leaderboard-rank.silver { color: #9ca3af; }
.leaderboard-rank.bronze { color: #d97706; }

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.leaderboard-info {
  flex: 1;
}

.leaderboard-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.leaderboard-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--success);
}

/* ============================================
   RANK BADGE
   ============================================ */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-badge.iron { background: rgba(156,163,175,0.15); color: var(--rank-iron); border: 1px solid rgba(156,163,175,0.2); }
.rank-badge.gold { background: rgba(251,191,36,0.15); color: var(--rank-gold); border: 1px solid rgba(251,191,36,0.2); }
.rank-badge.diamond { background: rgba(34,211,238,0.15); color: var(--rank-diamond); border: 1px solid rgba(34,211,238,0.2); }
.rank-badge.vip { background: rgba(250,204,21,0.15); color: var(--rank-vip); border: 1px solid rgba(250,204,21,0.2); }
.rank-badge.vipplus { background: rgba(34,197,94,0.15); color: var(--rank-vipplus); border: 1px solid rgba(34,197,94,0.2); }
.rank-badge.mvp { background: rgba(59,130,246,0.15); color: var(--rank-mvp); border: 1px solid rgba(59,130,246,0.2); }
.rank-badge.mvpplus { background: rgba(239,68,68,0.15); color: var(--rank-mvpplus); border: 1px solid rgba(239,68,68,0.2); }
.rank-badge.admin { background: rgba(239,68,68,0.15); color: var(--rank-admin); border: 1px solid rgba(239,68,68,0.2); }
.rank-badge.owner { background: rgba(59,130,246,0.15); color: var(--rank-owner); border: 1px solid rgba(59,130,246,0.2); }
.rank-badge.youtube { background: rgba(239,68,68,0.15); color: var(--rank-youtube); border: 1px solid rgba(239,68,68,0.2); }
.rank-badge.twitch { background: rgba(168,85,247,0.15); color: var(--rank-twitch); border: 1px solid rgba(168,85,247,0.2); }
.rank-badge.member { background: rgba(156,163,175,0.1); color: var(--text-muted); border: 1px solid rgba(156,163,175,0.15); }

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 6px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .auth-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--accent-gradient);
  border-radius: 16px;
  font-size: 1.5rem;
}

.auth-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-page {
  padding: calc(var(--nav-height) + 40px) 0 60px;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.profile-avatar-section {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  border: 3px solid var(--border-glass);
  box-shadow: var(--shadow-md);
}

.profile-avatar-edit {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 10px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  transition: var(--transition);
}

.profile-avatar-edit:hover {
  transform: scale(1.1);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-rank-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
}

.profile-rank-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warning);
}

/* Avatar Grid Selector */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
  object-fit: cover;
  opacity: 0.6;
}

.avatar-option:hover,
.avatar-option.selected {
  border-color: var(--accent-primary);
  opacity: 1;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================
   STORE PAGE
   ============================================ */
.store-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.store-tab {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.store-tab.active,
.store-tab:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.store-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.store-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.store-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.store-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.store-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.store-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.store-card-price .currency {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   INVOICE PAGE
   ============================================ */
.invoice-page {
  padding: calc(var(--nav-height) + 40px) 0 60px;
}

.invoice-card {
  max-width: 600px;
  margin: 0 auto;
}

.invoice-step {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.invoice-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.invoice-step-num.completed {
  background: linear-gradient(135deg, #10b981, #059669);
}

.invoice-step-text {
  font-weight: 600;
  color: var(--text-primary);
}

.qris-container {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.qris-container img {
  max-width: 300px;
  width: 100%;
}

.payment-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--warning);
  font-weight: 600;
  margin: 16px 0;
}

.payment-timer i {
  font-size: 1.1rem;
}

/* ============================================
   ORDER HISTORY
   ============================================ */
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.order-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.order-table td {
  padding: 16px;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.85rem;
}

.order-table td:first-child {
  border-left: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.order-table td:last-child {
  border-right: 1px solid var(--border-glass);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.pending { background: var(--warning-bg); color: var(--warning); }
.status-badge.approved { background: var(--success-bg); color: var(--success); }
.status-badge.rejected { background: var(--danger-bg); color: var(--danger); }
.status-badge.expired { background: rgba(107,114,128,0.1); color: #6b7280; }

/* ============================================
   FLASH MESSAGES
   ============================================ */
#flash-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  backdrop-filter: blur(20px);
  animation: slideInRight 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.flash-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(5, 5, 16, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  
  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 24px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-auth {
    display: none;
  }
  
  .nav-links.active .nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
  }
  
  /* Mobile Hero */
  .hero {
    min-height: 80vh;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  /* Mobile sections */
  .section {
    padding: 50px 0;
  }
  
  .announcement-grid {
    grid-template-columns: 1fr;
  }
  
  .store-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Profile */
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-name {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .avatar-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  
  /* Mobile Auth */
  .auth-card {
    padding: 28px 20px;
  }
  
  /* Mobile Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* Mobile Tables */
  .order-table {
    display: block;
    overflow-x: auto;
  }
  
  /* Glass card */
  .glass-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .store-card {
    padding: 20px;
  }
  
  .server-ip-box {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============================================
   STORE ADDITIONAL CSS
   ============================================ */

/* Store card color borders */
.store-card[style*="border-top"] {
  position: relative;
}

.store-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  filter: blur(10px);
  opacity: 0;
  transition: var(--transition);
}

.store-card:hover::after {
  opacity: 0.5;
}

/* Store Popular badge */
.store-popular {
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 8px 8px;
}

/* Invoice page responsive */
@media (max-width: 768px) {
  .invoice-card {
    padding: 20px !important;
  }

  .qris-container img {
    max-width: 250px;
  }

  /* Step indicators */
  div[style*="display: flex"][style*="justify-content: center"] {
    transform: scale(0.85);
  }
}

/* Payment deadline flash effect */
.payment-timer.urgent {
  animation: urgentFlash 1s infinite;
}

@keyframes urgentFlash {
  0%, 100% { background: var(--danger-bg); }
  50% { background: rgba(239, 68, 68, 0.25); }
}

/* Order card mobile animation */
.mobile-orders .glass-card {
  transition: var(--transition);
}

.mobile-orders .glass-card:active {
  transform: scale(0.98);
}

/* Upload drop zone active */
#dropZone.drag-over {
  border-color: var(--accent-primary) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}