/* ============================================================
   GameHub - Dark Gaming Theme
   Variables, base, components, pages
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #141828;
  --bg-card:       #1a2035;
  --bg-card-hover: #1f2645;
  --bg-input:      #0f1525;

  --accent:        #7c3aed;
  --accent-hover:  #6d28d9;
  --accent-light:  rgba(124, 58, 237, 0.15);
  --accent2:       #06b6d4;
  --accent2-hover: #0891b2;
  --accent2-light: rgba(6, 182, 212, 0.15);

  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(124, 58, 237, 0.4);

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #06b6d4;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 20px rgba(124,58,237,0.3);
  --shadow-accent2: 0 4px 20px rgba(6,182,212,0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --font-main:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.9375rem;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2-hover); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-accent  { color: var(--accent) !important; }
.text-accent2 { color: var(--accent2) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-card  { background: var(--bg-card) !important; }
.bg-dark-custom { background: var(--bg-secondary) !important; }

.border-accent  { border-color: var(--border-accent) !important; }
.border-subtle  { border-color: var(--border) !important; }

.shadow-accent  { box-shadow: var(--shadow-accent); }
.shadow-accent2 { box-shadow: var(--shadow-accent2); }

.rounded-custom { border-radius: var(--radius-md); }

.font-display { font-family: var(--font-display); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ── Bootstrap Overrides ────────────────────────────────────── */
.btn {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-cyan {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}
.btn-cyan:hover {
  background: var(--accent2-hover);
  border-color: var(--accent2-hover);
  box-shadow: var(--shadow-accent2);
  color: #fff;
}

.btn-outline-cyan {
  border-color: var(--accent2);
  color: var(--accent2);
}
.btn-outline-cyan:hover {
  background: var(--accent2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.btn-sm { font-size: 0.8125rem; padding: 0.25rem 0.75rem; }
.btn-lg { font-size: 1rem; padding: 0.6rem 1.5rem; }

.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-label { font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.375rem; }

.form-check-input {
  background-color: var(--bg-input);
  border-color: var(--border);
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-body { padding: 1.25rem; }
.card-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
}

.badge {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.badge.bg-accent  { background: var(--accent) !important; }
.badge.bg-accent2 { background: var(--accent2) !important; color: #000; }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.modal-footer {
  border-top: 1px solid var(--border);
}
.btn-close {
  filter: invert(1) brightness(0.7);
}

.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.375rem;
}
.dropdown-item {
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.875rem;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.dropdown-divider { border-color: var(--border); margin: 0.25rem 0; }

.nav-tabs {
  border-bottom: 1px solid var(--border);
}
.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 0;
  transition: color var(--transition), border-color var(--transition);
}
.nav-tabs .nav-link:hover { color: var(--text-primary); border-bottom-color: var(--border); }
.nav-tabs .nav-link.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
  background: transparent;
}

.nav-pills .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.875rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.nav-pills .nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-pills .nav-link.active { background: var(--accent); color: #fff; }

.progress {
  background: var(--bg-input);
  border-radius: 100px;
  height: 6px;
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
}

.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: 0.875rem 1.125rem;
}
.alert-success { background: rgba(16,185,129,0.15); color: #34d399; }
.alert-danger   { background: rgba(239,68,68,0.15);  color: #f87171; }
.alert-warning  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.alert-info     { background: rgba(6,182,212,0.15);  color: #22d3ee; }

.pagination .page-item .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  transition: all var(--transition);
}
.pagination .page-item .page-link:hover {
  background: var(--accent-light);
  border-color: var(--border-accent);
  color: var(--accent);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background: var(--bg-input);
  color: var(--text-muted);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: rgba(10,14,26,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-brand i {
  -webkit-text-fill-color: var(--accent);
  background: none;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.875rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-card);
}
.navbar-nav .nav-link.active {
  color: var(--accent2) !important;
}

.navbar .search-wrapper {
  position: relative;
  width: 280px;
}
.navbar .search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 2.5rem;
  width: 100%;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.navbar .search-input:focus {
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  outline: none;
  width: 320px;
}
.navbar .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8125rem;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.show { display: block; }
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.search-dropdown-item:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}
.search-dropdown-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.search-dropdown-item .item-title { font-weight: 500; font-size: 0.875rem; }
.search-dropdown-item .item-sub   { font-size: 0.75rem; color: var(--text-muted); }
.search-dropdown-header {
  padding: 0.4rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--bg-primary);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 3rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35) saturate(0.8);
  transition: transform 0.8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,14,26,0.95) 0%,
    rgba(10,14,26,0.6) 50%,
    rgba(10,14,26,0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ── Game Cards ─────────────────────────────────────────────── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.game-card-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
}
.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.game-card:hover .game-card-cover img { transform: scale(1.06); }
.game-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  color: var(--text-muted);
  font-size: 3rem;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  gap: 0.5rem;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-score {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid currentColor;
  background: rgba(10,14,26,0.85);
}
.score-great  { color: var(--success); }
.score-good   { color: var(--accent2); }
.score-mixed  { color: var(--warning); }
.score-bad    { color: var(--danger); }

.game-card-body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Platform badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* AI badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent2-light));
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Horizontal scroll game row */
.games-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.games-scroll-row::-webkit-scrollbar { height: 4px; }
.games-scroll-row .game-card {
  min-width: 160px;
  max-width: 160px;
  scroll-snap-align: start;
}

