/* =================================================================
 * BLOOKET1 - DESIGN SYSTEM
 * Deep navy-black surfaces, warm orange accent, Nunito type.
 * Flat (no shadows); depth via tone steps, scale and accent rings.
 * Performance: only transform/opacity animate on scrolling content.
 * ================================================================= */

:root {
  /* Surfaces (cool navy-black ramp) */
  --bg-base: #0b0c13;
  --bg-surface: #12131d;
  --bg-sidebar: #0b0c13;
  --bg-card: #181926;
  --bg-card-hover: #222436;
  --bg-elevated: #1b1c2b;
  --bg-glass: rgba(11, 12, 19, 0.92);

  /* Text */
  --text-primary: #f4f5fa;
  --text-secondary: #a4a7bf;
  --text-muted: #6d7090;

  /* Accent */
  --accent-color: #ff7a1a;
  --accent-hover: #ff9142;
  --accent-glow: rgba(255, 122, 26, 0.35);
  --accent-soft: rgba(255, 122, 26, 0.14);
  --accent-gold: #ffc23d;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Layout */
  --header-height: 60px;
  --sidebar-collapsed-width: 60px;
  --sidebar-expanded-width: 228px;
  --content-pad: 24px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Legacy aliases (used by other pages) */
  --bg-cg-header: var(--bg-base);
  --bg-cg-sidebar: var(--bg-base);
  --bg-cg-search: var(--bg-elevated);
  --bg-cg-search-hover: var(--bg-card-hover);

  /* Typography */
  --font-sans: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Theme Presets */
[data-theme="cyber-neon"] {
  --bg-base: #050a14; --bg-surface: #0a1322; --bg-sidebar: #050a14;
  --bg-card: #0e1a2e; --bg-card-hover: #15253f; --bg-elevated: #0f1c30;
  --accent-color: #00e0f0; --accent-hover: #4ae9f5;
  --accent-glow: rgba(0, 224, 240, 0.35); --accent-soft: rgba(0, 224, 240, 0.14);
}

[data-theme="midnight-purple"] {
  --bg-base: #0b0918; --bg-surface: #130f26; --bg-sidebar: #0b0918;
  --bg-card: #1a1533; --bg-card-hover: #251e47; --bg-elevated: #1c1638;
  --accent-color: #8b5cff; --accent-hover: #a27dff;
  --accent-glow: rgba(139, 92, 255, 0.35); --accent-soft: rgba(139, 92, 255, 0.16);
}

[data-theme="emerald"] {
  --bg-base: #07100c; --bg-surface: #0c1913; --bg-sidebar: #07100c;
  --bg-card: #10241a; --bg-card-hover: #163325; --bg-elevated: #11261c;
  --accent-color: #1ed392; --accent-hover: #4ddfaa;
  --accent-glow: rgba(30, 211, 146, 0.35); --accent-soft: rgba(30, 211, 146, 0.14);
}

/* Reset & Base - flat design, no shadows */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  text-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-weight: 600;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: #2a2c40;
  border-radius: 12px;
  border: 3px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: #3a3d57; }

::selection { background: var(--accent-color); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =================================================================
 * HEADER
 * ================================================================= */
.cg-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background: var(--bg-base);
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: center;
  padding: 0 16px 0 0;
  z-index: 1000;
}

.cg-header-left { display: flex; align-items: center; height: 100%; }
.cg-mobile-menu-btn { display: none; }

.cg-logo-area {
  display: flex;
  align-items: center;
  height: 100%;
}

.cg-logo-icon-wrap {
  width: var(--sidebar-collapsed-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cg-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.35s var(--ease-spring);
}

.cg-logo-area:hover .cg-logo-img { transform: rotate(-10deg) scale(1.08); }

.cg-logo-text { display: flex; align-items: center; padding-right: 16px; }

.cg-logo-main {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cg-logo-accent { color: var(--accent-color); }
.cg-logo-sub { display: none; }

/* Search */
.cg-header-center { width: 100%; padding: 0 16px; }

.cg-search-bar {
  width: 100%;
  height: 42px;
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 4px 0 20px;
  gap: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cg-search-bar:hover { background: var(--bg-card-hover); }
.cg-search-bar:focus-within { background: var(--bg-surface); border-color: var(--accent-color); }

.cg-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.cg-search-input::placeholder { color: var(--text-muted); font-weight: 600; }
.cg-search-input::-webkit-search-cancel-button { display: none; }

.search-kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--text-muted);
  pointer-events: none;
}

.cg-search-submit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cg-search-submit:hover,
.cg-search-bar:focus-within .cg-search-submit { background: var(--accent-color); color: #fff; }

/* Right actions */
.cg-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cg-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.2s var(--ease-spring);
}

.cg-icon-btn:hover { background: var(--bg-card-hover); }
.cg-icon-btn:active { transform: scale(0.92); }

.cg-pill-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-color);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.2s var(--ease-spring);
}

