/* ── PAGE LOADING SCREEN ─────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}
.page-loader-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.page-loader-logo svg {
  width: 32px;
  height: 32px;
}
.page-loader-logo span {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.page-loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border-radius: 3px;
  animation: loaderSlide 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: none; }
  .page-loader-logo { animation: none; }
  .page-loader-bar::after { animation: none; width: 100%; }
}

/* ── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050508;
  --bg2: #0a0a12;
  --surface: rgba(16,16,28,0.7);
  --surface-solid: #10101c;
  --surface2: rgba(26,26,46,0.6);
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f8;
  --text-muted: #6b6b8d;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139,92,246,0.12);
  --cyan: #22d3ee;
  --pink: #f472b6;
  --orange: #fb923c;
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-purple: 0 0 40px rgba(139,92,246,0.15), 0 0 80px rgba(139,92,246,0.05);
  --glow-cyan: 0 0 40px rgba(34,211,238,0.12), 0 0 80px rgba(34,211,238,0.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* Cursor glow follower */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139,92,246,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4), 0 0 60px rgba(139,92,246,0.1);
  filter: brightness(1.1);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.15);
}
.btn-lg { padding: 13px 28px; font-size: 0.94rem; }

.gradient-text {
  background: linear-gradient(135deg, #c084fc, var(--cyan), #c084fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled {
  background: rgba(5,5,8,0.75);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(139,92,246,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-icon { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-accent {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.nav-user-pill:hover { border-color: var(--border-hover); }
.nav-user-pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.nav-admin-btn { color: var(--purple-light) !important; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(14,14,24,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-link {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.mobile-link:hover { color: var(--text); background: var(--surface); }
.mobile-cta { margin-top: 6px; justify-content: center; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transform: translateZ(0);
  contain: strict;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  top: -250px; left: -150px;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
  top: -120px; right: -100px;
  animation: orbFloat 20s ease-in-out infinite -7s;
}
.orb3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,114,182,0.18) 0%, transparent 70%);
  bottom: -50px; left: 40%;
  animation: orbFloat 20s ease-in-out infinite -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25%       { transform: translate3d(30px, -35px, 0) scale(1.05); }
  50%       { transform: translate3d(-20px, 20px, 0) scale(0.96); }
  75%       { transform: translate3d(15px, -10px, 0) scale(1.02); }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 10%, transparent 100%);
  animation: gridPulse 6s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO SEARCH ─────────────────────────────────────── */
.hero-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto 48px;
}
.hero-search-bar {
  display: flex;
  align-items: center;
  background: rgba(16,16,28,0.8);
  border: 1.5px solid rgba(139,92,246,0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.hero-search-bar:focus-within {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.08), 0 12px 40px rgba(0,0,0,0.4), var(--glow-purple);
}
.hero-search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
.hero-search-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 16px 16px 16px 50px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  margin: 6px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-search-btn:hover { background: #6d28d9; }

/* Search results dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(16,16,28,0.95);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 14px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover { background: var(--surface2); }
.sr-thumb {
  width: 40px; height: 56px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-info { flex: 1; min-width: 0; }
.sr-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-size: 0.78rem; color: var(--text-muted); }
.sr-type {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sr-type-movie { background: rgba(124,58,237,0.18); color: var(--purple-light); }
.sr-type-show  { background: rgba(6,182,212,0.15); color: var(--cyan); }
.sr-type-game  { background: rgba(34,197,94,0.15); color: var(--green); }
.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── STAT COUNTERS ───────────────────────────────────── */
.stat-counters {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.stat-item:hover {
  border-color: rgba(139,92,246,0.2);
  background: rgba(139,92,246,0.04);
  transform: translateY(-2px);
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── SECTION COMMONS ─────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}
.center { text-align: center; margin-top: 40px; }

/* ── CATEGORIES ──────────────────────────────────────── */
.categories { background: var(--bg2); position: relative; }
.categories::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.15), transparent);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 28px 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  background: rgba(16,16,28,0.5);
  backdrop-filter: blur(12px);
}
.cat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cat-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}
.cat-card:hover .cat-bg { opacity: 1; }
.cat-movies .cat-bg  { background: radial-gradient(circle at 70% 30%, rgba(124,58,237,0.15), transparent 60%); }
.cat-shows .cat-bg   { background: radial-gradient(circle at 70% 30%, rgba(6,182,212,0.15), transparent 60%); }
.cat-games .cat-bg   { background: radial-gradient(circle at 70% 30%, rgba(34,197,94,0.15), transparent 60%); }
.cat-celebrities .cat-bg { background: radial-gradient(circle at 70% 30%, rgba(251,191,36,0.15), transparent 60%); }
.cat-movies:hover { border-color: rgba(124,58,237,0.3); }
.cat-shows:hover  { border-color: rgba(6,182,212,0.3); }
.cat-games:hover  { border-color: rgba(34,197,94,0.3); }
.cat-celebrities:hover { border-color: rgba(251,191,36,0.3); }

.cat-icon {
  margin-bottom: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative; z-index: 1;
  transition: var(--transition);
  color: var(--text-muted);
}
.cat-movies:hover .cat-icon { color: var(--purple-light); border-color: rgba(124,58,237,0.3); }
.cat-shows:hover  .cat-icon { color: var(--cyan); border-color: rgba(6,182,212,0.3); }
.cat-games:hover  .cat-icon { color: var(--green); border-color: rgba(34,197,94,0.3); }
.cat-celebrities:hover .cat-icon { color: #fbbf24; border-color: rgba(251,191,36,0.3); }

.cat-content { position: relative; z-index: 1; }
.cat-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.cat-content p  { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.5; }
.cat-stat {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.cat-movies:hover .cat-cta { color: var(--purple-light); }
.cat-shows:hover  .cat-cta { color: var(--cyan); }
.cat-games:hover  .cat-cta { color: var(--green); }
.cat-celebrities:hover .cat-cta { color: #fbbf24; }

/* ── PACK CARDS ──────────────────────────────────────── */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pack-card {
  background: rgba(16,16,28,0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
  position: relative;
  backdrop-filter: blur(8px);
}
.pack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), transparent 50%, rgba(34,211,238,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}
.pack-card:hover::before { opacity: 1; }
.pack-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139,92,246,0.08);
}

.pack-thumb {
  position: relative;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--c1, #8b5cf6), var(--c2, #1e1b4b));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.pack-card:hover .pack-thumb img { transform: scale(1.08); filter: brightness(1.05); }

.pack-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(5,5,8,0.7), transparent);
  pointer-events: none;
}
.pack-thumb-inner {
  position: relative;
  z-index: 1;
  opacity: 0.3;
}

.pack-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 3px 10px;
  background: rgba(139,92,246,0.9);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.pack-badge-game { background: rgba(52,211,153,0.9); }
.pack-badge-show { background: rgba(34,211,238,0.85); }
.pack-badge-celebrity { background: rgba(244,114,182,0.9); }

.pack-dl-count {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.pack-info { padding: 14px 16px; position: relative; z-index: 1; }
.pack-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  line-height: 1.3;
}
.pack-card:hover .pack-title { color: var(--purple-light); }
.pack-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.pack-dot { opacity: 0.4; }

/* ── LATEST SECTION ──────────────────────────────────── */
.latest { background: var(--bg); }

/* ── FEATURES ────────────────────────────────────────── */
.features { background: var(--bg2); position: relative; }
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.15), transparent);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feat-card {
  background: rgba(16,16,28,0.5);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 30px rgba(139,92,246,0.05);
}
.feat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
.feat-icon-purple { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.feat-icon-cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan); }
.feat-icon-pink   { background: rgba(236,72,153,0.12); color: var(--pink); }
.feat-icon-orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.feat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feat-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { position: relative; overflow: hidden; background: var(--bg); }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-orb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  top: -80px; left: -60px;
}
.cta-orb2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%);
  bottom: -60px; right: -60px;
}
.cta-inner {
  position: relative; z-index: 2;
  text-align: center;
  background: rgba(16,16,28,0.6);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: 24px;
  padding: 72px 40px;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,92,246,0.1), transparent);
  pointer-events: none;
  border-radius: inherit;
}
.cta-inner::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), rgba(34,211,238,0.3), transparent);
}
.cta-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-chip {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  position: relative;
}
.cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.footer-brand { flex: 1; }
.footer-logo { margin-bottom: 10px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); max-width: 200px; line-height: 1.6; }
.footer-links { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.category-grid .reveal:nth-child(1) { transition-delay: 0s; }
.category-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.category-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.category-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.97); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.card-enter { animation: cardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── SKELETON / SPINNER / TOAST ──────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(16,16,28,0.7) 25%, rgba(26,26,46,0.5) 50%, rgba(16,16,28,0.7) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.03);
  min-height: 280px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: rgba(34,197,94,0.4); }
