/* ================================================================
   GAMING BOY YT — ADVANCED STYLE SYSTEM v2
   Dark/Light theme, animations, particles, skeleton loaders,
   carousel, star ratings, notifications, PWA banner
   ================================================================ */

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

/* ── Dark Theme Variables ── */
[data-theme="dark"] {
  --bg-base: #080b10;
  --bg-surface: #0e1219;
  --bg-card: #131922;
  --bg-card-hover: #1a2333;
  --bg-overlay: rgba(8, 11, 16, 0.94);
  --bg-input: #0e1219;

  --accent: #00d97e;
  --accent-dim: #00a85f;
  --accent-glow: rgba(0, 217, 126, 0.2);
  --accent-glow-strong: rgba(0, 217, 126, 0.45);
  --blue: #4f9cf9;
  --blue-glow: rgba(79, 156, 249, 0.2);
  --purple: #a855f7;
  --gold: #f59e0b;
  --red: #ef4444;
  --red-dim: #b91c1c;

  --text-primary: #f0f4ff;
  --text-secondary: #8b9ab5;
  --text-muted: #4a5568;
  --text-accent: #00d97e;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 217, 126, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 8px 48px rgba(0, 0, 0, 0.7);
}

/* ── Light Theme Variables ── */
[data-theme="light"] {
  --bg-base: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;
  --bg-overlay: rgba(240, 244, 248, 0.95);
  --bg-input: #f8fafc;

  --accent: #00a85f;
  --accent-dim: #007d47;
  --accent-glow: rgba(0, 168, 95, 0.15);
  --accent-glow-strong: rgba(0, 168, 95, 0.35);
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --purple: #7c3aed;
  --gold: #d97706;
  --red: #dc2626;
  --red-dim: #b91c1c;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #00a85f;

  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(0, 168, 95, 0.3);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ── Shared Tokens ── */
:root {
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-accent: 0 0 24px var(--accent-glow);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 68px;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-slow), color var(--transition-slow);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: var(--radius-full); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

/* ── Skip Link ── */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000; font-weight: 700;
  padding: 0.75rem 1.5rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999; transition: top var(--transition); font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  width: 0%; z-index: 2000;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { color: var(--text-secondary); }
.accent { color: var(--accent); }
.accent-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mb-1 { margin-bottom:.5rem; } .mb-2 { margin-bottom:1rem; } .mb-3 { margin-bottom:1.5rem; } .mb-4 { margin-bottom:2rem; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent); background: var(--accent-glow);
  border: 1px solid var(--border-accent); padding: 0.3rem 1rem;
  border-radius: var(--radius-full); margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: none;
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: #fff; color: #000; box-shadow: 0 0 40px var(--accent-glow-strong); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover), var(--shadow-accent);
  transform: translateY(-4px);
}
/* Gradient border on hover */
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-glow), transparent, var(--blue-glow));
  opacity: 0; transition: opacity var(--transition-slow); pointer-events: none; z-index: 0;
}
.card:hover::before { opacity: 1; }
.card-body { padding: 1.5rem; position: relative; z-index: 1; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.card-glass {
  background: rgba(19,25,34,0.7); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
[data-theme="light"] .card-glass { background: rgba(255,255,255,0.8); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green { background: rgba(0,217,126,0.12); color: var(--accent); border: 1px solid var(--border-accent); }
.badge-blue { background: rgba(79,156,249,0.12); color: var(--blue); border: 1px solid rgba(79,156,249,0.3); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
.badge-gold { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-gray { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border); }

/* ── Inputs ── */
.input, .select, .textarea {
  width: 100%; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font); font-size: 0.95rem; padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input.error, .textarea.error { border-color: var(--red); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; cursor: pointer; }
.select option { background: var(--bg-card); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--bg-overlay); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border); z-index: 1000; transition: all var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.4); }
.nav-container {
  max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 800; color: var(--text-primary);
  text-decoration: none; letter-spacing: -0.03em; flex-shrink: 0;
}
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-link {
  padding: 0.45rem 0.85rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--accent-glow); color: var(--accent); }
