/* Apex Network British FiveM Theme */
:root {
  --bg-primary: #030407;
  --bg-secondary: #090c12;
  --bg-card: #0d121c;
  --accent-blue: #0088ff;
  --accent-blue-hover: #0066ff;
  --accent-blue-glow: rgba(0, 136, 255, 0.65);
  --text-main: #ffffff;
  --text-muted: #8e9bb0;
  --border-color: rgba(0, 136, 255, 0.25);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #030407;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 136, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.04) 0%, transparent 50%);
}

/* TOP BAR NAVIGATION - ULTRA-PREMIUM GLASS & NEON REDESIGN */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(0, 136, 255, 0.28);
  padding: 0 45px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(0, 136, 255, 0.2);
  transition: all 0.3s ease;
}

/* TOP NEON GLOW LINE */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0088ff 25%, #60a5fa 50%, #0088ff 75%, transparent 100%);
  box-shadow: 0 0 16px #0088ff, 0 0 8px #60a5fa;
  pointer-events: none;
}

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

.brand-logo img.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 136, 255, 0.85));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.brand-logo:hover img.logo-img {
  transform: scale(1.1) rotate(4deg);
  filter: drop-shadow(0 0 22px rgba(0, 136, 255, 1));
}

.brand-logo .brand-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #ffffff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo .brand-text span {
  background: linear-gradient(135deg, #0088ff 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 136, 255, 0.7));
}

.brand-badge {
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.4);
  color: #0088ff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(0, 136, 255, 0.25);
}

.brand-badge .live-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.8s infinite;
}

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

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #0088ff;                        /* blue border always visible */
  box-shadow: 0 0 6px rgba(0, 136, 255, 0.2);       /* very subtle glow at rest */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a i {
  color: #0088ff;
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(0, 136, 255, 0.10);              /* faint blue tint on hover — no solid fill */
  border-color: #0088ff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.55);     /* faint blue glow on hover */
}

.nav-links a:hover i {
  transform: scale(1.18);
  color: #60a5fa;
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0088ff 0%, #0055cc 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-links a.active i {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 3-LINES MOBILE HAMBURGER MENU BUTTON (HIDDEN ON DESKTOP) */
.mobile-menu-toggle {
  display: none;
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.4);
  color: #0088ff;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 14px rgba(0, 136, 255, 0.2);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(0, 136, 255, 0.25);
  color: #ffffff;
  border-color: #0088ff;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
}

.mobile-nav-footer {
  display: none;
}


.topbar-connect-btn {
  background: linear-gradient(135deg, #0088ff 0%, #0066ff 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 9px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar-connect-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.9);
  border-color: #ffffff;
}

/* ELEGANT BUTTON — blue border + small glow at rest, faint blue glow on hover (no solid fill) */
.boton-elegante {
  padding: 14px 32px;
  border: 2px solid #0088ff;                          /* blue border always visible */
  background-color: rgba(18, 24, 36, 0.85);           /* dark at rest */
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.35s ease;
  outline: none;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.25);       /* subtle glow at rest */
}

.boton-elegante::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 136, 255, 0.18) 0%,
    rgba(0, 136, 255, 0) 70%
  );
  transform: scale(0);
  transition: transform 0.45s ease;
}

.boton-elegante:hover::after {
  transform: scale(4);
}

.boton-elegante:hover {
  border-color: #0088ff;
  background: rgba(0, 136, 255, 0.12);               /* faint blue tint — NOT solid blue */
  color: #ffffff;
  box-shadow: 0 0 22px rgba(0, 136, 255, 0.6);        /* faint blue glow on hover */
  transform: translateY(-2px);
}


/* HERO SECTION */
.hero {
  padding: 70px 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #0088ff 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 136, 255, 0.4));
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo-box {
  position: relative;
  width: 360px;
  max-width: 90vw;
  height: 360px;
  border-radius: 28px;
  padding: 24px;
  background: rgba(13, 18, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 136, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 136, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hero-logo-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #0088ff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 136, 255, 0.45);
}

.hero-logo-box img.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(0, 136, 255, 0.9));
}

/* Mobile logo hidden on desktop — only shows on mobile screens */
.mobile-logo {
  display: none;
}