.toast-error   { border-color: rgba(239,68,68,0.4); }

/* ── BROWSE PAGE ─────────────────────────────────────── */
.browse-page-header {
  padding: 100px 24px 32px;
  text-align: center;
  background: var(--bg);
}
.browse-page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.browse-page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* Browse search + type pills */
.browse-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.browse-search-wrap {
  max-width: 560px;
  margin: 0 auto 20px;
  position: relative;
}
.browse-search-wrap .hero-search-bar { margin: 0; }
.browse-search-wrap .hero-search-input { padding: 14px 14px 14px 46px; }
.browse-search-wrap .search-dropdown { top: calc(100% + 4px); }

.type-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.type-pill:hover { border-color: var(--border-hover); color: var(--text); }
.type-pill.active {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.35);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(139,92,246,0.1);
}

/* Filter bar (sticky) */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(139,92,246,0.06);
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bar-left  { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.filter-chip-select, .filter-chip-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  cursor: pointer;
}
.filter-chip-select:focus, .filter-chip-input:focus { border-color: var(--purple); }
.filter-chip-input { width: 80px; }
.filter-reset {
  padding: 6px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.filter-reset:hover { color: var(--text); border-color: var(--border-hover); }
.result-count { font-size: 0.82rem; color: var(--text-muted); }
.view-toggle { display: flex; gap: 3px; }
.view-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.view-btn.active, .view-btn:hover { color: var(--text); border-color: var(--border-hover); }

.browse-results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* List view */
.pack-grid.list-view { grid-template-columns: 1fr !important; }
.pack-grid.list-view .pack-card { display: flex; }
.pack-grid.list-view .pack-thumb { width: 80px; min-width: 80px; aspect-ratio: unset; }
.pack-grid.list-view .pack-info { flex: 1; display: flex; align-items: center; gap: 12px; }
.pack-grid.list-view .pack-title { flex: 1; white-space: normal; }

.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.page-btn:hover { color: var(--text); border-color: var(--border-hover); }
.page-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px;
  color: var(--text-muted);
  text-align: center;
}
.empty-state h3 { color: var(--text); font-size: 1.1rem; }