.nav-social { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid var(--border); }
.nav-social-link {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all var(--transition);
  color: var(--text-secondary); border: 1px solid var(--border);
}
.nav-social-link.yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.nav-social-link.dc:hover { background: #5865f2; border-color: #5865f2; color: #fff; }
.nav-social-link.ig:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e6683c; color: #fff; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); transform: rotate(20deg); }

/* Notification Bell */
.notif-wrap { position: relative; }
.notif-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.notif-btn:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-base);
  animation: pulse-badge 2s ease infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.notif-dropdown {
  position: absolute; top: calc(100% + 0.75rem); right: 0;
  width: 320px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover); overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none; transition: all var(--transition);
  transform-origin: top right; z-index: 500;
}
.notif-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 700;
}
.notif-clear-btn { background: none; border: none; color: var(--accent); font-size: 0.8rem; cursor: pointer; font-family: var(--font); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 0.75rem; padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition); text-decoration: none;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: var(--accent-glow); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 0.35rem; }
.notif-item-text { font-size: 0.82rem; }
.notif-item-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.15rem; }
.notif-item-sub { color: var(--text-muted); }
.notif-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 999;
}
.nav-backdrop.show { display: block; }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-h); }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,217,126,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(79,156,249,0.07) 0%, transparent 60%),
    var(--bg-base);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,217,126,0.03) 1px,transparent 1px), linear-gradient(90deg,rgba(0,217,126,0.03) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 5rem 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  border-radius: var(--radius-full); padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 1.5s ease infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.4)} }
.hero-title { font-size: clamp(2.8rem,5vw,4.5rem); font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.04em; }
.hero-tagline { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; font-weight: 500; line-height: 1.5; min-height: 3.5rem; }
.typing-text { color: var(--accent); font-weight: 700; }
.typing-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; animation: blink 0.9s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .stat-num { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); font-family: var(--mono); }
.hero-stat .stat-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-img-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-img-ring { width: 340px; height: 340px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-ring::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--accent), var(--blue), var(--purple), var(--accent));
  animation: spin 6s linear infinite; z-index: 0;
}
.hero-img-ring::after { content: ''; position: absolute; inset: 4px; background: var(--bg-base); border-radius: 50%; z-index: 1; }
.hero-avatar { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; position: relative; z-index: 2; border: 4px solid var(--bg-card); }
.hero-glow { position: absolute; inset: -30%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%); z-index: 0; pointer-events: none; }
/* Floating badges around avatar */
.hero-float-badge {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0.85rem;
  font-size: 0.82rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: var(--shadow-card); z-index: 3; animation: float 3s ease-in-out infinite;
}
.hero-float-badge.badge-dl { top: 15%; left: -15%; animation-delay: 0s; }
.hero-float-badge.badge-ver { bottom: 20%; right: -12%; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Social Bar ── */
.social-bar { padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.social-bar-inner { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.social-card {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full); border: 1.5px solid var(--border);
  background: var(--bg-card); font-weight: 600; font-size: 0.95rem;
  color: var(--text-secondary); transition: all var(--transition); text-decoration: none;
}
.social-card i { font-size: 1.1rem; }
.social-card.yt:hover { background: rgba(255,0,0,0.1); border-color: #ff0000; color: #ff0000; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,0,0,0.15); }
.social-card.dc:hover { background: rgba(88,101,242,0.1); border-color: #5865f2; color: #5865f2; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(88,101,242,0.15); }
.social-card.ig:hover { background: rgba(230,104,60,0.1); border-color: #e6683c; color: #e6683c; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(230,104,60,0.15); }

/* ── About Snippet ── */
.about-snippet {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2.5rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
}
.about-snippet-avatar img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--accent); object-fit: cover; }
.about-snippet p { font-size: 1.05rem; line-height: 1.75; color: var(--text-secondary); }

/* ── Addon Cards ── */
.addon-card { display: flex; flex-direction: column; }
.addon-card-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.addon-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.addon-card:hover .addon-card-thumb img { transform: scale(1.06); }
.addon-badge-overlay { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.addon-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.addon-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.addon-card-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.75rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon-card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.addon-card-meta i { margin-right: 0.2rem; }
.addon-card-versions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.addon-card-footer { display: flex; gap: 0.5rem; }

/* ── Next Update Progress Bar ── */
.update-progress-bar {
  margin: 0.6rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(168,85,247,0.05);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.update-progress-bar:hover { border-color: rgba(168,85,247,0.35); }
.upb-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}
.upb-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}
.upb-ver  { font-weight: 700; font-family: var(--mono); font-size: 0.78rem; }
.upb-pct  { font-weight: 800; font-family: var(--mono); font-size: 0.78rem; min-width: 2.8rem; text-align: right; }
.upb-track {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary, rgba(255,255,255,0.06));
  border-radius: 99px;
  overflow: hidden;
}
.upb-track-lg { height: 10px; border-radius: 99px; overflow: hidden; }
.upb-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;                       /* starts at 0 for animation */
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}
.upb-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-style: italic;
}

/* Full progress panel on detail page */
.update-progress-full .upb-track { background: var(--bg-secondary, rgba(255,255,255,0.06)); }