/* ── Score Circle (SVG gauge) ───────────────────────────────── */
.score-circle-wrap {
  position: relative;
  display: inline-block;
}
.score-circle-svg {
  transform: rotate(-90deg);
}
.score-circle-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}
.score-circle-fg {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.score-circle-number {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.score-circle-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Guide Cards ────────────────────────────────────────────── */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}
.guide-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.guide-card:hover .guide-card-thumb img { transform: scale(1.05); }
.guide-card-type {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.guide-card-ai {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.guide-card-body { padding: 1rem; }
.guide-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}
.guide-card-title:hover { color: var(--accent2); }
.guide-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Difficulty badges */
.difficulty-beginner { background: rgba(16,185,129,0.15);  color: var(--success);  border: 1px solid rgba(16,185,129,0.3); }
.difficulty-medium   { background: rgba(245,158,11,0.15);  color: var(--warning);  border: 1px solid rgba(245,158,11,0.3); }
.difficulty-advanced { background: rgba(239,68,68,0.15);   color: var(--danger);   border: 1px solid rgba(239,68,68,0.3); }
.difficulty-expert   { background: rgba(124,58,237,0.15);  color: var(--accent);   border: 1px solid rgba(124,58,237,0.3); }

/* Guide type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── User Cards ─────────────────────────────────────────────── */
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
  margin: 0 auto 0.75rem;
  display: block;
}
.user-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
}

/* ── Profile Page ───────────────────────────────────────────── */
.profile-banner {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.profile-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.profile-stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: border-color var(--transition);
}
.profile-stat-card:hover { border-color: var(--border-accent); }
.profile-stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Activity Feed ──────────────────────────────────────────── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.activity-icon.type-played    { background: rgba(16,185,129,0.15);  color: var(--success); }
.activity-icon.type-review     { background: rgba(245,158,11,0.15);  color: var(--warning); }
.activity-icon.type-guide      { background: rgba(124,58,237,0.15);  color: var(--accent); }
.activity-icon.type-follow     { background: rgba(6,182,212,0.15);   color: var(--accent2); }
.activity-icon.type-like       { background: rgba(239,68,68,0.15);   color: var(--danger); }
.activity-icon.type-comment    { background: rgba(94,234,212,0.15);  color: #5eead4; }
.activity-icon.type-completed  { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.activity-icon.type-wishlist   { background: rgba(167,139,250,0.15); color: #a78bfa; }
.activity-text { font-size: 0.875rem; flex: 1; }
.activity-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ── Notifications ──────────────────────────────────────────── */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  cursor: pointer;
}
.notification-item:hover  { background: var(--accent-light); }
.notification-item.unread { background: rgba(124,58,237,0.07); }
.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Section Headings ───────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.sidebar-card-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.sidebar-card-body { padding: 1rem; }

/* Filter sidebar */
.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.filter-label:first-child { margin-top: 0; }

/* ── Table of Contents (guide sidebar) ─────────────────────── */
.toc-wrapper {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.25rem; }
.toc-list a {
  display: block;
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.toc-list a:hover { color: var(--accent2); border-left-color: var(--accent2); background: var(--accent2-light); }
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); }
.toc-list .toc-h3 { padding-left: 1.25rem; font-size: 0.75rem; }

/* ── Game Detail ────────────────────────────────────────────── */
.game-detail-hero {
  position: relative;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.game-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(6,182,212,0.03));
  border-radius: var(--radius-xl);
  pointer-events: none;
}
.game-cover-lg {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.game-cover-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 4rem;
}

