/* ===================== VARIABLES ===================== */
/*Colores Base*/
:root {
  --bg-main: #0b0f19;
  --bg-card: #121826;
  --bg-profile: #0d0d0d;

  /*Colores primarios*/
  --primary: #3b82f6;
  --secondary: #2a2f3a;
  --danger: #ef4444;
  --accent-green: #2ecc71;
  --accent-purple: #a855f7;
  --accent-orange: #f97316;

  /* Colores texto*/
  --text-main: #d1d5db;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --text-dim: #a0a0a0;

  /* estados y logros */
  --status-playing: #3b82f6;
  --status-pending: #eab308;
  --status-completed: #22c55e;
  --status-abandoned: #ef4444;

  --achievement-epic: #a855f7;
  --achievement-special: #3b82f6;
  --achievement-rare: #f97316;
  --achievement-common: #6b7280;
  --achievement-legendary: #ff0000;
}

/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* SCROLLBAR OSCURO GLOBAL */
* {
  scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===================== LOGIN ===================== */
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 0 auto;
}

/* ===================== LOGO ===================== */
.logo {
  font-weight: 700;
  font-size: 28px;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ===================== CARD ===================== */
.card {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
}

/* ===================== FORM ===================== */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  font-size: 14px;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

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

input:focus {
  border-color: var(--primary);
}

/* Input number spinners (flechas up/down) oscuros */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  border-radius: 4px;
  opacity: 0.8;
  filter: invert(0.8) hue-rotate(180deg);
}

input[type="number"]::-webkit-outer-spin-button:hover,
input[type="number"]::-webkit-inner-spin-button:hover {
  background: var(--secondary);
  opacity: 1;
  filter: invert(0.6) hue-rotate(180deg);
}

/* ===================== BOTONES ===================== */
.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--text-white);
  cursor: pointer;
}

.btn-follow {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--secondary);
  color: var(--text-white);

  padding: 10px 18px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* ICONO */
.btn-follow i {
  width: 16px;
  height: 16px;
}

/* HOVER */
.btn-follow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);

  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary);
}

/* ===================== DIVIDER ===================== */
.divider {
  height: 1px;
  background-color: var(--secondary);
  margin: 25px 0;
}

/* ===================== TEST USERS ===================== */
.test-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.test-card {
  background-color: var(--bg-main);
  border: 1px solid var(--secondary);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: left;
  font-size: 13px;
}

.role {
  font-weight: 700;
  color: var(--text-white);
}

.highlight {
  color: var(--primary);
}

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  border-bottom: 1px solid var(--secondary);
  background-color: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Estilo para el icono de búsqueda */
.nav-icons i[data-lucide="search"] {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-icons i[data-lucide="search"]:hover {
  color: var(--text-white);
}

.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
  align-items: center;
}

/* NAV LINKS CENTRADOS */
.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
  align-items: center;

  flex: 1;
  justify-content: center;
}

/* LINKS */
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  padding: 8px 16px;
  border-radius: 20px;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--text-white);
  background-color: var(--secondary);
}

/* ICONO BUSCAR */
.nav-icons i[data-lucide="search"] {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  width: 24px;
  height: 24px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nav-icons i[data-lucide="search"]:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
}

/* AVATAR */
.user-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: var(--secondary);
  border: 2px solid transparent;

  background-size: cover;
  background-position: center;

  cursor: pointer;
  transition: all 0.25s ease;
}

.user-mini-avatar:hover {
  border-color: var(--primary);
  transform: scale(1.08);
}

.user-mini-avatar a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===================== HERO ===================== */
.hero {
  height: 420px;
  background: url(../img/space.webp) center/cover no-repeat;
  background-position: center 40%;
  display: flex;
  align-items: center;
  padding: 40px;
}

.hero-content {
  max-width: 500px;
}

.hero h1 {
  font-size: 42px;
  margin: 15px 0;
}

