:root {
  --ps-blue: #F0A500;
  --ps-dark-blue: #C47F00;
  --ps-light-blue: #FFD700;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent: #F0A500;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #F0A500;
  --border: #222222;
}

/* ── LIGHT MODE ── */
body.light-mode {
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --text-primary: #111111;
  --text-secondary: #555555;
  --border: #dddddd;
}
body.light-mode nav { background: #fff; border-bottom: 1px solid #ddd; }
body.light-mode .admin-container { background: #f0f2f5; }
body.light-mode .admin-header { background: #fff; border-color: #ddd; }
body.light-mode .admin-tabs { background: #fff; border-color: #ddd; }
body.light-mode .admin-tab { color: #555; }
body.light-mode .admin-tab:hover { background: #f0f2f5; color: #111; }
body.light-mode .admin-tab.active { background: #f0f2f5; color: #111; border-color: var(--ps-blue); }
body.light-mode .tab-panel { background: #f0f2f5; }
body.light-mode .form-card { background: #fff; border-color: #ddd; }
body.light-mode .form-card h2 { color: #111; border-color: #ddd; }
body.light-mode .form-group label { color: #444; }
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea { background: #f8f9fa; border-color: #ccc; color: #111; }
body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus,
body.light-mode .form-group textarea:focus { border-color: var(--ps-blue); background: #fff; }
body.light-mode .table-card { background: #fff; border-color: #ddd; }
body.light-mode .table-card h2 { color: #111; border-color: #eee; }
body.light-mode .games-table th { background: #f0f2f5; color: #444; border-color: #eee; }
body.light-mode .games-table td { border-color: #f0f0f0; color: #222; }
body.light-mode .games-table tr:hover td { background: #fafafa; }
body.light-mode .btn-outline { border-color: #ccc; color: #444; }
body.light-mode .btn-outline:hover { background: #f0f2f5; }
body.light-mode #mongoIndicator { background: #f8f9fa; border-color: #ddd; }
body.light-mode .add-choice-grid .add-choice-card { background: #f8f9fa; border-color: #ddd; }
body.light-mode .add-choice-card:hover { background: #fff; border-color: var(--ps-blue); }
body.light-mode .add-choice-card .label { color: #111; }
body.light-mode .add-choice-card .desc { color: #666; }
body.light-mode .cust-row td { color: #222; }
body.light-mode .badge-available { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
body.light-mode .badge-unavailable { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
body.light-mode .game-desc-inline { background: #f8f8f8; color: #333; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  background: linear-gradient(90deg, #C47F00 0%, #F0A500 50%, #C47F00 100%);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  color: #fff;
  text-align: center;
  padding: 0.6rem 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  letter-spacing: 0.1px;
}
.announcement-bar a { color: #fff; text-decoration: underline; opacity: 0.85; }
.announcement-bar a:hover { opacity: 1; }
.announcement-close {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem; cursor: pointer;
  line-height: 1; padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.announcement-close:hover { color: #fff; background: rgba(255,255,255,0.15); }
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }

/* NAV */
nav {
  background: #000;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #111;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; display: block; }
/* fallback text logo */
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--ps-blue); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links .admin-btn {
  background: var(--ps-blue);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-links .admin-btn:hover { background: #FFD700; color: #000; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #000 0%, #1a1000 50%, #000 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-custom-bg { background: #000; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1;
  pointer-events: none;
}
.hero-custom-bg .hero-content { z-index: 2; }
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(240,165,0,0.1) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--ps-blue); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Game Detail Page ─────────────────────────────────────── */
.gd-page { max-width: 960px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.gd-back a { color: #555; text-decoration: none; font-size: 0.85rem; }
.gd-back a:hover { color: var(--ps-blue); }
.gd-layout { display: flex; gap: 2.5rem; margin-top: 1.5rem; align-items: flex-start; }
.gd-cover-col { position: relative; flex-shrink: 0; width: 380px; }
.gd-cover { width: 100%; height: 480px; border-radius: 14px; object-fit: cover; object-position: top; display: block; }
.gd-cover-placeholder { height: 480px; background: #111; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.gd-platform-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; font-size: 0.65rem; font-weight: 800; padding: 0.25rem 0.5rem; border-radius: 5px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.15); z-index: 3; }

/* ── Gameplay Slider ─────────────────────────────────────── */
.gd-slider { position: relative; width: 100%; border-radius: 14px; overflow: hidden; }
.gd-slider-track { display: flex; transition: transform 0.35s ease; }
.gd-slide { flex: 0 0 100%; }
.gd-slide .gd-cover { border-radius: 0; }
.gd-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: background 0.15s; }
.gd-slider-arrow:hover { background: rgba(0,0,0,0.85); }
.gd-slider-prev { left: 8px; }
.gd-slider-next { right: 8px; }
.gd-slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.gd-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; transition: background 0.15s, width 0.15s; }
.gd-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.gd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gd-thumb { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; cursor: pointer; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-thumb.active { opacity: 1; border-color: var(--ps-blue); }
.gd-thumb:hover { opacity: 1; }
.gd-detail-col { flex: 1; min-width: 0; }
.gd-genres { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.gd-genre-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.8px; padding: 0.2rem 0.6rem; border-radius: 4px; background: rgba(255,255,255,0.07); color: #aaa; border: 1px solid #222; }
.gd-title { font-size: 1.6rem; font-weight: 900; line-height: 1.2; margin: 0 0 0.5rem; }
.gd-desc { font-size: 0.85rem; color: #888; margin: 0 0 1rem; line-height: 1.6; }
.gd-section-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 1.2px; color: #555; text-transform: uppercase; margin-bottom: 0.75rem; }
.gd-type-options { display: flex; flex-direction: column; gap: 0.6rem; }
.gd-type-card { display: flex; align-items: flex-start; gap: 0.75rem; background: #111; border: 1.5px solid #222; border-radius: 12px; padding: 0.85rem 1rem; cursor: pointer; transition: border-color 0.15s; }
.gd-type-card:hover:not(.gd-type-disabled) { border-color: #444; }
.gd-type-card.gd-type-selected { border-color: var(--ps-blue); background: rgba(0,112,209,0.06); }
.gd-type-card.gd-type-disabled { opacity: 0.45; cursor: not-allowed; }
.gd-type-card input[type="radio"] { margin-top: 3px; accent-color: var(--ps-blue); flex-shrink: 0; }
.gd-type-body { flex: 1; min-width: 0; }
.gd-type-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.gd-type-icon { font-size: 0.9rem; }
.gd-type-name { font-weight: 700; font-size: 0.95rem; }
.gd-type-status { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; margin-left: auto; }
.gd-status-avail { background: rgba(34,197,94,0.15); color: #22c55e; }
.gd-status-rented { background: rgba(239,68,68,0.15); color: #ef4444; }
.gd-slots-left { font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 4px; background: rgba(0,112,209,0.15); color: #38bdf8; margin-left: 0.35rem; }
.gd-type-desc { font-size: 0.78rem; color: #666; line-height: 1.5; }
.gd-duration-grid { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gd-dur-btn { position: relative; flex: 1; min-width: 70px; background: #111; border: 1.5px solid #222; border-radius: 10px; padding: 0.75rem 0.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; transition: border-color 0.15s, background 0.15s; color: #fff; }
.gd-dur-btn:hover { border-color: #444; }
.gd-dur-btn.active { border-color: var(--ps-blue); background: rgba(0,112,209,0.1); }
.gd-dur-grid-shake { animation: durShake 0.5s ease; border-radius: 10px; outline: 2px solid #ef4444; outline-offset: 3px; }
@keyframes durShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gd-dur-days { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.gd-dur-label { font-size: 0.6rem; font-weight: 700; color: #555; letter-spacing: 0.5px; }
.gd-dur-price { font-size: 0.82rem; font-weight: 700; color: var(--ps-blue); margin-top: 0.25rem; }
.gd-dur-promo { position: absolute; top: -8px; right: -4px; background: #ef4444; color: #fff; font-size: 0.55rem; font-weight: 800; padding: 0.15rem 0.3rem; border-radius: 4px; letter-spacing: 0.3px; }
.gd-total-box { background: #0d0d0d; border: 1px solid #222; border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1.25rem; }
.gd-total-label { font-size: 0.62rem; font-weight: 800; letter-spacing: 1px; color: #444; text-transform: uppercase; margin-bottom: 0.65rem; }
.gd-total-rows { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; border-bottom: 1px solid #1a1a1a; padding-bottom: 0.75rem; }
.gd-total-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: #888; }
.gd-total-disc { color: #22c55e; }
.gd-total-dep { color: #f59e0b; }
.gd-total-final { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; color: #fff; }
.gd-cta-btn { display: block; width: 100%; text-align: center; background: var(--ps-blue); color: #fff; padding: 0.9rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; margin-top: 1.25rem; transition: opacity 0.15s; }
.gd-cta-btn:hover { opacity: 0.85; }
.gd-cta-hint { text-align: center; font-size: 0.75rem; color: #444; margin-top: 0.5rem; }

/* No-slot reservation options */
.gd-avail-soon {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  display: inline-block;
}
.gd-avail-soon strong { color: #fbbf24; }

.gd-noslot-banner {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #1a0f00; border: 1px solid #3a2200; border-radius: 12px;
  padding: 1rem 1.25rem; margin-top: 0.5rem;
}
.gd-noslot-icon { font-size: 1.5rem; flex-shrink: 0; }
.gd-noslot-title { font-weight: 800; font-size: 0.95rem; color: #f59e0b; margin-bottom: 0.2rem; }
.gd-noslot-sub { font-size: 0.8rem; color: #776040; line-height: 1.5; }

.gd-reserve-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem;
}
.gd-reserve-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 14px; padding: 1.25rem 1rem; gap: 0.35rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.gd-reserve-card:hover { transform: translateY(-3px); }
.gd-reserve-priority {
  background: linear-gradient(135deg, #1a0800, #2d1500);
  border: 1px solid #7c4a00;
}
.gd-reserve-priority:hover { box-shadow: 0 8px 30px rgba(245,158,11,0.3); border-color: #f59e0b; }
.gd-reserve-queue {
  background: linear-gradient(135deg, #0a0f1a, #0f1a2d);
  border: 1px solid #1e3a5f;
}
.gd-reserve-queue:hover { box-shadow: 0 8px 30px rgba(59,130,246,0.25); border-color: #3b82f6; }
.gd-reserve-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: #f59e0b; color: #000;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem; border-radius: 4px;
}
.gd-reserve-icon { font-size: 1.75rem; }
.gd-reserve-name { font-weight: 800; font-size: 0.95rem; color: #fff; }
.gd-reserve-fee { font-size: 1.1rem; font-weight: 900; }
.gd-reserve-priority .gd-reserve-fee { color: #f59e0b; }
.gd-reserve-queue .gd-reserve-fee { color: #22c55e; }
.gd-reserve-note { font-size: 0.72rem; color: #666; line-height: 1.45; }
.gd-reserve-cta {
  margin-top: 0.5rem; font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 50px; width: 100%;
}
.gd-reserve-priority .gd-reserve-cta { background: #f59e0b; color: #000; }
.gd-reserve-queue .gd-reserve-cta { background: #1e3a5f; color: #93c5fd; border: 1px solid #3b82f6; }
@media (max-width: 650px) {
  .gd-layout { flex-direction: column; gap: 1.5rem; }
  .gd-cover-col { width: 100%; }
  .gd-cover { height: 300px; }
  .gd-title { font-size: 1.25rem; }
}

/* ── Hero Slideshow ───────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #000;
}
.hero-slides-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  animation: slideIn 0.5s ease;
}
@keyframes slideIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
.hero-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 2rem 1.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}
.hero-slide-arrow:hover { background: var(--ps-blue); }
.hero-slide-prev { left: 12px; }
.hero-slide-next { right: 12px; }
.hero-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.hero-dot.active { background: var(--ps-blue); border-color: var(--ps-blue); }
@media (max-width: 600px) {
  .hero-slideshow { height: 220px; }
  .hero-slide-arrow { width: 36px; height: 36px; font-size: 1.8rem; }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--ps-blue); color: #000; font-weight: 700; }
.btn-primary:hover { background: #FFD700; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #333; }
.btn-outline:hover { border-color: var(--ps-blue); color: var(--ps-blue); }

/* STATS BAR */
.stats-bar {
  background: #111;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--ps-blue); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* SECTION */
.section { padding: 3rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Hide from-price on desktop — full price table shows instead */
.gc-from-price { display: none; }

/* GAME GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ── New Game Card Layout ─────────────────────────────────── */
.game-card-link { text-decoration: none; color: inherit; cursor: pointer; }
.rent-btn-unavail { background: #1a1a1a !important; color: #444 !important; cursor: not-allowed !important; }
.rent-btn-reserve { background: linear-gradient(135deg,#1a0a3a,#3a1a6a) !important; color: #a78bfa !important; border: 1px solid #4a2a8a !important; }
.gc-cover-wrap { position: relative; }
.gc-platform-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.gc-slot-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 0.35rem 0;
  text-transform: uppercase;
}
.gc-slot-banner-last {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
}
.gc-slot-banner-none {
  background: rgba(30, 30, 30, 0.88);
  color: #555;
}
.gc-genre {
  font-size: 0.62rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.8px;
  margin-bottom: -0.2rem;
}
.gc-price-table {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: stretch;
}
.gc-col {
  flex: 1;
  height: 100%;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  box-sizing: border-box;
}
.gc-col-tr { background: #100c00; border-color: rgba(255,196,0,0.2); }
.gc-col-ps4 { background: #060d1a; border-color: rgba(96,165,250,0.2); }
.gc-col-head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.1rem;
}
.gc-col-icon { font-size: 0.65rem; }
.gc-col-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #666;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-avail-row { margin-bottom: 0.15rem; }
.gc-avail {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  display: inline-block;
}
.gc-avail-yes  { background: rgba(34,197,94,0.15); color: #22c55e; }
.gc-avail-tr   { background: rgba(255,196,0,0.15); color: #ffc400; }
.gc-avail-ps4  { background: rgba(96,165,250,0.15); color: #60a5fa; }
.gc-avail-no   { background: rgba(239,68,68,0.12); color: #ef4444; }
.gc-slot-count { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 0.1rem; }
.gc-slot-type-label { font-size: 0.58rem; font-weight: 700; color: #60a5fa; background: rgba(96,165,250,0.1); border-radius: 3px; padding: 0.1rem 0.3rem; }
.gc-col-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; align-items: stretch; }
.gc-col-wrap .gc-col { flex: 1; }
.gc-days-left-spacer { height: 1.1rem; display: flex; align-items: center; margin-bottom: 0.25rem; }
.gc-days-left { font-size: 0.58rem; font-weight: 700; color: #f59e0b; white-space: nowrap; }
.gc-days-left-tr { color: #ffc400; }
.gc-days-left-ps4 { color: #60a5fa; }
.gc-price-rows { display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto; padding-top: 0.3rem; }
.gc-price-row  { display: flex; justify-content: space-between; align-items: center; }
.gc-dur        { font-size: 0.62rem; color: #555; font-weight: 600; }
.gc-price      { font-size: 0.72rem; font-weight: 400; color: #fff; }
.gc-price-tr   { color: #ffc400; }
.gc-price-ps4  { color: #60a5fa; }

.game-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 550px;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(240,165,0,0.15);
  border-color: rgba(240,165,0,0.25);
}

.game-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #111;
  flex-shrink: 0;
}

.game-cover-placeholder {
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #333;
}
.game-cover-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.game-cover-placeholder span { font-size: 0.75rem; opacity: 0.5; }

.game-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-height: 0; }
.game-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; height: 1.24rem; overflow: hidden; white-space: nowrap; flex-shrink: 0; }
.game-platform {
  font-size: 0.72rem;
  color: var(--ps-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-availability { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.6rem; }
.slot-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; }
.slot-label { color: var(--text-secondary); font-weight: 600; }
.slot-avail { color: #22c55e; font-weight: 700; }
.slot-unavail { color: #ef4444; font-weight: 600; opacity: 0.8; }
.game-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.badge-available { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.badge-unavailable { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.badge-renters { background: rgba(255,255,255,0.07); color: var(--text-secondary); border: 1px solid var(--border); }

.price-block {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.price-block-trophy {
  background: #110d00;
  border-color: rgba(255,196,0,0.2);
}
.price-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
}
.price-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.price-label { color: var(--text-secondary); }
.price-val { font-weight: 700; color: #fff; }
.trophy-deposit-note {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #886600;
  font-style: italic;
}

.trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(255, 196, 0, 0.12);
  color: #ffc400;
  border: 1px solid rgba(255, 196, 0, 0.3);
}
.trophy-badge svg { width: 11px; height: 11px; }

.rent-btn {
  width: 100%;
  padding: 0.65rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: auto;
  flex-shrink: 0;
}
.rent-btn:hover { background: #F0A500; color: #000; }
.rent-btn:disabled { background: #1a1a1a; color: #444; cursor: not-allowed; }

/* BROWSE PAGE */
.browse-header {
  padding: 2rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}
.browse-header h1 { font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}
.search-box input:focus { outline: none; border-color: #F0A500; }
.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  width: 16px;
  height: 16px;
}
.filter-select {
  padding: 0.65rem 1rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: #F0A500; }
.filter-btn {
  padding: 0.65rem 1.25rem;
  background: var(--ps-blue);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.filter-btn:hover { background: #FFD700; }

.results-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* VISITOR STAT CARDS */
.stat-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.stat-card-label { font-size: 0.72rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.stat-card-num { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 0.2rem; }
.stat-card-sub { font-size: 0.72rem; color: #555; }

/* ADMIN */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.8rem; font-weight: 900; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.alert-success { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.alert-danger { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }

/* ADD GAME FORM */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.form-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group input[hidden] { display: none !important; }
.form-group[hidden] { display: none !important; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #F0A500; box-shadow: 0 0 0 2px rgba(240,165,0,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { margin-top: 1rem; display: flex; gap: 0.75rem; }

/* GAMES TABLE */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-card h2 { font-size: 1.1rem; font-weight: 700; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.games-table { width: 100%; border-collapse: collapse; }
.games-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: #111;
}
.games-table td { padding: 0.875rem 1rem; border-top: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.games-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-cover { width: 40px; height: 53px; object-fit: cover; border-radius: 4px; background: #111; display: block; }
.table-cover-placeholder { width: 40px; height: 53px; background: #1a1a1a; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #333; font-size: 1.2rem; }

.action-btns { display: flex; gap: 0.5rem; }
.btn-edit, .btn-delete {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-edit { background: rgba(240,165,0,0.15); color: #F0A500; }
.btn-edit:hover { background: #F0A500; color: #000; }
.btn-delete { background: rgba(231,76,60,0.15); color: #e74c3c; }
.btn-delete:hover { background: #e74c3c; color: #fff; }

/* EDIT PAGE */
.edit-container { max-width: 700px; margin: 2rem auto; padding: 0 2rem; }
.edit-container h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; margin-bottom: 1.5rem; }
.back-link:hover { color: #fff; }

/* MODAL / RENT FLOW */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.modal h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.modal p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 1rem; justify-content: center; }

/* HOW IT WORKS */
.how-section { background: #111; padding: 4rem 2rem; }
.how-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.how-inner h2 { font-size: 1.75rem; font-weight: 900; margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { padding: 1.5rem; }
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #C47F00, #F0A500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--text-secondary); }

/* FOOTER */
footer {
  background: #000;
  border-top: 1px solid #111;
  padding: 2.5rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.82rem; margin-top: 0.35rem; }
.footer-social { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-social-label { font-size: 0.75rem; color: #444; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.social-icons { display: flex; gap: 0.75rem; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.social-icon:hover { transform: translateY(-3px); opacity: 1; }
.social-icon svg { width: 20px; height: 20px; }
.social-icon.facebook { background: #1877f2; color: #fff; }
.social-icon.messenger { background: linear-gradient(135deg, #0099ff, #a033ff); color: #fff; }
.footer-copy { font-size: 0.75rem; color: #333; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(46,204,113,0.4); color: #2ecc71; }
.toast.error { border-color: rgba(231,76,60,0.4); color: #e74c3c; }

/* PS PLUS BROWSE ENTRIES */
.psplus-browse-entry {
  background: linear-gradient(135deg,#0d0d00,#111);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.psplus-browse-entry:hover { border-color: rgba(255,215,0,0.35); }
.psplus-browse-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.psplus-browse-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.psplus-browse-cover-wide {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.psplus-browse-cover-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg,#1a1a00,#2a2000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  flex-shrink: 0;
}
.psplus-browse-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.psplus-browse-game-tag {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  color: #ccc;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
}

/* PS PLUS DELUXE */
.psplus-hero {
  position: relative;
  background: #000;
  padding: 4rem 2rem 3.5rem;
  overflow: hidden;
}
.psplus-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,215,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,165,0,0.05) 0%, transparent 50%),
    linear-gradient(135deg, #000 0%, #0a0800 100%);
  pointer-events: none;
}
.psplus-hero-bg::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
}
.psplus-hero-content { position: relative; z-index: 1; max-width: 700px; }
.psplus-logo-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.psplus-ps-icon { width: 56px; height: 56px; flex-shrink: 0; }
.psplus-eyebrow { font-size: 0.75rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.psplus-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1;
}
.psplus-title span { color: #FFD700; }
.psplus-subtitle { font-size: 0.9rem; color: #886600; font-weight: 600; margin-top: 0.35rem; font-style: italic; }
.psplus-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.5rem; max-width: 520px; }
.psplus-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pricing */
.psplus-pricing-section {
  background: #080600;
  border-top: 2px solid #1a1500;
  border-bottom: 1px solid #1a1500;
  padding: 3rem 2rem;
}
.psplus-pricing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.psplus-pricing-inner h2 { font-size: 1.75rem; font-weight: 900; margin-bottom: 0.25rem; }
.psplus-price-grid {
  display: flex;
  gap: 0;
  margin: 0 0 1.5rem;
  background: #111;
  border: 1px solid #2a2000;
  border-radius: 16px;
  overflow: hidden;
}
.psplus-price-card { flex: 1; padding: 1.5rem 1.25rem; }
.psplus-price-card-trophy { background: #0d0900; }
.psplus-price-divider { width: 1px; background: #2a2000; flex-shrink: 0; }
.psplus-price-card-label { font-size: 0.9rem; font-weight: 800; margin-bottom: 0.2rem; color: #aaa; }
.psplus-price-card-sub { font-size: 0.72rem; color: #444; margin-bottom: 1rem; }
.psplus-price-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.psplus-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.psplus-price-row-highlight { background: rgba(255,215,0,0.06); }
.psplus-price-days { font-size: 0.82rem; color: #777; font-weight: 600; }
.psplus-price-amount { font-size: 1.1rem; font-weight: 900; color: #fff; }
.psplus-deposit-note { font-size: 0.72rem; color: #886600; margin-top: 0.75rem; font-style: italic; }
.psplus-notes {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.78rem; color: #555;
  margin-top: 2rem;
}

/* Year section */
.psplus-year-section { padding: 3rem 2rem 1rem; max-width: 1400px; margin: 0 auto; }
.psplus-year-inner { max-width: 1400px; margin: 0 auto; }
.psplus-year-header { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.psplus-year-title {
  font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; gap: 0.75rem;
}
.psplus-year-title::after { content: ''; flex: 1; height: 1px; background: #1a1500; }
.psplus-year-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 0.85rem; font-weight: 900;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}
.psplus-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.psplus-month-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.psplus-month-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.3);
}
.psplus-month-cover-wrap { position: relative; }
.psplus-month-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  background: #111;
}
.psplus-month-cover-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a0800, #1a1400);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.psplus-month-placeholder-icon { font-size: 2rem; opacity: 0.4; }
.psplus-month-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.7rem; font-weight: 900; color: #FFD700;
  letter-spacing: 1.5px;
}
.psplus-month-info { padding: 0.75rem; }
.psplus-month-name { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.4rem; }
.psplus-games-list { display: flex; flex-direction: column; gap: 0.15rem; }
.psplus-game-item { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.4; }
.psplus-month-notes { font-size: 0.7rem; color: #444; margin-top: 0.5rem; font-style: italic; }

/* PS Plus Most Played — compact card */
.psplus-popular-card {
  border-color: #2a2000;
  height: 380px !important;
}
.psplus-popular-card:hover { box-shadow: 0 12px 40px rgba(255,215,0,0.18); border-color: rgba(255,215,0,0.4); }
.psplus-popular-card .game-cover,
.psplus-popular-card .game-cover-placeholder { height: 200px !important; }
.psplus-popular-card .game-info { gap: 0.25rem; padding: 0.75rem; }
.psplus-popular-card .rent-btn { margin-top: auto; flex-shrink: 0; }
.psplus-popular-rank {
  position: absolute;
  top: 8px; left: 8px;
  background: linear-gradient(135deg, #856200, #FFD700);
  color: #000;
  font-size: 0.7rem; font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Admin PS Plus table */
.psplus-admin-entry {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.psplus-admin-entry:last-child { border-bottom: none; }
.psplus-admin-cover { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #111; }
.psplus-admin-cover-placeholder { width: 64px; height: 36px; background: #1a1400; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* UPCOMING GAMES SLIDER */
.upcoming-slider-wrap { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.upcoming-slider { display: flex; gap: 1.25rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.5rem; padding-top: 18px; flex: 1; }
.upcoming-slider::-webkit-scrollbar { display: none; }
.upcoming-slider .game-card { min-width: 240px; max-width: 240px; scroll-snap-align: start; flex-shrink: 0; }
.slider-arrow { background: rgba(30,30,30,0.9); border: 1px solid #333; color: #fff; font-size: 2rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; z-index: 2; padding: 0; }
.slider-arrow:hover { background: #7b2ff7; border-color: #7b2ff7; }

/* UPCOMING GAMES — compact card */
.upcoming-card {
  border-color: #2a1a3a;
  height: 380px !important;
  overflow: visible;
}
.upcoming-card:hover { box-shadow: 0 12px 40px rgba(123,47,247,0.25); border-color: #5a2a8a; }
.upcoming-card .game-cover,
.upcoming-card .game-cover-placeholder { height: 200px !important; border-radius: 13px 13px 0 0; }
.upcoming-card .game-info { gap: 0.25rem; padding: 0.75rem; }
.upcoming-card .rent-btn { margin-top: auto; flex-shrink: 0; }
.upcoming-overlay-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* HOW IT WORKS PAGE */
.hiw-step {
  display: grid;
  grid-template-columns: 56px 2px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 0;
}
.hiw-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #C47F00, #F0A500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(240,165,0,0.2);
  position: relative; z-index: 1;
}
.hiw-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--ps-blue), transparent);
  margin: 0 auto;
  min-height: 40px;
}
.hiw-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  grid-column: 3;
  grid-row: 1;
}
.hiw-step { align-items: start; }
.hiw-num { grid-column: 1; grid-row: 1; margin-top: 1.75rem; }
.hiw-connector { grid-column: 2; grid-row: 1 / 3; }

.hiw-icon {
  font-size: 2rem;
  width: 52px; height: 52px;
  background: rgba(0,112,209,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hiw-body { flex: 1; }
.hiw-body h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.6rem; }
.hiw-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

.hiw-tip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem; color: #F0A500; font-weight: 600;
}

.hiw-details {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin: 1.25rem 0;
}
.hiw-detail-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.hiw-detail-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.hiw-detail-item strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.hiw-detail-item span { font-size: 0.8rem; color: var(--text-secondary); }

.hiw-example {
  background: #0a0a0a;
  border: 1px solid #222;
  border-left: 3px solid var(--ps-blue);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .hiw-step { grid-template-columns: 40px 2px 1fr; gap: 0 1rem; }
  .hiw-num { width: 40px; height: 40px; font-size: 1rem; }
  .hiw-card { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
  .hiw-icon { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* TOGGLE SWITCH */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #222; border: 1px solid #333;
  border-radius: 26px; transition: 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #555; border-radius: 50%; transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(240,165,0,0.2); border-color: #F0A500; }
.toggle-switch input:checked + .toggle-slider::before { background: #F0A500; transform: translateX(22px); }

/* GAME DESCRIPTION INLINE HOVER */
.game-desc-inline {
  display: none;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--ps-blue);
  border-radius: 0 6px 6px 0;
}
.game-card:hover .game-desc-inline { display: block; }

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .stats-bar { gap: 2rem; }
  .section { padding: 2rem 1rem; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .psplus-months-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .psplus-month-cover { aspect-ratio: 16/9; }
  .psplus-month-cover-placeholder { aspect-ratio: 16/9; }
  /* Browse PS Plus monthly — full width 16:9 on mobile */
  .psplus-browse-header { flex-wrap: wrap; }
  .psplus-browse-cover-wide { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 8px 8px 0 0; margin-bottom: 0.5rem; }
  .admin-container { padding: 1rem; }
  .games-table { font-size: 0.8rem; }
  .games-table th:nth-child(4),
  .games-table td:nth-child(4) { display: none; }

  /* Compact card for mobile 3-column */
  .game-card { height: auto; min-height: 0; border-radius: 10px; }
  .game-cover { height: 130px; }
  .gc-cover-wrap .game-cover { height: 130px; }
  .game-info { padding: 0.5rem; }
  .game-title { font-size: 0.7rem; line-height: 1.2; margin-bottom: 0.25rem; -webkit-line-clamp: 2; }
  .game-platform { font-size: 0.6rem; margin-bottom: 0.2rem; }
  .rent-btn { font-size: 0.65rem; padding: 0.4rem 0.5rem; margin-top: 0.4rem; border-radius: 6px; }
  .gc-platform-badge { font-size: 0.55rem; padding: 0.2rem 0.4rem; }
  .gc-slot-row { font-size: 0.65rem; }
  .gc-price-row { font-size: 0.65rem; }
  .game-desc-inline { display: none !important; }

  /* Upcoming/Coming Soon slider compact */
  .upcoming-slider .game-card { min-width: calc(50vw - 1px); max-width: calc(50vw - 1px); }

  /* Home page sliders — tight 2-card layout */
  .upcoming-slider { gap: 1px; }
  .slider-arrow { display: none; }
  .upcoming-slider-wrap { gap: 0; }
  .slider-card-wrap {
    min-width: calc(50vw - 1px) !important;
    max-width: calc(50vw - 1px) !important;
  }
  .slider-card-wrap .game-card { height: auto; border-radius: 12px; }
  .slider-card-wrap .game-cover { height: 160px; }
  .slider-card-wrap .gc-cover-wrap .game-cover { height: 160px; }
  .slider-card-wrap .game-info { padding: 0.5rem 0.5rem 0.6rem; }
  .slider-card-wrap .gc-genre { font-size: 0.6rem; }
  .slider-card-wrap .game-title { font-size: 0.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.3rem; }
  .slider-card-wrap .gc-days-left-spacer { display: none; }
  /* Compact 2-col price table */
  .slider-card-wrap .gc-price-table { display: flex; gap: 0.3rem; margin-top: 0.3rem; }
  .slider-card-wrap .gc-col-wrap { flex: 1; min-width: 0; }
  .slider-card-wrap .gc-col { padding: 0.3rem; border-radius: 6px; }
  .slider-card-wrap .gc-col-head { margin-bottom: 0.15rem; gap: 0.15rem; }
  .slider-card-wrap .gc-col-icon { font-size: 0.6rem; }
  .slider-card-wrap .gc-col-label { font-size: 0.48rem; }
  .slider-card-wrap .gc-slot-count { margin-bottom: 0.15rem; }
  .slider-card-wrap .gc-avail { font-size: 0.55rem; padding: 0.1rem 0.25rem; }
  .slider-card-wrap .gc-price-rows { display: flex; flex-direction: column; gap: 0.05rem; }
  .slider-card-wrap .gc-price-row { font-size: 0.58rem; gap: 0.15rem; }
  .slider-card-wrap .gc-dur { font-size: 0.54rem; }
  .slider-card-wrap .gc-price { font-size: 0.6rem; }
  .slider-card-wrap .gc-from-price { display: none; }
  .slider-card-wrap .rent-btn { font-size: 0.65rem; padding: 0.35rem 0.4rem; margin-top: 0.35rem; border-radius: 7px; }
  .slider-card-wrap .gc-platform-badge { font-size: 0.55rem; padding: 0.18rem 0.4rem; }
  /* PS Plus cards */
  .slider-card-wrap .psplus-popular-card { height: auto !important; }
  .slider-card-wrap .psplus-popular-card > div:first-child img { height: 160px; width: 100%; object-fit: cover; border-radius: 12px 12px 0 0; }
  .slider-card-wrap .psplus-popular-card .game-info { padding: 0.5rem; }
  .slider-card-wrap .psplus-popular-card .game-title { font-size: 0.8rem; font-weight: 700; }
  .slider-card-wrap .psplus-popular-card .rent-btn { font-size: 0.65rem; padding: 0.35rem; margin-top: 0.35rem; }
}

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; padding: 0 1rem; }
.review-card { background: #111; border: 1px solid #222; border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; transition: transform 0.2s, box-shadow 0.2s; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); border-color: #333; }
.review-stars { font-size: 1rem; letter-spacing: 2px; }
.review-text { color: #ccc; font-size: 0.88rem; line-height: 1.65; flex: 1; margin: 0; font-style: italic; }
.review-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #7b2ff7, #f107a3); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.review-name { font-weight: 700; color: #fff; font-size: 0.88rem; }
.review-game { font-size: 0.75rem; color: #777; margin-top: 0.1rem; }
.review-fb-badge { margin-left: auto; display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: #1877F2; font-weight: 600; background: rgba(24,119,242,0.1); border: 1px solid rgba(24,119,242,0.2); border-radius: 20px; padding: 0.2rem 0.6rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 0.75rem; padding: 0 0.5rem; }
}

/* Visitor / filter buttons */
.vis-filter-btn { background:#1a1a1a; color:#777; border:1px solid #333; border-radius:20px; cursor:pointer; font-weight:600; transition:all 0.15s; }
.vis-filter-btn:hover { border-color:#555; color:#ccc; }
.vis-filter-btn.vis-filter-active { background:rgba(0,112,209,0.15); border-color:var(--ps-blue); color:var(--ps-blue); }
