/* ============================================
   CSS VARIABLES - GameDealRadar Theme
   ============================================ */
:root {
  /* Backgrounds - Deep Navy */
  --bg-primary: #0A1628;
  --bg-secondary: #0D1A2D;
  --bg-card: #142236;
  --bg-hover: #1A2D42;
  --bg-panel: #0F1E30;

  /* Accents - From Logo */
  --accent-orange: #F97316;
  --accent-orange-bright: #FF8C00;
  --accent-orange-hover: #EA580C;
  --accent-cyan: #00D4FF;
  --accent-blue: #3B9EFF;
  --accent-gold: #FFC107;
  --accent-lavender: #A78BFA;
  --accent-warning: #FBBF24;
  --accent-error: #F87171;

  /* Text */
  --text-primary: #FAFAFA;
  --text-secondary: #8BA3C7;
  --text-muted: #5A7A9A;

  /* Fonts */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   HEADER - Floating Glass
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 158, 255, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.header__logo-icon::before,
.header__logo-icon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
}

.header__logo-icon::before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

.header__logo-icon::after {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-color: var(--accent-orange);
}

.header__logo-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent-orange);
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__logo-text span:first-child {
  color: var(--accent-cyan);
}

.header__logo-text span:last-child {
  color: var(--accent-orange);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__nav-link {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: color 150ms, background 150ms;
}

.header__nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.header__nav-link--active {
  color: var(--accent-cyan);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Region Switch */
.region-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.region-switch__btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms;
}

.region-switch__btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.region-switch__btn--active {
  color: var(--bg-primary);
  background: var(--accent-cyan);
}

.region-switch__btn--active:hover {
  color: var(--bg-primary);
  background: var(--accent-cyan);
}

/* Language Switch */
.lang-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lang-switch__btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms;
}

.lang-switch__btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.lang-switch__btn--active {
  color: var(--bg-primary);
  background: var(--accent-orange);
}

.lang-switch__btn--active:hover {
  color: var(--bg-primary);
  background: var(--accent-orange);
}

.header__search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: border-color 150ms;
}

.header__search-trigger:hover {
  border-color: var(--accent-cyan);
}

.header__search-trigger svg {
  width: 16px;
  height: 16px;
}

.header__search-trigger kbd {
  padding: 2px 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.header__search-kbd {
  padding: 2px 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}

.search-modal--open {
  opacity: 1;
  visibility: visible;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.search-modal__container {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 200ms;
  overflow: hidden;
}

.search-modal--open .search-modal__container {
  transform: translateY(0);
}

.search-modal__input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--bg-hover);
}

.search-modal__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-modal__input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  color: var(--text-primary);
  outline: none;
}

.search-modal__input::placeholder {
  color: var(--text-muted);
}

.search-modal__esc {
  padding: 4px 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-modal__results {
  max-height: 400px;
  overflow-y: auto;
}

.search-modal__empty,
.search-modal__loading {
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
}

.search-modal__result {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  transition: background 150ms;
}

.search-modal__result:hover {
  background: var(--bg-hover);
}

.search-modal__result-image {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.search-modal__result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-modal__result-info {
  flex: 1;
  min-width: 0;
}

.search-modal__result-title {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal__result-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-modal__result-store {
  color: var(--accent-cyan);
  font-weight: 500;
  text-transform: capitalize;
}

.search-modal__result-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.search-modal__result-current {
  font-weight: 700;
  color: var(--accent-green);
}

.search-modal__result-discount {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-orange);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 158, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  z-index: -1;
}

/* Animated scan lines */
.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(59, 158, 255, 0.02) 2px,
    rgba(59, 158, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: -1;
}

/* Radar pulse animation */
.hero__radar {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.15;
}

.hero__radar-circle {
  position: absolute;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  animation: radar-pulse 3s ease-out infinite;
}

.hero__radar-circle:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.hero__radar-circle:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-delay: 0.5s;
}

.hero__radar-circle:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-delay: 1s;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-orange);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all 150ms;
}

.btn--primary {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-orange-bright);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-hover);
}

