:root {
  --bg: #07080b;
  --surface: #0e1016;
  --surface-2: #161922;
  --surface-3: #1e2230;
  --muted: #8a92a8;
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --gold-soft: #ffec8b;
  --cream: #f7f3e3;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --eminent: #e11d48;
  --elite: #38bdf8;
  --legend: #c084fc;
  --vip: #fbbf24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

.bg-aurora {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(139,92,246,0.18), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(255,215,0,0.12), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(225,29,72,0.10), transparent 35%),
    linear-gradient(180deg, #0b0d13 0%, var(--bg) 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 60%);
}
.particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0.25; animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-30px) scale(1.4); opacity: 0.5; }
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,8,11,0.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #ff8c00); color: #111; font-weight: 900;
}
.logo-text { font-size: 1.35rem; font-weight: 800; }
.logo-text .gold { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: color .2s; }
.nav-link:hover { color: var(--gold); }
.discord { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.96rem; text-decoration: none;
  background: var(--gold); color: #111;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--gold-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #111; }
.btn-ghost { background: transparent; color: var(--gold); border: 2px solid rgba(255,215,0,0.35); }
.btn-ghost:hover { background: rgba(255,215,0,0.08); border-color: var(--gold); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-wide { width: 100%; margin-top: 6px; }

.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 0 100px;
}
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 30px; border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 22px; background: rgba(255,215,0,0.06);
}
.hero-title {
  font-size: clamp(4rem, 13vw, 9.5rem); font-weight: 900; margin: 0 0 8px; line-height: 0.9;
  background: linear-gradient(180deg, #fff 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgba(255,215,0,0.25);
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.server-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 30px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: var(--muted);
  font-weight: 600; font-size: 0.9rem; margin-bottom: 28px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.status-dot.offline { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

.store { position: relative; }
.countdown-banner {
  background: linear-gradient(90deg, var(--eminent), #b91c1c, var(--eminent));
  padding: 12px 0; text-align: center; font-weight: 800; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08); position: sticky; top: 68px; z-index: 90;
}
.countdown-banner .container { display: flex; justify-content: center; align-items: center; gap: 12px; }
.countdown-label { text-transform: uppercase; letter-spacing: 1px; }
#countdown { font-variant-numeric: tabular-nums; }
.section { padding: 100px 0; }
.section-dark { background: rgba(14,16,22,0.6); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-tag {
  display: inline-block; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; color: var(--cream); }
.section-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid.ranks { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  position: relative; background: rgba(22,25,34,0.85); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px; padding: 30px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--eminent));
  opacity: 0.8;
}
.card:hover { transform: translateY(-7px); border-color: rgba(255,215,0,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.card-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(255,255,255,0.06); color: var(--gold); border: 1px solid rgba(255,215,0,0.2);
}
.card-icon {
  width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 10px 30px rgba(255,215,0,0.2);
}
.card-icon .item-icon { width: 48px; height: 48px; image-rendering: pixelated; }
.card h3 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; flex-grow: 1; }
.card ul { color: var(--muted); padding-left: 18px; margin: 0 0 22px; font-size: 0.92rem; }
.card li { margin-bottom: 6px; }
.price {
  font-size: 2rem; font-weight: 900; color: var(--gold); margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 6px;
}
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

.rank-vip .card-icon { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.rank-elite .card-icon { background: linear-gradient(135deg, #7dd3fc, #0284c7); }
.rank-legend .card-icon { background: linear-gradient(135deg, #d8b4fe, #9333ea); }
.rank-eminent .card-icon { background: linear-gradient(135deg, #fb7185, #be123c); }
.rank-eminent .card::before { background: linear-gradient(90deg, var(--eminent), var(--gold)); }
.rank-legend .card::before { background: linear-gradient(90deg, var(--legend), var(--accent)); }
.rank-elite .card::before { background: linear-gradient(90deg, var(--elite), #0ea5e9); }
.rank-vip .card::before { background: linear-gradient(90deg, var(--vip), #f59e0b); }

.crate .card-icon { border-radius: 16px; width: 68px; height: 68px; }
.crate .card-icon .item-icon { width: 44px; height: 44px; }
.bundle .card::before { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.bundle .card-icon { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.save {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  background: var(--eminent); color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.testimonials { background: rgba(255,255,255,0.01); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial {
  background: rgba(22,25,34,0.85); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 26px;
}
.testimonial p { color: var(--muted); margin: 0 0 16px; font-size: 0.98rem; }
.testimonial span { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.crate-vote .card-icon { background: linear-gradient(135deg, #4ade80, #16a34a); }
.crate-common .card-icon { background: linear-gradient(135deg, #94a3b8, #475569); }
.crate-rare .card-icon { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.crate-legendary .card-icon { background: linear-gradient(135deg, #c084fc, #7e22ce); }

.info-card {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  background: rgba(22,25,34,0.85); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 28px 32px;
}
.info-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #a855f7, #4c1d95); font-size: 1.5rem; font-weight: 900;
}
.info-body { flex-grow: 1; }
.info-body h3 { margin: 0 0 6px; font-size: 1.2rem; }
.info-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.trust .trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.trust-item { text-align: center; padding: 20px; }
.trust-icon {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--gold);
  font-size: 1.3rem; font-weight: 800;
}
.trust-item h4 { margin: 0 0 6px; font-size: 1.1rem; }
.trust-item p { color: var(--muted); margin: 0; font-size: 0.9rem; }

.notice {
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); color: #86efac;
  padding: 14px 22px; border-radius: 12px; margin-bottom: 28px; font-weight: 600;
}
.notice.error { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.25); color: #fca5a5; }
.hidden { display: none !important; }

.modal {
  display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: 100%; max-width: 440px; background: linear-gradient(180deg, #13151d 0%, #0d0f14 100%);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 32px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 24px 24px 0 0;
}
.close {
  position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--muted); font-size: 1.8rem; cursor: pointer;
}
.modal-tag {
  display: inline-block; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,215,0,0.2);
  color: var(--gold); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.modal-header h3 { margin: 0 0 8px; font-size: 1.6rem; }
.modal-header p { margin: 0 0 24px; color: var(--muted); }
.modal-body { margin-bottom: 18px; }
.modal-body label { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.input-wrap {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0 14px; margin-bottom: 18px;
}
.input-wrap:focus-within { border-color: var(--gold); }
.input-icon { color: var(--muted); font-weight: 700; }
.input-wrap input {
  flex-grow: 1; background: transparent; border: none; outline: none; color: var(--cream);
  padding: 14px 0; font-family: inherit; font-size: 1rem;
}
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: var(--cream); font-size: 1.2rem; cursor: pointer; transition: .15s;
}
.qty-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
#quantity {
  width: 70px; text-align: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: var(--cream); padding: 10px; font-family: inherit; font-size: 1rem;
}
.modal-price-row {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08);
  font-weight: 700; color: var(--muted);
}
.modal-price { font-size: 1.6rem; color: var(--gold); }
.spinner {
  width: 24px; height: 24px; border: 3px solid rgba(255,215,0,0.2); border-top-color: var(--gold); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 14px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { background: #05060a; border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; align-items: start; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-sub { color: var(--muted); max-width: 320px; margin-top: 12px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; }
.footer-bottom p { margin: 6px 0; }

@media (max-width: 760px) {
  .nav-links .nav-link:nth-child(1), .nav-links .nav-link:nth-child(2), .nav-links .nav-link:nth-child(3) { display: none; }
  .hero-title { font-size: 5rem; }
  .info-card { flex-direction: column; text-align: center; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
}
