/* ==========================================================================
   TiemVH Design System - Dark Gaming Theme (AOW.VN Style)
   Accent: Cyber Blue #00d4ff → #0066ff
   Font: Be Vietnam Pro
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
  /* Colors - Background */
  --bg-body: #0a0a0f;
  --bg-header: rgba(10, 10, 15, 0.92);
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --bg-surface: #15151f;
  --bg-input: #1a1a28;
  --bg-sidebar: #111119;
  --bg-footer: #08080c;
  --bg-modal: rgba(0, 0, 0, 0.85);
  --bg-category-bar: #0e0e16;

  /* Colors - Accent */
  --accent-primary: #00d4ff;
  --accent-secondary: #0066ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #0066ff);
  --accent-gradient-hover: linear-gradient(135deg, #00e5ff, #1a75ff);
  --accent-glow: rgba(0, 212, 255, 0.3);
  --accent-subtle: rgba(0, 212, 255, 0.08);

  /* Colors - Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --text-accent: #00d4ff;
  --text-on-accent: #000000;

  /* Colors - Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 212, 255, 0.3);
  --border-input: rgba(255, 255, 255, 0.1);

  /* Colors - Status */
  --color-success: #00e676;
  --color-warning: #ffab00;
  --color-error: #ff4e6a;
  --color-info: #00d4ff;

  /* Typography */
  --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --container-width: 1280px;
  --sidebar-width: 320px;
  --header-height: 64px;
  --category-height: 44px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-lightbox: 1100;
  --z-toast: 1200;
}

/* --- BASE RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

::selection {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #2a2a3a;
  border-radius: 4px;
}

@keyframes highlightBlink {
  0% { background-color: rgba(0, 212, 255, 0.4); }
  50% { background-color: rgba(0, 212, 255, 0.1); }
  100% { background-color: transparent; }
}
.highlight-new {
  animation: highlightBlink 3s ease-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4a;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- HEADER / NAVBAR --- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-md);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

.header-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.header-logo .logo-slogan {
  display: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: -2px;
}

@media (min-width: 1024px) {
  .header-logo .logo-slogan {
    display: block;
  }
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 18px 9px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18);
}

.header-search .search-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 2;
}

.header-search .search-btn:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
}

/* Search Dropdown - Wide Cyber Glassmorphism */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 480px;
  background: rgba(12, 12, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 212, 255, 0.12);
  overflow: hidden;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
}

@media (max-width: 576px) {
  .search-dropdown {
    min-width: 100%;
  }
}

.search-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(4px);
}

.search-item-img {
  width: 46px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-version {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.search-no-result {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-dropdown-footer {
  padding: 10px 14px;
  background: rgba(0, 212, 255, 0.05);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.search-dropdown-footer:hover {
  background: rgba(0, 212, 255, 0.15);
}

/* Nav Links */
.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-nav a.active {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  font-weight: 700;
}


/* Nav Dropdown for Thể Loại */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.nav-dropdown-wrapper:hover .nav-caret {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

/* --- CLEAN CYBER BLUE DROPDOWN --- */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(12, 12, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 212, 255, 0.1);
  padding: 8px;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  display: block;
}

.dropdown-header-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-header-link:hover {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-primary);
}

.dropdown-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.genres-list-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-list-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genre-list-link:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  padding-left: 16px;
}

/* --- CYBER GLASS BREADCRUMB --- */
.breadcrumb-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(10, 10, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 212, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 100%;
  flex-wrap: wrap;
}

.breadcrumb-glass a {
  color: #f0f0f5 !important;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.breadcrumb-glass a:hover {
  color: var(--accent-primary) !important;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.breadcrumb-separator {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb-current {
  color: var(--accent-primary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* User Menu */
.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Followed games and persistent update notifications */
.game-follow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 22px;
}
.game-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 212, 255, .35);
  border-radius: var(--radius-full);
  background: rgba(0, 212, 255, .06);
  color: var(--accent-primary);
  font: 600 .85rem var(--font-primary);
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.game-follow-btn:hover {
  background: rgba(0, 212, 255, .14);
  border-color: var(--accent-primary);
  box-shadow: 0 0 18px rgba(0, 212, 255, .12);
}
.game-follow-btn.is-following {
  color: #71e8b3;
  border-color: rgba(113, 232, 179, .35);
  background: rgba(113, 232, 179, .08);
}
.game-follow-hint { color: var(--text-secondary); font-size: .78rem; }
.notification-wrapper { position: relative; }
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-input);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}
.notification-bell:hover, .notification-bell[aria-expanded="true"] {
  color: var(--accent-primary);
  border-color: var(--border-hover);
  background: var(--accent-subtle);
}
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-error);
  color: white;
  border: 2px solid var(--bg-body);
  font: 700 10px var(--font-primary);
}
.notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  background: #12121c;
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
  z-index: 1100;
}
.notification-panel[hidden] { display: none; }
.notification-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px;
}
.notification-heading h2 { font-size: 1.05rem; margin: 0 0 4px; }
.notification-heading p { font-size: .78rem; color: var(--text-secondary); margin: 0; }
.notification-read-all {
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--accent-primary);
  font: 600 .75rem var(--font-primary);
  white-space: nowrap;
  cursor: pointer;
}
.notification-items { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; }
.notification-item {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 16px 20px;
  border: 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
  text-align: left;
  font-family: var(--font-primary);
  cursor: pointer;
}
.notification-item.is-unread { background: rgba(0,212,255,.045); }
.notification-item:hover { background: rgba(0,212,255,.09); }
.notification-game-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
}
.notification-copy { display: grid; gap: 4px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.notification-copy strong { font-size: .85rem; line-height: 1.5; }
.notification-version { font-size: .73rem; color: var(--accent-primary); }
.notification-message {
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notification-copy time { font-size: .7rem; color: var(--text-secondary); margin-top: 4px; }
.notification-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary); flex-shrink: 0; margin-top: 6px; }
.notification-footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px; font-size: .8rem; color: var(--accent-primary); border-top: 1px solid var(--border-color); }
.notification-empty { display: grid; justify-items: center; gap: 12px; padding: 32px 24px; text-align: center; }
.notification-empty > i { font-size: 1.8rem; color: var(--accent-primary); }
.notification-empty p { font-size: .85rem; color: var(--text-secondary); }
.notification-page { max-width: 760px; margin: 32px auto; }
.notification-page > .notification-heading { padding: 24px 0; }
.notification-page-list { border: 1px solid var(--border-input); border-radius: 16px; background: var(--bg-card); overflow: hidden; }
.game-follow-btn:focus-visible, .notification-wrapper button:focus-visible, .notification-wrapper a:focus-visible, .notification-page button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
@media (max-width: 767px) {
  .game-follow-row { justify-content: center; }
  .notification-panel { position: fixed; top: calc(var(--header-height) + 10px); right: 12px; width: calc(100vw - 24px); }
  .notification-heading { padding: 16px; }
  .notification-item { padding: 14px 16px; }
  .header-user { gap: 8px; }
  .header-user .user-pill { padding: 0 9px; }
  .header-user .user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 575px) {
  .header > .container { gap: 8px; }
  .header .header-logo { gap: 6px; }
  .header .header-logo img { max-width: 36px; object-fit: contain; }
  .header .header-search { min-width: 0; }
  .header .header-search input { min-width: 0; padding-right: 8px; }
  .header-user .user-pill .user-name, .header-user .user-pill .user-dropdown-caret { display: none; }
  .header-user .user-pill { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .header .mobile-menu-btn { flex-shrink: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .header .header-nav { display: none; }
  .header .mobile-menu-btn { display: flex; flex-shrink: 0; }
  .header .header-search { min-width: 0; }
}

.user-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  color: inherit;
  white-space: nowrap;
}

.user-pill:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

.user-pill .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.user-dropdown-caret {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  margin-left: 2px;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  width: max-content;
  min-width: 224px;
  max-width: calc(100vw - 32px);
  background: rgba(12, 12, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 212, 255, 0.15);
  overflow: hidden;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
  padding: 6px;
}

.user-dropdown-menu.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dropdown-item > i {
  flex: 0 0 18px;
  text-align: center;
}

.dropdown-item:hover, .dropdown-item:focus-visible {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-primary);
}

