:root {
  --void: #07090f;
  --void-soft: #0c1018;
  --steel: #131826;
  --steel-light: #1a2236;
  --steel-border: #232c42;
  --cobalt: #3d6bff;
  --cobalt-bright: #5b82ff;
  --violet: #9b5de5;
  --violet-bright: #b07ef0;
  --ice: #e8ecff;
  --ice-dim: #9aa3c2;
  --ice-faint: #5c6584;
  --rank-gold: #ffb84d;
  --rank-gold-bright: #ffd180;
  --danger: #ff4d6d;

  --font-display: "Chakra Petch", Eurostile, "Arial Narrow", Oswald, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono-ui: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;

  --bg-primary: var(--void);
  --bg-secondary: var(--void-soft);
  --glass-bg: rgba(19, 24, 38, 0.55);
  --glass-border: rgba(155, 93, 229, 0.12);
  --glass-strong-bg: rgba(19, 24, 38, 0.75);
  --text-primary: var(--ice);
  --text-secondary: var(--ice-dim);
  --brand-accent: var(--cobalt);
  --brand-light: var(--cobalt-bright);
  --brand-glow: rgba(61, 107, 255, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(61, 107, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(155, 93, 229, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(12, 16, 24, 0.5) 0%, transparent 100%);
}

/* --- Loading Screen --- */
#loader {
  position: fixed; inset: 0; background: var(--void); z-index: 100000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px; transition: opacity 0.6s ease;
}
#loader.fade-out { opacity: 0; pointer-events: none; }
#loader img { width: 48px; height: 48px; border-radius: 10px; }
.spinner {
  width: 150px; height: 2px; background: var(--steel-border); border-radius: 4px; overflow: hidden;
}
.spinner::after {
  content: ''; display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--violet));
  animation: loader-bar 1s ease-in-out infinite;
}
@keyframes loader-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
#loader .loader-text {
  font-family: var(--font-mono-ui); font-size: 0.65rem; color: var(--ice-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* --- Glass Utilities --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
}
.glass-strong {
  background: var(--glass-strong-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(155, 93, 229, 0.18);
  border-radius: 16px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--cobalt-bright), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--steel-border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--cobalt); }
::selection { background: rgba(61, 107, 255, 0.3); }

/* --- Particle Canvas --- */
.particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}