.btn--secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filters {
  padding: var(--space-md) 0 0;
  border-bottom: 1px solid var(--bg-hover);
  position: sticky;
  top: 72px;
  background: var(--bg-primary);
  z-index: 50;
}

.filters__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.filters__inner::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xs);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms;
}

.filter-chip::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 150ms;
}

.filter-chip:hover {
  color: var(--text-primary);
}

.filter-chip--active {
  color: var(--accent-orange);
}

.filter-chip--active::after {
  background: var(--accent-orange);
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.filter-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: var(--space-xs);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: var(--accent-red, #ef4444);
  border-radius: 9px;
}

.filters__divider {
  width: 1px;
  height: 16px;
  background: var(--bg-hover);
  flex-shrink: 0;
  margin: 0 var(--space-xs);
}

.filters__clear {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: var(--space-sm);
}

.filters__clear:hover {
  color: var(--accent-error);
}

/* ============================================
   DEAL SECTIONS
   ============================================ */
.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section__title-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-orange);
}

.section__link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms;
}

.section__link:hover {
  color: var(--accent-cyan);
}

.section__link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   HORIZONTAL SCROLL ROW
   ============================================ */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: visible;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Extend scroll area beyond container to show full last card */
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

/* ============================================
   DEALS GRID - 5 columns layout for home page
   ============================================ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1200px) {
  .deals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }
}

/* Deal card in grid context */
.deals-grid .deal-card {
  flex: none;
  width: 100%;
  margin: 0;
}

/* ============================================
   DEAL CARD - Compact (for rows)
   ============================================ */
.deal-card {
  flex: 0 0 260px;
  background: var(--bg-card);
  border: 2px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  scroll-snap-align: start;
  min-height: 280px;
  margin: 4px;
}

.deal-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 1px var(--accent-orange);
}

.deal-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  overflow: hidden;
}

.deal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.deal-card__badge--best {
  background: var(--accent-cyan);
}

.deal-card__badge--free {
  background: var(--accent-lavender);
}

.deal-card__content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 100px;
}

.deal-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-card__publisher {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.deal-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.deal-card__price-original {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-card__price-current {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.deal-card__price-current--free {
  color: var(--accent-lavender);
}

.deal-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.deal-card__store {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deal-card__stores {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.deal-card__stores .deal-card__store-icon {
  width: 20px;
  height: 20px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-card__stores .deal-card__store-icon svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

/* ============================================
   DEALS LIST
   ============================================ */
.deals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.deals-list__empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

/* ============================================
   DEAL STRIP - Horizontal (for lists)
   ============================================ */
.deal-strip {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  transition: border-color 200ms, background 200ms;
}

.deal-strip:hover {
  border-color: var(--accent-orange);
  background: var(--bg-hover);
}

.deal-strip__image {
  flex: 0 0 140px;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.deal-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-strip__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-panel) 100%);
}

.deal-strip__info {
  flex: 1;
  min-width: 0;
}

.deal-strip__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-strip__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.deal-strip__stores {
  display: flex;
  gap: var(--space-xs);
}

.deal-strip__store {
  color: var(--accent-cyan);
  font-weight: 500;
  text-transform: capitalize;
}

.deal-strip__pricing {
  flex: 0 0 140px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--space-sm);
  white-space: nowrap;
}

.deal-strip__price-current {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-green);
}

.deal-strip__price-original {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-strip__badge {
  flex: 0 0 70px;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
}

.deal-strip__badge--best {
  background: var(--accent-green);
}

.deal-strip__badge--neutral {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.deal-strip__actions {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.deal-strip__btn {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 150ms ease;
  min-width: 70px;
  border: 1px solid transparent;
}

.deal-strip__btn--primary {
  background: var(--accent-orange);
  color: var(--bg-primary);
  border-color: var(--accent-orange);
}

.deal-strip__btn--primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
}

.deal-strip__btn--secondary {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.deal-strip__btn--secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
  cursor: pointer;
}

.pagination__btn:hover:not(.pagination__btn--disabled):not(.pagination__btn--active) {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.pagination__btn--active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
  cursor: default;
}

.pagination__btn--nav {
  background: transparent;
  border-color: transparent;
}

.pagination__btn--nav:hover:not(.pagination__btn--disabled) {
  background: var(--bg-hover);
  border-color: var(--bg-hover);
}

.pagination__btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.pagination__info {
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--bg-hover);
  color: var(--text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pagination {
    gap: var(--space-xs);
  }

  .pagination__btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .pagination__ellipsis {
    min-width: 24px;
  }

  .pagination__info {
    display: none;
  }
}

/* ============================================
   ENDING SOON SECTION
   ============================================ */
.ending-card {
  flex: 0 0 280px;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  transition: border-color 200ms;
}

.ending-card:hover {
  border-color: var(--accent-warning);
}

.ending-card__image {
  flex: 0 0 80px;
  aspect-ratio: 1;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ending-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ending-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.ending-card__timer {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-warning);
  margin-top: auto;
}

.ending-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  display: flex;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--bg-hover);
  border-bottom: 1px solid var(--bg-hover);
  margin-top: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--bg-hover);
  margin-top: var(--space-3xl);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 150ms;
}

.footer__link:hover {
  color: var(--accent-cyan);
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(8px);
}

.search-modal--open {
  display: flex;
}

.search-modal__content {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modal-in 200ms ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--bg-hover);
}