.dropdown-item.text-danger {
  color: var(--color-error);
}

.dropdown-item.text-danger:hover {
  background: rgba(255, 59, 48, 0.15);
  color: #ff453a;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.role-admin {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
}

.role-user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
}

.btn-login:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
  color: var(--text-on-accent);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-body);
  z-index: var(--z-dropdown);
  padding: var(--space-lg);
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

/* --- CATEGORY NAV BAR --- */
.category-bar {
  background: var(--bg-category-bar);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar .container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--category-height);
  white-space: nowrap;
}

.category-bar a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-bar a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.category-bar a.active {
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

/* --- HERO CAROUSEL --- */
.home-vote-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--home-vote-rgb, 0, 212, 255), 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 8% 20%, rgba(var(--home-vote-rgb, 0, 212, 255), 0.08), transparent 32%),
    linear-gradient(120deg, rgba(20, 24, 32, 0.97), rgba(16, 18, 26, 0.98));
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
}

.home-vote-spotlight::after {
  content: '';
  position: absolute;
  top: -70px;
  right: 16%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(var(--home-vote-rgb, 0, 212, 255), 0.08);
  filter: blur(25px);
  pointer-events: none;
}

.home-vote-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--home-vote-accent, var(--accent-primary));
  background: rgba(var(--home-vote-rgb, 0, 212, 255), 0.09);
  border: 1px solid rgba(var(--home-vote-rgb, 0, 212, 255), 0.18);
  font-size: 1.15rem;
}

.home-vote-copy {
  position: relative;
  z-index: 1;
}

.home-vote-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #f4f7fb;
  font-weight: 750;
}

.home-vote-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-vote-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.home-vote-stats span {
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  color: #b9c2cf;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.home-vote-stats strong {
  display: block;
  color: var(--home-vote-accent, var(--accent-primary));
  font-size: 1.1rem;
  font-weight: 800;
}

.home-vote-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 130px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--home-vote-accent, var(--accent-primary));
  background: rgba(var(--home-vote-rgb, 0, 212, 255), 0.08);
  border: 1px solid rgba(var(--home-vote-rgb, 0, 212, 255), 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-vote-cta:hover {
  color: var(--text-primary);
  background: rgba(var(--home-vote-rgb, 0, 212, 255), 0.14);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(var(--home-vote-rgb, 0, 212, 255), 0.1);
}

.admin-table-wrapper.admin-game-list {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 186, 212, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, #141923, #10131c 65%);
  box-shadow: 0 12px 35px rgba(0,0,0,0.16);
}
.admin-game-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 24px 24px 20px;
}
.admin-game-list-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-game-list-heading .section-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.025em; }
.admin-game-list-title p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.75rem; }
.admin-game-list-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: var(--accent-primary); background: rgba(0, 212, 255, 0.07); border: 1px solid rgba(0, 212, 255, 0.1); }
.admin-game-count { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }
.admin-game-count strong { color: var(--text-primary); font-weight: 700; }
.admin-game-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 12px 10px;
  margin: 0;
  padding: 0 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-game-filters > div { min-width: 0; }