/* --- Navigation --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7, 9, 15, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(155, 93, 229, 0.12);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-brand img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: contain;
}
.nav-brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ice);
  letter-spacing: 0.5px;
}
.nav-brand-text span { color: var(--cobalt-bright); }

.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--ice-dim); text-decoration: none; font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
  transition: 0.25s ease; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ice); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--violet));
  transition: 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex; align-items: center; gap: 10px;
}
.nav-ip-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ice-dim); font-family: var(--font-mono-ui); font-size: 0.75rem;
  cursor: pointer; transition: 0.2s ease; text-decoration: none;
}
.nav-ip-btn:hover {
  color: var(--ice); border-color: rgba(61, 107, 255, 0.4);
}
.nav-store-btn {
  padding: 8px 18px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: white; text-decoration: none; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px;
  transition: 0.2s ease;
}
.nav-store-btn:hover {
  box-shadow: 0 0 24px rgba(155, 93, 229, 0.5);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ice); transition: 0.3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
  background: rgba(7, 9, 15, 0.98); backdrop-filter: blur(24px);
  z-index: 999; display: flex; flex-direction: column;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 1px solid rgba(155, 93, 229, 0.12);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--steel-border); height: 64px;
}
.mobile-menu-header span { font-family: var(--font-display); font-weight: 700; color: var(--ice); }
.mobile-menu-close {
  background: none; border: none; color: var(--ice-dim); cursor: pointer; padding: 4px;
  font-size: 1.3rem;
}
.mobile-menu-close:hover { color: var(--ice); }
.mobile-nav-links { list-style: none; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links li { margin: 0; }
.mobile-nav-links a {
  display: block; padding: 12px 16px; border-radius: 10px;
  color: var(--ice-dim); text-decoration: none; font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; transition: 0.2s ease;
}
.mobile-nav-links a:hover { color: var(--ice); background: var(--steel-light); }
.mobile-menu-footer {
  margin-top: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu-footer .nav-ip-btn {
  justify-content: center; padding: 12px; font-size: 0.8rem;
}
.mobile-menu-footer .nav-store-btn {
  text-align: center; padding: 12px; font-size: 0.85rem;
}

/* --- Buttons --- */
.btn {
  padding: 14px 32px; border: none; border-radius: 12px; font-family: var(--font-display);
  font-weight: 600; cursor: pointer; font-size: 0.9rem; transition: all 0.25s ease;
  text-decoration: none; display: inline-block; text-align: center; letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(61, 107, 255, 0.4), 0 8px 32px rgba(155, 93, 229, 0.55);
}
.btn-secondary {
  background: var(--glass-bg);
  color: var(--ice);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: var(--glass-strong-bg);
  border-color: rgba(61, 107, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; justify-content: center; align-items: center;
  position: relative; text-align: center; padding: 100px 20px 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 107, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(155, 93, 229, 0.18), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(61, 107, 255, 0.04), transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; width: 100%; animation: fadeInUp 0.8s ease; }
.hero-badges {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px;
}
.hero-badge {
  padding: 6px 14px; border-radius: 50px;
  background: rgba(19, 24, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 93, 229, 0.2);
  font-family: var(--font-mono-ui); font-size: 0.7rem; color: var(--ice-dim);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-badge.status {
  display: flex; align-items: center; gap: 6px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.status-dot.online { background: var(--cobalt-bright); box-shadow: 0 0 8px var(--cobalt-bright); }
.status-dot.offline { background: var(--ice-faint); }
.status-label.online { color: var(--cobalt-bright); }
.status-label.offline { color: var(--ice-faint); }

.hero-logo-wrapper {
  margin-bottom: 28px; display: flex; justify-content: center; position: relative;
  padding: 24px; border-radius: 24px;
  background: rgba(19, 24, 38, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(155, 93, 229, 0.25);
  box-shadow: 0 0 40px rgba(61, 107, 255, 0.12), 0 20px 50px rgba(0,0,0,0.5);
  animation: logo-hover 5s ease-in-out infinite;
  transition: border-color 0.5s ease;
}
.hero-logo-wrapper:hover {
  border-color: rgba(61, 107, 255, 0.45);
}
.hero-logo-wrapper::before {
  content: ''; position: absolute; inset: -1px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.4), rgba(155, 93, 229, 0.3));
  z-index: -1;
  opacity: 0.4;
  animation: aura-pulse 4s ease-in-out infinite alternate;
}
.hero-logo-wrapper::after {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  background: rgba(19, 24, 38, 0.45);
  z-index: -1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero-logo-wrapper img {
  width: 96px; height: 96px; border-radius: 16px;
  filter: drop-shadow(0 0 20px rgba(155, 93, 229, 0.4));
  animation: logo-breathe 5s ease-in-out infinite;
  transition: filter 0.5s ease;
}
.hero-logo-wrapper:hover img {
  filter: drop-shadow(0 0 40px rgba(155, 93, 229, 0.9));
}
@keyframes logo-hover {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-7px); }
  66% { transform: translateY(-3px); }
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes aura-pulse {
  0% { opacity: 0.25; background-position: 0% 0%; }
  100% { opacity: 0.55; background-position: 100% 100%; }
}

.hero-title {
  font-family: var(--font-display); font-size: 4rem; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px; line-height: 0.95;
}
.hero-title .text-gradient { font-size: inherit; }
.hero-subtitle {
  color: var(--ice-dim); font-family: var(--font-body);
  font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-ips {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px;
}
.hero-ips-row {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.ip-copy-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  background: rgba(19, 24, 38, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 93, 229, 0.18);
  color: var(--ice-dim); font-family: var(--font-mono-ui); font-size: 0.85rem;
  cursor: pointer; transition: 0.25s ease; min-width: 240px; justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.ip-copy-btn:hover { border-color: rgba(61, 107, 255, 0.5); color: var(--ice); box-shadow: 0 4px 28px rgba(61, 107, 255, 0.15); }
.ip-copy-btn .ip-text { color: var(--ice); }

.player-status {
  font-family: var(--font-mono-ui); font-size: 0.8rem; color: var(--ice-faint);
  margin-bottom: 32px;
  background: rgba(19, 24, 38, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(155, 93, 229, 0.1);
  display: inline-block;
}
#player-count { color: var(--cobalt-bright); font-weight: 700; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 180px; }

/* --- Section Styles --- */
.section { padding: 100px 20px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center; max-width: 600px; margin: 0 auto 60px;
}
.section-eyebrow {
  font-family: var(--font-mono-ui); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--violet-bright); text-transform: uppercase; display: block; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--ice); margin-bottom: 12px; letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--ice-faint); font-size: 1rem; line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto;
}
.feature-card {
  padding: 28px; border-radius: 16px;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 93, 229, 0.12);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
  opacity: 0; transition: 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(61, 107, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.2), rgba(155, 93, 229, 0.15));
  border: 1px solid rgba(61, 107, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--ice); margin-bottom: 6px;
}
.feature-card p { color: var(--ice-faint); font-size: 0.85rem; line-height: 1.6; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto;
}
.testimonial-card {
  padding: 24px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.testimonial-stars {
  display: flex; gap: 4px; margin-bottom: 12px; color: var(--rank-gold);
}
.testimonial-card p {
  color: var(--ice-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 10px;
}
.testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: white;
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--ice); }
.testimonial-role { font-size: 0.7rem; color: var(--ice-faint); }

