/* ==========================================
   REDLINE RP - FiveM Server Website
   Complete CSS Stylesheet - FINAL VERSION
   ========================================== */

/* CSS Variables */
:root {
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-red-light: #ef4444;
  --color-red-glow: rgba(220, 38, 38, 0.5);

  --color-bg: #0a0a0a;
  --color-bg-card: #111111;
  --color-bg-elevated: #1a1a1a;

  --color-text: #ffffff;
  --color-text-muted: #a3a3a3;
  --color-text-dim: #737373;

  --color-border: #262626;
  --color-border-light: #404040;

  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-glow: 0 0 30px var(--color-red-glow);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);

  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-red {
  color: var(--color-red);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-red);
  color: white;
}

.btn-primary:hover {
  background: var(--color-red-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn-discord {
  background: #5865f2;
  color: white;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

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

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

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: var(--color-red);
  color: white;
}

.btn-danger:hover {
  background: var(--color-red-dark);
}

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

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-red {
  color: var(--color-red);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-red);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
  transition: var(--transition);
}

.user-btn:hover {
  border-color: var(--color-red);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  display: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown.active {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

.user-dropdown a.admin-link {
  color: var(--color-red);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.95)),
    url("/placeholder.svg?height=1080&width=1920") center / cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, var(--color-bg) 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--color-red);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-red);
  margin-bottom: 24px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--color-red-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--color-red-glow);
  }
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 60px var(--color-red-glow);
  animation: slideUp 1s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-red {
  color: var(--color-red);
}

.title-sub {
  display: block;
  font-size: 0.4em;
  letter-spacing: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.hero-desc {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.8;
  animation: slideUp 1s ease 0.2s backwards;
}

/* Server Status */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 32px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  animation: slideUp 1s ease 0.4s backwards;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  min-width: 80px;
  transition: var(--transition);
}

.countdown-item:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-red);
}

.countdown-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 1s ease 0.6s backwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--color-text-muted);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ==========================================
   STATS SECTION
   ========================================== */

.stats {
  padding: 80px 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.stat-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-red);
  margin-bottom: 16px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

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

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
  padding: 100px 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
}

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

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

.feature-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-red);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */

.gallery {
  padding: 100px 0;
  background: var(--color-bg-card);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay span {
  font-weight: 600;
  font-size: 14px;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--color-red);
}

/* ==========================================
   HOW TO JOIN SECTION
   ========================================== */

.how-to-join {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-red);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */

.community {
  padding: 100px 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
    url("/placeholder.svg?height=600&width=1920") center / cover;
}

.community-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.discord-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  display: inline-block;
  margin: 24px 0;
}

.discord-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-icon {
  color: #5865f2;
}

.discord-info h3 {
  font-size: 18px;
  font-weight: 600;
}

.discord-info p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.online-count {
  color: #22c55e;
  font-weight: 600;
}

.community-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  padding: 60px 0 30px;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

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

.footer-brand p {
  color: var(--color-text-muted);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.footer-links ul li a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: var(--color-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-text-dim);
  font-size: 14px;
}

/* ==========================================
   BACK TO TOP & COOKIE BANNER
   ========================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-red);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-glow);
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--color-red-dark);
}

.back-to-top.visible {
  display: flex;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 998;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.cookie-banner a {
  color: var(--color-red);
}

/* ==========================================
   PAGES - RULES, TEAM, FAQ, WHITELIST
   ========================================== */

.page-header {
  padding: 160px 20px 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), var(--color-bg)),
    url("/placeholder.svg?height=400&width=1920") center / cover;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-desc {
  font-size: 18px;
  color: var(--color-text-muted);
}

.page-content {
  padding: 80px 0;
}

/* Rules */
.rules-grid {
  display: grid;
  gap: 32px;
}

.rule-category {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rule-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.rule-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-red);
}

.rule-category-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
}

.rule-list {
  padding: 24px;
}

.rule-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-red);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.rule-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.team-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-role {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-red);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-discord {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-elevated);
}

.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
}

.faq-icon {
  font-size: 24px;
  color: var(--color-red);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Whitelist Form */
.whitelist-container {
  max-width: 700px;
  margin: 0 auto;
}

.login-required {
  text-align: center;
  padding: 60px 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.login-required h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 16px;
}

.login-required p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.whitelist-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.form-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.form-user-info h3 {
  font-size: 16px;
  font-weight: 600;
}

.form-user-info p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label span {
  color: var(--color-red);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-red);
}

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

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-dim);
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--color-red);
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-checkbox a {
  color: var(--color-red);
}

.form-submit {
  margin-top: 32px;
}

.form-submit .btn {
  width: 100%;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.success-message.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #22c55e;
}

.success-message h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 16px;
}

.success-message p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 73px;
}

.admin-sidebar {
  width: 260px;
  background: var(--color-bg-card);
  border-right: 1px solid var(--color-border);
  padding: 24px 0;
  position: fixed;
  top: 73px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.admin-nav {
  padding: 0 16px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  margin-bottom: 4px;
  transition: var(--transition);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

.admin-nav-item.active {
  border-left: 3px solid var(--color-red);
}

.admin-nav-label {
  display: block;
  padding: 20px 16px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}

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

.admin-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-stat-card h4 {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.admin-stat-card .value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
}

.admin-stat-card .value.pending {
  color: #f59e0b;
}

.admin-stat-card .value.approved {
  color: #22c55e;
}

.admin-stat-card .value.rejected {
  color: var(--color-red);
}

/* Applications Table */
.admin-table-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
}

.table-filters {
  display: flex;
  gap: 12px;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-red);
  color: var(--color-red);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background: var(--color-bg-elevated);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--color-bg-elevated);
}

.applicant-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.applicant-name {
  font-weight: 600;
}

.applicant-discord {
  font-size: 13px;
  color: var(--color-text-muted);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-badge.rejected {
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-red);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.action-btn.view {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.action-btn.approve {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.action-btn.reject {
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-red);
}

.action-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Application Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

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

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-red);
}

.modal-body {
  padding: 24px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.modal-section p {
  color: var(--color-text);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--color-border);
}

.modal-footer .btn {
  flex: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* ==========================================
   LOADING STATES
   ========================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-discord {
    display: none;
  }

  .hero-title {
    font-size: 48px;
  }

  .countdown {
    gap: 12px;
  }

  .countdown-item {
    padding: 16px;
    min-width: 60px;
  }

  .countdown-value {
    font-size: 24px;
  }

  .stats-grid,
  .features-grid,
  .gallery-grid,
  .steps-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 16px;
  }

  .page-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .community-buttons {
    flex-direction: column;
  }

  .community-buttons .btn {
    width: 100%;
  }

  .countdown-item {
    padding: 12px;
    min-width: 50px;
  }

  .countdown-value {
    font-size: 20px;
  }

  .countdown-label {
    font-size: 10px;
  }
}
