/* ==========================================================
   STEAM LIBRARY SHOWCASE — PREMIUM CYBER-GAMING STYLES
   ========================================================== */

:root {
  --bg-darkest: #070a0e;
  --bg-main: #0b0f15;
  --bg-surface: #101620;
  --bg-surface-elevated: #161f2c;
  --bg-card: #141c27;
  --bg-card-hover: #1c2737;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(77, 166, 255, 0.5);
  --border-card: #1f2b3a;
  --border-card-hover: #355376;
  
  --accent-primary: #1a73e8;
  --accent-glow: #3898ff;
  --accent-gradient: linear-gradient(135deg, #2b7fff 0%, #1754c7 100%);
  --accent-gradient-steam: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  
  --funpay-color: #3e8ede;
  --funpay-gradient: linear-gradient(135deg, #1e70bf 0%, #0d4b8a 100%);
  --telegram-color: #24a1de;
  --steam-color: #66c0f4;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  
  --text-primary: #f0f4f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-bright: #ffffff;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(56, 152, 255, 0.25);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(33, 115, 232, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(26, 84, 199, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #253346;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #364c69;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================
   NAVIGATION / HEADER BAR
   ========================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.top-navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-avatar-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(56, 152, 255, 0.5);
  box-shadow: 0 0 12px rgba(56, 152, 255, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-avatar-img:hover {
  transform: scale(1.08);
  border-color: var(--accent-glow);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 152, 255, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-bright);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-link-btn.btn-funpay {
  background: rgba(62, 142, 222, 0.15);
  border-color: rgba(62, 142, 222, 0.4);
  color: #63b3ff;
}

.nav-link-btn.btn-funpay:hover {
  background: rgba(62, 142, 222, 0.3);
  border-color: var(--funpay-color);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(62, 142, 222, 0.25);
}

.nav-link-btn.btn-telegram {
  background: rgba(36, 161, 222, 0.12);
  border-color: rgba(36, 161, 222, 0.35);
  color: #5ec8ff;
}

.nav-link-btn.btn-telegram:hover {
  background: rgba(36, 161, 222, 0.25);
  color: #ffffff;
}


/* ==========================================================
   LANGUAGE SELECTOR (COMPACT STEAM THEMED)
   ========================================================== */
.lang-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 7px 32px 7px 12px;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.lang-select:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 10px rgba(33, 136, 255, 0.2);
}

.lang-select:focus {
  border-color: var(--accent-glow);
  box-shadow: 0 0 12px rgba(56, 152, 255, 0.35);
}

.lang-select option {
  background: #141b23;
  color: #f0f4f8;
  font-weight: 600;
  padding: 8px 12px;
}

.lang-select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.lang-select-wrapper:hover .lang-select-arrow {
  color: var(--accent);
}

/* ==========================================================
   HERO / SELLER PROFILE SECTION
   ========================================================== */
.hero-section {
  padding: 28px 0 20px;
}

.seller-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 28, 39, 0.9) 0%, rgba(16, 22, 32, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.seller-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(56, 152, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.seller-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.seller-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seller-avatar-wrap {
  position: relative;
}

.seller-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 152, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.seller-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 20px rgba(56, 152, 255, 0.4);
  border: 2px solid rgba(56, 152, 255, 0.6);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.seller-avatar-img:hover {
  transform: scale(1.05);
  border-color: var(--accent-glow);
}

.status-indicator-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--success-color);
  border: 2.5px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.seller-info-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seller-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4ade80;
}

.seller-title-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.seller-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.seller-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.pill-badge strong {
  color: var(--text-bright);
}

.pill-badge.highlight {
  background: rgba(56, 152, 255, 0.1);
  border-color: rgba(56, 152, 255, 0.3);
  color: var(--steam-color);
}

.seller-desc-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 950px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ==========================================================
   INFO PANELS & ACCORDION (RULES / FAQ)
   ========================================================== */
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.info-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.info-feature-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.feature-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.feature-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
}

.feature-card-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tabs & Accordion for Buyer Info */
.buyer-guide-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.guide-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
}

.guide-tab-btn {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.guide-tab-btn:hover {
  color: var(--text-bright);
}

.guide-tab-btn.active {
  color: var(--accent-glow);
  border-bottom-color: var(--accent-glow);
  background: rgba(56, 152, 255, 0.05);
}

.guide-tab-content {
  padding: 20px 24px;
  display: none;
}

.guide-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
}