.hero p {
  color: var(--text-muted);
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.badge {
  background: var(--secondary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ===================== PERFIL (NUEVO) ===================== */
.profile_container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* antes flex-start → esto lo arregla */
  margin-bottom: 30px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 25px;
  text-align: left;
}

.avatar-large {
  width: 120px;
  aspect-ratio: 1;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  flex-shrink: 0;
}

.profile-text h1 {
  color: var(--text-white);
  font-size: 28px;
  margin-bottom: 5px;
}

.bio {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
}

.quick-stats {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

/* GRID DE ESTADÍSTICAS */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
}

.stat-card h2 {
  font-size: 32px;
  color: var(--text-white);
}

.stat-card p {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card.blue {
  border-left-color: var(--primary);
}

.stat-card.green {
  border-left-color: var(--accent-green);
}

.stat-card.orange {
  border-left-color: var(--status-pending);
}

.stat-card.purple {
  border-left-color: var(--accent-purple);
}

/* PESTAÑAS / TABS */
.tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--secondary);
  margin-top: 40px;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.tabs span {
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition: color 0.5s ease;
}

.tabs span.active {
  color: var(--primary);
}

.tabs span.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* GRID DE JUEGOS (Perfil) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.game-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
}

.game-grid .game-card {
  width: 100%;
}

.game-img-wrapper {
  width: 100%;
  height: 280px;
  background-color: var(--secondary);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
}

/* ===================== LOGIN & COMPONENTES COMUNES ===================== */
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  background-color: var(--bg-main);
  color: var(--text-main);
  outline: none;
}

input:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.btn-primary:hover {
  filter: brightness(1.2);
}

/* ===================== SECCIONES ===================== */
.section {
  padding: 40px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

/*imgNES*/
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* GAME CARD */
.game-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}

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

/* REVIEW imgS */
.review-img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

/* ===================== CARDS ===================== */
.card-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.game-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  width: calc(25% - 15px);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--secondary);
}

.game-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--secondary);
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.game-card h3 {
  padding: 10px;
}

.game-card span {
  padding: 0 10px 10px;
  display: block;
  color: var(--text-muted);
}

.game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.game-card a:visited,
.game-card a:active {
  color: inherit;
}

.game-card-header {
  position: relative;
  width: 100%;
  height: 100%;
}

.game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.heart-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.heart-btn.favorited i {
  color: var(--danger);
  fill: var(--danger);
}

.heart-btn i {
  width: 18px;
  height: 18px;
}

.heart-btn-detail {
  width: auto;
  padding: 6px 10px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.heart-btn-detail:hover {
  background: var(--primary);
  color: var(--text-white);
}

.heart-btn-detail.favorited {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--text-white);
}

.heart-btn-detail.favorited:hover {
  opacity: 0.9;
}

.heart-btn-detail i {
  width: 16px;
  height: 16px;
}

/* ===================== RESEÑAS ===================== */
.review-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.review-img {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 8px;
}

.review-meta,
.review-likes {
  color: var(--text-muted);
}

.review-rating {
  margin-left: auto;
  color: var(--warning);
}

/* ===================== HAMBURGUESA ===================== */
#menu-toggle {
  display: none;
}

/* Mostrar menú desplegable cuando se active el checkbox */
#menu-toggle:checked + .menu-icon + .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 20px;
  right: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--secondary);
  padding: 20px;
  border-radius: 12px;
  gap: 15px;
  width: 200px;
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
}

/* ===================== FILTROS ===================== */
.filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filters select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  background-color: var(--bg-main);
  color: var(--text-main);
}

.filters select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.filters-title {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

/* ===================== BIBLIOTECA ===================== */
.container-library {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.library-top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.title-section h1 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 32px;
  color: var(--text-white);
}

.subtitle-library {
  color: var(--text-muted);
  font-size: 15px;
  margin-left: 47px;
}

/* ===================== FILTERS BAR ===================== */

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin: 25px 0;
  padding: 10px 0;
}

/* BOTÓN FILTRO */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;

  border-radius: 999px;
  border: 1px solid var(--secondary);

  background: var(--secondary);
  color: var(--text-muted);

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;

  white-space: nowrap;
}

/* ICONOS */
.filter-btn i,
.filter-btn svg {
  width: 16px;
  height: 16px;
}

/* HOVER */
.filter-btn:hover {
  background: var(--secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ACTIVO */
.filter-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 8px 20px var(--bg-main);
}

.count {
  background: var(--achievement-common);
  padding: 2px 8px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;

  color: var(--text-muted);

  transition: all 0.25s ease;
}

/* COUNT EN ACTIVO */
.filter-btn.active .count {
  background: var(--secondary);
  color: var(--text-white);
}

.filter-btn:active {
  transform: scale(0.96);
}

/* ===================== BOTÓN DELETE ===================== */
.btn-delete {
  background-color: var(--secondary);
  border: 2px solid var(--status-abandoned);
  color: var(--danger);
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--status-abandoned);
}