/* Star Rating */
.star-rating { display: flex; gap: 2px; margin-bottom: 0.6rem; align-items: center; }
.star-rating .star {
  cursor: pointer; font-size: 0.9rem; color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  background: none; border: none; padding: 0;
}
.star-rating .star:hover, .star-rating .star.filled { color: var(--gold); }
.star-rating .star:hover { transform: scale(1.25); }
.star-avg { font-size: 0.78rem; color: var(--text-muted); margin-left: 0.35rem; font-family: var(--mono); }

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-thumb { width: 100%; aspect-ratio: 16/9; }
.skeleton-body { padding: 1.25rem; }
.skeleton-line { height: 14px; border-radius: var(--radius-full); margin-bottom: 0.6rem; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-8 { height: 20px; }

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="scale"].revealed { transform: scale(1); }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom,var(--accent),var(--blue),transparent); }
.timeline-item { display: flex; gap: 1.5rem; padding-bottom: 1.75rem; position: relative; }
.timeline-dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg-base); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1; margin-top: 0.15rem;
  box-shadow: 0 0 16px var(--accent-glow); font-size: 0.7rem; color: #000; font-weight: 700;
}
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; flex: 1; transition: border-color var(--transition); }
.timeline-content:hover { border-color: var(--border-accent); }
.timeline-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.timeline-addon-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.timeline-date { font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono); }
.timeline-summary { font-size: 0.875rem; color: var(--text-secondary); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,217,126,0.1) 0%, rgba(79,156,249,0.07) 100%);
  border: 1px solid var(--border-accent); border-radius: var(--radius-xl);
  padding: 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%); pointer-events: none; }
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p { margin-bottom: 1.75rem; font-size: 1.05rem; }

/* ── Recently Viewed ── */
.recently-viewed { display: flex; gap: 1rem; flex-wrap: wrap; }
.recently-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.65rem 1rem;
  text-decoration: none; color: var(--text-primary);
  transition: all var(--transition); flex: 1; min-width: 180px;
}
.recently-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.recently-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.recently-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.recently-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ── Projects ── */
.projects-header { padding: 6rem 0 2rem; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,217,126,0.08) 0%, transparent 60%); border-bottom: 1px solid var(--border); text-align: center; }
.search-filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; align-items: center; }
.search-wrap { flex: 1; min-width: 220px; position: relative; }
.search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }
.search-input { padding-left: 2.75rem; }
/* Live search dropdown */
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  z-index: 200; overflow: hidden; max-height: 320px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: all var(--transition);
}
.search-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; cursor: pointer; text-decoration: none;
  transition: background var(--transition); border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-thumb { width: 40px; height: 28px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.search-result-name { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.search-result-cat { font-size: 0.75rem; color: var(--text-muted); }
.filter-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.45rem 1rem; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all var(--transition); font-family: var(--font);
}
.filter-tab.active, .filter-tab:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.no-results { text-align: center; padding: 4rem; color: var(--text-muted); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; }

/* ── Project Detail ── */
.detail-header { padding: 6rem 0 3rem; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0,217,126,0.1) 0%, transparent 60%); border-bottom: 1px solid var(--border); }
.detail-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; margin-bottom: 1.5rem; transition: color var(--transition); }
.detail-back:hover { color: var(--accent); }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-thumb { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .addon-title { font-size: 2rem; margin-bottom: 0.5rem; }
.detail-info .addon-desc-full { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; }
.detail-stats { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.detail-stat { display: flex; flex-direction: column; }
.detail-stat .stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); font-family: var(--mono); }
.detail-stat .stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.like-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full); background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.like-btn:hover, .like-btn.liked { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #ef4444; }
.share-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 0.75rem; overflow: hidden; }
.carousel-item { flex: 0 0 calc(50% - 0.375rem); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; cursor: pointer; position: relative; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.carousel-item:hover img { transform: scale(1.06); }
.carousel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.carousel-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all var(--transition);
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: all var(--transition);
}
.carousel-dot.active { background: var(--accent); width: 20px; border-radius: var(--radius-full); }

.version-table { width: 100%; border-collapse: collapse; }
.version-table th, .version-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.version-table th { font-weight: 700; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-surface); }
.version-table tr:hover td { background: var(--bg-card-hover); }
.version-table .ver-badge { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); }