.admin-game-search { grid-column: 1 / 4; grid-row: 1; }
.admin-game-filter-field { position: relative; }
.admin-game-filter-field > i { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--text-muted); font-size: 0.72rem; pointer-events: none; }
.admin-game-filter-field > .filter-chevron { right: 12px; left: auto; font-size: 0.55rem; opacity: 0.7; }
.admin-game-filters .form-input {
  width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 30px 0 34px;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 9px;
  background: rgba(255,255,255,0.02); color: #afb9cc;
  font-size: 0.76rem; text-overflow: ellipsis; transition: border-color 150ms ease, background 150ms ease;
}
.admin-game-filters select.form-input { appearance: none; cursor: pointer; }
.admin-game-filters select option { color: var(--text-primary); background: var(--bg-card, #161923); }
.admin-game-filters .admin-game-search .form-input { height: 46px; background: #0c1018; padding-right: 12px; font-size: 0.86rem; border-color: rgba(255,255,255,0.1); }
.admin-game-filters .form-input:hover { border-color: rgba(255,255,255,0.18); }
.admin-game-filters .form-input:focus { outline: none; border-color: rgba(0,212,255,0.5); box-shadow: 0 0 0 3px rgba(0,212,255,0.06); }
.admin-game-filter-field.is-filtered .form-input { border-color: rgba(0,212,255,0.25); background: rgba(0,212,255,0.045); color: var(--text-primary); }
.admin-game-filter-field.is-filtered > i { color: var(--accent-primary); }
.admin-game-filter-actions { grid-column: 4; grid-row: 1; display: flex; gap: 6px; }
.admin-game-filter-actions .btn { height: 42px; padding: 0 14px; border-radius: 10px; font-size: 0.76rem; box-shadow: none; }
.admin-game-filter-actions .btn-primary { height: 46px; padding: 0 23px; background: #bceef7; color: #153b45; border: 1px solid #bceef7; }
.admin-game-filter-actions .btn-primary:hover { background: rgba(0,212,255,0.2); transform: none; box-shadow: none; }
.admin-game-filter-actions .admin-game-filter-reset { width: 38px; padding: 0; color: var(--text-muted); border: 1px solid transparent; background: transparent; }
.admin-game-filter-actions .admin-game-filter-reset:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.admin-game-sort-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; padding: 0; border: 0; }
.admin-game-sort-tabs legend { float: left; padding: 9px 14px 9px 0; color: #8491a6; font-size: 0.75rem; }
.admin-game-sort-tabs label { position: relative; cursor: pointer; }
.admin-game-sort-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.admin-game-sort-tabs span { display: block; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; color: #9ba9bd; font-size: 0.75rem; background: rgba(255,255,255,0.025); }
.admin-game-sort-tabs input:checked + span { color: #bceef7; border-color: rgba(100,215,240,0.3); background: rgba(100,215,240,0.1); }
.admin-game-sort-tabs input:focus-visible + span { outline: 2px solid #bceef7; outline-offset: 2px; }
.admin-game-filter-status { padding: 0 24px; margin: 8px 0; color: #aabbd0; font-size: 0.75rem; }
.admin-game-filter-status:empty { display: none; }
.creator-bulk-bar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 24px; padding: 12px 16px; border: 1px solid #247286; border-radius: 12px; background: #14252f; box-shadow: 0 6px 20px #0005; color: #dcf7ff; font-size: 0.85rem; }
.creator-bulk-bar[hidden] { display: none; }
.creator-bulk-bar .btn:disabled { opacity: .6; cursor: wait; }
.admin-game-list[aria-busy="true"] .admin-game-table-scroll { opacity: 0.45; pointer-events: none; }
.admin-game-table-scroll { overflow-x: auto; scrollbar-width: thin; transition: opacity 150ms ease; }
.admin-game-list .admin-table { min-width: 880px; }
.admin-game-list .admin-table th { font-size: 0.68rem; color: #8491a6; background: rgba(0,0,0,0.15); padding: 13px 16px; text-transform: none; letter-spacing: 0; border-color: rgba(255,255,255,0.06); }
.admin-game-list .admin-table td { padding: 14px 16px; font-size: 0.8rem; border-color: rgba(255,255,255,0.055); }
.admin-game-list .admin-table th:first-child, .admin-game-list .admin-table td:first-child { padding-left: 24px; }
.admin-game-list .admin-table td:last-child { padding-right: 24px; }
.admin-game-list .admin-table tr:hover td { background: rgba(141,202,230,0.035); }
.admin-game-identity { display: flex; align-items: center; gap: 14px; min-width: 245px; max-width: 420px; color: #e3e9f4; }
.admin-game-identity img { width: 46px; height: 61px; flex-shrink: 0; border-radius: 7px; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,0.2); }
.admin-game-identity strong { display: block; font-size: 0.84rem; line-height: 1.5; font-weight: 600; }
.admin-game-identity small { display: block; margin-top: 5px; color: #738199; font-size: 0.66rem; }
.admin-game-identity-copy { min-width: 0; }
.admin-game-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.admin-game-meta small { margin: 0; }
.admin-game-version { display: inline-block; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.04); color: #a5b1c7; font-size: 0.64rem; overflow-wrap: anywhere; }
.admin-game-list .admin-table th { white-space: nowrap; }
.admin-game-list .admin-game-number { font-variant-numeric: tabular-nums; color: #aebacf; font-size: 0.8rem; }
.admin-game-appid-cell { white-space: nowrap; }
.admin-steam-appid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  padding: 7px 9px;
  border: 1px solid rgba(74, 182, 209, 0.2);
  border-radius: 8px;
  background: rgba(74, 182, 209, 0.06);
  color: #8fd3e4;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-steam-appid:hover { background: rgba(74, 182, 209, 0.13); border-color: rgba(74, 182, 209, 0.38); color: #d9f8ff; }
.admin-steam-appid.is-copied { color: #9ee2b1; border-color: rgba(79, 197, 113, 0.32); background: rgba(79, 197, 113, 0.09); }
.admin-game-no-appid { color: #5e6b7e; }
.admin-game-unassigned { display: inline-flex; align-items: center; gap: 6px; color: #a69b81; font-size: 0.66rem; margin-bottom: 7px; }
.admin-game-list select { color-scheme: dark; }
.admin-game-list select option,
.admin-game-list select optgroup {
  background-color: #181e29;
  color: #e3e9f4;
}
.admin-game-list select option:disabled { color: #91a0b7; }
.admin-game-list .game-creator-form { gap: 5px; }
.admin-game-list .game-creator-form .form-input { background: rgba(0,0,0,0.15); border-color: rgba(255,255,255,0.07); height: 32px; padding: 5px 8px; width: 150px; min-width: 0; font-size: 0.69rem; border-radius: 6px; }
.admin-game-list .game-creator-form .btn { width: 32px; height: 32px; padding: 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: #9bacc3; }
.admin-game-list .game-creator-current strong { font-size: 0.76rem; font-weight: 500; color: #c3ccdc; }
.admin-game-list .game-creator-current span { font-size: 0.65rem; }
.admin-game-row-actions { display: flex; gap: 6px; align-items: center; }
.admin-game-row-actions form { margin: 0; }
.admin-game-row-actions .btn[data-game-visibility] { width: auto; min-width: 96px; padding: 0 8px; white-space: nowrap; gap: 6px; }
.admin-game-row-actions .btn[data-visible="0"] { color: #e6b775; background: #e6b7750d; }
.admin-game-row-actions .btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.07); color: #8898b0; box-shadow: none; font-size: 0.75rem; }
.admin-game-row-actions .btn:hover { background: rgba(255,255,255,0.07); color: #edf5ff; transform: none; box-shadow: none; }
.admin-game-row-actions .btn-primary { color: #85c6d8; background: rgba(74,182,209,0.05); }
.admin-game-row-actions .btn-danger:hover { color: #ff9797; background: rgba(255,88,88,0.08); border-color: rgba(255,88,88,0.2); }
.admin-game-empty { padding: 36px 16px !important; text-align: center; color: var(--text-muted); }
@media (max-width: 1350px) {
  .admin-game-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
@media (max-width: 950px) {
  .admin-game-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-game-search { grid-column: 1 / -1; }
  .admin-game-filter-actions { grid-column: auto; grid-row: auto; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .admin-game-list-heading { align-items: flex-start; gap: 8px; padding: 18px 16px; }
  .admin-game-filters { padding: 0 16px 16px; }
  .admin-game-list-icon { display: none; }
  .admin-game-list-heading .section-title { font-size: 1rem; }
  .admin-game-list-title p { max-width: 150px; font-size: 0.7rem; }
  .admin-game-count { padding: 5px 7px; font-size: 0.65rem; }
  .admin-game-filters .form-input { font-size: 0.72rem; }
  .admin-game-filter-actions .btn-primary { flex: 1; justify-content: center; }
}

.seasonal-showcase {
  width: 100%;
  margin: var(--space-xl) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 27, 37, 0.98), rgba(15, 17, 24, 0.98));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.seasonal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 390px;
}

.seasonal-banner {
  position: relative;
  width: 100%;
  min-height: 390px;
  overflow: hidden;
  background: #090b10;
}

.seasonal-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.seasonal-showcase:hover .seasonal-banner img { transform: scale(1.012); }

.seasonal-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(to top, rgba(6, 8, 14, 0.92), rgba(6, 8, 14, 0.06) 68%);
}

.seasonal-banner-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.seasonal-games-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.07), transparent 42%),
    rgba(15, 17, 24, 0.98);
}

.seasonal-games-viewport {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  min-height: 390px;
  align-items: center;
  padding: 16px 0;
  overflow: hidden;
}

.seasonal-games-grid {
  display: grid;
  width: 100%;
  height: 350px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 169px;
  gap: 12px;
  padding: 0 10px 0 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-padding-block: 8px;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
}

.seasonal-games-grid::-webkit-scrollbar { display: none; }

.seasonal-scroll-hint {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 999px;
  color: #eafcff;
  background: linear-gradient(135deg, rgba(9, 31, 42, 0.94), rgba(8, 17, 27, 0.92));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(0, 212, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transform: translateY(5px);
  transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.seasonal-scroll-hint.is-visible {
  opacity: 0.94;
  pointer-events: auto;
  transform: translateY(0);
}

.seasonal-scroll-hint:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.72);
  background: linear-gradient(135deg, rgba(8, 48, 63, 0.98), rgba(8, 25, 37, 0.96));
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.44), 0 0 18px rgba(0, 212, 255, 0.22);
  opacity: 1;
}

.seasonal-scroll-hint i {
  color: var(--accent-primary);
  font-size: 0.78rem;
  animation: seasonal-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes seasonal-hint-bounce {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(2px); }
}

.seasonal-game-card {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary);
  background: #090b10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  scroll-snap-align: start;
  transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.seasonal-game-card:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.24);
  background: rgba(0, 212, 255, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .seasonal-games-grid { scroll-behavior: auto; }
  .seasonal-game-card,
  .seasonal-game-card img { transition: none; }
  .seasonal-scroll-hint i { animation: none; }
}

.seasonal-card-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.seasonal-game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.seasonal-game-card:hover img { transform: scale(1.045); }

.seasonal-card-shade {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(5, 7, 12, 0.94));
  pointer-events: none;
}

.seasonal-version-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 7, 12, 0.82);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.seasonal-game-title {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 9px;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.3;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.9);
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seasonal-manager-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.seasonal-manager-intro .section-title,
.seasonal-manager-intro p { margin-bottom: 0; }

.seasonal-total {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg-card);
  font-size: 0.78rem;
  white-space: nowrap;
}

.seasonal-total strong { color: var(--accent-primary); font-size: 1rem; }

.seasonal-create-card { padding: var(--space-lg); }

.seasonal-form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.seasonal-inline-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: end;
  gap: var(--space-md);
}

.seasonal-inline-fields:has(> .seasonal-switch:only-child) { grid-template-columns: 1fr; }

.seasonal-switch {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: var(--space-md);
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.seasonal-switch input { margin-right: 8px; accent-color: var(--accent-primary); }

.seasonal-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  overflow: hidden;
  border: 1px dashed rgba(0, 212, 255, 0.38);
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.035);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.seasonal-upload-box:hover { border-color: var(--accent-primary); background: rgba(0, 212, 255, 0.07); }

.seasonal-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--space-md);
  text-align: center;
}

.seasonal-upload-placeholder i { color: var(--accent-primary); font-size: 1.7rem; }
.seasonal-upload-placeholder small { color: var(--text-muted); font-size: 0.72rem; }

.seasonal-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seasonal-upload-name {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(5, 7, 12, 0.78);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasonal-game-selector {
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.12);
}

.seasonal-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.seasonal-picker-heading .form-label { margin: 0; }
.seasonal-selected-count { color: var(--accent-primary); font-size: 0.75rem; font-weight: 700; }

.seasonal-game-search-wrap { position: relative; margin-bottom: var(--space-sm); }
.seasonal-game-search-wrap i { position: absolute; top: 50%; left: 12px; color: var(--text-muted); transform: translateY(-50%); }
.seasonal-game-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text-primary);
  background: var(--bg-input);
}

.seasonal-game-search:focus { border-color: var(--accent-primary); }

.seasonal-game-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 5px;
}

.seasonal-game-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.seasonal-game-option[hidden],
.seasonal-upload-preview[hidden],
.seasonal-upload-placeholder[hidden] { display: none; }

.seasonal-game-option:hover { border-color: var(--border-color); background: rgba(255, 255, 255, 0.045); }
.seasonal-game-option:has(input:checked) { border-color: rgba(0, 212, 255, 0.28); background: rgba(0, 212, 255, 0.07); }
.seasonal-game-option input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent-primary); }
.seasonal-game-option span { min-width: 0; }
.seasonal-game-option strong { display: block; overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.seasonal-game-option small { display: block; color: var(--text-muted); font-size: 0.65rem; }

.seasonal-submit { margin-top: var(--space-md); }

.seasonal-existing-list { display: grid; gap: var(--space-md); }

.seasonal-editor {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.seasonal-editor > summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-md);
  padding: 10px;
  list-style: none;
  cursor: pointer;
}

.seasonal-editor > summary::-webkit-details-marker { display: none; }
.seasonal-editor > summary > img { width: 150px; height: 62px; border-radius: var(--radius-sm); object-fit: cover; }
.seasonal-editor-summary-copy { display: flex; min-width: 0; flex-direction: column; }
.seasonal-editor-summary-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seasonal-editor-summary-copy small { color: var(--text-muted); }

.seasonal-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 700;
}

.seasonal-status.is-active { color: #62e6ad; background: rgba(46, 204, 133, 0.1); }
.seasonal-editor-chevron { color: var(--text-muted); transition: transform var(--transition-fast); }
.seasonal-editor[open] .seasonal-editor-chevron { transform: rotate(180deg); }
.seasonal-editor-body { padding: var(--space-lg); border-top: 1px solid var(--border-color); }

.seasonal-position-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.seasonal-position-actions > span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 650;
}

.seasonal-position-actions > div { display: flex; gap: 8px; }
.seasonal-position-actions form { margin: 0; }
.seasonal-position-actions .btn:disabled { opacity: 0.35; cursor: not-allowed; }

.seasonal-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-md);
  padding-right: 90px;
}