.btn-delete i {
  width: 18px;
  height: 18px;
}

/* ===================== STATS ===================== */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.stats-grid .card {
  flex: 1 1 calc(20% - 12px);
  min-height: 140px;
}

.stats-grid .number {
  font-size: 38px;
  font-weight: 700;
}

/* ===================== COLORES ===================== */
.text-green {
  color: var(--status-completed);
}

.text-blue-light {
  color: var(--status-playing);
}

.text-yellow {
  color: var(--status-pending);
}

.text-purple {
  color: var(--achievement-epic);
}

/* ===== GAME DETAIL ===== */

.game-detail {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* BANNER */
.game-banner {
  width: 100%;
  height: 18rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CARD ACCIONES */
.game-actions-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--status-pending);
  margin-bottom: 1rem;
}

/* STATUS */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.status-btn {
  background: var(--secondary);
  border: none;
  padding: 0.75rem;
  border-radius: 0.6rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: 0.2s;
}

.status-btn:hover {
  background: var(--secondary);
}

.status-btn.active {
  color: var(--text-white);
}

.status-btn.playing.active {
  background: var(--status-playing);
}

.status-btn.pending.active {
  background: var(--status-pending);
}

.status-btn.completed.active {
  background: var(--status-completed);
}

.status-btn.abandoned.active {
  background: var(--status-abandoned);
}

/* HOVER SEGÚN ESTADO */
.status-btn.playing:hover {
  background: var(--status-playing);
  color: var(--text-white);
}

.status-btn.pending:hover {
  background: var(--status-pending);
  color: var(--text-white);
}

.status-btn.completed:hover {
  background: var(--status-completed);
  color: var(--text-white);
}

.status-btn.abandoned:hover {
  background: var(--status-abandoned);
  color: var(--text-white);
}

/* INFO */
.game-info h1 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin: 0.5rem 0;
}

.description {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
}

.rating {
  color: var(--status-pending);
}

/* INFO GRID */
.info-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 0.75rem;
}

/* REVIEWS */
.btn-review {
  width: auto;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.reviews-section {
  margin-top: 2.5rem;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.empty-reviews {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

/* ===================== FOOTER ===================== */

.main-footer {
  background: var(--bg-card);
  padding: 70px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--secondary);
}

/* CONTENEDOR */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
}

/* COLUMNAS */
.footer-col {
  flex: 1 1 220px;
}

/* MARCA */
.brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}

.brand-col .logo {
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 15px;
  line-height: 1.2;
}

.brand-col p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top: 10px;
  max-width: 300px;
}

/* REDES */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: var(--secondary);
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);
  transition: 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* TÍTULOS */
.footer-col h3 {
  color: var(--text-white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* LISTA */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--text-white);
  transform: translateX(3px);
}

/* DIVISOR */
.footer-divider {
  border: none;
  border-top: 1px solid var(--secondary);
  margin: 40px auto 20px;
  max-width: 1400px;
}

/* PARTE INFERIOR */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--text-muted);
  font-size: 13px;

  border-top: 1px solid var(--secondary);
}

.footer-bottom .heart {
  color: var(--danger);
}

/* ===================== ADMIN  ===================== */

.admin-header-v2 {
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 1400px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-avatar-wrapper {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.admin-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.admin-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* BOTÓN CERRAR SESIÓN  */
.btn-logout-refined {
  background: var(--danger);
  border: 1px solid var(--danger);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-logout-refined i {
  width: 16px;
  height: 16px;
  color: var(--danger);
}

.btn-logout-refined:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--achievement-common);
}

.btn-logout-refined:hover i {
  color: var(--text-white);
}

/* ===================== ADMIN TABS & ACTIONS ===================== */

.admin-nav-container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 40px;
}

.admin-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: -1px;
}

.tab-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab-item i {
  width: 20px;
  height: 20px;
}

.tab-item.active {
  color: var(--text-white);
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px 10px 0 0;
}

.tab-count {
  font-weight: 400;
  opacity: 0.7;
  font-size: 14px;
}

.tab-separator {
  height: 1px;
  background: var(--secondary);
  width: 100%;
  margin-bottom: 25px;
}