/* Screenshots gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.screenshot-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.screenshot-thumb:hover { transform: scale(1.02); border-color: var(--border-accent); }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Review stars / score selector */
.score-selector { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.score-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-btn:hover { border-color: var(--accent2); color: var(--accent2); background: var(--accent2-light); }
.score-btn.selected { background: var(--accent2); border-color: var(--accent2); color: #000; }

/* ── Rankings ───────────────────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.podium-item {
  text-align: center;
  flex: 1;
  max-width: 180px;
}
.podium-position {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.podium-1 .podium-position { color: #fbbf24; }
.podium-2 .podium-position { color: #94a3b8; }
.podium-3 .podium-position { color: #cd7c4a; }
.podium-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
}
.podium-1 .podium-cover { border-color: #fbbf24; }
.podium-2 .podium-cover { border-color: #94a3b8; }
.podium-3 .podium-cover { border-color: #cd7c4a; }
.podium-1 { order: 2; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }

.ranking-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.ranking-row:hover { background: var(--bg-card-hover); }
.ranking-num {
  width: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}
.ranking-cover {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.ranking-info { flex: 1; min-width: 0; }
.ranking-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  min-width: 48px;
  text-align: right;
}

/* ── Library Page ───────────────────────────────────────────── */
.library-status-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.library-status-tabs .nav-link .count-pill {
  background: var(--bg-input);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.library-status-tabs .nav-link.active .count-pill {
  background: var(--accent);
  color: #fff;
}

/* ── Social Page ────────────────────────────────────────────── */
.suggested-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.suggested-user:last-child { border-bottom: none; }
.suggested-user-info { flex: 1; min-width: 0; }
.suggested-user-name { font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggested-user-stats { font-size: 0.75rem; color: var(--text-muted); }

/* ── Recommendation Cards ───────────────────────────────────── */
.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.rec-match-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  z-index: 2;
}
.rec-reason {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.375rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}
.breadcrumb-item { font-size: 0.8125rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--accent2); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); content: "/"; }

/* ── AI Generation Progress ─────────────────────────────────── */
.ai-progress-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ai-progress-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.ai-progress-text { flex: 1; min-width: 200px; }

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar .brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.admin-sidebar .nav-link {
  padding: 0.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.admin-sidebar .nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.admin-sidebar .nav-link.active { color: var(--accent2); background: var(--accent2-light); border-right: 3px solid var(--accent2); }
.admin-sidebar .nav-section {
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-main { margin-left: 240px; padding: 1.5rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-card-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 380px;
  width: 100%;
}
.toast-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease forwards;
  border-left: 3px solid var(--accent);
}
.toast-item.toast-success { border-left-color: var(--success); }
.toast-item.toast-error   { border-left-color: var(--danger); }
.toast-item.toast-warning { border-left-color: var(--warning); }
.toast-item.toast-info    { border-left-color: var(--accent2); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-message { font-size: 0.875rem; flex: 1; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 100px; }
  to   { opacity: 0; transform: translateX(40px); max-height: 0; padding: 0; margin: 0; }
}

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

.animate-fade-in    { animation: fadeIn 0.4s ease both; }
.animate-slide-up   { animation: slideUp 0.5s ease both; }
.animate-pulse-slow { animation: pulse 2s ease infinite; }

.ai-generating {
  animation: pulse 1.5s ease infinite;
  color: var(--accent);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.30s; }

/* ── Login / Register Pages ─────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
}
.auth-panel-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(124,58,237,0.2) 0%, transparent 60%);
}
.auth-panel-right {
  width: min(480px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
}
.auth-form-wrap { width: 100%; max-width: 380px; }

/* ── Page-specific ──────────────────────────────────────────── */
.page-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

/* Search results */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.search-result-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.search-result-cover {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Guide content typography */
.guide-content { line-height: 1.8; color: var(--text-secondary); }
.guide-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.guide-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}
.guide-content p { margin-bottom: 1rem; }
.guide-content ul, .guide-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.guide-content li { margin-bottom: 0.375rem; }
.guide-content strong { color: var(--text-primary); font-weight: 600; }
.guide-content em { color: var(--accent2); font-style: normal; font-weight: 500; }
.guide-content code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--accent2);
}
.guide-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
}

