/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-hover: #222240;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: #27273a;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ===== ANIMATED BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 100%),
    radial-gradient(800px circle at 80% 60%, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  animation: bgFloat 30s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(1); }
}

body > * { position: relative; z-index: 1; }

/* Floating orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbDrift linear infinite;
}

.bg-orb:nth-child(1) {
  width: 400px; height: 400px;
  background: rgba(124, 58, 237, 0.07);
  top: 10%; left: -5%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.bg-orb:nth-child(2) {
  width: 300px; height: 300px;
  background: rgba(59, 130, 246, 0.06);
  top: 60%; right: -5%;
  animation-duration: 30s;
  animation-delay: 5s;
}

.bg-orb:nth-child(3) {
  width: 250px; height: 250px;
  background: rgba(239, 68, 68, 0.04);
  bottom: 10%; left: 30%;
  animation-duration: 35s;
  animation-delay: 10s;
}

.bg-orb:nth-child(4) {
  width: 350px; height: 350px;
  background: rgba(124, 58, 237, 0.05);
  top: 40%; left: 60%;
  animation-duration: 28s;
  animation-delay: 3s;
}

@keyframes orbDrift {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(120px, -80px) scale(1.2); }
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(18, 18, 26, 0.9);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand:hover { color: var(--accent); }

.navbar-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: contain;
}

.navbar-brand .brand-logo[src=""],
.navbar-brand .brand-logo:not([src]),
.navbar-brand .brand-logo.logo-error {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item .item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav user */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.nav-user-dropdown {
  position: relative;
}

.nav-user-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

.nav-user-dropdown:hover .dropdown-menu {
  display: block;
  right: 0;
  left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); }

.btn-discord {
  background: #5865F2;
  color: white;
}
.btn-discord:hover { background: #4752c4; color: #fff; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.04) 0%, transparent 40%);
  animation: heroShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

@keyframes heroShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-0.5deg); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1), 0 0 60px rgba(124, 58, 237, 0.05);
}

/* Card shimmer on hover */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.04), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card h3 { font-size: 1.1rem; font-weight: 600; }
.card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Server Cards */
.server-card {
  position: relative;
  overflow: hidden;
}

.server-card .server-banner {
  height: 160px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e1b4b 100%);
  margin: -1.5rem -1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.server-card .server-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 0.5rem;
}

.server-card .server-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* In Development status */
.server-status.status-dev {
  color: var(--warning);
}

.server-status .dot-dev {
  background: var(--warning);
  animation: pulse 2s infinite;
}

/* ===== PROFILE PAGE ===== */
.profile-container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::file-selector-button {
  padding: 0.4rem 1rem;
  margin-right: 0.75rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* ===== SUPPORT / TICKETS ===== */
.ticket-list { display: flex; flex-direction: column; gap: 0.75rem; }

.ticket-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.ticket-item:hover {
  background: var(--bg-hover);
  color: inherit;
}

.ticket-type {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

.type-ban_appeal { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.type-ban_request { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.type-general { background: rgba(59, 130, 246, 0.15); color: var(--info); }

.ticket-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

.status-open { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-in_progress { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.status-resolved { background: rgba(124, 58, 237, 0.15); color: var(--accent); }
.status-closed { background: rgba(113, 113, 122, 0.15); color: var(--text-muted); }

.ticket-info { flex: 1; }
.ticket-info h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.ticket-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1rem; align-items: center; }

/* Messages channel */
.messages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.ticket-header-info {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ticket-header-info h2 { margin-bottom: 0.5rem; }

.ticket-header-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.messages-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.message:hover { background: var(--bg-card); }

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-content { flex: 1; }

.message-author {
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.message-author.admin { color: var(--accent); }

.admin-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent);
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-form {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.reply-form textarea {
  margin-bottom: 0.75rem;
}

.status-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== ALERTS ===== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ===== MOBILE NAV ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-dropdown:hover .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-hover);
    margin-top: 0.25rem;
  }

  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .navbar-inner { position: relative; }
}

/* ===== UTILITIES ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }

/* ==============================================
   NATIONS OF WAR - Server Page
   ============================================== */
.now-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('/assets/images/nations-of-war-banner.png') center/cover no-repeat;
}

.now-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(127, 29, 29, 0.4) 50%, rgba(10, 10, 15, 0.9) 100%);
  z-index: 1;
}

.now-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  animation: nowGlow 8s ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

@keyframes nowGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.now-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 2rem;
}

.now-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #f87171;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(220, 38, 38, 0.15); }
}

.now-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #f87171 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 6s linear infinite;
  background-size: 200% auto;
}

@keyframes titleShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.now-subtitle {
  font-size: 1.15rem;
  color: #fff;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.now-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.now-stat { text-align: center; }

.now-stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.now-stat-online { color: var(--success); font-size: 1rem; }

.now-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.now-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* NOW Feature Cards */
.server-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sp-card {
  position: relative;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-card:hover {
  transform: translateY(-4px);
}

.sp-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.sp-card:hover .sp-card-glow { opacity: 1; }

.sp-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.3));
}