.btn-add-flat {
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-flat:hover {
  background-color: var(--primary);
  transform: translateY(-1px);
}

.btn-add-flat i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

/* === LISTA DE JUEGOS === */
.game-list {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px 40px;
}

/* === TARJETA DE JUEGO === */
.game-item {
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: background 0.2s ease;
}

.game-item:hover {
  background: var(--secondary);
}

/* === MINIATURA === */
.game-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.rarity {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 70px;
  margin-bottom: 10px;
}

.date {
  opacity: 0.8;
}

/* === DETALLES === */
.game-details {
  flex: 1;
}

.game-details h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-white);
}

.developer {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === TAGS === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tags span {
  background: var(--secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-main);
}

/* === AÑO === */
.year {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* === PLATAFORMAS === */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platforms span {
  background: var(--secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-main);
}

/* === ACCIONES === */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions button {
  background: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions button i {
  width: 18px;
  height: 18px;
  transition: color 0.25s ease;
}

.actions .edit {
  color: var(--primary);
  border-color: var(--primary-light);
}

.actions .edit:hover {
  background: var(--primary);
  color: var(--text-white);
}

.actions .edit:hover i {
  color: var(--text-white);
}

.actions .delete {
  color: var(--danger);
  border-color: var(--danger);
}

.actions .delete:hover {
  background: var(--danger);
  color: var(--text-white);
}

.actions .delete:hover i {
  color: var(--text-white);
}

/* === LISTA DE USUARIOS === */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* === TARJETA DE USUARIO === */
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.2s ease;
}

.user-card:hover {
  background: var(--secondary);
}

/* === FOTO DE PERFIL === */
.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--secondary);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === INFO === */
.user-info {
  flex: 1;
}

.user-info h2 {
  color: var(--text-white);
  margin-bottom: 6px;
  font-size: 1rem;
}

.user-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* === ESTADÍSTICAS === */
.user-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.user-stats span {
  color: var(--text-main);
  font-size: 0.85rem;
}

.user-stats strong {
  color: var(--text-white);
}

/* === ACCIONES === */
.user-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-actions button {
  background: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-actions button i {
  width: 18px;
  height: 18px;
  transition: color 0.25s ease;
}

/* EDITAR */
.user-actions .edit {
  color: var(--primary);
  border-color: var(--primary);
}

.user-actions .edit:hover {
  background: var(--primary);
  color: var(--text-white);
}

.user-actions .edit:hover i {
  color: var(--text-white);
}

/* BORRAR */
.user-actions .delete {
  color: var(--danger);
  border-color: var(--danger);
}

.user-actions .delete:hover {
  background: var(--danger);
  color: var(--text-white);
}

.user-actions .delete:hover i {
  color: var(--text-white);
}

/*VALIDACIONES*/
.input-error {
  border: 2px solid var(--danger);
}

.input-correct {
  border: 2px solid var(--accent-green);
}

.error {
  color: var(--danger);
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
/*btn salir*/
#logoutBtn {
  background-color: var(--danger);
  color: var(--text-white);
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  margin-left: 15px;
  display: none;
}

#logoutBtnDesktop {
  background-color: var(--danger);
  color: var(--text-white);
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  margin-left: 15px;
}

#logoutBtn:hover,
#logoutBtnDesktop:hover {
  background-color: var(--danger);
}

#logoutBtn i,
#logoutBtnDesktop i {
  stroke-width: 2.2;
  width: 20px;
  height: 20px;
}

/* Estilo para el botón logout en el menú móvil */
.nav-links #logoutBtn {
  display: none;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  margin-left: 0;
  border-top: 1px solid var(--secondary);
  padding-top: 20px;
  justify-content: center;
}

.nav-links #logoutBtn span {
  display: none;
}
/*USER JS*/
#userName {
  font-size: 14px;
  font-weight: 500;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none;
}
.modal-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-white);
  min-width: 280px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* TITULO */
.modal-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

/* TEXTO */
.modal-content p {
  margin-bottom: 15px;
  font-size: 14px;
  opacity: 0.9;
}