.seasonal-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: -40px;
}

@media (max-width: 900px) {
  .seasonal-layout { grid-template-columns: 1fr; }
  .seasonal-banner { min-height: 260px; }
  .seasonal-games-panel { border-top: 1px solid rgba(255, 255, 255, 0.07); border-left: 0; }
  .seasonal-games-viewport { min-height: 360px; }
  .seasonal-games-grid { height: 326px; grid-auto-rows: 157px; }
  .seasonal-form-layout { grid-template-columns: 1fr; }
  .seasonal-game-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .seasonal-showcase { border-radius: var(--radius-md); }
  .seasonal-banner { min-height: 170px; }
  .seasonal-games-viewport { min-height: 300px; padding: 12px 0; }
  .seasonal-games-grid {
    height: 276px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 133px;
    gap: 9px;
    padding: 0 8px 0 var(--space-md);
    scroll-snap-type: y proximity;
  }
  .seasonal-game-card { scroll-snap-align: start; }
  .seasonal-manager-intro { align-items: flex-start; }
  .seasonal-total { display: none; }
  .seasonal-game-checklist { grid-template-columns: 1fr; max-height: 300px; }
  .seasonal-editor > summary { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 9px; }
  .seasonal-editor > summary > img { width: 88px; height: 50px; }
  .seasonal-status { display: none; }
  .seasonal-editor-body { padding: var(--space-md); }
  .seasonal-position-actions { align-items: stretch; flex-direction: column; }
  .seasonal-position-actions > div { display: grid; grid-template-columns: repeat(2, 1fr); }
  .seasonal-position-actions .btn { width: 100%; }
  .seasonal-editor-actions { padding-right: 0; }
  .seasonal-editor-actions .btn { width: 100%; }
  .seasonal-delete-form { margin-top: var(--space-sm); }
  .seasonal-delete-form .btn { width: 100%; }
}

@media (max-width: 900px) {
  .home-vote-spotlight {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .home-vote-stats { display: none; }
}

@media (max-width: 600px) {
  .home-vote-spotlight {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .home-vote-icon { width: 42px; height: 42px; border-radius: 11px; }
  .home-vote-copy p { font-size: 0.78rem; }
  .home-vote-cta { grid-column: 1 / -1; width: 100%; }
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  background: transparent;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0.5) 40%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--space-2xl) var(--space-xl);
  z-index: 2;
  border-radius: inherit;
}

.hero-slide .hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-slide .hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-slide .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.hero-slide .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.hero-slide .hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
  color: var(--text-on-accent);
}

/* Carousel Controls - Cyber Glassmorphism */
.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.hero-control-btn {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.34);
  outline: none;
  pointer-events: auto;
  transform: translateY(-50%);
}

.hero-control-btn.hero-prev { left: 16px; }
.hero-control-btn.hero-next { right: 16px; }