.search-modal__input-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.search-modal__input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  outline: none;
}

.search-modal__input::placeholder {
  color: var(--text-muted);
}

.search-modal__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}

.search-modal__results {
  max-height: 400px;
  overflow-y: auto;
}

.search-modal__result {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  transition: background 150ms;
  cursor: pointer;
}

.search-modal__result:hover,
.search-modal__result--selected {
  background: var(--bg-hover);
}

.search-modal__result-image {
  width: 60px;
  height: 34px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-modal__result-info {
  flex: 1;
}

.search-modal__result-title {
  font-weight: 600;
}

.search-modal__result-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-modal__result-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__search-trigger kbd {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__radar {
    display: none;
  }

  .stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat {
    flex: 1 1 45%;
  }

  .deal-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .deal-strip__image {
    flex: none;
    aspect-ratio: 21 / 9;
  }

  .deal-strip__pricing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fade-in 500ms ease-out forwards;
  opacity: 0;
}

.fade-in-delay-1 { animation-delay: 100ms; }
.fade-in-delay-2 { animation-delay: 200ms; }
.fade-in-delay-3 { animation-delay: 300ms; }
.fade-in-delay-4 { animation-delay: 400ms; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE CONTENT SPACING
   ============================================ */
.page-content {
  padding-top: calc(72px + var(--space-xl));
  min-height: calc(100vh - 200px);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state__description {
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   AUTH - Login/User Menu
   ============================================ */
.header__auth {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__login-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.header__login-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-hover);
}

.header__login-btn svg {
  width: 18px;
  height: 18px;
}

/* User menu */
.header__user-menu {
  position: relative;
}

.header__user-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.header__user-trigger:hover {
  background: var(--bg-card);
  border-color: rgba(59, 158, 255, 0.2);
}

.header__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.header__user-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.header__user-name {
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__user-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.header__user-dropdown--open + .header__user-chevron,
.header__user-trigger:focus .header__user-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.header__user-dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
}

.header__user-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.header__dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.header__dropdown-item svg {
  width: 16px;
  height: 16px;
}

.header__dropdown-item--danger:hover {
  color: var(--accent-error);
}

.header__dropdown-divider {
  border: none;
  border-top: 1px solid rgba(59, 158, 255, 0.1);
  margin: var(--space-sm) 0;
}

@media (max-width: 768px) {
  .header__user-name {
    display: none;
  }

  .header__login-btn span {
    display: none;
  }
}

/* ============================================
   PAGE HEADER - Section Headers
   ============================================ */
.page-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.page-header__content {
  max-width: 600px;
  margin: 0 auto;
}

.page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  margin-bottom: var(--space-md);
}

.page-header__badge--green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.page-header__badge-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.page-header__title-accent {
  color: var(--accent-cyan);
}

.page-header__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.page-header__page-indicator {
  display: inline-block;
  margin-left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* ============================================
   FILTER BAR - Horizontal Filters
   ============================================ */
.filter-bar-wrapper {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(59, 158, 255, 0.1);
  padding: var(--space-md) 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================
   GAMES FILTERS - Dropdown Filters
   ============================================ */
.games-filters {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(59, 158, 255, 0.1);
  padding: var(--space-md) 0;
}

.games-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
}

.filter-dropdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 140px;
}

.filter-dropdown__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-dropdown__select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  padding-right: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 150ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-dropdown__select:hover {
  border-color: var(--accent-cyan);
}

.filter-dropdown__select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(59, 158, 255, 0.2);
}

.filter-reset {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 150ms ease;
}

.filter-reset:hover {
  color: var(--accent-orange);
  background: rgba(255, 107, 53, 0.1);
}

.games-filters__active {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--bg-hover);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(59, 158, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.active-filter__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  border-radius: 50%;
  transition: all 150ms ease;
}

.active-filter__remove:hover {
  color: var(--accent-orange);
  background: rgba(255, 107, 53, 0.2);
}

/* ============================================
   FEATURED CARDS - Large Showcase Cards
   ============================================ */
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-lg);
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.featured-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.featured-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-card > a {
  display: block;
  height: 100%;
}