/* BOTONES */
.modal-content button {
  margin-top: 10px;
  margin-right: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* MODAL DE RESEÑA */
.review-form-modal {
  text-align: left;
  max-width: 500px;
  position: relative;
}

.review-form-modal h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-close i {
  width: 20px;
  height: 20px;
}

.review-form-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.review-form-info > div {
  flex: 1;
}

.review-form-info .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

.review-form-info p {
  font-size: 14px;
  color: var(--text-white);
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.review-stars-input {
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.2s ease;
}

.review-stars-input:hover {
  color: var(--accent-orange);
}

textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  font-family: "Inter", sans-serif;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea:focus {
  border-color: var(--primary);
}

textarea::placeholder {
  color: var(--text-muted);
}

.review-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

.review-form-actions .btn-secondary,
.review-form-actions .btn-primary {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

/* ===================== SEARCH MODAL ===================== */
.search-modal-content {
  max-width: 600px;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--secondary);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background-color: var(--bg-main);
  color: var(--text-white);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border: 2px solid var(--primary);
}

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

.search-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.search-close-btn:hover {
  color: var(--text-white);
}

.search-close-btn i {
  width: 20px;
  height: 20px;
}

.search-results {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
  padding: 0;
}

.search-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}

.search-result-item {
  display: flex;
  gap: 15px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-items: center;
}

.search-result-item:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.search-result-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-color: var(--secondary);
  flex-shrink: 0;
  overflow: hidden;
}

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

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}

/* BOTÓN CONFIRMAR */
#confirmDelete {
  background: var(--danger);
  color: var(--text-white);
}

#confirmDelete:hover {
  background: var(--danger);
}

/* BOTÓN CANCELAR */
#cancelDelete {
  background: var(--secondary);
  color: var(--text-white);
}

#cancelDelete:hover {
  background: var(--secondary);
}

/*Sin juegos en biblioteca*/
.no-games {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 40px;
  width: 100%;
}

.hidden {
  display: none;
}

/*Perfil*/
.btn-follow.active-follow {
  background-color: var(--status-completed);
  color: var(--text-white);
}

/* ===================== MODAL SEGUIDORES ===================== */
.followers-modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.followers-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--secondary);
}

.followers-modal-content .modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.followers-modal-content .modal-close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.followers-modal-content .modal-close-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.followers-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

/* ===================== TARJETA SEGUIDOR ===================== */
.follower-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.follower-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.follower-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

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

.follower-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-white);
}

.follower-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follower-games {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-view-profile {
  background: var(--primary);
  border: none;
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-view-profile:hover {
  background: var(--status-playing);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .stats-grid .card {
    flex: 1 1 calc(33.33% - 10px);
  }
}

@media (max-width: 768px) {
  .admin-nav-container {
    padding: 0 20px;
  }

  .admin-tabs {
    gap: 15px;
    justify-content: space-around;
  }

  .tab-item {
    font-size: 14px;
    flex: 1;
    justify-content: center;
  }

  .btn-add-flat {
    width: 100%;
    justify-content: center;
    padding: 15px;
  }

  .game-card {
    width: calc(50% - 10px);
  }

  .stats-grid .card {
    flex: 1 1 calc(50% - 10px);
  }

  .nav-links {
    display: none;
  }

  .menu-icon {
    display: flex;
  }

  .profile-info {
    gap: 15px;
  }

  .avatar-large {
    width: 80px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .brand-col {
    border-bottom: none;
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-col .logo {
    order: 1;
    justify-content: center;
  }

  .brand-col p {
    order: 2;
    font-size: 13px;
    line-height: 1.5;
  }

  .brand-col .social-links {
    order: 3;
  }

  .footer-col h3 {
    margin-bottom: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary);
  }

  .footer-col ul li a:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 15px;
    padding: 20px;
  }

  .admin-header-v2 {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    text-align: center;
  }

  .admin-profile {
    flex-direction: column;
    gap: 12px;
  }

  .btn-logout-refined {
    width: 100%;
    justify-content: center;
  }

  .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .menu-icon {
    display: flex;
    order: 1;
    flex-shrink: 0;
  }

  #logoutBtnDesktop {
    display: none;
  }

  #logoutBtn {
    display: none;
  }

  .nav-links #logoutBtn {
    display: flex;
  }

  .logo {
    position: static;
    order: 3;
    flex: 1;
    text-align: center;
    margin: 0;
    transform: none;
  }

  .nav-icons {
    order: 4;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* OCULTAR LINKS */
  .nav-links {
    display: none;
  }

  /* OCULTAR CHECKBOX */
  #menu-toggle {
    display: none;
  }

  .tabs {
    gap: 2rem;
    padding-bottom: 8px;
  }

  .tabs span {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* SCROLLBAR PERSONALIZADA */
  .tabs::-webkit-scrollbar {
    height: 6px;
  }

  .tabs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  /* FILTERS BAR  */
  .filters-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    padding-bottom: 8px;
    gap: 10px;
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 12px;
  }

  .filters-bar::-webkit-scrollbar {
    height: 6px;
  }

  .filters-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .filters-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .filters-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  /* PERFIL EN TABLET */
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .profile_container {
    padding: 0 20px;
  }

  .btn-follow {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .game-card {
    width: 100%;
  }

  .stats-grid .card {
    flex: 1 1 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .brand-col {
    border-bottom: none;
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-col .logo {
    order: 1;
    justify-content: center;
  }

  .brand-col p {
    order: 2;
    font-size: 13px;
    line-height: 1.5;
  }

  .brand-col .social-links {
    order: 3;
  }

  .footer-col h3 {
    margin-bottom: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary);
  }

  .footer-col ul li a:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 15px;
    padding: 20px;
  }

  .navbar {
    padding: 15px 15px;
  }

  #menu-toggle {
    display: none;
  }

  .menu-icon {
    order: 1;
    flex-shrink: 0;
  }

  #logoutBtnDesktop {
    display: none;
  }

  #logoutBtn {
    display: none;
  }

  .nav-links #logoutBtn {
    display: flex;
  }

  .logo {
    order: 3;
    flex: 1;
    text-align: center;
    position: static;
    transform: none;
  }

  .nav-icons {
    order: 4;
    flex-shrink: 0;
    margin-left: auto;
  }

  .tabs {
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .tabs span {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 5px;
  }

  /* SCROLLBAR PERSONALIZADA */
  .tabs::-webkit-scrollbar {
    height: 6px;
  }

  .tabs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  /* FILTERS BAR SCROLLABLE */
  .filters-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    padding-bottom: 8px;
    gap: 8px;
    margin: 15px 0;
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 7px 10px;
  }

  .filters-bar::-webkit-scrollbar {
    height: 4px;
  }

  .filters-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .filters-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    transition: background 0.3s ease;
  }

  .filters-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  /* PERFIL EN MÓVIL */
  .profile-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    text-align: center;
  }

  .profile-info {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile_container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .btn-follow {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 12px;
  }

  .quick-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===================== ADMIN  ===================== */
.action-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 8px;
  border: 1px solid var(--secondary);
}