.hero-control-btn:hover {
  background: var(--accent-primary);
  color: #050508;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.7), 0 4px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.hero-control-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  background: rgba(8, 10, 18, 0.58);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 340px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
  }
  .hero-slide .hero-title {
    font-size: 1.15rem;
  }
  .hero-slide .hero-overlay {
    padding: var(--space-lg) var(--space-md);
  }
  .hero-controls {
    inset: 0;
  }
  .hero-control-btn {
    display: none;
  }
  .hero-dots {
    bottom: 10px;
    padding: 5px 9px;
  }
}

/* --- MAIN LAYOUT (Full-Width Single Column) --- */
.main-layout {
  display: block;
  width: 100%;
  padding-bottom: var(--space-3xl);
}

.main-content {
  width: 100%;
  min-width: 0;
}

/* --- SECTION HEADERS --- */
/* --- SECTION HEADERS & SLIDER CONTROLS --- */
/* --- SECTION PANELS & SEPARATORS --- */
.section-panel {
  position: relative;
  background: rgba(14, 15, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}

.section-panel-new {
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(12, 13, 20, 0.75) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.section-panel-hot {
  border: 1px solid rgba(255, 85, 0, 0.18);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.03) 0%, rgba(12, 13, 20, 0.75) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.section-panel-all {
  border: 1px solid rgba(138, 43, 226, 0.18);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.03) 0%, rgba(12, 13, 20, 0.75) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-right: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.title-badge.new-badge {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.45);
}

.title-badge.hot-badge {
  background: linear-gradient(135deg, #ff6b00, #ff2d2d);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.45);
}

.title-badge.all-badge {
  background: linear-gradient(135deg, #8a2be2, #00d4ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.45);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: var(--space-md);
  margin-right: var(--space-sm);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.slider-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.85rem;
  outline: none;
}

.slider-nav-btn:hover {
  background: var(--accent-primary);
  color: #050508;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transform: scale(1.1);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.section-link {
  font-size: 0.85rem;
  color: var(--text-accent);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- HORIZONTAL SLIDER --- */
.game-slider {
  position: relative;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
  padding: 8px 12px 20px 12px;
  margin: 0 -12px;
}

.game-slider-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  scroll-snap-type: x mandatory;
}

.game-slider-track::-webkit-scrollbar {
  display: none;
}

/* --- MODERN SLEEK ELEVATED GAME CARDS --- */
.slider-card,
.game-card {
  position: relative;
  background: #10111a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease, 
              background 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.slider-card {
  flex-shrink: 0;
  width: calc((100% - 64px) / 5);
  min-width: 190px;
  scroll-snap-align: start;
}

@media (max-width: 1200px) {
  .slider-card {
    width: calc((100% - 48px) / 4);
    min-width: 175px;
  }
}

@media (max-width: 768px) {
  .slider-card {
    width: calc((100% - 16px) / 2);
    min-width: 140px;
  }
}

.slider-card:hover,
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  background: #141624;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 212, 255, 0.22);
}

.slider-card .card-image,
.game-card .card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #08090e;
}

.slider-card .card-image img,
.game-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.slider-card:hover .card-image img,
.game-card:hover .card-image img {
  transform: scale(1.05);
}

.slider-btn {
  display: none !important;
}

.slider-btn.prev { left: -6px; }
.slider-btn.next { right: -6px; }

@media (max-width: 768px) {
  .slider-btn { display: none; }
  .slider-card { width: 160px; }
  .slider-card .card-image,
  .game-card .card-image { height: 210px; }
}

/* --- GAME CARD GRID --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-md);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}

.update-badge-top {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translate(-50%, -10px);
  opacity: 0;
  visibility: hidden;
  background: rgba(15, 17, 26, 0.85);
  color: var(--accent-primary);
  font-weight: 700;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  pointer-events: none;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .update-badge-top,
.slider-card:hover .update-badge-top {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.update-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  background: rgba(10, 12, 16, 0.95);
  color: #e2e8f0;
  text-align: center;
  padding: 12px 10px;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.game-card:hover .update-overlay,
.slider-card:hover .update-overlay {
  transform: translateY(0);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-new {
  background: var(--color-error);
  color: #fff;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b00, #ff2d2d);
  color: #fff;
}

.badge-version {
  background: rgba(10, 10, 18, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-genre {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 124px;
}

.card-top {
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #f0f0f5;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #a0a0b8;
  font-weight: 500;
}

.card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.card-stats span i {
  color: var(--accent-primary);
  font-size: 0.75rem;
}

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
}

.filter-tab a {
  color: inherit;
}

.filter-select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- SIDEBAR --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.widget-header .widget-icon {
  color: var(--accent-primary);
}

.widget-body {
  padding: var(--space-md);
}

/* CTA Banner */
.sidebar-cta {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: rotateSlow 10s linear infinite;
}

.sidebar-cta .cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: var(--space-xs);
  color: var(--text-on-accent);
}

.sidebar-cta .cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-on-accent);
}

.sidebar-cta .cta-text {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  color: var(--text-on-accent);
}

.sidebar-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-cta .cta-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* Hot Games Widget */
.hot-game-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-game-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.015);
  transition: all var(--transition-fast);
}

.hot-game-item:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(4px);
}

.hot-game-item:hover .hot-game-title {
  color: var(--accent-primary);
}

.hot-game-thumb {
  width: 85px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hot-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-fast);
}

.hot-game-item:hover .hot-game-thumb img {
  transform: scale(1.1);
}

.hot-game-info {
  flex: 1;
  min-width: 0;
}

.hot-game-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.hot-game-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Genre List Widget - Modern Cyber Cards */
.genre-list-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Genre List Widget - Vertical Stacked Rows */
.genre-list-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.genre-tag-row:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.genre-tag-row .tag-name {
  color: inherit;
}

.genre-tag-row .tag-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.genre-tag-row:hover .tag-count {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.3);
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.pagination a:hover {
  border-color: var(--border-hover);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.pagination .active {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border-color: transparent;
}

.pagination .disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* --- DETAIL PAGE (TIEMVH.IO.VN STYLE) --- */
.detail-bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.75) contrast(1.08) saturate(1.2);
}

.detail-bg-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.25) 0%, rgba(10, 10, 15, 0.65) 50%, rgba(10, 10, 15, 0.92) 100%);
}

.page-glass-wrapper {
  position: relative;
  min-height: 100vh;
}

.detail-container {
  padding-top: var(--space-md);
  padding-bottom: var(--space-3xl);
}