.step-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--accent-glow);
  font-size: 12px;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================
   CATALOG CONTROLS (SEARCH, FILTERS, VIEW MODES)
   ========================================================== */
.catalog-toolbar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(11, 15, 21, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.toolbar-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-size: 14px;
  padding: 0 70px 0 42px;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.catalog-search-input:focus {
  border-color: var(--accent-glow);
  box-shadow: 0 0 0 3px rgba(56, 152, 255, 0.18);
}

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

.search-clear-btn {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text-bright);
}

.kbd-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.sort-select-box {
  height: 44px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 0 14px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.sort-select-box:focus {
  border-color: var(--accent-glow);
}

/* View switcher */
.view-mode-toggle {
  display: flex;
  background: var(--bg-darkest);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  color: var(--text-bright);
}

.view-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-glow);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Categories row (Filter Chips) */
.categories-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 4px 0 2px;
}

.category-chip {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  color: var(--text-bright);
}

.category-chip.active {
  background: rgba(56, 152, 255, 0.15);
  border-color: var(--accent-glow);
  color: #ffffff;
  font-weight: 600;
}

.chip-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.category-chip.active .chip-count {
  background: var(--accent-primary);
  color: #fff;
}

.chip-count.is-zero {
  opacity: 0.65;
}

/* Stats bar */
.catalog-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0 4px;
}

.catalog-stats-row strong {
  color: var(--text-bright);
}

/* ==========================================================
   GAMES DISPLAY MODES
   ========================================================== */

/* 1. HORIZONTAL STEAM CARDS VIEW (Clean & Modern 4-in-a-row) */
.games-container.view-posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

@media (min-width: 1100px) {
  .games-container.view-posters {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .games-container.view-posters {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .games-container.view-posters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.poster-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 152, 255, 0.15);
}

.poster-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 460 / 215;
  background: #0d131a;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.poster-card:hover .poster-img {
  transform: scale(1.04);
}

.poster-tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 22, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  font-weight: 700;
  color: #64b5f6;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.poster-info-block {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  min-height: 48px;
}

.poster-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.title-skeleton-loading {
  display: inline-block;
  width: 140px;
  max-width: 85%;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmerTitlePulse 1.4s infinite ease-in-out;
  vertical-align: middle;
}

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

.poster-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quick-action-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.quick-action-icon-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-glow);
  color: #ffffff;
  transform: translateY(-1px);
}


/* ==========================================================
   INFINITE SCROLL & LOAD MORE
   ========================================================== */
.infinite-scroll-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 16px;
}

.btn-load-more {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
  background: var(--accent-primary);
  border-color: var(--accent-glow);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}


/* 3. LIST VIEW */
.games-container.view-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.list-row-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateX(4px);
}

.list-thumbnail {
  width: 60px;
  height: 34px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  background: #0d131a;
}

.list-info-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.list-game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
}

.list-tag-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 152, 255, 0.12);
  color: var(--steam-color);
}

.list-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fallback cover styling */
.cover-fallback-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16222f 0%, #0d151e 100%);
  color: var(--text-muted);
  gap: 6px;
  font-size: 24px;
  text-align: center;
  padding: 10px;
}

.cover-fallback-box span {
  font-size: 11px;
  color: var(--text-secondary);
  word-break: break-word;
}

/* ==========================================================
   STATUS, EMPTY & LOADING STATES
   ========================================================= */
.status-state-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  grid-column: 1 / -1;
}

.loading-spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(56, 152, 255, 0.15);
  border-top-color: var(--accent-glow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   MODAL WINDOW (GAME PREVIEW)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card-hover);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(0.94) translateY(10px);
  transition: all var(--transition-smooth);
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-hero-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: #0d131a;
  object-fit: cover;
  display: block;
}

.modal-body-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-game-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.modal-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-desc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-launch-guide {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: #d1fae5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .modal-actions-grid {
    grid-template-columns: 1fr;
  }
}

.btn-modal-action {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-modal-action.primary {
  background: var(--funpay-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 112, 191, 0.35);
}

.btn-modal-action.primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-modal-action.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card-hover);
  color: var(--text-bright);
}

.btn-modal-action.secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-glow);
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast-bubble {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #141f2d;
  border: 1px solid var(--accent-glow);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 152, 255, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-bubble.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-darkest);
}

.footer-inner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-bright);
}

.footer-right {
  display: flex;
  gap: 12px;
}

.footer-link-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--accent-glow);
}