.sp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.sp-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sp-card:hover h3 {
  background: linear-gradient(90deg, #fff, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NOW CTA */
.now-cta {
  padding: 4rem 2rem;
}

.now-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.now-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  animation: ctaLine 3s linear infinite;
}

@keyframes ctaLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.now-cta-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.now-cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==============================================
   WINTER'S END - Server Page
   ============================================== */
.we-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('/assets/images/winters-end-banner.png') center/cover no-repeat;
}

.we-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, rgba(30, 58, 95, 0.3) 50%, rgba(10, 10, 15, 0.9) 100%);
  z-index: 1;
}

.we-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(147, 197, 253, 0.08) 0%, transparent 40%);
  animation: weGlow 10s ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

@keyframes weGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* Snowfall */
.we-snow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(2px 2px at 30% 60%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 60% 75%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-size: 200px 200px;
  animation: snowfall 8s linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(-200px); }
  100% { transform: translateY(0); }
}

.we-hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 3rem 2rem;
}

.we-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  animation: weBadgePulse 4s ease-in-out infinite;
}

@keyframes weBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.12); }
}

.we-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #93c5fd 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: weShine 8s linear infinite;
  background-size: 200% auto;
}

@keyframes weShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.we-subtitle {
  font-size: 1.15rem;
  color: rgba(191, 219, 254, 0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.we-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.we-stat { text-align: center; }

.we-stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.we-stat-dev { color: var(--warning); font-size: 1rem; }

.we-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.we-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(147, 197, 253, 0.2);
}

/* WE Feature Cards */
.we-feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.we-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.we-feature-row-triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.we-feature-card {
  position: relative;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.we-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.we-card-frost {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.4s;
}

.we-feature-card:hover .we-card-frost {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.we-feature-number {
  display: none;
}

.we-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  position: relative;
}

.we-feature-card:hover h3 {
  background: linear-gradient(90deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.we-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

/* WE Dev Banner */
.we-dev-banner {
  position: relative;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}

.we-dev-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  animation: devPulseBg 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes devPulseBg {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.we-dev-content {
  position: relative;
  z-index: 1;
}

.we-dev-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--warning);
}

.we-dev-banner p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ===== SERVER PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
  .now-title, .we-title { font-size: 2.5rem; }
  .now-hero, .we-hero { min-height: 350px; }
  .server-page-grid { grid-template-columns: 1fr; }
  .we-feature-row { grid-template-columns: 1fr; }
  .we-feature-row-triple { grid-template-columns: 1fr; }
  .now-hero-stats, .we-hero-stats { flex-direction: column; gap: 1rem; }
  .now-stat-divider, .we-stat-divider { width: 40px; height: 1px; }
}

/* ===== LIVE TERRITORY MAP ===== */
.live-map-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.live-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.live-map-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.live-map-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-map-wrap {
  position: relative;
  background: #080810;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-map-wrap canvas {
  display: block;
  width: 100%;
}

.live-map-legend {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(39, 39, 58, 0.6);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  color: #e4e4e7;
  backdrop-filter: blur(8px);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .live-map-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* ==============================================
   HOME PAGE ENHANCEMENTS
   ============================================== */

/* ===== HERO PARTICLES ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(124, 58, 237, 0.6);
  border-bottom: 2px solid rgba(124, 58, 237, 0.6);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat-plus, .stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* ===== CLICKABLE SERVER CARDS ===== */
.server-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-card-link:hover {
  color: inherit;
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.3);
}

/* ===== SERVER SHOWCASE GALLERY ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.showcase-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover {
  color: inherit;
}

.showcase-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}

.showcase-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s;
}

.showcase-item:hover .showcase-overlay {
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 100%);
}

.showcase-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.showcase-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  transition: all 0.3s;
}

.showcase-item:hover .showcase-overlay h3 {
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-overlay p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===== CTA BOX ===== */
.cta-box {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), rgba(59, 130, 246, 0.8), var(--accent), transparent);
  background-size: 200% 100%;
  animation: ctaGlowSlide 3s linear infinite;
}

@keyframes ctaGlowSlide {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  animation: ctaPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaPulse {
  0%, 100% { transform: translateX(-50%) scale(0.8); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ===== COOKIE / PRIVACY BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.1);
  z-index: 10000;
  pointer-events: auto;
  animation: bannerSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cookie-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner .btn {
  flex-shrink: 0;
  align-self: center;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* ===== HOME RESPONSIVE ===== */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-large {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
  .stats-bar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .stat-number { font-size: 2rem; }
  .cta-content h2 { font-size: 1.5rem; }
  .scroll-indicator { bottom: 1rem; }
}