.featured-card__image {
  position: relative;
  height: 50%;
  background: var(--bg-panel);
  overflow: hidden;
}

.featured-card--large .featured-card__image {
  height: 65%;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-card:hover .featured-card__image img {
  transform: scale(1.05);
}

.featured-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-secondary) 100%);
}

.featured-card__image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}

.featured-card__timer {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.featured-card__timer-icon {
  width: 14px;
  height: 14px;
}

.featured-card__content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  height: 50%;
}

.featured-card--large .featured-card__content {
  padding: var(--space-lg);
  height: 35%;
}

.featured-card__source {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.featured-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-card--large .featured-card__title {
  font-size: 1.25rem;
  -webkit-line-clamp: 2;
  margin-bottom: var(--space-sm);
}

.featured-card__meta {
  margin-bottom: auto;
}

.featured-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.featured-card__price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.featured-card__price-free {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-lavender);
}

.featured-card--large .featured-card__price-free {
  font-size: 1.125rem;
}

.featured-card__actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.featured-card__btn {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.featured-card--large .featured-card__btn {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.featured-card__btn--primary {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

.featured-card__btn--primary:hover {
  background: var(--accent-orange-bright);
}

.featured-card__btn--secondary {
  background: var(--bg-panel);
  color: var(--text-secondary);
}

.featured-card__btn--secondary:hover {
  color: var(--text-primary);
}

/* ============================================
   FREE CARDS - Game Cards Grid
   ============================================ */
.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* In scroll-row context, free-card has fixed width */
.scroll-row .free-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  margin: 4px;
}

.free-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 280px;
}

.free-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

.free-card > a {
  display: block;
}

.free-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  overflow: hidden;
}

.free-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.free-card:hover .free-card__image img {
  transform: scale(1.05);
}

.free-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-secondary) 100%);
}

.free-card__image-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.5;
}

.free-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-lavender);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.free-card__badge--ending {
  background: var(--accent-warning);
}

.free-card__badge--upcoming {
  background: var(--accent-cyan);
}

.free-card__timer {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.free-card__content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 100px;
}

.free-card__source {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: visible;
}

.free-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.free-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.free-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.free-card__price-original {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.free-card__price-free {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-lavender);
}

.free-card__platforms {
  display: flex;
  gap: var(--space-xs);
}

.free-card__platform {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* ============================================
   ALERT BOX - Newsletter/Notification
   ============================================ */
.alert-box {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3xl);
}

.alert-box__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent-orange);
}

.alert-box__content {
  flex: 1;
}

.alert-box__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.alert-box__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.alert-box__form {
  display: flex;
  gap: var(--space-sm);
}

.alert-box__input {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  width: 240px;
}