.cg-pill-action-btn:hover { background: var(--accent-hover); }
.cg-pill-action-btn:active { transform: scale(0.95); }

/* =================================================================
 * SIDEBAR - dense 60px icon rail, click to expand
 * ================================================================= */
.cg-sidebar-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 998;
}

.cg-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-collapsed-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  transition: width 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.cg-sidebar::-webkit-scrollbar { display: none; }

body.sidebar-expanded .cg-sidebar,
.cg-sidebar.expanded { width: var(--sidebar-expanded-width); }

/* Sidebar open preview on hover (desktop hover-capable devices) */
@media (hover: hover) and (min-width: 1024px) {
  body:not(.sidebar-expanded) .cg-sidebar:hover {
    width: var(--sidebar-expanded-width);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65);
    z-index: 1001;
  }

  body:not(.sidebar-expanded) .cg-sidebar:hover .cg-nav-label,
  body:not(.sidebar-expanded) .cg-sidebar:hover .cg-panel-toggle-label {
    opacity: 1;
    pointer-events: auto;
  }

  /* Suppress single-item popover tooltips when preview is open on hover */
  body:not(.sidebar-expanded) .cg-sidebar:hover .cg-nav-item[data-tooltip]::after {
    display: none !important;
  }
}

.cg-nav-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.cg-nav-list::-webkit-scrollbar { display: none; }

.cg-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
  margin: 0 8px;
  width: calc(100% - 16px);
  padding: 0 0 0 13px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.cg-nav-item:hover { background: var(--bg-elevated); color: #fff; }

.cg-nav-item.active { color: #fff; background: var(--accent-soft); }

/* Accent bar flush with the screen edge on the active item */
.cg-nav-item.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-color);
}

.cg-nav-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: inherit;
}

.cg-nav-item.active .cg-nav-icon { color: var(--accent-color); }

.cg-nav-label {
  margin-left: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

body.sidebar-expanded .cg-nav-label,
.cg-sidebar.expanded .cg-nav-label { opacity: 1; pointer-events: auto; }

.cg-nav-divider {
  flex-shrink: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: 7px 16px;
}

.cg-nav-heading { display: none; }

/* Tooltip in collapsed state */
body:not(.sidebar-expanded) .cg-nav-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: fixed;
  left: calc(var(--sidebar-collapsed-width) + 6px);
  padding: 6px 12px;
  background: #fff;
  color: #0b0c13;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 8px;
  z-index: 2000;
  pointer-events: none;
  animation: cgTooltipFade 0.12s ease forwards;
}