.disclaimer-box {
  background: rgba(255, 171, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 171, 0, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.disclaimer-box i {
  font-size: 1.2rem;
  color: var(--color-warning);
  margin-top: 2px;
}

.disclaimer-box h3 {
  font-size: 0.95rem;
  color: var(--color-warning);
  margin-bottom: 2px;
}

.disclaimer-box p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* Update Note Box (matches disclaimer style) */
.update-note-box {
  background: rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.update-note-box i {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-top: 2px;
}

.update-note-box h3 {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.update-note-box p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.detail-header {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.detail-image {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 212, 255, 0.25);
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.detail-info {
  flex: 1;
  min-width: 0;
}

.detail-title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.detail-title-wrapper h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--accent-glow);
}

.update-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.genre-tag {
  padding: 5px 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.genre-tag:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.detail-actions-group {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-download-lg {
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.btn-download-lg:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 78, 106, 0.15);
  border: 1px solid rgba(255, 78, 106, 0.4);
  color: var(--color-error);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.btn-report:hover {
  background: rgba(255, 78, 106, 0.28);
  color: var(--color-error);
  box-shadow: 0 4px 15px rgba(255, 78, 106, 0.3);
}

/* Open Content Sections */
.detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.content-section {
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent-primary);
  width: fit-content;
}

.content-section .game-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content-section .game-desc p {
  margin-bottom: var(--space-md);
}

.content-section .game-desc ul,
.content-section .game-desc ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-section .game-desc li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .detail-image {
    width: 200px;
    height: 280px;
  }
  .detail-actions-group {
    max-width: 100%;
    width: 100%;
  }
  .detail-title-wrapper {
    justify-content: center;
  }
  .genre-tags {
    justify-content: center;
  }
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.screenshot-item:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.screenshot-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
}
.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--text-on-accent);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.btn-danger {
  background: rgba(255, 78, 106, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(255, 78, 106, 0.2);
}
.btn-danger:hover {
  background: rgba(255, 78, 106, 0.25);
}

.btn-success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.btn-success:hover {
  background: rgba(0, 230, 118, 0.25);
}

.btn-download {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #000;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}
.btn-download:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  color: #000;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
  border: 1px solid var(--border-color);
  animation: zoomIn 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 78, 106, 0.8);
  color: #fff;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* --- DOWNLOAD POPUP --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

.modal-card h3 {
  margin-bottom: var(--space-md);
}

.countdown-ring {
  width: 80px;
  height: 80px;
  margin: var(--space-md) auto;
  position: relative;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- DISCLAIMER BOX --- */
.disclaimer-box {
  padding: var(--space-md);
  background: rgba(255, 171, 0, 0.08);
  border: 1px solid rgba(255, 171, 0, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-warning);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.update-note-box {
  padding: var(--space-md);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand .footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FLASH MESSAGES --- */
.flash-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
}

.flash-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.flash-success {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--color-success);
}

.flash-error {
  background: rgba(255, 78, 106, 0.15);
  border: 1px solid rgba(255, 78, 106, 0.3);
  color: var(--color-error);
}

.flash-info {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--color-info);
}

/* --- AUTH PAGES (Login) --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl);
}

.auth-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.auth-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--accent-primary);
  top: -100px;
  right: -50px;
}

.auth-orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--accent-secondary);
  bottom: -80px;
  left: -30px;
  animation-delay: 3s;
}

.auth-orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: #7c3aed;
  top: 40%;
  left: 50%;
  animation-delay: 5s;
}

.auth-card {
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.5s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form .form-group {
  margin-bottom: var(--space-md);
}

.auth-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.auth-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-google:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #1a1a1a;
}

.btn-google img,
.btn-google svg {
  width: 20px;
  height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Vote events and admin announcements */
.vote-event-banner[hidden], #event-schedule[hidden], .message-recipients[hidden] { display: none; }
/* Compact, single-line event ticker. */
.vote-event-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(var(--notification-rgb, 139, 92, 246), 0.48);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(var(--notification-rgb, 139, 92, 246), 0.3), #181725 44%, #191521);
  box-shadow: 0 0 0 1px rgba(var(--notification-rgb, 139, 92, 246), 0.05), 0 5px 18px rgba(var(--notification-rgb, 139, 92, 246), 0.18);
}
.vote-event-label { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid rgba(var(--notification-rgb, 139, 92, 246), 0.3); border-radius: 8px; color: var(--notification-accent, #8b5cf6); background: rgba(var(--notification-rgb, 139, 92, 246), 0.14); box-shadow: 0 0 7px rgba(var(--notification-rgb, 139, 92, 246), 0.16); animation: notification-icon-pulse 2.8s ease-in-out infinite; }
.vote-event-label svg { width: 17px; height: 17px; }
@keyframes notification-icon-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(var(--notification-rgb, 139, 92, 246), 0.12); }
  50% { box-shadow: 0 0 10px rgba(var(--notification-rgb, 139, 92, 246), 0.25); }
}
.home-event-dot { width: 5px; height: 5px; border-radius: 50%; background: #64d9bc; }
.home-event-copy { flex: 1 1 0; min-width: 0; }
.home-event-viewport { width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 6px), transparent); }
.home-event-track { display: flex; width: max-content; will-change: transform; }
.home-event-group { display: flex; flex-shrink: 0; align-items: center; }
.home-event-item { display: inline-flex; align-items: center; flex-shrink: 0; gap: 20px; padding-right: 20px; white-space: nowrap; color: #f3f0f9; font-size: 0.875rem; font-weight: 600; line-height: 1.6; }
.home-event-item::after { content: '✦'; flex-shrink: 0; color: var(--notification-accent, #8b5cf6); font-size: 0.65rem; font-weight: 400; line-height: 1; }
@media (max-width: 600px) {
  .vote-event-banner { gap: 8px; padding-left: 5px; border-radius: 8px; }
  .vote-event-label { width: 32px; height: 32px; }
  .home-event-item { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vote-event-label { animation: none; }
}
.message-recipients { min-width: 0; padding: 12px; border: 1px solid var(--border-color); }
.message-recipients .checkbox-item { border-radius: var(--radius-md); margin-bottom: 8px; overflow-wrap: anywhere; }
.message-recipients input { flex-shrink: 0; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.sent-message { padding: 16px 0; border-top: 1px solid var(--border-color); overflow-wrap: anywhere; }
.sent-message .btn { margin-top: 12px; }
.admin-message-item { align-items: flex-start; }
.home-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.home-color-field { display: grid; grid-template-columns: minmax(0, 1fr) 48px 100px auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.025); }
.home-color-field > label { font-weight: 600; }
.home-color-field input[type="color"] { width: 48px; height: 38px; padding: 2px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--bg-input); cursor: pointer; }
.home-color-hex { min-width: 0; padding: 8px 9px; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.home-color-copy { min-height: 38px; }
@media (max-width: 600px) {
  .home-color-grid { grid-template-columns: 1fr; }
  .home-color-field { grid-template-columns: minmax(0, 1fr) 44px 92px; }
  .home-color-field input[type="color"] { width: 44px; }
  .home-color-copy { grid-column: 1 / -1; width: 100%; }
}

/* Floating Discord and page navigation */
.page-quick-actions {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-quick-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #dbe5f0;
  background: rgba(19, 20, 30, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.page-quick-action:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(24, 31, 44, 0.96);
  transform: translateY(-2px);
}
.page-quick-action:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.page-quick-action[hidden] { display: none; }
.page-quick-action.is-discord {
  position: relative;
  color: #fff;
  border-color: rgba(170, 180, 255, 0.42);
  background: linear-gradient(145deg, #7289da, #5865f2);
  font-size: 1.05rem;
}
.page-quick-action.is-discord > i {
  animation: discord-wiggle 2.2s ease-in-out 0.2s infinite;
}
.discord-nudge {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: max-content;
  max-width: calc(100vw - 76px);
  padding: 5px 8px;
  border: 1px solid rgba(149, 160, 255, 0.28);
  border-radius: 8px;
  color: #eef0ff;
  background: rgba(26, 28, 46, 0.96);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.32);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(6px, -50%);
  animation: discord-nudge-show 9s ease-in-out 0.5s infinite;
}
.discord-nudge::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(149, 160, 255, 0.28);
  border-right: 1px solid rgba(149, 160, 255, 0.28);
  background: #1a1c2e;
  transform: translateY(-50%) rotate(45deg);
}
.page-quick-action.is-discord:hover .discord-nudge,
.page-quick-action.is-discord:focus-visible .discord-nudge {
  animation: none;
  opacity: 1;
  transform: translate(0, -50%);
}
.page-quick-action.is-discord:hover {
  border-color: #c7ceff;
  background: linear-gradient(145deg, #8498df, #6874f5);
  box-shadow: 0 7px 22px rgba(88, 101, 242, 0.32);
}
@keyframes discord-wiggle {
  0%, 48%, 100% { transform: rotate(0deg) scale(1); }
  56% { transform: rotate(-12deg) scale(1.07); }
  64% { transform: rotate(12deg) scale(1.07); }
  72% { transform: rotate(-9deg) scale(1.05); }
  80% { transform: rotate(9deg) scale(1.05); }
  88% { transform: rotate(0deg) scale(1); }
}
@keyframes discord-nudge-show {
  0%, 70%, 100% { opacity: 0; transform: translate(6px, -50%); }
  7%, 52% { opacity: 1; transform: translate(0, -50%); }
  60% { opacity: 0; transform: translate(3px, -50%); }
}
@media (max-width: 600px) {
  .page-quick-actions { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); gap: 6px; }
  .page-quick-action { width: 40px; height: 40px; border-radius: 11px; }
  .discord-nudge { right: calc(100% + 7px); padding: 5px 8px; font-size: 0.64rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-quick-action.is-discord > i { animation: none; }
  .discord-nudge { animation: none; opacity: 1; transform: translate(0, -50%); }
}

/* --- ADMIN LAYOUT --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: var(--z-sticky);
  transition: transform var(--transition-base);
}

.admin-sidebar-header {
  padding: 0 var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.admin-sidebar-header .admin-brand {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar-header .admin-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  border-bottom: none !important;
}

.admin-nav a:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.admin-nav a.active {
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
}

.admin-nav .nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.admin-nav .nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-sm) var(--space-lg);
}

.admin-main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
  padding: var(--space-xl);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.views {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
}

.stat-icon.downloads {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
}

.stat-icon.games {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.stat-icon.users {
  background: rgba(255, 171, 0, 0.15);
  color: var(--color-warning);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Admin Tables */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px var(--space-md);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 12px var(--space-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table .game-thumb {
  width: 50px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.table-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
}

.user-admin-avatar,
.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-admin-avatar {
  display: block;
  object-fit: cover;
}

.user-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-color);
}

.user-management > .section-title {
  margin-bottom: var(--space-md);
}

.user-management .user-filter-card {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.user-management .user-filter-card .form-title {
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.user-management .user-filter-grid {
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: var(--space-sm);
}

.user-management .user-filter-card .form-group {
  margin-bottom: var(--space-sm);
}

.user-management .user-filter-card .form-input {
  padding: 9px 11px;
}

.user-management .admin-table-wrapper {
  overflow-x: auto;
}

.user-management .admin-table {
  min-width: 780px;
}

.user-management .admin-table th,
.user-management .admin-table td {
  padding: 8px 10px;
}

.user-management .admin-table td {
  font-size: 0.82rem;
}

.user-management .user-admin-avatar,
.user-management .user-avatar-placeholder {
  width: 32px;
  height: 32px;
}

.user-management .table-actions {
  flex-wrap: nowrap;
}

.user-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

@media (max-width: 768px) {
  .user-management .user-filter-grid {
    grid-template-columns: 1fr;
  }
}

.game-creator-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-xs);
  min-width: 150px;
}

.game-creator-form {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 230px;
}

.game-creator-form .form-input {
  min-width: 170px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

/* Admin Forms */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.admin-form-card .form-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.82rem;
}

.checkbox-item:hover {
  border-color: var(--border-hover);
}

.checkbox-item input[type="checkbox"]:checked + span {
  color: var(--accent-primary);
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--accent-primary);
}

/* Admin Chart */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}



/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin User Card */
.admin-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.admin-user-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-info {
  flex: 1;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Admin Mobile Toggle */
.admin-mobile-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  align-items: center;
  justify-content: center;
}

.admin-sidebar-backdrop[hidden] { display: none; }
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  z-index: 350;
}

@media (min-width: 769px) {
  .admin-mobile-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .admin-mobile-toggle {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    width: min(300px, calc(100vw - 48px));
    z-index: 400;
    overscroll-behavior: contain;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    visibility: hidden;
  }

  .admin-sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }

  body.admin-menu-open { overflow: hidden; }

  .admin-sidebar-header {
    position: relative;
    padding-right: 64px;
  }

  .admin-sidebar-header h2 { font-size: 1.1rem; }

  .admin-sidebar .admin-mobile-toggle {
    position: absolute;
    top: 0;
    right: 12px;
    bottom: auto;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    box-shadow: none;
  }

  .admin-main > .admin-mobile-toggle,
  .admin-header > .admin-mobile-toggle {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }

  .admin-nav a { min-height: 44px; white-space: normal; }
  .admin-header { gap: 12px; }
  .admin-header h2 { min-width: 0; font-size: 1.2rem; }
  .admin-main .form-group { min-width: 0; }
  .admin-main .media-upload-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-main .admin-card-section,
  .admin-main .admin-form-card,
  .admin-main .chart-card { padding: 16px; }
  .admin-main .form-input,
  .admin-main .form-select,
  .admin-main .form-textarea { font-size: 16px; }
  .admin-main .btn { min-height: 44px; }
  .admin-main .admin-sticky-actions {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    overflow-wrap: anywhere;
  }
  .admin-main .pagination { flex-wrap: wrap; }
  .admin-table-header { flex-wrap: wrap; gap: 12px; }
  .admin-main .admin-stats { grid-template-columns: minmax(0, 1fr); }
  .admin-main .stat-card { flex-wrap: wrap; }
  .admin-main .admin-table { min-width: 600px; }
  .admin-main .admin-game-table-scroll .admin-table { min-width: 980px; }
  .admin-main .user-management .admin-table { min-width: 780px; }

  .admin-main .admin-content {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-main {
    margin-left: 0;
    padding: var(--space-md);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* --- ENHANCED ADMIN & EDIT FORM DESIGN --- */
.admin-card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent-primary);
  width: fit-content;
}

/* Custom Media Upload Cards */
.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.media-upload-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-input);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
}