.alert-box__input::placeholder {
  color: var(--text-muted);
}

.alert-box__input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.alert-box__btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-orange);
  border: none;
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.alert-box__btn:hover {
  background: var(--accent-orange-bright);
}

/* ============================================
   RESPONSIVE - Free Games Page
   ============================================ */
@media (max-width: 1024px) {
  .featured__grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .featured-card--large {
    grid-column: span 1;
  }

  .free-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .alert-box {
    flex-direction: column;
    text-align: center;
  }

  .alert-box__form {
    flex-direction: column;
    width: 100%;
  }

  .alert-box__input {
    width: 100%;
  }

  .filter-bar-wrapper {
    top: 56px;
  }

  .games-filters {
    top: 56px;
  }

  .games-filters__row {
    gap: var(--space-sm);
  }

  .filter-dropdown {
    flex: 1;
    min-width: 100px;
  }

  .filter-dropdown__select {
    padding: var(--space-xs) var(--space-sm);
    padding-right: 2rem;
    font-size: 0.8125rem;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .filter-chip {
    flex-shrink: 0;
  }
}

/* ============================================
   GAME DETAIL PAGE
   ============================================ */
.game-page {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-3xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-cyan);
}

.back-link svg {
  width: 20px;
  height: 20px;
}

/* Game Hero */
.game-hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.game-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  align-self: start;
}

.game-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.game-hero__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-secondary) 100%);
}

.game-hero__content {
  display: flex;
  flex-direction: column;
}

.game-hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.game-hero__publisher {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.game-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.game-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.game-hero__tag svg {
  width: 14px;
  height: 14px;
}

.game-hero__best-price {
  margin-top: auto;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.03) 100%);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.game-hero__best-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.game-hero__best-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.game-hero__best-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.game-hero__best-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.game-hero__best-current {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.game-hero__best-badge {
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.game-hero__best-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-orange-bright);
}

.btn--secondary {
  background: var(--bg-panel);
  border: 1px solid var(--bg-hover);
  color: var(--text-primary);
}

.btn--secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Price Table */
.price-table {
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table__header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-panel);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.price-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--bg-hover);
  align-items: center;
}

.price-table__row:hover {
  background: var(--bg-hover);
}

.price-table__row--best {
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
}

.price-table__row--best:hover {
  background: rgba(0, 212, 255, 0.1);
}

.price-table__store {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.price-table__store-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: var(--bg-panel);
}

