/* ============================================
   SKYVAULT — Main CSS
   Dark Gaming Aesthetic 2025
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  --void: #080b12;
  --void-800: #0d1117;
  --void-700: #111827;
  --void-600: #1a2332;
  --emerald: #34d399;
  --emerald-dim: #10b981;
  --sky: #38bdf8;
  --sky-dim: #0ea5e9;
  --purple: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--void);
  color: white;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: #34d399; }
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s;
}
.mobile-nav-link:hover { color: white; background: rgba(255,255,255,0.06); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #34d399, #38bdf8);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(16,185,129,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: #5865F2;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-discord:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(88,101,242,0.3); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(239,68,68,0.2);
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* ─── IP Box ─── */
.ip-box {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
  user-select: none;
}
.ip-box:hover {
  background: rgba(52,211,153,0.05);
  border-color: rgba(52,211,153,0.2);
}
.ip-box-large {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.ip-box-large:hover { background: rgba(52,211,153,0.05); border-color: rgba(52,211,153,0.2); }

/* ─── Section styles ─── */
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 999px;
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Stat Cards ─── */
.stat-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,0.3), transparent);
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(52,211,153,0.15); }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, white 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 6px; }
.stat-trend { font-size: 11px; color: #64748b; }
.stat-trend.up { color: #34d399; }

/* ─── Feature Cards ─── */
.feature-card {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(52,211,153,0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(52,211,153,0.15); transform: translateY(-4px); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: white; }
.feature-desc { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ─── News Cards ─── */
.news-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s ease;
}
.news-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-3px); }
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(52,211,153,0.15);
  color: #34d399;
  margin-bottom: 10px;
}
.news-tag.event { background: rgba(168,139,250,0.15); color: #a78bfa; }
.news-tag.hotfix { background: rgba(251,191,36,0.15); color: #fbbf24; }
.news-date { font-size: 12px; color: #475569; margin-bottom: 8px; }
.news-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 8px; line-height: 1.4; }
.news-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 14px; }
.news-link { font-size: 13px; color: #34d399; font-weight: 600; transition: color 0.2s; }
.news-link:hover { color: #6ee7b7; }

/* ─── Staff Cards ─── */
.staff-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s ease;
}
.staff-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-4px); }
.staff-avatar {
  width: 80px; height: 80px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.staff-avatar.owner { border: 2px solid rgba(251,191,36,0.4); box-shadow: 0 0 20px rgba(251,191,36,0.1); }
.staff-avatar.admin { border: 2px solid rgba(239,68,68,0.4); box-shadow: 0 0 20px rgba(239,68,68,0.1); }
.staff-avatar.mod { border: 2px solid rgba(52,211,153,0.4); box-shadow: 0 0 20px rgba(52,211,153,0.1); }
.staff-avatar.helper { border: 2px solid rgba(56,189,248,0.4); box-shadow: 0 0 20px rgba(56,189,248,0.1); }
.staff-role { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.owner-badge { background: rgba(251,191,36,0.15); color: #fbbf24; }
.admin-badge { background: rgba(239,68,68,0.15); color: #f87171; }
.mod-badge { background: rgba(52,211,153,0.15); color: #34d399; }
.helper-badge { background: rgba(56,189,248,0.15); color: #38bdf8; }
.staff-name { font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px; }
.staff-desc { font-size: 12px; color: #475569; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ─── Leaderboard ─── */
.leaderboard-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}
.leaderboard-card:hover { border-color: rgba(255,255,255,0.08); }
.lb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.lb-icon { font-size: 22px; }
.lb-title { font-size: 16px; font-weight: 700; }
.lb-list { padding: 12px; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.lb-item:hover { background: rgba(255,255,255,0.03); }
.lb-rank {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.05);
  color: #64748b;
  flex-shrink: 0;
}
.lb-rank.gold { background: rgba(251,191,36,0.15); color: #fbbf24; }
.lb-rank.silver { background: rgba(148,163,184,0.15); color: #94a3b8; }
.lb-rank.bronze { background: rgba(205,127,50,0.15); color: #cd7f32; }
.lb-player { flex: 1; font-size: 14px; font-weight: 600; color: #e2e8f0; }
.lb-value { font-size: 13px; color: #64748b; font-family: var(--font-mono); }

/* ─── CTA Card ─── */
.cta-card {
  position: relative;
  padding: 60px 40px;
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

/* ─── Footer ─── */
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 14px; }
.footer-links { list-style: none; space-y: 8px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: #475569; transition: color 0.2s; }
.footer-links a:hover { color: #e2e8f0; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.social-icon.discord:hover { background: rgba(88,101,242,0.15); border-color: rgba(88,101,242,0.3); color: #5865F2; }
.server-status-widget {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ─── Animations ─── */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(52,211,153,0.2); }
  50% { box-shadow: 0 0 40px rgba(52,211,153,0.4); }
}
.animate-fade-in { animation: fade-in 0.6s ease forwards; }
.animate-slide-up { animation: slide-up 0.7s ease forwards; opacity: 0; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Toast ─── */
#toast { transition: all 0.3s ease; }
#toast.show { display: block !important; animation: slide-up 0.3s ease forwards; }

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #94a3b8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(52,211,153,0.4);
  background: rgba(52,211,153,0.03);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: #111827; }

/* ─── Cards generic ─── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
}
.card:hover { border-color: var(--border-hover); }

/* ─── Badge ─── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-emerald { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-sky { background: rgba(56,189,248,0.15); color: #38bdf8; }
.badge-purple { background: rgba(167,139,250,0.15); color: #a78bfa; }
.badge-amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-rose { background: rgba(251,113,133,0.15); color: #fb7185; }
.badge-red { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ─── Product Cards (Shop) ─── */
.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover { border-color: rgba(52,211,153,0.2); transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.product-image {
  width: 100%; aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.product-body { padding: 20px; }
.product-name { font-size: 16px; font-weight: 700; color: white; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: #64748b; margin-bottom: 14px; line-height: 1.6; }
.product-price { font-size: 20px; font-weight: 800; color: #34d399; font-family: var(--font-mono); }
.product-price .old-price { font-size: 13px; color: #475569; text-decoration: line-through; font-weight: 400; }

/* ─── Vote Site Cards ─── */
.vote-site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.vote-site-card:hover { border-color: rgba(52,211,153,0.2); }
.vote-site-card.voted { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.04); }
.vote-site-card.cooldown { opacity: 0.6; }

/* ─── Wiki ─── */
.wiki-sidebar-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #64748b;
  transition: all 0.2s;
}
.wiki-sidebar-link:hover, .wiki-sidebar-link.active {
  background: rgba(255,255,255,0.05);
  color: white;
}
.wiki-sidebar-link.active { color: var(--emerald, #34d399); }
.wiki-content h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 20px; }
.wiki-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 14px; color: white; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.wiki-content h3 { font-size: 1.2rem; font-weight: 600; margin: 24px 0 10px; color: #e2e8f0; }
.wiki-content p { font-size: 15px; color: #94a3b8; line-height: 1.8; margin-bottom: 14px; }
.wiki-content ul, .wiki-content ol { padding-left: 24px; margin-bottom: 14px; }
.wiki-content li { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 4px; }
.wiki-content code { font-family: var(--font-mono); font-size: 13px; background: rgba(255,255,255,0.08); padding: 2px 7px; border-radius: 5px; color: #34d399; }
.wiki-content pre { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; overflow-x: auto; }
.wiki-content pre code { background: none; padding: 0; }
.wiki-content blockquote { border-left: 3px solid #34d399; padding: 12px 18px; background: rgba(52,211,153,0.05); border-radius: 0 10px 10px 0; margin-bottom: 16px; }
.wiki-content blockquote p { color: #94a3b8; margin: 0; }
.wiki-content .cmd-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.wiki-content .cmd-table th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; border-bottom: 1px solid var(--border); }
.wiki-content .cmd-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #94a3b8; }
.wiki-content .cmd-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Admin Panel ─── */
.admin-sidebar {
  width: 240px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  overflow-y: auto;
  z-index: 40;
}
.admin-content { margin-left: 240px; padding: 32px; min-height: 100vh; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,0.05); color: white; }
.admin-nav-link.active { color: #34d399; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #94a3b8; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-stat {
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.admin-stat-value { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: white; }
.admin-stat-label { font-size: 12px; color: #64748b; margin-top: 4px; font-weight: 500; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  animation: slide-up 0.3s ease;
}
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: #64748b; margin-bottom: 24px; }

/* ─── Divider ─── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 16px; }
  .section-title { font-size: 2rem; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
}

/* ─── Tailwind bg shortcut ─── */
.bg-void { background-color: #080b12; }
.bg-void-800\/50 { background-color: rgba(13,17,23,0.5); }
.bg-void-800\/30 { background-color: rgba(13,17,23,0.3); }

/* ─────────────────────────────────────────────
   ANIMATIONS MODERNES — 2025 Refresh
   ───────────────────────────────────────────── */

/* Shimmer loading skeleton */
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

/* Staggered fade-in pour les grilles */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.stagger-item {
  opacity: 0;
  animation: stagger-in 0.5s ease forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.10s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.20s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.30s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.40s; }

/* Glow hover sur cards */
.card-glow {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(52,211,153,0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(52,211,153,0.08); }

/* Typing cursor */
@keyframes blink { 50% { opacity: 0; } }
.cursor { display: inline-block; width: 2px; height: 1em; background: #34d399; margin-left: 2px; vertical-align: middle; animation: blink 1s step-end infinite; }

/* Number count-up (classes appliquées par JS) */
.count-up { display: inline-block; }

/* Tag pill */
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.tag-pill-emerald { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.tag-pill-sky     { background: rgba(56,189,248,0.12); color: #38bdf8; border: 1px solid rgba(56,189,248,0.2); }
.tag-pill-amber   { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2);  }
.tag-pill-rose    { background: rgba(251,113,133,0.12); color: #fb7185; border: 1px solid rgba(251,113,133,0.2); }
.tag-pill-purple  { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }

/* Smooth news cards */
.news-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(52,211,153,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(52,211,153,0.08);
}

/* Gradient border hero buttons */
.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* Page header hero gradient orbs */
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.orb-emerald { background: radial-gradient(circle, rgba(52,211,153,0.18) 0%, transparent 70%); }
.orb-sky     { background: radial-gradient(circle, rgba(56,189,248,0.14) 0%, transparent 70%); }
.orb-purple  { background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%); }

/* Section reveal animation — replaces scroll-reveal */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: reveal-up 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }

/* Parallax subtle on hero */
@keyframes hero-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(1deg); }
  66%       { transform: translateY(4px) rotate(-0.5deg); }
}
.hero-float { animation: hero-float 8s ease-in-out infinite; }

/* Slide-in from left/right */
@keyframes slide-in-left  { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slide-in-right { from { opacity:0; transform:translateX( 30px); } to { opacity:1; transform:translateX(0); } }
.slide-left  { animation: slide-in-left  0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
.slide-right { animation: slide-in-right 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }

/* Backdrop blur card enhanced */
.card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Interactive ripple */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* Pulse dot (server status) */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-dot { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.pulse-dot::before {
  content: ''; position: absolute;
  width: 100%; height: 100%; border-radius: 50%;
  background: currentColor; opacity: 0.4;
  animation: pulse-ring 2s ease-out infinite;
}

/* Magnetic card tilt */
.tilt-card { transform-style: preserve-3d; transform: perspective(1000px); will-change: transform; }

/* Progress bar loading */
#page-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  width: 0%; transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(52,211,153,0.5);
}

/* News filter tabs */
.filter-tab {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.08);
  background: transparent; color: #64748b;
}
.filter-tab:hover { color: white; background: rgba(255,255,255,0.05); }
.filter-tab.active { background: linear-gradient(135deg, #10b981, #0ea5e9); color: white; border-color: transparent; }

/* Enhanced news-all page card */
.news-all-card {
  display: grid; grid-template-columns: auto 1fr; gap: 0;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.news-all-card:hover {
  border-color: rgba(52,211,153,0.2);
  transform: translateX(4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), -3px 0 0 #34d399;
}
.news-all-card .card-accent { width: 4px; background: linear-gradient(to bottom, #34d399, #38bdf8); flex-shrink: 0; }
.news-all-card .card-body { padding: 20px 24px; }

/* Toast animation improvement */
#toast .toast-msg {
  animation: toast-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── Admin confirm notification ─── */
.admin-save-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(14,165,233,0.15));
  border: 1px solid rgba(52,211,153,0.35); border-radius: 14px;
  padding: 14px 24px; display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(20px); z-index: 1000; min-width: 300px;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.5s;
  opacity: 0; pointer-events: none;
}
.admin-save-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }
.admin-save-banner .banner-icon { font-size: 20px; }
.admin-save-banner .banner-text { flex: 1; }
.admin-save-banner .banner-title { font-weight: 700; font-size: 14px; color: white; }
.admin-save-banner .banner-sub   { font-size: 12px; color: #64748b; }


/* ============================================================
   HighSkyblock — Visual Effects CSS
   ============================================================ */

/* ─── Scroll Reveal ─── */
.hs-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.hs-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ─── Card glow spotlight ─── */
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(52,211,153,.07), transparent 80%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 0;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ─── Aurora ─── */
.hs-aurora {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: 0;
}
.hs-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: .12;
  animation: hs-aurora-drift 12s ease-in-out infinite alternate;
}
.hs-aurora-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: -200px; left: -100px;
  animation-duration: 14s;
}
.hs-aurora-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 10s;
  animation-delay: -4s;
}
.hs-aurora-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  bottom: -100px; left: 40%;
  animation-duration: 16s;
  animation-delay: -8s;
}
@keyframes hs-aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 20px) scale(.9); }
}

/* ─── Ripple ─── */
@keyframes hs-ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(1); opacity: 0; }
}

/* ─── Cursor blink ─── */
@keyframes hs-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Stagger children ─── */
.hs-stagger-child {
  animation: hs-stagger-in .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes hs-stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Enhanced btn-primary glow ─── */
.btn-primary {
  box-shadow: 0 0 0 0 rgba(52,211,153,0);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(52,211,153,.35), 0 4px 20px rgba(52,211,153,.2);
}
.btn-primary:active {
  box-shadow: 0 0 50px rgba(52,211,153,.5);
  transform: scale(.97);
}

/* ─── Card enhanced hover border glow ─── */
.card {
  transition: border-color .25s, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.card:hover {
  border-color: rgba(52,211,153,.18) !important;
  box-shadow: 0 0 0 1px rgba(52,211,153,.08), 0 20px 60px rgba(0,0,0,.4);
}

/* ─── Gradient text animated ─── */
.gradient-text-animated {
  background: linear-gradient(135deg, #34d399, #38bdf8, #a78bfa, #34d399);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hs-gradient-shift 4s ease infinite;
}
@keyframes hs-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Floating badges ─── */
.hs-float {
  animation: hs-floating 3s ease-in-out infinite;
}
@keyframes hs-floating {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ─── IP box glow on hover ─── */
.ip-box {
  transition: box-shadow .3s, border-color .3s;
}
.ip-box:hover {
  box-shadow: 0 0 0 1px rgba(52,211,153,.3), 0 0 30px rgba(52,211,153,.15);
  border-color: rgba(52,211,153,.25) !important;
}

/* ─── Shimmer loading skeleton ─── */
.hs-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: hs-shimmer 1.8s infinite linear;
  border-radius: .5rem;
}
@keyframes hs-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── Scrollbar custom ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080b12; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#34d399, #38bdf8);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: #34d399; }

/* ─── Selection color ─── */
::selection { background: rgba(52,211,153,.25); color: #fff; }

/* ─── Focus rings ─── */
:focus-visible {
  outline: 2px solid rgba(52,211,153,.6);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Navbar blur enhanced ─── */
#navbar {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ─── Badge pulse ─── */
.hs-badge-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: .6;
  animation: hs-badge-pulse 2s ease-out infinite;
}
@keyframes hs-badge-pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hs-aurora-blob, .hs-float, .hs-reveal,
  .gradient-text-animated, .hs-cursor-dot { animation: none !important; }
  .hs-reveal { opacity: 1; transform: none; }
}


/* ============================================================
   HighSkyblock — Effects CSS v3
   ============================================================ */

/* ─── Scroll Reveal ─── */
.hs-reveal {
  opacity: 0;
  transform: translateY(32px) scale(.98);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.hs-revealed { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

/* ─── Keyframes ─── */
@keyframes hs-ripple  { to { transform: scale(1); opacity: 0; } }
@keyframes hs-blink   { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes hs-word-in { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }
@keyframes hs-particle {
  to { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* ─── Aurora ─── */
.hs-aurora { position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0; }
.hs-aurora-blob {
  position:absolute;border-radius:50%;filter:blur(90px);mix-blend-mode:screen;opacity:.1;
  animation: hs-aurora-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}
.hs-aurora-1 {
  width:700px;height:700px;background:radial-gradient(circle,var(--emerald,#34d399),transparent 70%);
  top:-200px;left:-100px;animation-duration:16s;
}
.hs-aurora-2 {
  width:550px;height:550px;background:radial-gradient(circle,var(--sky,#38bdf8),transparent 70%);
  top:-80px;right:-100px;animation-duration:12s;animation-delay:-5s;
}
.hs-aurora-3 {
  width:420px;height:420px;background:radial-gradient(circle,var(--purple,#a78bfa),transparent 70%);
  bottom:-100px;left:40%;animation-duration:18s;animation-delay:-10s;
}
@keyframes hs-aurora-drift {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  50%  { transform: translate(70px,50px) scale(1.2) rotate(8deg); }
  100% { transform: translate(-50px,20px) scale(.88) rotate(-5deg); }
}

/* ─── Card spotlight + hover glow ─── */
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  transition: border-color .25s, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  will-change: transform;
}
.card::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(52,211,153,.065), transparent 80%);
  opacity:0;transition:opacity .35s;pointer-events:none;z-index:0;
}
.card:hover::before { opacity:1; }
.card:hover {
  border-color: rgba(52,211,153,.2) !important;
  box-shadow: 0 0 0 1px rgba(52,211,153,.07), 0 25px 60px rgba(0,0,0,.45);
}
.card > * { position:relative;z-index:1; }

/* ─── Enhanced buttons ─── */
.btn-primary {
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover  { box-shadow: 0 0 35px rgba(52,211,153,.38), 0 6px 20px rgba(52,211,153,.2); }
.btn-primary:active { transform: scale(.97) !important; box-shadow: 0 0 55px rgba(52,211,153,.55) !important; }

/* ─── Gradient animated text ─── */
.gradient-text-animated {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 33%, #a78bfa 66%, #34d399 100%);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: hs-grad-shift 5s ease infinite;
}
@keyframes hs-grad-shift { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

/* ─── Floating badge ─── */
.hs-float { animation: hs-floating 3.5s ease-in-out infinite; }
@keyframes hs-floating { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-9px); } }

/* ─── IP box ─── */
.ip-box { transition: box-shadow .3s, border-color .3s; }
.ip-box:hover {
  box-shadow: 0 0 0 1px rgba(52,211,153,.32), 0 0 35px rgba(52,211,153,.15);
  border-color: rgba(52,211,153,.28) !important;
}

/* ─── Badge pulse ─── */
.hs-pulse-ring { position:relative; }
.hs-pulse-ring::after {
  content:'';position:absolute;inset:-4px;border-radius:inherit;
  border:1px solid currentColor;opacity:.5;
  animation: hs-pulse-ring 2.2s ease-out infinite;
}
@keyframes hs-pulse-ring { 0% { transform:scale(1);opacity:.5; } 100% { transform:scale(1.55);opacity:0; } }

/* ─── Skeleton loader ─── */
.hs-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: hs-shimmer 1.8s infinite linear;
  border-radius: .5rem;
}
@keyframes hs-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ─── Stagger ─── */
.hs-stagger-child { animation: hs-stagger-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes hs-stagger-in { from { opacity:0;transform:translateY(22px); } to { opacity:1;transform:none; } }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--void,#080b12); }
::-webkit-scrollbar-thumb { background:linear-gradient(180deg,#34d399,#38bdf8); border-radius:9999px; }

/* ─── Selection ─── */
::selection { background:rgba(52,211,153,.22);color:#fff; }

/* ─── Focus ─── */
:focus-visible { outline:2px solid rgba(52,211,153,.55);outline-offset:3px;border-radius:5px; }

/* ─── Navbar transition ─── */
#navbar {
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s, box-shadow .3s;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
#navbar.scrolled {
  background: rgba(8,11,18,.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 30px rgba(0,0,0,.4);
}

/* ─── Glassmorphism utility ─── */
.glass {
  background: rgba(13,17,23,.7);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08);
}

/* ─── Glow utilities ─── */
.glow-green  { box-shadow: 0 0 20px rgba(52,211,153,.4); }
.glow-blue   { box-shadow: 0 0 20px rgba(56,189,248,.4); }
.glow-purple { box-shadow: 0 0 20px rgba(167,139,250,.4); }
.text-glow   { text-shadow: 0 0 20px rgba(52,211,153,.6); }

/* ─── Gradient border utility ─── */
.border-gradient {
  border: 1px solid transparent;
  background: linear-gradient(var(--void-800,#0d1117),var(--void-800,#0d1117)) padding-box,
              linear-gradient(135deg,#34d399,#38bdf8,#a78bfa) border-box;
}

/* ─── Section divider ─── */
.hs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.3), rgba(56,189,248,.2), transparent);
  margin: 3rem 0;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hs-aurora-blob,.hs-float,.hs-reveal,.gradient-text-animated,
  .hs-cursor-dot,.hs-stagger-child,.hs-pulse-ring { animation:none !important; }
  .hs-reveal { opacity:1;transform:none; }
  #navbar { transition:none; }
}


/* ============================================================
   NAVBAR LOGO ANIMATIONS
   ============================================================ */

/* ─── Logo wrapper ─── */
.hs-logo-wrap {
  width: 2.25rem; height: 2.25rem;
  flex-shrink: 0;
  position: relative;
  animation: hs-logo-entrance .9s cubic-bezier(.34,1.56,.64,1) .1s both;
  cursor: pointer;
}
.hs-logo-wrap-sm {
  width: 1.9rem; height: 1.9rem;
}
.hs-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: .55rem;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s, drop-shadow(0 0 0px transparent);
  filter: drop-shadow(0 2px 8px rgba(52,211,153,.2));
  display: block;
}
.hs-logo-wrap:hover .hs-logo-img {
  transform: rotate(10deg) scale(1.18);
  filter: drop-shadow(0 0 14px rgba(52,211,153,.7)) drop-shadow(0 0 30px rgba(52,211,153,.3));
}
/* Floating idle animation */
.hs-logo-img {
  animation: hs-logo-idle 4s ease-in-out infinite;
}
@keyframes hs-logo-idle {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-2px) rotate(1.5deg); }
  75%      { transform: translateY(1px)  rotate(-1deg); }
}
.hs-logo-wrap:hover .hs-logo-img {
  animation: none;
  transform: rotate(10deg) scale(1.18);
}
@keyframes hs-logo-entrance {
  from { opacity:0; transform: scale(0) rotate(-25deg); }
  60%  { transform: scale(1.2) rotate(5deg); }
  to   { opacity:1; transform: scale(1) rotate(0deg); }
}

/* ─── Logo text ─── */
.hs-logo-text {
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: -.02em;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  animation: hs-logo-text-in .6s cubic-bezier(.16,1,.3,1) .25s both;
  position: relative;
}
.hs-logo-text-sm { font-size: .95rem; }
@keyframes hs-logo-text-in {
  from { opacity:0; transform: translateX(-10px); }
  to   { opacity:1; transform: translateX(0); }
}

/* ─── Accent "Skyblock" ─── */
.hs-logo-accent {
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.hs-logo-accent::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.hs-logo-text:hover .hs-logo-accent::after { transform: scaleX(1); }

/* ─── "Admin" sub-label ─── */
.hs-logo-sub {
  font-size: .7rem; font-weight: 600;
  color: #475569;
  -webkit-text-fill-color: #475569;
  background: none;
  font-family: 'Outfit', sans-serif;
  margin-left: .15rem;
}

/* ─── Nav links – underline slide ─── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 12px; right: 12px; height: 1.5px;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  border-radius: 9999px;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { background: transparent !important; color: #fff !important; }
.nav-link.active { background: transparent !important; }


/* ============================================================
   ADMIN PANEL — CSS & ANIMATIONS ENRICHIS
   ============================================================ */

/* ─── Sidebar upgrade ─── */
.admin-sidebar {
  background: linear-gradient(180deg, rgba(13,17,23,.98) 0%, rgba(8,11,18,.98) 100%);
  border-right: 1px solid rgba(52,211,153,.08);
  box-shadow: 4px 0 30px rgba(0,0,0,.4);
}
.admin-sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, #34d399, #38bdf8, transparent);
  opacity: .35;
}

/* ─── Nav links admin ─── */
.admin-nav-link {
  position: relative; overflow: hidden;
  transition: background .2s, color .2s, transform .15s, padding-left .2s;
}
.admin-nav-link::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 9999px;
  background: linear-gradient(180deg, #34d399, #38bdf8);
  transition: height .25s cubic-bezier(.16,1,.3,1);
}
.admin-nav-link:hover { padding-left: 22px; background: rgba(52,211,153,.05) !important; }
.admin-nav-link:hover::before { height: 65%; }
.admin-nav-link.active {
  background: rgba(52,211,153,.07) !important;
  color: #34d399 !important;
  padding-left: 22px;
}
.admin-nav-link.active::before { height: 70%; }

/* ─── Ripple on admin nav click ─── */
.admin-nav-link::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(52,211,153,.12) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.admin-nav-link:active::after { opacity: 1; }

/* ─── Admin content entry animation ─── */
.admin-content {
  animation: hs-admin-in .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes hs-admin-in {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ─── Admin page title ─── */
.admin-content h1 {
  position: relative; display: inline-block;
}
.admin-content h1::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #34d399, transparent);
  border-radius: 9999px;
}

/* ─── Admin table upgrade ─── */
.admin-table { border-collapse: separate; border-spacing: 0; }
.admin-table th {
  background: rgba(52,211,153,.04);
  color: #34d399 !important;
  font-size: .68rem !important;
  letter-spacing: .12em;
}
.admin-table th:first-child { border-radius: .5rem 0 0 0; }
.admin-table th:last-child  { border-radius: 0 .5rem 0 0; }
.admin-table tr { transition: background .15s; }
.admin-table tr:hover td {
  background: rgba(52,211,153,.03) !important;
}
.admin-table td { transition: background .15s; }

/* ─── Stats cards admin ─── */
.admin-stat {
  border-color: rgba(52,211,153,.1) !important;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.admin-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.admin-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(52,211,153,.12); }
.admin-stat:hover::before { transform: scaleX(1); }
.admin-stat-value {
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons in admin ─── */
.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  border-radius: inherit;
  pointer-events: none;
}

/* ─── Form elements ─── */
.form-input, .form-select, .form-textarea {
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(52,211,153,.5) !important;
  box-shadow: 0 0 0 3px rgba(52,211,153,.1), 0 0 20px rgba(52,211,153,.06) !important;
  outline: none;
}

/* ─── Modal upgrade ─── */
.modal-box {
  animation: hs-modal-in .35s cubic-bezier(.34,1.56,.64,1) !important;
  border: 1px solid rgba(52,211,153,.12) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 0 1px rgba(52,211,153,.05), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
@keyframes hs-modal-in {
  from { opacity:0; transform: scale(.92) translateY(20px); }
  to   { opacity:1; transform: scale(1)  translateY(0); }
}
.modal-title {
  background: linear-gradient(135deg, #fff 60%, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Badge upgrade ─── */
.badge {
  transition: transform .15s, box-shadow .15s;
}
.badge:hover { transform: scale(1.06); }
.badge-emerald { box-shadow: 0 0 8px rgba(52,211,153,.2); }
.badge-red     { box-shadow: 0 0 8px rgba(239,68,68,.2); }
.badge-amber   { box-shadow: 0 0 8px rgba(245,158,11,.2); }
.badge-sky     { box-shadow: 0 0 8px rgba(56,189,248,.2); }

/* ─── Card in admin – glow on hover ─── */
.admin-content .card {
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .3s;
  border-color: rgba(255,255,255,.06);
}
.admin-content .card:hover {
  transform: translateY(-2px);
  border-color: rgba(52,211,153,.16) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(52,211,153,.06);
}

/* ─── Sidebar category dividers ─── */
.admin-sidebar .text-xs.font-bold.text-slate-700 {
  position: relative;
  padding-left: 1rem;
}
.admin-sidebar .text-xs.font-bold.text-slate-700::before {
  content: '';
  position: absolute; left: 0.75rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: #34d399;
  transform: translateY(-50%);
  box-shadow: 0 0 4px #34d399;
}

/* ─── Scroll reveal in admin ─── */
.admin-content .card,
.admin-content table,
.admin-content .admin-stat {
  animation: hs-admin-item-in .45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes hs-admin-item-in {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ─── Stagger admin items ─── */
.admin-content .card:nth-child(1) { animation-delay: .05s; }
.admin-content .card:nth-child(2) { animation-delay: .10s; }
.admin-content .card:nth-child(3) { animation-delay: .15s; }
.admin-content .card:nth-child(4) { animation-delay: .20s; }
.admin-content .card:nth-child(5) { animation-delay: .25s; }
.admin-stat:nth-child(1) { animation-delay: .05s; }
.admin-stat:nth-child(2) { animation-delay: .12s; }
.admin-stat:nth-child(3) { animation-delay: .19s; }
.admin-stat:nth-child(4) { animation-delay: .26s; }

/* ─── Admin page active glow indicator ─── */
.admin-nav-link.active {
  box-shadow: inset 0 0 20px rgba(52,211,153,.05);
}

/* ─── Top bar in admin ─── */
.admin-content > div:first-child {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(52,211,153,.07);
  margin-bottom: 2rem;
}

/* ─── reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hs-logo-wrap, .hs-logo-img, .hs-logo-text, .admin-content,
  .admin-nav-link, .admin-stat { animation: none !important; transition: none !important; }
}

/* ─── Extra keyframes for admin JS ─── */
@keyframes hs-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px) rotate(-1deg); }
  40%      { transform: translateX( 5px) rotate( 1deg); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX( 3px); }
}
@keyframes hs-badge-pop {
  from { opacity:0; transform: scale(0) rotate(-10deg); }
  to   { opacity:1; transform: scale(1) rotate(0); }
}
.hs-field-focused > label {
  color: #34d399 !important;
  transition: color .2s;
}

/* ─── Curseur personnalisé : masquer le natif ─── */
/* Appliqué dynamiquement via JS : document.documentElement.style.cursor = 'none' */
/* On garde quand même pointer sur les interactifs pour l'accessibilité si désactivé */