/* ── Idea Submission ── */
.idea-page { padding: 6rem 0; min-height: 100vh; }
.idea-container { max-width: 540px; margin: 0 auto; width: 100%; padding: 0 1.25rem; }
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 2.5rem; }
.step-dot {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; border: 2px solid var(--border); color: var(--text-muted);
  transition: all var(--transition); background: var(--bg-card); flex-shrink: 0;
}
.step-dot.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.step-dot.done { background: var(--accent); border-color: var(--accent); color: #000; }
.step-line { flex: 1; height: 2px; background: var(--border); transition: background var(--transition); }
.step-line.done { background: var(--accent); }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; animation: fadeIn 0.3s ease; }
.otp-inputs { display: flex; gap: 0.6rem; justify-content: center; margin: 1.5rem 0; }
.otp-input {
  width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 700; font-family: var(--mono);
  border-radius: var(--radius); background: var(--bg-surface); border: 2px solid var(--border);
  color: var(--text-primary); outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.otp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.otp-timer { text-align: center; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.otp-resend { text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.otp-resend button { background: none; border: none; color: var(--accent); cursor: pointer; font-family: var(--font); font-size: 0.85rem; text-decoration: underline; }
.otp-resend button:disabled { color: var(--text-muted); text-decoration: none; cursor: not-allowed; }
.success-screen { text-align: center; padding: 3rem 1rem; animation: bounceIn 0.5s ease; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-glow); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Support ── */
.support-page { padding: 6rem 0; }
.ticket-board { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; }
.ticket-result { padding: 1rem; border-radius: var(--radius); margin-top: 1rem; display: none; }
.ticket-result.show { display: block; }
.ticket-result.found { background: var(--accent-glow); border: 1px solid var(--border-accent); }
.ticket-result.not-found { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); }
.status-badge { font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); text-transform: uppercase; }
.status-open { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.status-review { background: rgba(79,156,249,0.15); color: var(--blue); border: 1px solid rgba(79,156,249,0.3); }
.status-resolved { background: rgba(0,217,126,0.15); color: var(--accent); border: 1px solid var(--border-accent); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.5rem; }
.faq-question {
  padding: 1rem 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.95rem; color: var(--text-primary);
  background: var(--bg-card); transition: background var(--transition);
  border: none; width: 100%; text-align: left; font-family: var(--font);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question i { transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text-secondary); border-top: 1px solid var(--border); line-height: 1.7; }

/* ── About ── */
.about-page { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-avatar-ring { width: 180px; height: 180px; margin: 0 auto 1.5rem; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.about-avatar-ring::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--accent),var(--blue),var(--accent)); animation: spin 5s linear infinite; }
.about-avatar-ring::after { content: ''; position: absolute; inset: 4px; background: var(--bg-base); border-radius: 50%; }
.about-avatar-ring img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.about-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: all var(--transition); }
.about-stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.about-stat-val { font-size: 1.6rem; font-weight: 900; color: var(--accent); font-family: var(--mono); }
.about-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--accent); }
.contact-link i { width: 18px; text-align: center; }
.yt-embed { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.yt-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Admin ── */
.admin-page { padding: 6rem 0; min-height: 100vh; }
.admin-login { max-width: 400px; margin: 0 auto; }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: all var(--transition); }
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.stat-card .stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); font-family: var(--mono); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); }
.data-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { padding: 0.85rem 1rem; text-align: left; background: var(--bg-surface); font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.85rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }
.status-select { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.3rem 0.75rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: var(--font); color: var(--text-primary); outline: none; }
.tab-buttons { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab-btn { padding: 0.55rem 1.25rem; border-radius: var(--radius-full); border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: var(--font); }
.tab-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
/* Admin Chart */
.admin-chart-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
#admin-chart { width: 100%; height: 180px; }

/* ── Privacy ── */
.privacy-page { padding: 6rem 0; max-width: 760px; margin: 0 auto; }
.privacy-page h1 { margin-bottom: 0.5rem; }
.privacy-page .updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; font-family: var(--mono); }
.privacy-page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.privacy-page p, .privacy-page li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }
.privacy-page ul { padding-left: 1.5rem; margin-top: 0.5rem; }
.privacy-page li { margin-bottom: 0.35rem; }

