/* =============================================================================
   SCRIPT HUB | LUNA WHITE ANIME FANTASY DESIGN SYSTEM
   Theme: Luna White (Pearl Porcelain, Electric Violet, Celestial Cyan, Rose Gold)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Syne:wght@700;800&display=swap');

:root {
  /* Typography Variables */
  --font-brand: 'Syne', sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', Consolas, monospace;
  /* Surface & Background */
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
                 radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.09) 0%, transparent 45%),
                 radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 50%),
                 #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;

  /* Accent & Gradients */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border: rgba(226, 232, 240, 0.9);
  --border-glow: rgba(124, 58, 237, 0.35);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -4px rgba(124, 58, 237, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 45px -8px rgba(124, 58, 237, 0.16), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 22px 50px -10px rgba(124, 58, 237, 0.22), 0 0 25px rgba(6, 182, 212, 0.15);

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-w: 1240px;
  --nav-h: 74px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c4b5fd, #93c5fd);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #60a5fa);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--primary-gradient);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Floating Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-icon-success { color: var(--accent-emerald); font-size: 1.2rem; }
.toast-icon-error   { color: var(--accent-pink); font-size: 1.2rem; }

/* Sticky Glass Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.nav-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.nav-pill {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: rgba(241, 245, 249, 0.8);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .nav-pill { display: flex; }
}
.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--primary);
  background: #ffffff;
}
.nav-link.active {
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-get-key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  transition: all 0.25s ease;
}
.btn-get-key:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}
@media (min-width: 900px) {
  .hamburger { display: none; }
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  z-index: 960;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* Sections Common */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-announce {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}
.hero-announce .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: badge-live-pulse 1.8s infinite;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-sub);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  transition: all 0.3s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Stats HUD */
.stats-wrap {
  margin-top: 4.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Universal Script Box */
.loader-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.code-shell {
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  margin-bottom: 1.5rem;
}
.code-shell-header {
  background: #1e293b;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-shell-dots {
  display: flex;
  gap: 6px;
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.code-shell-body {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.94rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow-x: auto;
}
.code-fn { color: #38bdf8; font-weight: 600; }
.code-str { color: #f472b6; }
.loader-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search & Filter Bar */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: center;
}
.search-box-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
  background: #ffffff;
}
.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-pill {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sub);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  color: var(--primary);
  background: #ffffff;
}
.cat-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

/* Game Catalog Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.game-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.game-card-modern:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
  background: #ffffff;
}
.game-banner {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.game-card-modern:hover .game-banner img {
  transform: scale(1.06);
}
.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.status-live {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}
.status-updated {
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
}
.status-testing {
  background: rgba(245, 158, 11, 0.9);
  color: #ffffff;
}
.game-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.game-title-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}
.game-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.game-summary {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}
.game-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-sub);
}
.feature-item i {
  color: var(--primary);
  font-size: 0.78rem;
}
.btn-view-detail {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-view-detail:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* Ethereal Anime Filigree Rose Dividers & Edges */
.filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem auto 1.25rem;
  width: 100%;
  max-width: 420px;
  pointer-events: none;
  user-select: none;
}
.filigree-img {
  width: 100%;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.28)) drop-shadow(0 0 12px rgba(6, 182, 212, 0.22));
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.filigree-divider:hover .filigree-img {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 22px rgba(124, 58, 237, 0.45)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.35));
}
.filigree-crown {
  display: flex;
  justify-content: center;
  margin-bottom: -16px;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.filigree-crown-img {
  max-width: 320px;
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.35)) drop-shadow(0 0 10px rgba(6, 182, 212, 0.25));
}

/* Games Catalog Pagination */
.pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pagination-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.page-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px -2px rgba(124, 58, 237, 0.4);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.page-nav-btn {
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Modal Pop-up */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  background: #ffffff;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modal-scale-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-banner {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.modal-banner-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: #ffffff;
  transform: rotate(90deg);
}
.modal-body {
  padding: 1.75rem;
}
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.modal-tab-btn {
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.modal-tab-content {
  display: none;
}
.modal-tab-content.active {
  display: block;
}

/* Live Key Checker Box */
.key-checker-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.checker-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-direction: column;
}
@media (min-width: 600px) {
  .checker-form { flex-direction: row; }
}
.checker-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}
.checker-input:focus {
  border-color: var(--primary);
}
.btn-checker {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.2s ease;
}
.btn-checker:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}
.checker-result-box {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Changelog Timeline */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px dashed rgba(124, 58, 237, 0.3);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}
.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