/* Store-specific colors */
.price-table__store-icon--gog { background: #86328a; }
.price-table__store-icon--steam { background: #1b2838; }
.price-table__store-icon--nintendo { background: #e60012; }
.price-table__store-icon--epic { background: #2f2d2e; }
.price-table__store-icon--fanatical { background: #ff6600; }
.price-table__store-icon--gamesplanet { background: #0066cc; }
.price-table__store-icon--humble { background: #cc2929; }

.price-table__region {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-table__regular {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-table__current {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.price-table__lowest {
  padding: 2px 6px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.price-table__discount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-orange);
}

.price-table__discount--best {
  color: var(--accent-cyan);
}

.price-table__btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background 0.2s;
}

.price-table__btn:hover {
  background: var(--accent-orange-bright);
}

.price-table__btn--disabled {
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Game Info */
.game-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.game-info__description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.game-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.game-info__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.game-info__detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.game-info__detail-value {
  color: var(--text-primary);
}

/* Price History Chart */
.price-chart {
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.price-chart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.price-chart__stats {
  display: flex;
  gap: var(--space-xl);
}

.price-chart__stat {
  text-align: center;
}

.price-chart__stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-chart__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-chart__canvas {
  height: 200px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--steam { stroke: #00adee; }
.chart-line--gog { stroke: #cd44dd; }
.chart-line--nintendo-eu { stroke: #e60012; }
.chart-line--nintendo-us { stroke: #ff4444; }
.chart-line--epic { stroke: #00d4ff; }
.chart-line--fanatical { stroke: #ff9900; }
.chart-line--gamesplanet { stroke: #4dabf7; }

.chart-area {
  opacity: 0.15;
}

.chart-area--steam { fill: #00adee; }
.chart-area--gog { fill: #cd44dd; }
.chart-area--nintendo-eu { fill: #e60012; }
.chart-area--nintendo-us { fill: #ff4444; }

.chart-grid-line {
  stroke: var(--bg-hover);
  stroke-width: 1;
}

.chart-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.chart-point {
  fill: var(--accent-cyan);
  stroke: var(--bg-card);
  stroke-width: 2;
}

.price-chart__legend {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.price-chart__legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.price-chart__legend-color {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.price-chart__legend-color--steam { background: #00adee; }
.price-chart__legend-color--gog { background: #cd44dd; }
.price-chart__legend-color--nintendo-eu { background: #e60012; }
.price-chart__legend-color--nintendo-us { background: #ff4444; }
.price-chart__legend-color--epic { background: #00d4ff; }
.price-chart__legend-color--fanatical { background: #ff9900; }
.price-chart__legend-color--gamesplanet { background: #4dabf7; }

.price-chart__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Price Charts Grid (per store) */
.price-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.price-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color 0.2s;
}

.price-chart-card:hover {
  border-color: var(--text-muted);
}

.price-chart-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.price-chart-card__store {
  font-weight: 600;
  font-size: 0.9375rem;
  padding-left: var(--space-sm);
  border-left: 3px solid var(--text-muted);
}

.price-chart-card__store--steam { border-color: #00adee; color: #00adee; }
.price-chart-card__store--gog { border-color: #cd44dd; color: #cd44dd; }
.price-chart-card__store--nintendo-eu { border-color: #e60012; color: #e60012; }
.price-chart-card__store--nintendo-us { border-color: #ff4444; color: #ff4444; }
.price-chart-card__store--epic { border-color: #00d4ff; color: #00d4ff; }
.price-chart-card__store--fanatical { border-color: #ff9900; color: #ff9900; }
.price-chart-card__store--gamesplanet { border-color: #4dabf7; color: #4dabf7; }
.price-chart-card__store--humble { border-color: #cc2929; color: #cc2929; }

.price-chart-card__range {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-chart__canvas--small {
  height: 120px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.price-chart__empty-small {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.chart-label-small {
  fill: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
}

.price-chart__global-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
}

.price-chart__global-stats .price-chart__stat {
  text-align: center;
}

.price-chart__global-stats .price-chart__stat-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-chart__global-stats .price-chart__stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   TRACK/WISHLIST PAGE
   ============================================ */
.page-header--track {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-header__badge--cyan {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
}

/* Empty State */
.track-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

.track-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
}

.track-empty__icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
}

.track-empty__icon--empty {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-color: rgba(249, 115, 22, 0.2);
}

.track-empty__icon--empty svg {
  color: var(--accent-orange);
}

.track-empty__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.track-empty__text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
}

.track-empty__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Track Grid */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Track List - Horizontal layout */
.track-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Track Item - Horizontal card */
.track-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: var(--space-lg);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

/* Image */
.track-item__image {
  position: relative;
  width: 120px;
  height: 68px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-panel);
  flex-shrink: 0;
}

.track-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.track-item:hover .track-item__image img {
  transform: scale(1.05);
}

.track-item__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-secondary) 100%);
}

.track-item__image-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  opacity: 0.5;
}

.track-item__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* Info */
.track-item__info {
  min-width: 0;
  flex: 1;
}

.track-item__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item__title:hover {
  color: var(--accent-cyan);
}

.track-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.track-item__price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.track-item__price--unavailable {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.track-item__store {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
  padding: 2px 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}

/* Target Price */
.track-item__target {
  text-align: center;
  min-width: 100px;
}

.track-item__target-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.track-item__target-value svg {
  width: 16px;
  height: 16px;
}

.track-item__target-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.track-item__target-none {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Actions - Always visible */
.track-item__actions {
  display: flex;
  gap: var(--space-sm);
}

.track-item__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.track-item__action svg {
  width: 16px;
  height: 16px;
}

.track-item__action--edit:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
}

.track-item__action--remove:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: var(--accent-error);
  color: var(--accent-error);
}

/* Responsive */
@media (max-width: 768px) {
  .track-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
  }

  .track-item__image {
    width: 80px;
    height: 45px;
  }

  .track-item__target {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .track-item__target-label {
    display: none;
  }

  .track-item__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .track-item__action {
    flex: 1;
    justify-content: center;
  }
}

/* How It Works Section */
.track-howto {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--bg-hover);
}

.track-howto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.track-howto__item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.track-howto__item:hover {
  border-color: var(--accent-cyan);
}

.track-howto__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
}

.track-howto__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
}

.track-howto__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.track-howto__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Edit Modal */
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.track-modal--open {
  opacity: 1;
  visibility: visible;
}

.track-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.track-modal__content {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 0.2s;
}

.track-modal--open .track-modal__content {
  transform: translateY(0);
}

.track-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--bg-hover);
}

.track-modal__title {
  font-size: 1.125rem;
  font-weight: 600;
}

.track-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.track-modal__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.track-modal__close svg {
  width: 20px;
  height: 20px;
}

.track-modal__body {
  padding: var(--space-lg);
}

.track-modal__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.track-modal__input-group {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.track-modal__input-group:focus-within {
  border-color: var(--accent-cyan);
}

.track-modal__input {
  flex: 1;
  padding: var(--space-md);
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-primary);
  outline: none;
}

.track-modal__input::placeholder {
  color: var(--text-muted);
}

.track-modal__currency {
  padding: var(--space-md);
  background: var(--bg-hover);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.track-modal__presets {
  display: flex;
  gap: var(--space-sm);
}

.track-modal__preset {
  flex: 1;
  padding: var(--space-sm);
  background: var(--bg-panel);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.track-modal__preset:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.track-modal__footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--bg-hover);
}

.track-modal__footer .btn {
  flex: 1;
}

/* Responsive Track Page */
@media (max-width: 1024px) {
  .track-howto__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .track-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .track-howto__grid {
    grid-template-columns: 1fr;
  }

  .track-card__actions {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .track-grid {
    grid-template-columns: 1fr;
  }

  .track-empty__actions {
    flex-direction: column;
  }

  .track-empty__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive Game Page */
@media (max-width: 1024px) {
  .price-table__header,
  .price-table__row {
    grid-template-columns: 2fr 1fr 1fr 80px;
  }

  .price-table__header span:nth-child(2),
  .price-table__header span:nth-child(3),
  .price-table__row .price-table__region,
  .price-table__row .price-table__regular {
    display: none;
  }
}

@media (max-width: 768px) {
  .game-hero {
    grid-template-columns: 1fr;
  }

  .game-hero__image {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  .game-hero__title {
    font-size: 1.75rem;
  }

  .game-hero__best-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-hero__best-actions {
    width: 100%;
  }

  .game-hero__best-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .game-info {
    grid-template-columns: 1fr;
  }

  .price-table__header,
  .price-table__row {
    grid-template-columns: 1fr 1fr 70px;
    font-size: 0.875rem;
  }

  .price-table__header span:nth-child(5),
  .price-table__row .price-table__discount {
    display: none;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 400px;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--info {
  border-left: 3px solid var(--accent-cyan);
}

.toast--success {
  border-left: 3px solid #10B981;
}

.toast--warning {
  border-left: 3px solid var(--accent-warning);
}

.toast--error {
  border-left: 3px solid var(--accent-error);
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__message {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.toast__btn {
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.toast__btn:active {
  transform: scale(0.95);
}

.toast__btn--secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.toast__btn--secondary:hover {
  background: var(--bg-panel);
  color: var(--text-primary);
}

.toast__btn--danger {
  background: var(--accent-error);
  color: white;
}

.toast__btn--danger:hover {
  background: #EF4444;
}

.toast__btn--primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.toast__btn--primary:hover {
  background: var(--accent-blue);
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toast__close:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: var(--space-lg);
    left: var(--space-md);
    right: var(--space-md);
  }

  .toast {
    max-width: 100%;
  }
}