/* ── 404 ── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.page-404 .err-num { font-size: 8rem; font-weight: 900; color: var(--accent); line-height: 1; opacity: 0.3; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2000; background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  max-width: 560px; width: calc(100% - 2rem); box-shadow: var(--shadow-hover);
  display: none; align-items: center; gap: 1rem; animation: slideUp 0.4s ease;
}
.cookie-banner.show { display: flex; }
.cookie-content { display: flex; align-items: center; gap: 1rem; flex: 1; flex-wrap: wrap; }
.cookie-icon { font-size: 1.5rem; }
.cookie-content p { font-size: 0.88rem; color: var(--text-secondary); flex: 1; }
.btn-cookie { background: var(--accent); color: #000; border: none; border-radius: var(--radius-full); padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: var(--font); transition: background var(--transition); }
.btn-cookie:hover { background: #fff; }

/* ── PWA Banner ── */
.pwa-banner {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 1800;
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  max-width: 320px; box-shadow: var(--shadow-hover);
  animation: slideUp 0.4s ease;
}
.pwa-banner-content { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.85rem; }
.pwa-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.pwa-banner-content strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.pwa-banner-content p { font-size: 0.8rem; color: var(--text-muted); }
.pwa-banner-actions { display: flex; gap: 0.5rem; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.4rem; font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
  transform: translateY(120%); transition: transform var(--transition-slow);
  z-index: 3000; min-width: 220px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.6rem;
}
.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--red); }
.toast.info { border-color: var(--blue); }

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed; bottom: 2rem; left: 2rem; width: 48px; height: 48px;
  background: transparent; border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 999; transition: all var(--transition);
}
.scroll-top.show { display: flex; }
.scroll-top-circle { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-top i { position: relative; z-index: 1; color: var(--accent); font-size: 0.85rem; transition: transform var(--transition); }
.scroll-top:hover i { transform: translateY(-2px); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; flex-direction: column; gap: 1rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
#lb-img { max-width: 90vw; max-height: 75vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); font-size: 1.1rem; transition: all var(--transition); }
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.lightbox-dots { display: flex; gap: 0.5rem; }
.lightbox-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all var(--transition); }
.lightbox-dot.active { background: var(--accent); width: 20px; border-radius: var(--radius-full); }

/* ── Spinner ── */
.spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3rem; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

/* ── Footer ── */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 800; color: var(--text-primary); text-decoration: none; margin-bottom: 0.75rem; }
.footer-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--accent); object-fit: cover; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.85rem; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-secondary); transition: all var(--transition); text-decoration: none; }
.social-pill.yt:hover { background: rgba(255,0,0,0.1); border-color: #ff0000; color: #ff0000; }
.social-pill.dc:hover { background: rgba(88,101,242,0.1); border-color: #5865f2; color: #5865f2; }
.social-pill.ig:hover { background: rgba(230,104,60,0.1); border-color: #e6683c; color: #e6683c; }
.footer-nav h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); }

/* ── Keyframes ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes bounceIn { 0%{opacity:0;transform:scale(0.7)} 70%{transform:scale(1.08)} 100%{opacity:1;transform:scale(1)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
@keyframes slideUp { from{opacity:0;transform:translate(-50%,20px)} to{opacity:1;transform:translate(-50%,0)} }
.page-enter { animation: fadeUp 0.35s ease; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-img-wrap { display: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-snippet { grid-template-columns: 1fr; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-overlay); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem; display: none; z-index: 1001;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
  .nav-social { border-left: none; border-top: 1px solid var(--border); margin-left: 0; padding-left: 0; padding-top: 0.75rem; width: 100%; }
  .hamburger { display: flex; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .notif-dropdown { right: -4rem; width: 280px; }
  .pwa-banner { right: 1rem; left: 1rem; max-width: none; bottom: 5rem; }
}
@media (max-width: 480px) {
  .otp-input { width: 40px; height: 50px; font-size: 1.2rem; }
  .step-card { padding: 1.5rem; }
  .cta-banner { padding: 2rem 1.25rem; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .carousel-item { flex: 0 0 100%; }
}

/* ── CurseForge HTML Override ── */
#detail-description-box {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
#detail-description-box img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  display: block;
}
#detail-description-box iframe, 
#detail-description-box video {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
#detail-description-box h1, 
#detail-description-box h2, 
#detail-description-box h3, 
#detail-description-box h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}
#detail-description-box p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
#detail-description-box ul, 
#detail-description-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
#detail-description-box li {
  margin-bottom: 0.4rem;
}
#detail-description-box a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}
#detail-description-box a:hover {
  color: #fff;
}
#detail-description-box hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Developer Tester Terminal ── */
.test-terminal {
  background: #0b0f19;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 1rem;
  height: 250px;
  overflow-y: auto;
  color: #c9d1d9;
}
.test-terminal .log-line {
  margin-bottom: 0.45rem;
  line-height: 1.5;
  word-break: break-all;
}
.test-terminal .log-info { color: #58a6ff; }
.test-terminal .log-success { color: #57ab5a; }
.test-terminal .log-error { color: #f85149; }
.test-terminal .log-warn { color: #d29922; }
.test-terminal .log-time { color: #8b949e; margin-right: 0.5rem; }