/* --- Staff Grid --- */
.staff-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 800px; margin: 0 auto;
}
.staff-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: 0.2s ease;
}
.staff-card:hover { border-color: rgba(61, 107, 255, 0.3); }
.staff-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: white;
}
.staff-name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--ice); }
.staff-role { font-size: 0.7rem; color: var(--ice-faint); }

/* --- News Section --- */
.news-list { max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex; gap: 16px; padding: 20px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: 0.2s ease;
}
.news-item:hover { border-color: rgba(155, 93, 229, 0.3); }
.news-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.2), rgba(155, 93, 229, 0.15));
  border: 1px solid rgba(61, 107, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cobalt-bright);
}
.news-date {
  font-family: var(--font-mono-ui); font-size: 0.7rem; color: var(--ice-faint); margin-bottom: 4px;
}
.news-item h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ice); margin-bottom: 4px; }
.news-item p { font-size: 0.8rem; color: var(--ice-faint); line-height: 1.5; }

/* --- FAQ --- */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 93, 229, 0.12);
  transition: 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.faq-item:hover { border-color: rgba(61, 107, 255, 0.35); box-shadow: 0 4px 28px rgba(61, 107, 255, 0.1); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--ice);
}
.faq-question::after {
  content: ''; flex-shrink: 0; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b82ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr; opacity: 0; overflow: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.faq-answer > span { overflow: hidden; min-height: 0; }
.faq-item.active .faq-answer {
  grid-template-rows: 1fr; opacity: 1;
}
.faq-answer span {
  display: block; padding: 0 22px 18px;
  color: var(--ice-faint); font-size: 0.85rem; line-height: 1.6;
}

/* --- Discord Section --- */
.discord-container {
  display: flex; justify-content: center; padding: 20px 0;
}
.discord-invite-widget {
  background: var(--glass-strong-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(155, 93, 229, 0.12);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.discord-logo-box { margin-bottom: 12px; }
.discord-guild-avatar {
  width: 50px; height: 50px; border-radius: 14px; object-fit: contain;
  border: 1px solid rgba(255,255,255,0.06);
}
.discord-invite-text {
  font-size: 0.7rem; color: var(--ice-faint); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px;
}
.discord-guild-name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--ice); margin-bottom: 8px;
}
.discord-presence-counters { margin-bottom: 20px; }
.discord-presence-counters .count-item {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.8rem; color: var(--ice-dim);
}
.discord-presence-counters strong { color: var(--ice); font-weight: 600; }
.dot-online {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ba55d; box-shadow: 0 0 8px rgba(59, 165, 93, 0.6);
}
.discord-join-button {
  display: inline-block; background: #5865f2; color: white; text-decoration: none;
  padding: 12px 28px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  transition: 0.25s ease; box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
.discord-join-button:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.45);
}