.search-icon-btn:hover {
  color: var(--text-white);
  background-color: var(--secondary);
}

.search-icon-btn i {
  width: 20px;
  height: 20px;
}

/* ===================== GAME MODAL ===================== */
.game-modal-content {
  max-width: 600px;
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--secondary);
}

.modal-header h2 {
  font-size: 20px;
  color: var(--text-white);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-close-btn i {
  width: 20px;
  height: 20px;
}

/* ===================== FORMS ===================== */
#gameForm,
#userForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ===================== ACHIEVEMENTS SECTION ===================== */
.achievements-section {
  border-top: 1px solid var(--secondary);
  padding-top: 20px;
  margin-top: 8px;
}

.achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.achievements-header label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
}

.btn-add-achievement {
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-add-achievement:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-add-achievement i {
  width: 16px;
  height: 16px;
}

.achievements-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  border-radius: 8px;
}

.achievement-inputs {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  gap: 8px;
}

.achievement-inputs input,
.achievement-inputs select {
  padding: 8px 10px;
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.achievement-inputs input:focus,
.achievement-inputs select:focus {
  outline: none;
  border-color: var(--primary);
}

.achievement-inputs input::placeholder {
  color: var(--text-muted);
}

.btn-remove-achievement {
  background: var(--danger);
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-achievement:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-remove-achievement i {
  width: 14px;
  height: 14px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #3a3f4a;
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

/* ===================== DELETE MODAL ===================== */
.delete-modal-content {
  max-width: 400px;
}

.modal-body {
  padding: 16px 0;
}

.modal-body p {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.modal-body .text-muted {
  color: var(--text-muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--secondary);
}

.modal-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* ===================== SUCCESS MODAL ===================== */
.success-modal-content {
  max-width: 350px;
  text-align: center;
}

.modal-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-success-icon i {
  width: 64px;
  height: 64px;
  color: var(--accent-green);
  stroke-width: 1.5;
}

#successModalTitle {
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 12px;
}

#successModalMessage {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 20px;
}

#closeSuccessModal {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