/* ── PACK DETAIL PAGE ────────────────────────────────── */
.pack-hero { padding-top: 64px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.pack-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; }
.pack-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 24px 48px; }
.pack-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; }
.pack-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.pack-breadcrumb a:hover { color: var(--text); }
.pack-hero-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.pack-hero-thumb {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
}
.pack-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pack-type-badge {
  display: inline-block; padding: 3px 10px; border-radius: 5px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(124,58,237,0.18); color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.3); margin-bottom: 12px;
}
.pack-type-badge.badge-game { background: rgba(52,211,153,0.1); color: var(--green); border-color: rgba(52,211,153,0.2); }
.pack-type-badge.badge-show { background: rgba(34,211,238,0.1); color: var(--cyan); border-color: rgba(34,211,238,0.2); }
.pack-type-badge.badge-celebrity { background: rgba(244,114,182,0.1); color: var(--pink); border-color: rgba(244,114,182,0.2); }
.pack-hero-details h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.15; }
.pack-meta-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.pack-description { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; max-width: 500px; }
.pack-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.spec-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.spec-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.spec-val { font-size: 0.88rem; font-weight: 600; }
.pack-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.pack-dl-stat { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-muted); }
.pack-uploader { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.pack-uploader img { width: 24px; height: 24px; border-radius: 50%; }
.pack-uploader strong { color: var(--text); }

/* ── DASHBOARD ───────────────────────────────────────── */
.dash-hero { background: var(--bg2); border-bottom: 1px solid var(--border); }
.dash-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dash-avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--purple); object-fit: cover; }
.dash-profile-info h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.dash-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.role-badge { padding: 2px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
.role-admin  { background: rgba(124,58,237,0.18); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.25); }
.role-member { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.dash-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.dash-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-num { font-size: 1.3rem; font-weight: 800; }
.dash-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.dash-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.dash-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--text-muted); }
.dash-discord-id-box { margin-top: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; font-size: 0.82rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.dash-discord-id-box p { display: flex; align-items: center; gap: 6px; }
.dash-discord-id-box code { font-family: monospace; font-size: 0.8rem; color: var(--text); background: var(--bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); }
.copy-id-btn { display: inline-flex; align-items: center; padding: 2px 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.copy-id-btn:hover { color: var(--text); }

/* ── ADMIN PANEL ─────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; padding-top: 64px; }
.admin-sidebar { background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.admin-sidebar-header { padding: 18px 14px 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; flex: 1; }
.admin-nav-btn { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: none; border: none; border-radius: 9px; color: var(--text-muted); font-size: 0.88rem; font-weight: 500; cursor: pointer; font-family: inherit; text-align: left; transition: var(--transition); }
.admin-nav-btn:hover { background: var(--surface); color: var(--text); }
.admin-nav-btn.active { background: var(--purple-glow); color: var(--purple-light); }
.admin-main { padding: 28px 32px; overflow-y: auto; max-height: calc(100vh - 64px); }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.admin-tab-header h2 { font-size: 1.3rem; font-weight: 800; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.admin-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.asi { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.asi-purple { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.asi-cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan); }
.asi-green  { background: rgba(34,197,94,0.12);  color: var(--green); }
.asi-pink   { background: rgba(236,72,153,0.12); color: var(--pink); }
.asi-orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.asn { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.asl { font-size: 0.75rem; color: var(--text-muted); }
.admin-section-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 8px 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.015); }
.type-chip { padding: 2px 7px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.type-movie { background: rgba(124,58,237,0.18); color: var(--purple-light); }
.type-show  { background: rgba(6,182,212,0.12); color: var(--cyan); }
.type-game  { background: rgba(34,197,94,0.12); color: var(--green); }
.type-celebrity { background: rgba(251,191,36,0.14); color: #fbbf24; }
.sr-type-celebrity { background: rgba(251,191,36,0.14); color: #fbbf24; }
.audit-action { padding: 2px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.audit-login      { background: rgba(34,197,94,0.12); color: var(--green); }
.audit-logout     { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.audit-download   { background: rgba(6,182,212,0.12); color: var(--cyan); }
.audit-pack_create { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.audit-pack_edit  { background: rgba(251,191,36,0.14); color: #fbbf24; }
.audit-pack_delete { background: rgba(239,68,68,0.12); color: var(--red); }
.audit-admin_promote { background: rgba(124,58,237,0.25); color: var(--purple-light); }
.audit-page_view  { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.user-detail-row { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }
.user-detail-row svg { flex-shrink: 0; opacity: 0.5; }
.audit-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.audit-filters .form-input { background: var(--surface2); max-width: 220px; padding: 7px 11px; font-size: 0.82rem; }
.audit-pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.audit-pagination button { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 0.82rem; transition: var(--transition); }
.audit-pagination button:hover { border-color: var(--purple); color: var(--text); }
.audit-pagination button:disabled { opacity: 0.4; pointer-events: none; }
.audit-pagination span { font-size: 0.82rem; color: var(--text-muted); }
.file-upload-area { border: 2px dashed var(--border); border-radius: 11px; padding: 28px 20px; text-align: center; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); }
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--purple); background: rgba(124,58,237,0.04); }
.file-upload-area .upload-hint { font-size: 0.75rem; }
.file-upload-progress { margin-top: 8px; display: none; }
.file-upload-progress .progress-bar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.file-upload-progress .progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--cyan)); border-radius: 3px; transition: width 0.3s; width: 0%; }
.file-upload-progress .progress-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-align: center; }
.tbl-btn { padding: 3px 9px; border-radius: 5px; font-size: 0.76rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); font-family: inherit; transition: var(--transition); margin-right: 3px; }
.tbl-edit:hover   { color: var(--purple-light); border-color: rgba(124,58,237,0.35); }
.tbl-delete:hover { color: var(--red); border-color: rgba(239,68,68,0.35); }
.admin-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.req { color: var(--red); }
.form-input { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color var(--transition); width: 100%; }
.form-input:focus { border-color: var(--purple); }
.form-textarea { resize: vertical; min-height: 70px; }
.color-wrap { display: flex; gap: 6px; align-items: center; }
.form-color { width: 36px; height: 36px; padding: 2px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; flex-shrink: 0; }
.upload-drop { border: 2px dashed var(--border); border-radius: 11px; padding: 28px 20px; text-align: center; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); }
.upload-drop:hover, .upload-drop.dragover { border-color: var(--purple); background: rgba(124,58,237,0.04); }
.upload-hint { font-size: 0.75rem; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 2px; }
.modal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.modal { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 28px; max-width: 400px; width: 100%; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 1.05rem; margin-bottom: 8px; }
.modal p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-danger { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.25); padding: 9px 18px; border-radius: 9px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* ── LIKE BUTTON & PACK STATS ROW ───────────────────── */
@keyframes like-pop {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.5); }
  50%  { transform: scale(0.85); }
  75%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes count-bump {
  0%   { transform: translateY(0) scale(1);   opacity: 1; }
  35%  { transform: translateY(-5px) scale(1.25); opacity: 1; }
  70%  { transform: translateY(1px) scale(0.95); opacity: 1; }
  100% { transform: translateY(0) scale(1);   opacity: 1; }
}

.pack-stats-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.pack-like-badge,
.pack-dl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); transition: color 0.2s ease; }
.pack-like-badge { cursor: pointer; }
.pack-like-badge:hover { color: #ef4444; }
.pack-like-badge.liked { color: #ef4444; }
.pack-like-badge svg { transition: transform 0.15s ease; will-change: transform; }
.pack-like-badge:active svg { transform: scale(0.82); }
.pack-like-badge svg path { fill: none; transition: fill 0.22s ease; }
.pack-like-badge.liked svg path { fill: currentColor; }
.pack-like-badge.popping svg { animation: like-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.like-count { display: inline-block; transition: color 0.2s ease; }
.like-count.bumping { animation: count-bump 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pack-dl-badge svg { opacity: 0.6; }

.btn-like { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease, border-color 0.2s ease, transform 0.1s ease; }
.btn-like svg { transition: transform 0.15s ease; will-change: transform; }
.btn-like svg path { fill: none; transition: fill 0.22s ease; }
.btn-like.liked { color: #ef4444; border-color: rgba(239,68,68,0.35); }
.btn-like.liked svg path { fill: currentColor; }
.btn-like:hover { color: #ef4444; }
.btn-like:active svg { transform: scale(0.8); }
.btn-like.popping svg { animation: like-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
#likeCount { display: inline-block; min-width: 1ch; }
#likeCount.bumping { animation: count-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── ROLE SELECT & BADGES ───────────────────────────── */
.role-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 0.78rem; color: var(--text); cursor: pointer; font-family: inherit; outline: none; transition: var(--transition); }
.role-select:focus { border-color: var(--purple); }
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.role-admin { background: rgba(124,58,237,0.18); color: var(--purple-light); }
.role-uploader { background: rgba(6,182,212,0.18); color: var(--cyan); }
.role-member { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.role-banned { background: rgba(239,68,68,0.18); color: #ef4444; margin-left: 4px; }
.row-banned { opacity: 0.55; }

/* audit action colors for new types */
.audit-role_change { background: rgba(6,182,212,0.15); color: var(--cyan); }
.audit-user_ban { background: rgba(239,68,68,0.18); color: #ef4444; }
.audit-user_unban { background: rgba(34,197,94,0.18); color: #22c55e; }
.audit-ip_ban { background: rgba(239,68,68,0.18); color: #ef4444; }
.audit-ip_unban { background: rgba(34,197,94,0.18); color: #22c55e; }
.audit-account_create { background: rgba(124,58,237,0.18); color: var(--purple-light); }

/* ── CREATE ACCOUNT PANEL (admin) ────────────────────── */
.create-account-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }

/* ── LOGIN PAGE ──────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 88px 24px 40px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; max-width: 420px; width: 100%; backdrop-filter: blur(16px); }
.login-header { text-align: center; margin-bottom: 28px; }
.login-header svg { margin-bottom: 12px; }
.login-header h2 { font-size: 1.4rem; margin-bottom: 6px; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-muted); font-size: 0.82rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; }
.btn-discord { background: #5865F2; color: #fff; border: none; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; transition: var(--transition); font-family: inherit; text-decoration: none; }
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }

/* ── SUPPORT PAGE ───────────────────────────────────── */
.support-hero { position: relative; padding: 140px 24px 80px; text-align: center; overflow: hidden; }
.support-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.18), transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.12), transparent 60%); z-index: 0; }

/* ── STAFF SHOWCASE ─────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.staff-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.staff-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan)); opacity: 0; transition: var(--transition); }
.staff-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); }
.staff-card:hover::before { opacity: 1; }
.staff-avatar { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 3px solid var(--border); transition: var(--transition); }
.staff-card:hover .staff-avatar { border-color: var(--purple); }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.staff-role-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.staff-role-owner { background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.2)); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.3); }
.staff-role-admin { background: rgba(6,182,212,0.12); color: var(--cyan); border: 1px solid rgba(6,182,212,0.25); }
.staff-discord { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--text-muted); font-size: 0.85rem; font-family: 'Inter', monospace; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: var(--transition); }
.faq-card:hover { border-color: rgba(124,58,237,0.25); }
.faq-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.faq-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .pack-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .category-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 2px; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .admin-main { max-height: none; padding: 18px; }
  .pack-hero-layout { grid-template-columns: 1fr; }
  .pack-hero-thumb { max-width: 260px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 20px 40px; }
  .stat-counters { gap: 28px; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-inner { padding: 60px 20px; }
  .cta-inner { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .type-pills { gap: 5px; }
  .type-pill { padding: 6px 12px; font-size: 0.82rem; }
  .staff-grid { grid-template-columns: 1fr; max-width: 320px; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pack-grid { grid-template-columns: 1fr; }
}