@keyframes cgTooltipFade {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

body.sidebar-expanded .cg-nav-item[data-tooltip]::after { display: none !important; }

.cg-sidebar-bottom-wrap {
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 0;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  z-index: 5;
}

.cg-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0 8px;
  width: calc(100% - 16px);
  padding: 0 0 0 13px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.cg-sidebar-toggle-btn:hover { background: var(--bg-elevated); color: #fff; }

.cg-panel-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.cg-panel-toggle-label {
  margin-left: 16px;
  font-size: 14.5px;
  font-weight: 800;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

body.sidebar-expanded .cg-panel-toggle-label,
.cg-sidebar.expanded .cg-panel-toggle-label { opacity: 1; pointer-events: auto; }

/* =================================================================
 * MAIN CANVAS
 * ================================================================= */
.cg-main-canvas {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-collapsed-width);
  min-height: calc(100vh - var(--header-height));
  padding: 12px var(--content-pad) 40px;
  min-width: 0;
  transition: margin-left 0.22s var(--ease-out);
}

@media (min-width: 1100px) {
  body.sidebar-expanded .cg-main-canvas { margin-left: var(--sidebar-expanded-width); }
}

@media (max-width: 1099px) {
  body.sidebar-expanded .cg-sidebar-backdrop { opacity: 1; visibility: visible; }
}

/* =================================================================
 * HERO SPOTLIGHT
 * ================================================================= */
.hero-showcase { margin-bottom: 30px; }

.hero-card {
  position: relative;
  isolation: isolate;
  height: clamp(300px, 27vw, 400px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  contain: paint;
}

.hero-stage { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 56px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s;
}

/* Colour wash taken from the art (static, rasterised once per slide) */
.hero-ambient {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  filter: blur(60px) saturate(1.7);
  opacity: 0.55;
  z-index: -3;
  pointer-events: none;
}

/* Full-bleed art on the right, feathered into the copy side */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-art img { transform: scale(1); }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 19, 0.92) 0%, rgba(11, 12, 19, 0.55) 40%, rgba(11, 12, 19, 0) 70%),
    linear-gradient(0deg, rgba(11, 12, 19, 0.75) 0%, rgba(11, 12, 19, 0) 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

/* Staggered entrance for the active slide's copy */
.hero-slide .hero-content > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: 0.06s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: 0.12s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: 0.18s; }
.hero-slide.is-active .hero-content > :nth-child(5) { transition-delay: 0.24s; }

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 0.98;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-subtitle .dot { color: var(--text-muted); }
.hero-subtitle i { font-size: 10px; }

.hero-desc {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #cfd1e2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  transition: background-color 0.15s ease, transform 0.25s var(--ease-spring);
}

.hero-play-btn:hover { background: var(--accent-hover); transform: scale(1.04); }
.hero-play-btn:active { transform: scale(0.97); }

.hero-fav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.25s var(--ease-spring);
}

.hero-fav-btn:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }
.hero-fav-btn.is-favorite { color: #ff4d6a; }

/* Rank badge (wireframe "No1") */
.hero-no1-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-gold);
  color: #1d1405;
  line-height: 1;
}

.hero-no1-badge small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-no1-badge span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-top: 1px;
}

/* Thumbnail switcher with progress (bottom-right) */
.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  position: relative;
  width: 76px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-elevated);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.hero-dot img { width: 100%; height: 100%; object-fit: cover; }