/* Animated GIF hero box */
.animated-logo-box {
  position: relative;
  width: 380px;
  max-width: 90vw;
  height: 380px;
  border-radius: 24px;
  padding: 12px;
  background: rgba(13, 18, 28, 0.75);
  border: 1px solid rgba(0, 136, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 136, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.animated-logo-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #0088ff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 136, 255, 0.4);
}

.animated-logo-box img.animated-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

/* LIVE PLAYER COUNT & SERVER STATUS BADGE */
.player-count-badge {
  background: rgba(13, 18, 28, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 136, 255, 0.35);
  padding: 12px 28px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 136, 255, 0.25);
  transition: all 0.3s ease;
}

.player-count-badge:hover {
  transform: translateY(-2px);
  border-color: #0088ff;
  box-shadow: 0 12px 35px rgba(0, 136, 255, 0.4);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 14px #10b981, 0 0 4px #10b981;
  animation: pulseGreen 1.8s infinite;
}

.status-dot.restarting {
  background-color: #f59e0b;
  box-shadow: 0 0 14px #f59e0b, 0 0 4px #f59e0b;
  animation: pulseYellow 1.2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseYellow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.player-count-badge .count-text {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e2e8f0;
}

.player-count-badge .count-number {
  color: var(--accent-blue);
  font-weight: 900;
  font-size: 1.15rem;
}

/* STATS SECTION */
.stats-container {
  max-width: 1280px;
  margin: 30px auto 60px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 30px rgba(0, 136, 255, 0.18);
}

.stat-card i {
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FEATURES SECTION */
.features-section {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

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

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title h2 span {
  color: var(--accent-blue);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 35px rgba(0, 136, 255, 0.2);
}

.feature-card .icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* DEPARTMENT SELECTION TABS */
.app-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 36px;
  flex-wrap: wrap;
  max-width: 960px;
}

.app-tab-btn {
  background: rgba(13, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 136, 255, 0.28);
  color: #94a3b8;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.app-tab-btn i {
  font-size: 1.1rem;
  color: #0088ff;
  transition: transform 0.3s ease;
}

.app-tab-btn:hover {
  color: #ffffff;
  background: rgba(0, 136, 255, 0.16);
  border-color: #0088ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 136, 255, 0.35);
}

.app-tab-btn:hover i {
  transform: scale(1.18);
}

.app-tab-btn.active {
  background: linear-gradient(135deg, #0088ff 0%, #0055cc 100%);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(0, 136, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.app-tab-btn.active i {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

/* HIGH-END GLASSMORPHIC APPLICATION FORM CONTAINER */
.container {
  width: 680px;
  max-width: 94%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  background: rgba(9, 12, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 136, 255, 0.32);
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 35px rgba(0, 136, 255, 0.2);
  margin: 30px auto 60px;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0088ff 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 0 0 16px #0088ff;
  pointer-events: none;
}

.container .slider {
  width: 100%;
  position: relative;
  transition: transform ease-out 0.3s;
  display: flex;
}

#register_toggle {
  display: none;
}

.container #register_toggle:checked + .slider {
  transform: translateX(-50%);
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 2.8em 3.2em;
  width: 100%;
}

.title {
  text-align: center;
  font-weight: 900;
  font-size: 1.7em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

form .form_control {
  width: 100%;
  position: relative;
}

form .form_control .label {
  position: absolute;
  top: 50%;
  left: 16px;
  transition: transform ease 0.2s, color 0.2s ease;
  transform: translate(0%, -50%);
  font-size: 0.85em;
  user-select: none;
  pointer-events: none;
  color: #94a3b8;
}

form .form_control .input,
form .form_control textarea.input,
form .form_control select.input {
  width: 100%;
  background-color: rgba(15, 22, 34, 0.92);
  border: 1px solid rgba(0, 136, 255, 0.25);
  outline: none;
  color: #fff;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

form .form_control select.input option {
  background: #090c12;
  color: #fff;
}

form .form_control .input:focus,
form .form_control textarea.input:focus {
  border-color: #0088ff;
  background-color: rgba(18, 26, 42, 0.96);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.35);
}

form .form_control .input:focus + .label,
form .form_control .input:valid + .label {
  transform: translate(-150%, -50%);
}

form button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #0088ff 0%, #0055cc 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  outline: none;
  color: #fff;
  padding: 1.1rem;
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

form button[type="submit"]:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(0, 136, 255, 0.85);
  border-color: #ffffff;
}

form button[type="submit"]:active {
  transform: scale(0.98);
}

.bottom_text {
  font-size: 0.78em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.bottom_text .swtich {
  font-weight: 700;
  color: var(--accent-blue);
  cursor: pointer;
}


/* COMING SOON PAGE STYLING */
.coming-soon-box {
  max-width: 680px;
  margin: 90px auto;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 136, 255, 0.15);
}

.coming-soon-box i {
  font-size: 4rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 15px rgba(0, 136, 255, 0.6));
}

.coming-soon-box h1 {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.coming-soon-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* APPLICATIONS SELECTION TABS */
.app-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px auto 20px;
  max-width: 900px;
}

.app-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.app-tab-btn:hover,
.app-tab-btn.active {
  color: #fff;
  border-color: var(--accent-blue);
  background: rgba(0, 136, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.25);
}

/* FOOTER */
footer {
  margin-top: auto;
  background: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 36px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p span {
  color: var(--accent-blue);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* COMPREHENSIVE MOBILE PHONE OPTIMIZATION (< 900px) */
@media (max-width: 900px) {
  .topbar {
    padding: 0 20px;
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .desktop-only-right {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .nav-container {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(6, 9, 15, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(0, 136, 255, 0.35);
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 136, 255, 0.25);
    z-index: 999;
  }

  .nav-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
    border-radius: 12px;
    justify-content: flex-start;
  }

  .mobile-nav-footer {
    display: block !important;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 136, 255, 0.2);
  }

  .brand-logo img.logo-img {
    height: 40px;
    width: 40px;
  }

  .brand-logo .brand-text {
    font-size: 1.25rem;
    letter-spacing: 1.2px;
  }

  .brand-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {


  /* Hero Section on Mobile */
  .hero {
    padding: 40px 18px 60px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Feature Grid on Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  /* Application Form & Tabs on Mobile */
  .app-tabs {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    gap: 10px;
  }

  .app-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .container {
    width: 96%;
    margin: 20px auto 40px;
    border-radius: 16px;
  }

  .form {
    padding: 2em 1.4em;
    gap: 16px;
  }

  .title {
    font-size: 1.35em;
  }

  /* Coming Soon Pages on Mobile */
  .cs-page-container {
    padding: 100px 16px 50px !important;
  }

  .cs-hero-title {
    font-size: 3.2rem !important;
  }

  .cs-hero-subtext {
    font-size: 1.1rem !important;
  }

  /* Mobile Performance & Hardware GPU Acceleration */
  .topbar, 
  .nav-container, 
  .container, 
  .player-count-badge,
  .perk-card,
  .cs-page-container {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transform: translateZ(0);
    will-change: transform, opacity;
  }

  /* Hide FiveM connect buttons on mobile — FiveM can't be played on a phone */
  .desktop-only-btn,
  .desktop-only-right {
    display: none !important;
  }

  /* Animated logo — show static logo on mobile, hide the animated GIF */
  .desktop-logo {
    display: none !important;
  }

  .mobile-logo {
    display: flex !important;
    width: 240px;
    height: 240px;
  }

  /* Animated logo — make sure hero-media section shows on mobile */
  .hero-media {
    display: flex !important;
    order: -1; /* show logo above text on mobile */
  }

  /* Button tap state for mobile (replaces hover) */
  .boton-elegante:active {
    border-color: #0088ff !important;
    background: #0066ff !important;
    box-shadow: 0 0 28px rgba(0, 102, 255, 0.85), 0 0 12px rgba(0, 136, 255, 0.5) !important;
    transform: scale(0.97) !important;
  }

  .topbar-connect-btn:active {
    transform: scale(0.96) !important;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.9) !important;
    background: #0066ff !important;
  }

  .app-tab-btn:active {
    background: rgba(0, 136, 255, 0.3) !important;
    border-color: #0088ff !important;
  }
}

/* Discord nav link — purple accent on hover */
.nav-links a[href*="discord"] {
  color: #c0c7d6;
}
.nav-links a[href*="discord"]:hover,
.nav-links a[href*="discord"].active {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
  border-bottom-color: #5865f2;
}
.nav-links a[href*="discord"] .fa-discord {
  color: #5865f2;
}