/* ── Empty States ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.empty-state h4 {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-sidebar { position: relative; width: 100%; min-height: auto; }
  .admin-main    { margin-left: 0; }

  .auth-panel-left { display: none; }
  .auth-panel-right { width: 100%; border-left: none; }

  .podium { flex-direction: column; align-items: center; }
  .podium-1, .podium-2, .podium-3 { order: unset; }

  .navbar .search-wrapper { width: 100%; }
  .navbar .search-input:focus { width: 100%; }
}

@media (max-width: 767px) {
  .hero-section { min-height: 320px; border-radius: 0; }
  .hero-content { padding: 2rem 1rem; }
  .hero-title   { font-size: 1.75rem; }

  .profile-banner { padding: 1.25rem; }

  .section-title { font-size: 1.125rem; }

  .games-scroll-row .game-card { min-width: 140px; max-width: 140px; }

  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}

@media (max-width: 575px) {
  .stat-card-value { font-size: 1.5rem; }
  .page-title { font-size: 1.5rem; }
  .score-selector { gap: 0.25rem; }
  .score-btn { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* ── Misc Helpers ───────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.overflow-x-auto { overflow-x: auto; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hover-scale { transition: transform var(--transition); }
.hover-scale:hover { transform: scale(1.03); }

.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { color: var(--accent2); }

/* Theme toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--border-accent); color: var(--accent); }

/* Vertical divider */
.vr-custom { width: 1px; background: var(--border); align-self: stretch; margin: 0 0.5rem; }

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-accent);
  z-index: 1000;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   COMPONENTES ADICIONALES — añadidos para completar los templates
   ============================================================ */

/* ── Botones personalizados ─────────────────────────────────── */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-accent:hover { opacity: .88; transform: translateY(-1px); color: #fff !important; }
.btn-accent:active { transform: translateY(0); }

.btn-accent-soft {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  font-weight: 500;
}
.btn-accent-soft:hover { background: rgba(124,58,237,.25); color: var(--accent); }

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 500;
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

.btn-xs { padding: .2rem .55rem; font-size: .75rem; border-radius: var(--radius-sm); }

.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }

.btn-outline-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline-secondary:hover { background: var(--bg-card); color: var(--text-primary); border-color: rgba(255,255,255,.15); }

/* ── Badges y utilidades de color ───────────────────────────── */
.text-cyan  { color: var(--accent2) !important; }
.bg-accent-soft { background: var(--accent-light) !important; }
.bg-dark-input  { background: var(--bg-input) !important; }
.border-dark-input { border-color: rgba(255,255,255,.1) !important; }