/* --- Contact Section --- */
.contact-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 900px; margin: 0 auto; padding: 40px 48px;
  gap: 40px; border-radius: 16px;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(155, 93, 229, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.contact-left-content { flex: 1; text-align: left; }
.contact-left-content h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--ice); margin-bottom: 10px;
}
.contact-left-content p { color: var(--ice-faint); font-size: 0.9rem; line-height: 1.6; }
.contact-right-actions { flex-shrink: 0; width: 320px; }
.contact-button-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  transition: 0.25s ease;
}
.contact-button-card:hover {
  border-color: rgba(61, 107, 255, 0.4);
  background: rgba(12, 16, 24, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.contact-button-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(61, 107, 255, 0.12);
  display: flex; align-items: center; justify-content: center; color: var(--cobalt-bright);
}
.contact-button-text { flex: 1; }
.contact-button-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--ice); margin-bottom: 2px; }
.contact-button-text span { font-size: 0.8rem; color: var(--cobalt-bright); }
.contact-button-arrow { color: var(--ice-dim); font-size: 1.1rem; transition: 0.25s ease; }
.contact-button-card:hover .contact-button-arrow { color: var(--ice); transform: translateX(4px); }

/* --- CTA Section --- */
.cta-section {
  max-width: 800px; margin: 0 auto; text-align: center;
  padding: 56px 40px; border-radius: 24px;
  background: rgba(19, 24, 38, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(155, 93, 229, 0.2);
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(61, 107, 255, 0.08), 0 20px 50px rgba(0,0,0,0.4);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(61, 107, 255, 0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(155, 93, 229, 0.3), transparent 50%);
  opacity: 0.25;
}
.cta-section h2 {
  position: relative; font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--ice); margin-bottom: 12px;
}
.cta-section p {
  position: relative; color: var(--ice-dim); margin-bottom: 24px;
}

/* --- Store Tabs --- */
.store-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin: -40px auto 0; max-width: 300px;
}
.store-tab {
  flex: 1; padding: 10px 20px; border: 1px solid var(--glass-border);
  border-radius: 10px; background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(12px); color: var(--ice-dim);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: 0.2s ease;
}
.store-tab.active {
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: white; border-color: transparent;
}
.store-tab:hover:not(.active) { border-color: rgba(61, 107, 255, 0.3); }

/* --- Orders Section --- */
.orders-section { min-height: 300px; }
.orders-empty {
  text-align: center; color: var(--ice-faint); padding: 60px 20px;
  font-size: 0.9rem;
}
#orders-container {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 600px; margin: 0 auto;
}
.order-card {
  border-radius: 12px; padding: 20px;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 93, 229, 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.order-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.order-id {
  font-family: var(--font-mono-ui); font-size: 0.8rem;
  color: var(--cobalt-bright); font-weight: 600;
}

.order-body { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.order-detail {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--ice-faint);
}
.order-detail span:first-child { font-weight: 500; }
.order-detail span:last-child { color: var(--ice-dim); }
.order-actions { display: flex; gap: 8px; }
.order-actions button, .order-actions a { flex: 1; }
.order-copy-btn, .order-deliver-btn {
  padding: 8px; border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: 0.2s ease;
}
.order-copy-btn {
  background: rgba(61, 107, 255, 0.1); border: 1px solid rgba(61, 107, 255, 0.2);
  color: var(--cobalt-bright);
}
.order-copy-btn:hover { background: rgba(61, 107, 255, 0.2); }
.order-ticket-btn {
  flex: 1; display: block; text-align: center; text-decoration: none;
  padding: 8px; border-radius: 8px;
  background: #5865f2; border: none; color: white;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: 0.2s ease;
}
.order-ticket-btn:hover { filter: brightness(1.15); }

/* --- Order Popup --- */
#order-popup {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center; align-items: center;
  padding: 20px;
}
#order-popup[style*="display: flex"] { display: flex !important; }
.order-popup-box {
  position: relative;
  background: rgba(7, 9, 15, 0.95);
  border: 1px solid rgba(155, 93, 229, 0.18);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}
.order-popup-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.popup-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 1.6rem; color: var(--ice-dim);
  cursor: pointer; transition: 0.2s ease; line-height: 1;
  background: none; border: none; z-index: 1;
}
.popup-close:hover { color: var(--ice); transform: rotate(90deg); }