.media-upload-box:hover {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.media-preview-cover {
  width: 140px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
}

.media-preview-bg {
  width: 100%;
  max-width: 280px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.file-input-custom:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Custom Genre Checkbox Pills */
.genre-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-pill-item {
  position: relative;
}

.genre-pill-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.genre-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.genre-pill-label:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.genre-pill-item input[type="checkbox"]:checked + .genre-pill-label {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* Edit Sticky Action Bar */
.admin-sticky-actions {
  position: sticky;
  bottom: var(--space-lg);
  z-index: 100;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-top: var(--space-2xl);
}

/* --- CONTENT PAGES (about, faq, donate) --- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-page h2 {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: var(--accent-subtle);
}

.faq-question .faq-arrow {
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Donate Page */
.donate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.donate-card .qr-img {
  width: 220px;
  height: 220px;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 1rem;
}

/* --- IMAGE PREVIEW (Admin Upload) --- */
.image-preview {
  width: 120px;
  height: 160px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(20px, 10px); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- DONATE PAGE STYLES --- */
.donate-card {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.donate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 15px var(--accent-primary);
}

.donate-icon-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  animation: pulseSlow 3s infinite ease-in-out;
}

@keyframes pulseSlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 212, 255, 0.25); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
}

.donate-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.donate-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.donate-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
  border: 2px solid rgba(0, 212, 255, 0.4);
  transition: transform var(--transition-base);
  margin: 0 auto;
}