.hero-dot:hover { opacity: 0.9; transform: translateY(-2px); }
.hero-dot.is-active { opacity: 1; border-color: #fff; }

.hero-dot-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-active .hero-dot-progress { animation: heroProgress 7s linear forwards; }
.is-paused .hero-dot.is-active .hero-dot-progress { animation-play-state: paused; }

@keyframes heroProgress { to { transform: scaleX(1); } }

/* =================================================================
 * LIVE SEARCH RESULTS
 * ================================================================= */
.search-results-section { margin: 8px 0 40px; }

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.search-results-title-group { display: flex; align-items: baseline; gap: 12px; }

.search-results-title-group h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.search-results-title-group h2 span { color: var(--accent-color); }

.search-results-count { font-size: 14px; font-weight: 800; color: var(--text-muted); }

.clear-search-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.clear-search-btn:hover { background: var(--bg-card-hover); }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.search-no-results { text-align: center; padding: 72px 20px; }
.search-no-results .empty-icon { font-size: 40px; color: var(--text-muted); margin-bottom: 14px; }
.search-no-results h3 { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.search-no-results p { color: var(--text-secondary); font-size: 14.5px; }

/* =================================================================
 * FOOTER
 * ================================================================= */
.app-footer {
  margin-top: 64px;
  padding: 40px 36px 0;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-icon { font-size: 22px; color: var(--accent-color); }

.footer-brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.logo-accent { color: var(--accent-color); }

.footer-tagline {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 360px;
}

.footer-badges, .footer-chip, .footer-status-pill { display: none; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-col a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 20px 0 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}


/* =================================================================
 * HOMEPAGE BREAKPOINTS
 * ================================================================= */
@media (max-width: 1200px) {
  .cg-pill-action-btn span { display: none; }
  .cg-pill-action-btn { width: 40px; padding: 0; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-dot { width: 60px; height: 40px; }
}

@media (max-width: 900px) {
  :root { --content-pad: 14px; }

  .cg-header { grid-template-columns: auto minmax(0, 1fr) auto; padding-right: 10px; }
  .cg-header-left { min-width: max-content; }
  .cg-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 6px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }
  .cg-logo-icon-wrap { width: auto; padding: 0 6px 0 2px; }
  .cg-logo-text { display: none; }
  .cg-header-center { padding: 0 8px; }
  .search-kbd { display: none; }
  .cg-search-bar { padding-left: 16px; height: 40px; }
  #header-fav-btn { display: none; }

  /* Off-canvas drawer */
  .cg-sidebar {
    width: var(--sidebar-expanded-width);
    transform: translateX(-100%);
    transition: transform 0.22s var(--ease-out);
  }
  body.sidebar-expanded .cg-sidebar,
  .cg-sidebar.expanded { transform: translateX(0); }
  .cg-nav-label, .cg-panel-toggle-label { opacity: 1; pointer-events: auto; }
  .cg-main-canvas { margin-left: 0 !important; padding-top: 8px; }

  .hero-card { height: 420px; border-radius: 18px; }
  .hero-slide { align-items: flex-end; padding: 0 22px 76px; }
  .hero-art { width: 100%; height: 62%; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .hero-scrim { background: linear-gradient(0deg, rgba(11, 12, 19, 0.96) 0%, rgba(11, 12, 19, 0.7) 45%, rgba(11, 12, 19, 0) 70%); }
  .hero-badge { margin-bottom: 10px; }
  .hero-desc { font-size: 14px; -webkit-line-clamp: 2; }
  .hero-actions { margin-top: 16px; }
  .hero-play-btn { height: 46px; padding: 0 24px; font-size: 15px; }
  .hero-fav-btn { width: 46px; height: 46px; }
  .hero-no1-badge { width: 48px; height: 48px; top: 14px; right: 14px; border-radius: 13px; }
  .hero-no1-badge span { font-size: 21px; }
  .hero-dots { left: 22px; right: auto; bottom: 22px; gap: 6px; }
  .hero-dot { width: 26px; height: 6px; border-radius: 6px; border: none; background: rgba(255, 255, 255, 0.25); opacity: 1; }
  .hero-dot img { display: none; }
  .hero-dot.is-active { background: rgba(255, 255, 255, 0.25); width: 44px; }
  .hero-dot-progress { height: 100%; background: #fff; }

  .app-footer { padding: 28px 20px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .brand-col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide .hero-content > *, .hero-art img { transition: none !important; }
}

/* =================================================================
 * SETTINGS MODAL & POPUPS
 * ================================================================= */
.settings-modal-overlay,
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.settings-modal-overlay.active,
.popup-overlay.active {
  display: flex;
}

.settings-modal {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: #10121c;
  border: 1.5px solid rgba(247, 85, 50, 0.28);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(247, 85, 50, 0.15);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.settings-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-header-icon {
  color: var(--accent-color);
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(247, 85, 50, 0.4));
}

.settings-title-wrap h2 {
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.settings-title-wrap p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.settings-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-close-btn:hover {
  background: var(--bg-elevated);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Stealth Top HUD Bar */
.stealth-hud-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(15, 18, 30, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  gap: 14px;
  flex-wrap: wrap;
}

.stealth-hud-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
}

.stealth-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: stealthPulse 2s infinite ease-in-out;
}

@keyframes stealthPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.stealth-hud-status strong {
  color: #38bdf8;
  font-weight: 800;
}

.stealth-quick-panic-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
  transition: all 0.15s ease;
}

.stealth-quick-panic-btn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* Stealth Tabs Navigation */
.stealth-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.stealth-tabs-bar::-webkit-scrollbar { display: none; }

.stealth-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stealth-tab-btn i { font-size: 13px; }

.stealth-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.stealth-tab-btn.active {
  background: var(--accent-soft);
  color: #ffffff;
  border-color: rgba(247, 85, 50, 0.35);
  box-shadow: 0 0 12px rgba(247, 85, 50, 0.2);
}

.stealth-tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.stealth-tab-pane.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

/* Chrome Browser Tab Live Mockup Preview */
.browser-tab-preview {
  background: #1e202e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browser-tab-preview-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.browser-tab-mockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #2a2d3d;
  border-radius: 8px 8px 0 0;
  padding: 6px 14px;
  max-width: 240px;
  border-top: 2px solid var(--accent-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.browser-tab-mockup-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.browser-tab-mockup-title {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.browser-tab-mockup-close {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 4px;
}

/* Custom Cloak Row */
.stealth-custom-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stealth-custom-box h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.stealth-custom-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stealth-input {
  flex: 1;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.stealth-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(247, 85, 50, 0.2);
}

/* About Blank Card */
.aboutblank-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aboutblank-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aboutblank-icon {
  font-size: 26px;
  color: #38bdf8;
}

.aboutblank-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.aboutblank-header p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.aboutblank-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.aboutblank-feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aboutblank-feature-pill i {
  color: #10b981;
}

.settings-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.settings-section-header {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-section-header .section-icon {
  font-size: 20px;
  color: var(--accent-color);
  margin-top: 2px;
}

.settings-section-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.settings-section-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cloak Options Grid */
.cloak-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.cloak-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cloak-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
}

.cloak-card.active {
  border-color: var(--accent-color);
  background: var(--accent-soft);
}

.cloak-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 8px;
}

.cloak-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.cloak-title-preview {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cloak-badge-type {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 6px;
  color: var(--text-muted);
}

.cloak-badge-active {
  font-size: 10px;
  background: var(--accent-color);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
  font-weight: 700;
}

/* Panic Key Styling */
.panic-key-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 14px;
}

.panic-key-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panic-label {
  font-size: 13px;
  color: var(--text-secondary);
}

kbd#currentPanicKeyDisplay {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
}

.panic-listening-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.panic-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-action-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.settings-action-btn:hover {
  background: var(--accent-hover);
}

.settings-action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

.settings-action-btn.secondary:hover {
  border-color: var(--accent-color);
  color: #ffffff;
}

.settings-action-btn.tertiary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.settings-action-btn.tertiary:hover {
  color: #ffffff;
}

/* Theme Options Grid */
.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.theme-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
}

.theme-card.active {
  border-color: var(--accent-color);
  background: var(--accent-soft);
}

.theme-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.theme-name {
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

.theme-swatches {
  display: flex;
  gap: 4px;
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

.theme-badge-active {
  font-size: 10px;
  background: var(--accent-color);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
  display: inline-block;
  font-weight: 700;
}

/* =================================================================
 * GOOGLE ADSENSE COMPLIANCE & CLS CONTAINMENT
 * ================================================================= */
.ad-compliance-label,
.ad-container::before,
.game-ads-sidebar::before,
.ad-slot::before {
  content: "ADVERTISEMENT";
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  margin-bottom: 6px;
  width: 100%;
}

.ad-container,
.game-ads-sidebar,
.ad-slot,
ins.adsbygoogle {
  min-height: 250px;
  contain: layout;
}

.ad-banner {
  min-height: 90px;
  contain: layout;
}

/* Unblock Assistant Overlay & Announcements */
#unblockAssistantOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

#unblockAssistantPopup {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
}

.unblock-assistant-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .app-sidebar {
    display: none;
  }
  .app-main-wrapper {
    margin-left: 0;
  }
  .header-search-wrap {
    max-width: 100%;
  }
  .content-canvas {
    padding: 20px 16px 80px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