.popup-save-note {
  font-size: 0.75rem; color: var(--ice-faint);
  background: rgba(19, 24, 38, 0.6);
  border: 1px solid rgba(155, 93, 229, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  line-height: 1.5;
  width: 100%;
}

/* --- Order Confirmation --- */
.checkout-confirm {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 20px 0;
}
.confirm-icon { font-size: 3rem; margin-bottom: 12px; }
.checkout-confirm h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--ice); margin-bottom: 8px;
}
.confirm-desc { color: var(--ice-faint); font-size: 0.85rem; margin-bottom: 20px; }
.confirm-order-id {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px;
  background: rgba(19, 24, 38, 0.6);
  border: 1px solid rgba(155, 93, 229, 0.15);
  font-family: var(--font-mono-ui); font-size: 0.85rem;
  color: var(--cobalt-bright); margin-bottom: 20px;
}
.confirm-copy-btn {
  background: none; border: none; color: var(--ice-dim);
  cursor: pointer; padding: 4px; transition: 0.2s ease;
}
.confirm-copy-btn:hover { color: var(--cobalt-bright); }
.confirm-discord-btn, .confirm-close-btn {
  width: 100%; padding: 12px; border-radius: 10px;
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: 0.2s ease;
  text-decoration: none; text-align: center;
}
.confirm-discord-btn {
  background: #5865f2; color: white; border: none;
  margin-bottom: 10px;
}
.confirm-discord-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.confirm-close-btn {
  background: rgba(19, 24, 38, 0.4); color: var(--ice-dim);
  border: 1px solid var(--glass-border);
}
.confirm-close-btn:hover { color: var(--ice); border-color: rgba(61, 107, 255, 0.3); }

/* --- Store Page --- */
.store-hero {
  padding: 140px 20px 60px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(61, 107, 255, 0.05), transparent 60%);
}
.store-hero-content { max-width: 700px; margin: 0 auto; }
.store-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 0.75rem; color: var(--cobalt-bright); margin-bottom: 16px; font-weight: 500;
}
.store-hero h1 {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.store-hero p { color: var(--ice-dim); font-size: 1rem; }

.store-section { padding: 60px 20px 100px; }
.store-category-header {
  margin-bottom: 28px; margin-top: 48px;
  border-left: 3px solid var(--cobalt); padding-left: 20px;
}
.store-category-header h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ice); margin-bottom: 4px;
}
.store-category-header p { color: var(--ice-faint); font-size: 0.85rem; }

.grid { display: grid; gap: 20px; }
.ranks-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.points-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.store-card {
  padding: 32px 20px; text-align: center; position: relative;
  border-radius: 16px; overflow: hidden;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 93, 229, 0.12);
  transition: all 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.store-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
  opacity: 0; transition: 0.3s;
}
.store-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); border-color: rgba(96, 165, 250, 0.2); }
.store-card:hover::after { opacity: 1; }
.store-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.store-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ice); margin-bottom: 6px; }
.store-card p { color: var(--ice-faint); font-size: 0.8rem; margin-bottom: 12px; min-height: 32px; }
.store-card .price {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--ice); margin-bottom: 16px;
}
.store-card.featured {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(180deg, rgba(61, 107, 255, 0.1), transparent);
}
.featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--cobalt); color: white;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 4px 10px; border-radius: 50px;
  box-shadow: 0 4px 12px rgba(61, 107, 255, 0.35);
}
.featured-badge.offer-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.purchase-btn {
  padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--cobalt); color: white; font-weight: 600; font-family: var(--font-display);
  transition: 0.2s ease; width: 100%; font-size: 0.85rem;
}
.purchase-btn:hover { background: var(--cobalt-bright); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(61, 107, 255, 0.4); }

/* --- Checkout Modal --- */
#purchase-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center; align-items: center;
  padding: 20px;
}
#purchase-modal[style*="display: flex"] { display: flex !important; }
.checkout-modal {
  background: rgba(7, 9, 15, 0.95);
  border: 1px solid rgba(155, 93, 229, 0.15);
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}
.checkout-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 1.6rem; color: var(--ice-dim);
  cursor: pointer; transition: 0.2s ease; line-height: 1;
  background: none; border: none; z-index: 1;
}
.checkout-close:hover { color: var(--ice); transform: rotate(90deg); }

.checkout-form { display: flex; flex-direction: column; gap: 20px; }