.qr-box:hover {
  transform: scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.6);
}

.donate-qr-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.donate-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 460px;
  margin: 18px auto 0 auto;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.donate-note i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- GAMES MODAL --- */
.games-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.games-modal-container {
  background: #111115;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: fadeInDown 0.3s ease;
}

.games-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.games-modal-title .subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.games-modal-title h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.games-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 8px;
}
.games-modal-close:hover {
  color: #fff;
}

.games-modal-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.games-modal-count-bar .count-badge {
  color: var(--text-muted);
}

.games-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}
.games-modal-list::-webkit-scrollbar {
  width: 6px;
}
.games-modal-list::-webkit-scrollbar-track {
  background: transparent;
}
.games-modal-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.games-modal-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.games-modal-item:last-child {
  border-bottom: none;
}

.games-modal-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.games-modal-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.games-modal-item-content {
  flex: 1;
  min-width: 0;
}

.games-modal-item-content h4 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  font-weight: 700;
}

.games-modal-item-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-modal-item-content .date {
  font-size: 0.8rem;
  color: #ff4e6a;
  font-weight: 600;
}

.games-modal-item-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.games-modal-item:hover .games-modal-item-arrow {
  transform: translateX(4px);
  color: #fff;
}

.games-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  background: #0a0a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.games-modal-btn-collapse {
  background: none;
  border: none;
  color: #ff4e6a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.games-modal-btn-collapse:hover {
  color: #ff758c;
}

.games-modal-btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.games-modal-btn-close:hover {
  color: #fff;
}

/* View All Button */
.view-all-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 8px;
}
.view-all-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Paged notification recipient picker */
.recipient-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.recipient-results { max-height: 360px; overflow-y: auto; }
.recipient-results .checkbox-item { min-height: 52px; }
.recipient-results .checkbox-item span { min-width: 0; }
.recipient-results strong, .recipient-results small { display: block; overflow-wrap: anywhere; }
.recipient-results small { color: var(--text-secondary); margin-top: 3px; }
.recipient-selected { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow-y: auto; }
.recipient-chip { max-width: 100%; overflow-wrap: anywhere; padding: 8px 10px; border: 1px solid var(--border-hover); border-radius: 8px; background: var(--accent-subtle); color: var(--text-primary); cursor: pointer; }
#recipient-retry[hidden] { display: none; }
.site-tour[hidden] {
    display: none !important;
}

.site-tour {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.site-tour-mask {
    position: fixed;
    z-index: 2000;
    background: rgba(3, 5, 12, 0.78);
    pointer-events: auto;
    transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
}

.site-tour-ring {
    position: fixed;
    z-index: 2001;
    border: 2px solid var(--accent-primary);
    border-radius: 14px;
    box-shadow:
        0 0 0 4px rgba(0, 212, 255, 0.18),
        0 0 24px rgba(0, 212, 255, 0.42);
    pointer-events: none;
    transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
}

.site-tour-card {
    position: fixed;
    z-index: 2002;
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    padding: 18px;
    overflow: auto;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.16), transparent 42%),
        rgba(16, 18, 28, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
    pointer-events: auto;
}

.site-tour-progress {
    height: 3px;
    margin-bottom: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.site-tour-progress::after {
    display: block;
    width: var(--tour-progress, 0%);
    height: 100%;
    content: "";
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: inherit;
    transition: width 180ms ease;
}

.site-tour-step {
    margin: 0 0 5px;
    color: var(--accent-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-tour-card h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.site-tour-card > p:last-of-type {
    margin: 8px 0 17px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-tour-actions .btn,
.site-tour-skip {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
}

.site-tour-skip {
    margin-right: auto;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.site-tour-skip:hover,
.site-tour-skip:focus-visible {
    color: var(--text-primary);
}

.site-tour-open .discord-nudge {
    display: none;
}

@media (max-width: 480px) {
    .site-tour-card {
        padding: 15px;
        border-radius: 14px;
    }

    .site-tour-actions {
        gap: 6px;
    }

    .site-tour-actions .btn,
    .site-tour-skip {
        min-height: 38px;
        padding: 7px 11px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-tour-mask,
    .site-tour-ring,
    .site-tour-progress::after {
        transition: none;
    }
}

/* Mobile home layout */
@media (max-width: 600px) {
  .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .header > .container {
    gap: 7px;
  }

  .header .header-logo {
    gap: 5px;
  }

  .header .header-logo img {
    width: 30px;
    height: 30px;
  }

  .header-logo .logo-text {
    font-size: 1.05rem;
    letter-spacing: -0.4px;
  }

  .header .header-search input {
    height: 38px;
    padding: 8px 7px 8px 34px;
    font-size: 0.78rem;
  }

  .header-search .search-btn {
    left: 3px;
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .btn-login,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero-carousel {
    height: 300px;
  }

  .section-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .section-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .section-title {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .section-title::after {
    display: none;
  }

  .title-badge {
    width: 32px;
    height: 32px;
    margin-right: 0;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .slider-controls {
    gap: 0;
  }

  .slider-nav-btn {
    display: none;
  }

  .view-all-btn {
    min-height: 32px;
    margin-right: 0;
    padding: 6px 11px;
    font-size: 0.72rem;
  }

  .game-slider {
    margin: 0 -4px;
    padding: 4px 4px 12px;
  }

  .game-slider-track {
    gap: 10px;
    scroll-padding-inline: 2px;
  }

  .slider-card {
    flex: 0 0 min(68vw, 220px);
    width: min(68vw, 220px);
    min-width: 0;
    border-radius: 12px;
  }

  .slider-card .card-image {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .slider-card .card-body {
    min-height: 118px;
    padding: 11px;
  }

  .slider-card .card-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .slider-card .card-stats {
    gap: 9px;
    font-size: 0.68rem;
  }

  .page-quick-actions {
    right: max(9px, env(safe-area-inset-right));
    bottom: max(9px, env(safe-area-inset-bottom));
    gap: 5px;
  }

  .page-quick-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .discord-nudge {
    top: auto;
    right: 0;
    bottom: calc(100% + 7px);
    max-width: 125px;
    padding: 4px 7px;
    font-size: 0.61rem;
    transform: translateY(4px);
    animation-name: discord-nudge-show-mobile;
  }

  .discord-nudge::after {
    top: auto;
    right: 14px;
    bottom: -4px;
    border-top: 0;
    border-right: 1px solid rgba(149, 160, 255, 0.28);
    border-bottom: 1px solid rgba(149, 160, 255, 0.28);
    transform: rotate(45deg);
  }

  .page-quick-action.is-discord:hover .discord-nudge,
  .page-quick-action.is-discord:focus-visible .discord-nudge {
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .header-logo .logo-text {
    display: none;
  }

  .slider-card {
    flex-basis: min(72vw, 210px);
    width: min(72vw, 210px);
  }
}

@keyframes discord-nudge-show-mobile {
  0%, 70%, 100% { opacity: 0; transform: translateY(4px); }
  7%, 52% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0; transform: translateY(2px); }
}