.badge-notif {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-gamehub {
  background: rgba(10,14,26,.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.brand-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff !important; }
.brand-logo:hover { color: #fff !important; }
.navbar-gamehub .nav-link { color: var(--text-secondary); font-weight: 500; }
.navbar-gamehub .nav-link:hover, .navbar-gamehub .nav-link.active { color: var(--text-primary); }
.user-menu-btn { gap: .4rem; }
.notif-btn { position: relative; }
.search-wrapper { position: relative; }
.search-input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding-left: 2.2rem !important;
}
.search-input:focus { border-color: var(--border-accent) !important; box-shadow: 0 0 0 3px rgba(124,58,237,.15) !important; }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 9999;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.search-suggestion-item { padding: .6rem 1rem; cursor: pointer; display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--text-secondary); }
.search-suggestion-item:hover { background: var(--bg-card); color: var(--text-primary); }

/* ── Forms oscuros ──────────────────────────────────────────── */
.form-control-dark {
  background: var(--bg-input) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--text-primary) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}
.form-control-dark:focus { border-color: var(--border-accent) !important; box-shadow: 0 0 0 3px rgba(124,58,237,.12) !important; color: var(--text-primary) !important; }
.form-control-dark::placeholder { color: var(--text-muted) !important; }
.input-group-dark .input-group-text { background: var(--bg-input); border: 1px solid rgba(255,255,255,.1); color: var(--text-muted); }

/* ── Estructura de página ───────────────────────────────────── */
.main-content { min-height: calc(100vh - 64px); }
.section-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.section-header { margin-bottom: .75rem; }
.section-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, #0a0e1a 0%, #14082a 50%, #0a1a28 100%); min-height: 60vh; overflow: hidden; }
.hero-bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(124,58,237,.15) 0%, transparent 60%); pointer-events: none; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-content { z-index: 1; }
.hero-title { font-family: var(--font-display); font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-description { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
  color: var(--warning); border-radius: 20px; padding: .25rem .75rem; font-size: .82rem; font-weight: 600;
}
.hero-game-card { position: relative; display: inline-block; }
.hero-game-image { max-height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.hero-game-glow { position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: 0 0 80px rgba(124,58,237,.25); pointer-events: none; }
.hero-platforms { display: flex; gap: .4rem; flex-wrap: wrap; }
.hero-meta { gap: 1rem !important; }
.hero-actions { gap: 1rem !important; }

/* ── Game Cards ─────────────────────────────────────────────── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-accent); }
.game-card-sm { font-size: .85rem; }
.game-card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 2/3; background: var(--bg-secondary); }
.game-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.game-card:hover .game-card-image { transform: scale(1.06); }
.game-card-body { background: var(--bg-card); }
.game-card-title { color: var(--text-primary); font-weight: 600; line-height: 1.3; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-meta { font-size: .75rem; margin: .2rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: .5rem; opacity: 0; transition: opacity var(--transition); }
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-platforms { display: flex; gap: .3rem; }
.game-card-score { position: absolute; top: 6px; right: 6px; }
.game-card-actions { padding-top: .25rem; }
.game-card-horizontal { width: 150px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition), transform var(--transition); }
.game-card-horizontal:hover { border-color: var(--border-accent); transform: translateY(-3px); }

/* ── Score Badges ───────────────────────────────────────────── */
.score-badge {
  background: var(--bg-secondary); color: var(--success);
  border-radius: var(--radius-sm); font-size: .7rem; font-weight: 800;
  padding: 2px 5px; min-width: 30px; text-align: center; border: 1px solid currentColor;
  line-height: 1.4;
}
.score-badge-sm { font-size: .65rem; padding: 1px 4px; min-width: 24px; }
.score-badge-lg { display: flex; flex-direction: column; align-items: center; background: var(--bg-card); border-radius: var(--radius-md); padding: .5rem .8rem; border: 2px solid currentColor; min-width: 64px; }
.score-badge-lg span { font-size: 1.6rem; font-weight: 900; font-family: var(--font-display); line-height: 1; }
.score-badge-lg small { font-size: .62rem; opacity: .8; margin-top: 2px; }
.score-badge.score-great, .score-badge-lg.score-great { color: var(--success); }
.score-badge.score-good,  .score-badge-lg.score-good  { color: var(--accent2); }
.score-badge.score-mixed, .score-badge-lg.score-mixed { color: var(--warning); }
.score-badge.score-bad,   .score-badge-lg.score-bad   { color: var(--danger); }
.score-block { display: flex; gap: 1.5rem; align-items: center; }
.score-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.score-circle-lg { width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--success); background: var(--bg-card); }
.score-value { font-size: 1.5rem; font-weight: 900; font-family: var(--font-display); line-height: 1; color: var(--success); }
.score-label { font-size: .6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.score-user { border-color: var(--accent2); }
.score-user .score-value { color: var(--accent2); }
.score-radio-btn { display: none; }
.score-radio-label { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-input); border: 1px solid var(--border); cursor: pointer; font-weight: 700; font-size: .9rem; transition: all var(--transition); }
.score-radio-btn:checked + .score-radio-label { background: var(--accent); border-color: var(--accent); color: #fff; }
.score-radio-label:hover { border-color: var(--accent); color: var(--accent); }

/* ── Platform & Genre Tags ──────────────────────────────────── */
.platform-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .2rem .55rem;
  font-size: .75rem; color: var(--text-secondary);
  white-space: nowrap;
}
.platform-pill { background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; padding: .2rem .65rem; font-size: .75rem; color: var(--text-secondary); display: inline-block; }
.platform-icon-sm { font-size: .85rem; color: var(--text-secondary); }
.genre-tag { display: inline-block; background: var(--accent-light); color: var(--accent); border-radius: 20px; padding: .1rem .55rem; font-size: .7rem; font-weight: 500; border: 1px solid var(--border-accent); }
.tag-pill { display: inline-block; background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; padding: .15rem .6rem; font-size: .72rem; color: var(--text-muted); }
.platforms-row, .tags-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }

/* ── Horizontal Scroll ──────────────────────────────────────── */
.horizontal-scroll-container { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.horizontal-scroll { display: flex; gap: .75rem; padding-bottom: .5rem; width: max-content; }

/* ── Guide List ─────────────────────────────────────────────── */
.guide-list { display: flex; flex-direction: column; gap: .25rem; }
.guide-list-item { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); transition: all var(--transition); }
.guide-list-item:hover { background: var(--bg-card-hover); border-color: var(--border-accent); color: var(--text-primary); }
.guide-icon { width: 36px; height: 36px; background: var(--accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-meta { align-items: center; }
.guide-info { min-width: 0; }
.guide-type-icon { font-size: 1.25rem; }

/* ── AI Status Bar ──────────────────────────────────────────── */
.ai-status-bar { }
.ai-status-inner { background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.25); }
.ai-pulse-icon { animation: pulse-glow 2s infinite; }
.ai-generated-badge { background: var(--accent-light); color: var(--accent); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); font-size: .65rem; padding: 1px 5px; }
.ai-generating-notice { font-size: .8rem; color: var(--text-muted); }
@keyframes pulse-glow { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ── Progress ───────────────────────────────────────────────── */
.progress-slim { height: 4px !important; background: var(--bg-secondary) !important; border-radius: 2px; }
.progress-bar-accent { background: linear-gradient(90deg, var(--accent), var(--accent2)) !important; }

/* ── Activity Feed ──────────────────────────────────────────── */
.activity-list { }
.activity-item { padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-content { min-width: 0; }

/* ── Avatares ───────────────────────────────────────────────── */
.avatar-xs { width: 28px; height: 28px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; object-fit: cover; border: 1px solid var(--border); }

/* ── Recomendaciones ────────────────────────────────────────── */
.recommendation-card { position: relative; }
.rec-reason-overlay { position: absolute; inset: 0; background: rgba(10,14,26,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; opacity: 0; transition: opacity var(--transition); padding: .5rem; text-align: center; border-radius: var(--radius-md); }
.game-card:hover .rec-reason-overlay { opacity: 1; }
.rec-reason-text { font-size: .72rem; color: var(--text-secondary); line-height: 1.3; }

/* ── Game Detail ────────────────────────────────────────────── */
.game-hero { padding: 2rem 0; }
.game-cover-container { position: relative; }
.game-cover-main { width: 100%; max-width: 280px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.game-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.game-title { font-family: var(--font-display); font-weight: 800; color: var(--text-primary); }
.game-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; color: var(--text-muted); margin: .5rem 0; }
.game-description { color: var(--text-secondary); line-height: 1.7; }
.game-long-description { color: var(--text-secondary); line-height: 1.8; font-size: .95rem; }
.game-genres { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Screenshots */
.screenshots-section { margin: 1.5rem 0; }
.screenshots-scroll { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.screenshots-scroll img { height: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; cursor: pointer; transition: transform var(--transition); border: 1px solid var(--border); }
.screenshots-scroll img:hover { transform: scale(1.04); }

/* Content Tabs */
.content-tabs { border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.content-tabs .nav-link { color: var(--text-muted); border: none; border-bottom: 2px solid transparent; padding: .6rem 1rem; font-weight: 500; }
.content-tabs .nav-link:hover { color: var(--text-primary); background: transparent; }
.content-tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.tab-content-section { animation: fadeIn .2s ease; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: .75rem; }
.review-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; }
.review-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }

/* Comments */
.comment-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-body { min-width: 0; flex: 1; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem; }

/* Library */
.library-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Prose (guide content) */
.prose { color: var(--text-secondary); line-height: 1.8; font-size: .95rem; }
.prose h2 { color: var(--text-primary); font-family: var(--font-display); margin: 1.5rem 0 .75rem; }
.prose h3 { color: var(--text-primary); margin: 1.25rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .3rem; }
.prose code { background: var(--bg-input); color: var(--accent2); padding: .1rem .35rem; border-radius: var(--radius-sm); font-size: .88rem; }
.prose pre { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-muted); font-style: italic; }

/* Breadcrumb */
.breadcrumb-dark { background: transparent; padding: 0; }
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-dark .breadcrumb-item a { color: var(--accent2); }
.breadcrumb-dark .breadcrumb-item.active { color: var(--text-muted); }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-page { background: var(--bg-primary); }
.auth-container { min-height: 100vh; }
.auth-panel-left {
  width: 420px;
  background: linear-gradient(160deg, #14082a 0%, #0a1020 100%);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.auth-panel-right { background: var(--bg-primary); }
.auth-form-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; }
.auth-form-title { font-family: var(--font-display); font-weight: 700; }
.auth-logo { }
.auth-features { width: 100%; max-width: 300px; }
.auth-feature-item { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem 1rem; }
.feature-icon { width: 36px; height: 36px; background: var(--accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-panel-content { width: 100%; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-heading { font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--text-muted); font-size: .88rem; }
.footer-links a:hover { color: var(--accent2); }
.social-links { display: flex; gap: .75rem; }
.social-link { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .9rem; transition: all var(--transition); }
.social-link:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-light); }
.footer-divider { border-color: var(--border); margin: 1.5rem 0; }

/* ── Dropdown menú usuario ──────────────────────────────────── */
.dropdown-gamehub { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 200px; }
.dropdown-gamehub .dropdown-item { color: var(--text-secondary); font-size: .88rem; padding: .5rem 1rem; }
.dropdown-gamehub .dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dropdown-gamehub .dropdown-header { color: var(--text-muted); font-size: .8rem; padding: .5rem 1rem; }
.dropdown-gamehub .dropdown-divider { border-color: var(--border); }

/* ── Modales ─────────────────────────────────────────────────── */
.modal-content { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); }
.modal-header { border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
.modal-footer { border-top: 1px solid var(--border); padding: .75rem 1.25rem; }
.modal-title { font-family: var(--font-display); font-weight: 700; }
.btn-close-white { filter: invert(1); }