.checkout-product-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(19, 24, 38, 0.6);
  border: 1px solid rgba(155, 93, 229, 0.15);
}
.checkout-label {
  font-size: 0.65rem; color: var(--ice-faint); font-family: var(--font-mono-ui);
  letter-spacing: 0.5px; margin-bottom: 2px;
}
.checkout-product-name {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ice);
}
.checkout-product-price {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(90deg, var(--cobalt-bright), var(--violet-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.checkout-field label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--ice-dim); margin-bottom: 6px;
}
.checkout-optional { color: var(--ice-faint); font-weight: 400; }
.checkout-field input,
.checkout-field textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(19, 24, 38, 0.6);
  border: 1px solid var(--steel-border);
  border-radius: 10px; color: var(--ice);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: 0.2s ease;
}
.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none; border-color: var(--cobalt); background: rgba(19, 24, 38, 0.8);
}
.checkout-field input.error,
.checkout-field textarea.error { border-color: var(--danger); }
.checkout-field textarea { resize: vertical; min-height: 72px; }
.checkout-error {
  font-size: 0.75rem; color: var(--danger); margin-top: 4px;
  display: flex; align-items: center; gap: 4px; min-height: 18px;
}

.checkout-upload-zone {
  position: relative; border-radius: 12px;
  border: 2px dashed var(--steel-border);
  background: rgba(19, 24, 38, 0.4);
  cursor: pointer; transition: 0.2s ease;
  min-height: 150px;
}
.checkout-upload-zone:hover,
.checkout-upload-zone.drag-over { border-color: var(--cobalt); background: rgba(61, 107, 255, 0.05); }
.checkout-upload-zone.has-error { border-color: var(--danger); }
.checkout-upload-zone input[type="file"] { display: none; }

.checkout-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 28px 20px; text-align: center; min-height: 150px;
}
.checkout-upload-placeholder svg { color: var(--ice-faint); margin-bottom: 4px; }
.checkout-upload-placeholder p { font-size: 0.85rem; color: var(--ice-dim); }
.checkout-upload-placeholder span { font-size: 0.75rem; color: var(--ice-faint); }

.checkout-upload-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; position: relative; min-height: 150px;
}
.checkout-upload-preview img {
  max-height: 120px; border-radius: 8px; object-fit: contain;
}
.checkout-remove-file {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--danger); border: none;
  color: white; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s ease;
}
.checkout-remove-file:hover { transform: scale(1.1); }

.checkout-submit {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: white; font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: 0.25s ease;
  letter-spacing: 0.3px;
}
.checkout-submit:hover {
  box-shadow: 0 0 28px rgba(155, 93, 229, 0.5);
  transform: translateY(-1px);
}
.checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.checkout-footer-note {
  font-size: 0.75rem; color: var(--ice-faint); text-align: center;
  line-height: 1.6; margin-top: -8px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--steel-border);
  background: var(--void-soft);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 20px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ice);
}
.footer-brand-text span { color: var(--cobalt-bright); }
.footer-desc { font-size: 0.8rem; color: var(--ice-faint); max-width: 260px; line-height: 1.6; }
.footer h3 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  color: var(--ice); margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li span { font-family: var(--font-mono-ui); font-size: 0.8rem; color: var(--ice-faint); }
.footer ul li .highlight { color: var(--cobalt-bright); }
.footer ul li .highlight-violet { color: var(--violet-bright); }
.footer a {
  font-size: 0.8rem; color: var(--ice-dim); text-decoration: none; transition: 0.2s;
}
.footer a:hover { color: var(--cobalt-bright); }
.footer-community-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(19, 24, 38, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 93, 229, 0.15);
  font-size: 0.8rem; color: var(--ice-dim); text-decoration: none; margin-bottom: 16px;
  transition: 0.2s ease;
}
.footer-community-btn:hover {
  color: var(--ice); border-color: rgba(61, 107, 255, 0.4); box-shadow: 0 0 20px rgba(61, 107, 255, 0.1);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ice-faint); text-decoration: none; transition: 0.2s;
}
.footer-social a:hover { color: var(--cobalt-bright); border-color: rgba(61, 107, 255, 0.4); }
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cobalt) 20%, var(--violet) 80%, transparent);
  opacity: 0.4; margin-bottom: 16px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--ice-faint);
}
.footer-bottom span { font-family: var(--font-mono-ui); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-ips-row { flex-direction: column; align-items: center; }

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

  .contact-wrapper { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
  .contact-left-content { text-align: center; }
  .contact-right-actions { width: 100%; max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .store-hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .store-tabs { margin-top: -24px; }

  #navbar.scrolled { background: rgba(7, 9, 15, 0.95); }
}

@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.2rem; }
}