/* ===== NUEVO DISEÑO MODERNO Y ELEGANTE ===== */

/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS modernas */
:root {
  /* Paleta de colores moderna */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.8);
  --bg-card-hover: rgba(30, 30, 60, 0.9);
  
  /* Colores de acento */
  --accent-primary: #ff3cac;
  --accent-secondary: #a259ff;
  --accent-gold: #ffd700;
  --accent-blue: #00d4ff;
  
  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --text-muted: #8a8a9c;
  
  /* Bordes y sombras */
  --border-color: rgba(255, 60, 172, 0.3);
  --shadow-primary: 0 8px 32px rgba(255, 60, 172, 0.15);
  --shadow-secondary: 0 4px 20px rgba(162, 89, 255, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #ff3cac 0%, #a259ff 100%);
  --gradient-secondary: linear-gradient(135deg, #a259ff 0%, #00d4ff 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  
  /* Bordes redondeados */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SIDEBAR MODERNO ===== */
.sidebar {
  width: 80px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 32px;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  left: 0;
  top: 0;
  bottom: 0;
  transition: all 0.3s ease;
}

.sidebar a, .sidebar button {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar a:hover, .sidebar button:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  border-color: transparent;
}

.sidebar a.active, .sidebar button.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.sidebar svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

/* ===== HEADER MODERNO ===== */
header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 32px;
  position: fixed;
  top: 0;
  left: 80px;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content-center {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* ===== BOTONES MODERNOS ===== */
.btn-modern {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 60, 172, 0.3);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #000;
}

.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

/* ===== BÚSQUEDA MODERNA ===== */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

#searchInput {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 280px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

#search-btn-lupa {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

#search-btn-lupa:hover {
  color: var(--accent-primary);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  margin-left: 80px;
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.content-area {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== TARJETAS MODERNAS ===== */
.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 460px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

.post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.post-meta span {
  color: var(--text-primary);
  font-weight: 500;
}

.post-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  flex-shrink: 0;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  max-height: 3.6em; /* 3 líneas * 1.2em */
}

.post-actions {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 8px;
}

/* ===== GRID DE NOVELAS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
  min-height: 400px;
  padding: 0 16px;
}

.posts-grid:empty::before {
  content: 'Cargando novelas...';
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: var(--text-secondary);
  font-size: 16px;
  grid-column: 1 / -1;
}

/* ===== SECCIÓN DESTACADA ===== */
.featured-post {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 300px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-primary);
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.featured-overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.featured-meta {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.featured-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.verified {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

/* ===== CARRUSEL VIP ===== */
#vipCarouselSection {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin: 32px 0;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  position: relative;
}

#vip-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 200px;
}

#vip-slide {
  display: flex;
  gap: 20px;
  padding: 20px;
  transition: transform 0.3s ease;
  overflow-x: auto;
  scroll-behavior: smooth;
}

#vip-prev, #vip-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vip-prev:hover, #vip-next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

#vip-prev {
  left: 10px;
}

#vip-next {
  right: 10px;
}

.vip-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-secondary));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  min-width: 200px;
  max-width: 250px;
}

.vip-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-gold);
}

.vip-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.vip-card-info {
  text-align: center;
}

.vip-card-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.vip-card-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== PANEL DE CATEGORÍAS ===== */
#panel-categorias {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 96vw;
  z-index: 2500;
  transform: translateX(110%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

#panel-categorias.open {
  transform: translateX(0);
}

#panel-categorias-bg {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}

#panel-categorias-bg.active {
  display: block;
}

#panel-categorias .panel-categorias-header {
  background: var(--gradient-primary);
  padding: 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#panel-categorias .panel-categorias-header h2 {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 0;
}

.category-chip2 {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.category-chip2:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== MODALES MODERNOS ===== */
.modal-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 500px;
  width: 90vw;
  z-index: 2500;
}

.modal-form h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-align: center;
}

.modal-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.modal-form button[type="submit"] {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.modal-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 60, 172, 0.3);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-modal:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

/* ===== BADGE VIP ===== */
.vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    bottom: 0;
    top: auto;
    padding: 0 16px;
    gap: 20px;
  }
  
  .main-content {
    margin-left: 0;
    padding-bottom: 80px;
  }
  
  header {
    left: 0;
    padding: 12px 20px;
  }
  
  .content-area {
    padding: 20px;
  }
  
  .featured-title {
    font-size: 1.6rem;
  }
  
  .modal-form {
    padding: 24px;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .header-content-center {
    gap: 16px;
  }
  
  #searchInput {
    width: 200px;
  }
  
  .logo {
    font-size: 1.8rem;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 

/* --- Botón hamburguesa --- */
.sidebar-toggle-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3000;
  background: var(--bg-card);
  color: var(--accent-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-toggle-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* --- Sidebar colapsable --- */
.sidebar {
  width: 72px;
  transition: width 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  overflow-x: hidden;
}
.sidebar.expanded {
  width: 220px;
  box-shadow: 0 2px 16px #ffd70055;
}

/* Opcional: mostrar texto de los items solo cuando está expandida */
.sidebar .sidebar-item-text {
  display: none;
  margin-left: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  vertical-align: middle;
}
.sidebar.open .sidebar-item-text {
  display: inline;
}

/* --- Header superior --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 56px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
}

.sidebar-toggle-btn {
  margin: 0;
  position: static;
  top: auto;
  left: auto;
  z-index: 4200;
  flex-shrink: 0;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#user-btn {
  flex-shrink: 0;
}

/* Ajustar el main-content para que no quede debajo del header */
.main-content {
  margin-top: 56px;
}

/* Sidebar oculta y animada */
.sidebar {
  position: fixed;
  top: 0;
  left: -240px;
  width: 220px;
  height: 100vh;
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 2px 0 16px #0008;
  transition: left 0.3s cubic-bezier(.4,2,.6,1);
  z-index: 4100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0;
  gap: 32px;
  overflow-x: hidden;
}
.sidebar.open {
  left: 0;
}

#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 4090;
  transition: opacity 0.2s;
}
#sidebar-overlay.active {
  display: block;
}

@media (max-width: 700px) {
  .sidebar {
    width: 80vw;
    max-width: 320px;
  }
  .search-bar {
    max-width: 200px;
  }
} 

/* Sidebar header y centrado de items */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px 8px 20px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-primary);
  letter-spacing: 1px;
}
.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.sidebar-close-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}
.sidebar-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.sidebar-item-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 20px;
}

.sidebar-item {
  flex-shrink: 0;
}

.sidebar-item-text {
  display: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar.open .sidebar-item-text {
  display: block;
} 

/* ===== PANEL DE USUARIO ===== */
#user-panel {
  position: absolute;
  top: 60px;
  right: 20px;
  z-index: 3000;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  min-width: 160px;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  min-width: 200px;
  z-index: 3000;
} 

/* ===== PANEL DE USUARIO COMPLETO ===== */
#user-panel {
  position: absolute;
  top: 60px;
  right: 20px;
  z-index: 3000;
  background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 50%, #1a0a1a 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 60, 172, 0.3), 0 0 40px rgba(162, 89, 255, 0.2);
  backdrop-filter: blur(20px);
  width: 380px;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInPanel 0.3s ease-out;
}

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

.user-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(255, 60, 172, 0.4);
}

.user-info h3 {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.user-status {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.user-status.vip {
  color: var(--accent-gold);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

.close-panel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.user-panel-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: 100px; /* Espacio extra al final */
}

.panel-section {
  margin-bottom: 24px;
}

.panel-section h4 {
  color: var(--accent-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(255, 60, 172, 0.3);
}

.favorites-list, .downloads-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-item, .download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.favorite-item:last-child, .download-item:last-child {
  border-bottom: none;
}

.favorite-item .novel-title {
  color: var(--text-primary);
  font-weight: 500;
}

.download-item .download-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 60, 172, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 1.2rem;
}

.vip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.vip-type {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 1rem;
}

.vip-expiry {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-vip-upgrade {
  width: 100%;
  background: var(--gradient-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-vip-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.setting-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.setting-btn.danger:hover {
  background: rgba(255, 60, 60, 0.1);
  border-color: #ff3c3c;
}

.setting-icon {
  font-size: 1.1rem;
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ff3c3c 0%, #ff6b6b 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 60, 60, 0.3);
}

.logout-icon {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  #user-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: 4000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    animation: none;
  }
  
  .user-panel-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    padding: 16px;
  }
  
  .user-panel-content {
    max-height: none;
    padding: 16px;
    overflow-y: visible;
    flex: 1;
  }
  
  .user-welcome {
    gap: 12px;
  }
  
  .user-avatar {
    width: 48px;
    height: 48px;
  }
  
  .user-info h3 {
    font-size: 1.1rem;
  }
  
  .user-status {
    font-size: 0.8rem;
  }
  

  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .panel-section {
    margin-bottom: 20px;
  }
  
  .panel-section h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .favorites-btn, .downloads-btn, .playlist-btn, .share-btn {
    padding: 12px;
  }
  
  .favorites-icon, .downloads-icon, .playlist-icon, .share-icon {
    font-size: 1.2rem;
  }
  
  .favorites-info h4, .downloads-info h4, .playlist-info h4, .share-info h4 {
    font-size: 0.9rem;
  }
  
  .favorites-info span, .downloads-info span, .playlist-info span, .share-info span {
    font-size: 0.8rem;
  }
  
  .settings-list {
    gap: 6px;
  }
  
  .setting-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .close-panel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .sync-section {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
  }
  
  .vip-benefits {
    padding: 12px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--radius-md);
  }
  
  .vip-status {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-md);
  }
} 

/* ===== BOTÓN DE FAVORITO ===== */

/* Ajustar posición del badge VIP para no solaparse con favorito */
.vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
} 

/* ===== RESPONSIVE DESIGN MEJORADO PARA ANDROID ===== */
@media (max-width: 768px) {
  /* Ajustes generales para móviles */
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Topbar responsive */
  .topbar {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }
  
  .sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  /* Search bar responsive */
  .search-bar {
    max-width: 150px;
    flex: 1;
  }
  
  #searchInput {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  /* Botones de usuario responsive */
  #user-btn {
    width: 40px;
    height: 40px;
  }
  
  #auth-buttons {
    display: flex;
    gap: 4px;
  }
  
  #auth-buttons .btn-modern {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  /* Sidebar responsive */
  .sidebar {
    width: 100vw;
    max-width: 320px;
    left: -100vw;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar-header {
    padding: 12px 16px;
  }
  
  .sidebar-title {
    font-size: 1.1rem;
  }
  
  .sidebar-items {
    gap: 16px;
    padding: 16px;
  }
  
  .sidebar-item-container {
    padding: 0 12px;
  }
  
  /* Main content responsive */
  .main-content {
    margin-left: 0;
    margin-top: 60px;
    padding-top: 0;
  }
  
  .content-area {
    padding: 16px;
  }
  

  
  .post-card {
    height: auto;
    min-height: 400px;
  }
  
  .post-image {
    height: 160px;
  }
  
  .post-info {
    padding: 16px;
    gap: 6px;
  }
  
  .post-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .post-meta {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .post-description {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  /* Botón de favorito responsive */
  .btn-favorite {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    top: 8px;
    left: 8px;
  }
  
  /* Panel de usuario responsive */
  #user-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: 4000;
  }
  
  .user-panel-content {
    max-height: calc(100vh - 100px);
    padding: 16px;
  }
  
  .panel-section {
    margin-bottom: 20px;
  }
  
  .panel-section h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .benefit-item {
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .settings-list {
    gap: 6px;
  }
  
  .setting-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  /* Modales responsive */
  .modal-form {
    padding: 24px;
    margin: 16px;
    max-width: calc(100vw - 32px);
  }
  
  .modal-form h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .modal-form input {
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .modal-form button[type="submit"] {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* Panel de categorías responsive */
  #panel-categorias {
    width: 100vw;
    max-width: none;
  }
  
  .category-chip2 {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* Carrusel VIP responsive */
  #vipCarouselSection {
    padding: 20px;
    margin: 20px 0;
  }
  
  .vip-card {
    min-width: 240px;
    height: 280px;
  }
  
  #vip-prev, #vip-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Featured post responsive */
  .featured-post {
    min-height: 200px;
    margin-bottom: 20px;
  }
  
  .featured-overlay {
    padding: 24px;
  }
  
  .featured-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  
  .featured-meta {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  
  .featured-author {
    margin-bottom: 12px;
  }
  
  .featured-author img {
    width: 32px;
    height: 32px;
  }
  
  /* Botón de favorito en página responsive */
  .page-favorite-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    top: 80px;
    right: 16px;
  }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 480px) {
  .topbar {
    padding: 0 8px;
    gap: 6px;
  }
  
  .search-bar {
    max-width: 120px;
  }
  
  #searchInput {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .content-area {
    padding: 12px;
  }
  
  .post-card {
    min-height: 380px;
  }
  
  .post-image {
    height: 140px;
  }
  
  .post-info {
    padding: 12px;
  }
  
  .post-title {
    font-size: 0.9rem;
  }
  
  .post-meta {
    font-size: 0.75rem;
  }
  
  .post-description {
    font-size: 0.75rem;
  }
  
  .modal-form {
    padding: 20px;
    margin: 12px;
  }
  
  .modal-form h2 {
    font-size: 1.2rem;
  }
  
  .featured-title {
    font-size: 1.2rem;
  }
  
  .featured-meta {
    font-size: 0.8rem;
  }
  
  /* Panel de usuario en pantallas muy pequeñas */
  #user-panel {
    padding: 0;
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    animation: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .user-panel-header {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .user-panel-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .user-welcome {
    gap: 8px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
  }
  
  .user-info h3 {
    font-size: 1rem;
  }
  
  .user-status {
    font-size: 0.75rem;
  }
  

  

  

  
  .panel-section {
    margin-bottom: 16px;
  }
  
  .panel-section h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .favorites-btn, .downloads-btn, .playlist-btn, .share-btn, .compras-btn {
    padding: 10px;
  }
  
  .favorites-icon, .downloads-icon, .playlist-icon, .share-icon, .compras-icon {
    font-size: 1.1rem;
  }
  
  .favorites-info h4, .downloads-info h4, .playlist-info h4, .share-info h4, .compras-info h4 {
    font-size: 0.85rem;
  }
  
  .favorites-info span, .downloads-info span, .playlist-info span, .share-info span, .compras-info span {
    font-size: 0.75rem;
  }
  
  .benefit-item {
    padding: 8px;
    font-size: 0.75rem;
  }
  
  .benefit-icon {
    font-size: 1rem;
  }
  
  .settings-list {
    gap: 4px;
  }
  
  .setting-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .setting-icon {
    font-size: 1rem;
  }
  
  .btn-logout {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .logout-icon {
    font-size: 1rem;
  }
  
  .sync-section, .vip-benefits, .vip-status {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .benefits-grid {
    gap: 6px;
  }
  
  .close-panel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* Ajustes para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .topbar {
    height: 50px;
  }
  
  .main-content {
    margin-top: 50px;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .post-card {
    min-height: 320px;
  }
  
  .post-image {
    height: 120px;
  }
  
  /* Panel de usuario en landscape */
  #user-panel {
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    animation: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .user-panel-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .user-panel-header {
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
  }
  
  .user-info h3 {
    font-size: 0.9rem;
  }
  
  .user-status {
    font-size: 0.7rem;
  }
  
  .monedas-display {
    flex-direction: row;
    gap: 8px;
    padding: 8px;
  }
  
  .moneda-item {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  .panel-section {
    margin-bottom: 12px;
  }
  
  .panel-section h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .favorites-btn, .downloads-btn, .playlist-btn, .share-btn, .tienda-btn, .compras-btn {
    padding: 8px;
  }
  
  .favorites-icon, .downloads-icon, .playlist-icon, .share-icon, .tienda-icon, .compras-icon {
    font-size: 1rem;
  }
  
  .favorites-info h4, .downloads-info h4, .playlist-info h4, .share-info h4, .compras-info h4 {
    font-size: 0.8rem;
  }
  
  .favorites-info span, .downloads-info span, .playlist-info span, .share-info span, .compras-info span {
    font-size: 0.7rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .benefit-item {
    padding: 6px;
    font-size: 0.7rem;
  }
  
  .benefit-icon {
    font-size: 0.9rem;
  }
  
  .settings-list {
    gap: 4px;
  }
  
  .setting-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .setting-icon {
    font-size: 0.9rem;
  }
  
  .btn-logout {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .logout-icon {
    font-size: 0.9rem;
  }
  
  .close-panel-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {

  
  .content-area {
    padding: 24px;
  }
  
  .search-bar {
    max-width: 300px;
  }
  
  .sidebar {
    width: 200px;
  }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1400px) {
  .content-area {
    max-width: 1600px;
  }
  

} 

/* ===== MEJORAS PARA EXPERIENCIA TÁCTIL EN ANDROID ===== */
@media (max-width: 768px) {
  /* Mejorar área de toque para botones */
  .btn-modern, .btn-favorite, .setting-btn, .sidebar-item, .sidebar-toggle-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Evitar zoom en inputs en iOS */
  input[type="text"], input[type="password"], input[type="email"] {
    font-size: 16px !important;
  }
  
  /* Mejorar scroll en Android */
  .user-panel-content, #panel-categorias-lista {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Prevenir selección de texto en botones */
  .btn-modern, .btn-favorite, .setting-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Mejorar feedback táctil */
  .btn-modern:active, .btn-favorite:active, .setting-btn:active {
    transform: scale(0.95);
  }
  
  /* Ajustar espaciado para dedos */
  .sidebar-item-container {
    padding: 8px 12px;
  }
  
  .settings-list {
    gap: 8px;
  }
  
  /* Mejorar navegación por gestos */
  .sidebar-overlay {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Optimizar para pantallas con notch */
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .main-content {
    padding-top: env(safe-area-inset-top);
  }
  
  /* Mejorar legibilidad en pantallas pequeñas */
  .post-title {
    line-height: 1.3;
  }
  
  .post-meta {
    line-height: 1.4;
  }
  
  /* Ajustar tamaños de fuente para mejor legibilidad */
  .modal-form h2 {
    line-height: 1.2;
  }
  
  .panel-section h4 {
    line-height: 1.3;
  }
} 

/* ===== BOTÓN DE FAVORITOS EN PANEL DE USUARIO ===== */
.favorites-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.favorites-btn:hover {
  background: rgba(255, 60, 172, 0.1);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.favorites-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.favorites-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.favorites-info h4 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.favorites-info span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.favorites-arrow {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
} 

/* ===== BOTONES DE PANEL DE USUARIO ===== */
.downloads-btn, .playlist-btn, .share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.downloads-btn:hover, .playlist-btn:hover, .share-btn:hover {
  background: rgba(255, 60, 172, 0.1);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.downloads-icon, .playlist-icon, .share-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.downloads-info, .playlist-info, .share-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.downloads-info h4, .playlist-info h4, .share-info h4 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.downloads-info span, .playlist-info span, .share-info span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.downloads-arrow, .playlist-arrow, .share-arrow {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Colores específicos para cada botón */
.playlist-btn:hover {
  background: rgba(162, 89, 255, 0.1);
  border-color: var(--accent-secondary);
}

.share-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-blue);
} 

/* Estilos para el botón de compras */
.compras-btn {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  text-decoration: none;
}

.compras-btn:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.compras-icon {
  font-size: 1.5em;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

.compras-info {
  flex: 1;
  text-align: left;
}

.compras-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.compras-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.compras-arrow {
  font-size: 1.2em;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

/* Responsive para nuevos botones */
@media (max-width: 768px) {
  .downloads-btn, .playlist-btn, .share-btn, .compras-btn {
    padding: 12px;
  }
  
  .downloads-icon, .playlist-icon, .share-icon, .compras-icon {
    font-size: 1.2rem;
  }
  
  .downloads-info h4, .playlist-info h4, .share-info h4, .compras-info h4 {
    font-size: 0.9rem;
  }
  
  .downloads-info span, .playlist-info span, .share-info span, .compras-info span {
    font-size: 0.8rem;
  }
  
  /* Botones en tarjetas de novelas */
  .post-card button[onclick*="addToPlaylist"],
  .post-card button[onclick*="shareNovela"] {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
} 

/* ===== ESTADO DE SINCRONIZACIÓN ===== */
.sync-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.sync-status {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.sync-status.synced {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.sync-status.syncing {
  color: #FF9800;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  animation: pulse 1.5s infinite;
}

.sync-status.pending {
  color: #FF5722;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.queue-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
}

.btn-sync {
  width: 100%;
  background: var(--gradient-secondary);
  font-size: 0.9rem;
  padding: 10px 16px;
}

.btn-sync:hover {
  background: var(--gradient-primary);
}

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

/* ===== SISTEMA DE MONEDAS Y TIENDA ===== */

/* Display de monedas en el panel de usuario */
.monedas-display {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.moneda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.moneda-icon {
  font-size: 1.1rem;
}

/* Botón de tienda */
.tienda-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.tienda-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.tienda-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tienda-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tienda-info h4 {
  color: var(--accent-gold);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.tienda-info span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.tienda-arrow {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Responsive para botón de tienda */
@media (max-width: 768px) {
  .tienda-btn {
    padding: 12px;
  }
  
  .tienda-icon {
    font-size: 1.2rem;
  }
  
  .tienda-info h4 {
    font-size: 0.9rem;
  }
  
  .tienda-info span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tienda-btn {
    padding: 10px;
  }
  
  .tienda-icon {
    font-size: 1.1rem;
  }
  
  .tienda-info h4 {
    font-size: 0.85rem;
  }
  
  .tienda-info span {
    font-size: 0.75rem;
  }
}

/* Modal de tienda */
.tienda-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

/* Modal de misiones */
.misiones-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.tienda-content {
  background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 50%, #1a0a1a 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInPanel 0.3s ease-out;
}

.misiones-content {
  background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 50%, #1a0a1a 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 60, 172, 0.3);
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInPanel 0.3s ease-out;
}

.tienda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffb347 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tienda-header h2 {
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.cerrar-tienda {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cerrar-tienda:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* Balance de monedas */
.tienda-balance {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-icon {
  font-size: 1.2rem;
}

.balance-cantidad {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.balance-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Categorías de tienda */
.tienda-categorias {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}

.categoria-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.categoria-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
}

.categoria-btn.active {
  background: var(--gradient-gold);
  color: #000;
  border-color: transparent;
}

/* Items de la tienda */
.tienda-items {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tienda-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.tienda-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.item-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
}

.item-info h3 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.item-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.item-precio {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}

.precio-cantidad {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.precio-moneda {
  font-size: 1.2rem;
}

.comprar-btn {
  background: var(--gradient-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.comprar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

/* Notificación de monedas */
.moneda-notificacion {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffb347 100%);
  color: #000;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  z-index: 6000;
  animation: slideInRight 0.3s ease-out;
}

.moneda-cantidad {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.moneda-razon {
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive para tienda */
@media (max-width: 768px) {
  .tienda-content {
    width: 95vw;
    max-height: 90vh;
  }
  
  .tienda-header {
    padding: 16px;
  }
  
  .tienda-header h2 {
    font-size: 1.2rem;
  }
  
  .tienda-balance {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .balance-item {
    padding: 6px 10px;
  }
  
  .balance-icon {
    font-size: 1rem;
  }
  
  .balance-cantidad {
    font-size: 1rem;
  }
  
  .balance-label {
    font-size: 0.75rem;
  }
  
  .tienda-categorias {
    padding: 12px 16px;
  }
  
  .categoria-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .tienda-items {
    padding: 16px;
    max-height: 300px;
  }
  
  .tienda-item {
    padding: 12px;
    gap: 12px;
  }
  
  .item-icon {
    font-size: 1.5rem;
  }
  
  .item-info h3 {
    font-size: 0.9rem;
  }
  
  .item-info p {
    font-size: 0.8rem;
  }
  
  .precio-cantidad {
    font-size: 1rem;
  }
  
  .precio-moneda {
    font-size: 1.1rem;
  }
  
  .comprar-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .moneda-notificacion {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 16px;
  }
  
  .moneda-cantidad {
    font-size: 1.1rem;
  }
  
  .moneda-razon {
    font-size: 0.8rem;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .tienda-content {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  
  .tienda-header {
    padding: 12px 16px;
  }
  
  .tienda-header h2 {
    font-size: 1.1rem;
  }
  
  .cerrar-tienda {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .tienda-balance {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .balance-item {
    padding: 4px 8px;
  }
  
  .balance-icon {
    font-size: 0.9rem;
  }
  
  .balance-cantidad {
    font-size: 0.9rem;
  }
  
  .balance-label {
    font-size: 0.7rem;
  }
  
  .tienda-categorias {
    padding: 10px 12px;
  }
  
  .categoria-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  .tienda-items {
    padding: 12px;
    max-height: none;
    flex: 1;
  }
  
  .tienda-item {
    padding: 10px;
    gap: 8px;
  }
  
  .item-icon {
    font-size: 1.3rem;
  }
  
  .item-info h3 {
    font-size: 0.85rem;
  }
  
  .item-info p {
    font-size: 0.75rem;
  }
  
  .precio-cantidad {
    font-size: 0.9rem;
  }
  
  .precio-moneda {
    font-size: 1rem;
  }
  
  .comprar-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
} 

/* ================== ESTILOS PARA MISIONES ================== */

.misiones-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 60, 172, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  border: 1px solid rgba(255, 60, 172, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.misiones-btn:hover {
  background: linear-gradient(135deg, rgba(255, 60, 172, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 60, 172, 0.3);
}

.misiones-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.misiones-info {
  flex: 1;
  text-align: left;
}

.misiones-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.misiones-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.misiones-arrow {
  font-size: 1.2rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.misiones-btn:hover .misiones-arrow {
  transform: translateX(4px);
}

/* Modal de misiones */
.misiones-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(20px);
}

.misiones-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

.misiones-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.misiones-header h2 {
  margin: 0;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.cerrar-misiones {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cerrar-misiones:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.misiones-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 8px;
  padding: 0 16px;
}

.misiones-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background: rgba(255, 60, 172, 0.1);
}

.misiones-list {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.mision-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  transition: all 0.3s ease;
  min-height: 100px;
}

.mision-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 60, 172, 0.3);
  transform: translateY(-2px);
}

.mision-item.completada {
  background: rgba(0, 255, 0, 0.1);
  border-color: rgba(0, 255, 0, 0.3);
}

.mision-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.mision-info {
  flex: 1;
  margin-right: 8px;
}

.mision-info h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mision-info p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mision-progreso {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progreso-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  transition: width 0.3s ease;
}

.progreso-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

.mision-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.mision-status .btn-iniciar-mision {
  position: static;
  margin-top: 8px;
  align-self: flex-end;
}

.status-completada {
  color: #00ff00;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pendiente {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.mision-recompensa {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Responsive para misiones */
@media (max-width: 768px) {
  .misiones-content {
    width: 95vw;
    max-height: 95vh;
  }
  
  .misiones-header {
    padding: 16px;
  }
  
  .misiones-header h2 {
    font-size: 1.2rem;
  }
  
  .misiones-list {
    padding: 16px;
    max-height: 300px;
  }
  
  .mision-item {
    padding: 12px;
    gap: 12px;
    min-height: 90px;
  }
  
  .mision-status {
    min-width: 100px;
  }
  
  .mision-icon {
    font-size: 1.5rem;
  }
  
  .mision-info h3 {
    font-size: 0.9rem;
  }
  
  .mision-info p {
    font-size: 0.8rem;
  }
  
  .tab-btn {
    padding: 12px;
    font-size: 0.8rem;
  }
  
  .misiones-tabs {
    padding: 0 8px;
    gap: 4px;
  }
  
  .tab-btn {
    padding: 12px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 80px;
  }
}

/* Estilos para botón de YouTube */
.youtube-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.youtube-btn:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.3) 100%);
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.youtube-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.youtube-info {
  flex: 1;
  text-align: left;
}

.youtube-info h4 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.youtube-info span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.youtube-arrow {
  color: var(--accent-primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.youtube-btn:hover .youtube-arrow {
  transform: translateX(4px);
}

/* Modal de YouTube */
.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.youtube-content {
  background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 50%, #1a0a1a 100%);
  border: 2px solid #ff0000;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInPanel 0.3s ease-out;
}

.youtube-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-header h2 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.cerrar-youtube {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cerrar-youtube:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.youtube-info {
  padding: 20px;
}

.youtube-info > p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.youtube-misiones {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.mision-youtube {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mision-youtube h3 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.mision-youtube p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-youtube:hover {
  background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.tiempo-video {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tiempo-video label {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.tiempo-video input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 0.9rem;
  width: 80px;
}

.tiempo-video input:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.youtube-recompensas {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.youtube-recompensas h3 {
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.youtube-recompensas ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.youtube-recompensas li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.youtube-recompensas li:before {
  content: '🎁';
  position: absolute;
  left: 0;
}

/* Responsive para YouTube */
@media (max-width: 768px) {
  .youtube-btn {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .youtube-icon {
    font-size: 1.3rem;
  }
  
  .youtube-info h4 {
    font-size: 0.9rem;
  }
  
  .youtube-info span {
    font-size: 0.8rem;
  }
  
  .youtube-content {
    width: 95vw;
    max-height: 90vh;
  }
  
  .youtube-header {
    padding: 16px;
  }
  
  .youtube-header h2 {
    font-size: 1.2rem;
  }
  
  .youtube-info {
    padding: 16px;
  }
  
  .mision-youtube {
    padding: 12px;
  }
  
  .mision-youtube h3 {
    font-size: 1rem;
  }
  
  .mision-youtube p {
    font-size: 0.8rem;
  }
  
  .tiempo-video {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tiempo-video input {
    width: 100%;
  }
  
  .btn-youtube {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Modal de Anuncio */
.anuncio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.anuncio-content {
  background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 50%, #1a0a1a 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  width: 90vw;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  animation: slideInPanel 0.3s ease-out;
}

.anuncio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffb347 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.anuncio-header h2 {
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.cerrar-anuncio {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cerrar-anuncio:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.anuncio-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.anuncio-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.anuncio-section h3 {
  color: var(--accent-gold);
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.anuncio-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.anuncio-section ul, .anuncio-section ol {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin: 0;
  padding-left: 20px;
}

.anuncio-section li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.anuncio-section strong {
  color: var(--accent-primary);
}

.anuncio-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-youtube-anuncio {
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-youtube-anuncio:hover {
  background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-cerrar-anuncio {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cerrar-anuncio:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 60, 172, 0.4);
}

.btn-no-mostrar {
  background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-no-mostrar:hover {
  background: linear-gradient(135deg, #ff6666 0%, #ff8888 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* Responsive para anuncio */
@media (max-width: 768px) {
  .anuncio-content {
    width: 95vw;
    max-height: 90vh;
  }
  
  .anuncio-header {
    padding: 16px;
  }
  
  .anuncio-header h2 {
    font-size: 1.3rem;
  }
  
  .anuncio-body {
    padding: 16px;
  }
  
  .anuncio-section {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .anuncio-section h3 {
    font-size: 1.1rem;
  }
  
  .anuncio-section p {
    font-size: 0.9rem;
  }
  
  .anuncio-section ul, .anuncio-section ol {
    font-size: 0.85rem;
  }
  
  .anuncio-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-youtube-anuncio, .btn-cerrar-anuncio, .btn-no-mostrar {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Estilos responsive para botón de YouTube */
@media (max-width: 768px) {
  .youtube-btn {
    padding: 8px 12px;
  }
  
  .youtube-icon {
    font-size: 1.2rem;
  }
  
  .youtube-info h4 {
    font-size: 0.9rem;
  }
  
  .youtube-info span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .youtube-btn {
    padding: 6px 10px;
  }
  
  .youtube-icon {
    font-size: 1rem;
  }
  
  .youtube-info h4 {
    font-size: 0.8rem;
  }
  
  .youtube-info span {
    font-size: 0.7rem;
  }
}

/* Botón Iniciar Misión */
.btn-iniciar-mision {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
  min-width: 60px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-iniciar-mision:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 60, 172, 0.4);
}

.btn-iniciar-mision:active {
  transform: translateY(0);
}

/* Responsive para botón iniciar misión */
@media (max-width: 768px) {
  .btn-iniciar-mision {
    padding: 3px 6px;
    font-size: 0.7rem;
    min-width: 50px;
    height: 20px;
  }
}

/* ================== ESTILOS PARA SISTEMA VIP ================== */

.vip-modal {
  max-width: 900px !important;
}

.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.vip-plan {
  background: #222;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #333;
  transition: all 0.3s ease;
  position: relative;
}

.vip-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.vip-plan.featured {
  border-color: #ffd700;
  background: linear-gradient(135deg, #222 0%, #333 100%);
  position: relative;
}

.vip-plan.featured::before {
  content: "⭐ RECOMENDADO";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd700;
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.vip-plan h3 {
  color: #ffd700;
  margin: 0 0 15px 0;
  font-size: 20px;
}

.vip-plan .price {
  font-size: 28px;
  font-weight: bold;
  color: #ffd700;
  margin: 15px 0;
}

.vip-plan .discount {
  background: #4CAF50;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.vip-plan ul {
  margin: 15px 0;
  padding-left: 20px;
}

.vip-plan li {
  margin: 8px 0;
  color: #ccc;
}

.vip-btn {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.vip-btn:hover {
  background: #ffed4e;
  transform: scale(1.05);
}

.vip-btn.featured {
  background: #ffd700;
  color: #000;
}

.vip-benefits {
  margin-top: 30px;
  padding: 20px;
  background: #333;
  border-radius: 15px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #222;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 20px;
}

/* ================== ESTILOS PARA SISTEMA DE MISIONES ================== */

.misiones-modal {
  max-width: 800px !important;
}

.missions-content {
  margin: 20px 0;
}

.mision-item {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
  border: 2px solid #333;
  transition: all 0.3s ease;
}

.mision-item.completed {
  border-color: #4CAF50;
  background: linear-gradient(135deg, #222 0%, #1a3d1a 100%);
}

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

.mision-header h3 {
  color: #ffd700;
  margin: 0;
  font-size: 16px;
}

.reward {
  color: #ffd700;
  font-weight: bold;
  font-size: 14px;
}

.progress-bar {
  background: #333;
  height: 12px;
  border-radius: 6px;
  margin: 10px 0;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.completed-badge {
  color: #4CAF50;
  font-weight: bold;
  font-size: 12px;
  background: rgba(76, 175, 80, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
  margin-top: 10px;
}

.misiones-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #ffd700;
  color: #000;
}

.tab-btn:hover {
  background: #ffed4e;
  color: #000;
}

/* ================== ESTILOS PARA SISTEMA DE COMPRAS ================== */

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.purchase-item {
  background: #222;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #333;
  transition: all 0.3s ease;
  position: relative;
}

.purchase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.purchase-item.basic {
  border-color: #4CAF50;
}

.purchase-item.premium {
  border-color: #ffd700;
}

.purchase-item.vip {
  border-color: #9C27B0;
}

.purchase-item.boost {
  border-color: #FF5722;
}

.purchase-item.customization {
  border-color: #2196F3;
}

.purchase-item.mystery {
  border-color: #E91E63;
}

.purchase-item h3 {
  color: #ffd700;
  margin: 0 0 15px 0;
  font-size: 18px;
}

.purchase-price {
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
  margin: 15px 0;
}

.purchase-item ul {
  margin: 15px 0;
  padding-left: 20px;
}

.purchase-item li {
  margin: 8px 0;
  color: #ccc;
  font-size: 14px;
}

.purchase-btn {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.purchase-btn:hover:not(:disabled) {
  background: #ffed4e;
  transform: scale(1.05);
}

.purchase-btn:disabled {
  background: #666;
  color: #999;
  cursor: not-allowed;
}

.purchase-history {
  max-height: 300px;
  overflow-y: auto;
  background: #333;
  border-radius: 10px;
  padding: 15px;
}

.purchase-history-item {
  background: #222;
  padding: 12px;
  border-radius: 8px;
  margin: 8px 0;
  border-left: 4px solid #ffd700;
}

.purchase-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.purchase-history-name {
  color: #ffd700;
  font-weight: bold;
}

.purchase-history-cost {
  color: #ffd700;
  font-weight: bold;
}

.purchase-history-date {
  color: #ccc;
  font-size: 12px;
}

/* ================== ESTILOS PARA NOTIFICACIONES ================== */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 10001;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.notification.success {
  background: #4CAF50;
  border-left: 4px solid #45a049;
}

.notification.error {
  background: #f44336;
  border-left: 4px solid #d32f2f;
}

.notification.warning {
  background: #ff9800;
  border-left: 4px solid #f57c00;
}

.notification.info {
  background: #2196F3;
  border-left: 4px solid #1976D2;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ================== ESTILOS RESPONSIVE ================== */

@media (max-width: 768px) {
  .vip-plans {
    grid-template-columns: 1fr;
  }
  
  .purchase-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .misiones-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ================== ESTILOS PARA MODALES ================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #111;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  color: white;
  border: 2px solid #ffd700;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #ffd700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ffed4e;
}

/* ================== ESTILOS PARA BOTONES ================== */

.btn-primary {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #ffed4e;
  transform: scale(1.05);
}

.btn-secondary {
  background: #333;
  color: white;
  border: 2px solid #ffd700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffd700;
  color: #000;
}

.btn-danger {
  background: #f44336;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #d32f2f;
}

/* ================== ESTILOS PARA FORMULARIOS ================== */

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffd700;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #222;
  color: white;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ffd700;
}

.form-group input:invalid {
  border-color: #f44336;
}

/* ================== ESTILOS PARA LOADING ================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #333;
  border-radius: 50%;
  border-top-color: #ffd700;
  animation: spin 1s ease-in-out infinite;
}

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

/* ================== ESTILOS PARA SCROLLBARS ================== */

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

::-webkit-scrollbar-track {
  background: #222;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffed4e;
}

/* ===== ESTILOS PARA MODALES ESPECÍFICOS ===== */

/* Modal de Misiones */
.misiones-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.misiones-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.tab-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn:hover {
  background: rgba(255, 60, 172, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.mision-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.mision-card:hover {
  background: rgba(30, 30, 60, 0.9);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

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

.mision-icon {
  font-size: 24px;
  margin-right: 12px;
}

.mision-progreso {
  background: rgba(255, 60, 172, 0.2);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.mision-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.mision-recompensa {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-gold);
  font-weight: 600;
}

.recompensa-icon {
  font-size: 16px;
}

.btn-mision {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mision:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.btn-mision:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-mision.completable {
  background: var(--gradient-gold);
  animation: pulse 2s infinite;
}

.btn-mision.completada {
  background: rgba(76, 175, 80, 0.8);
  color: white;
}

/* Modal de Cambio de Contraseña */
.password-modal {
  max-width: 500px;
}

.password-strength {
  margin: 16px 0;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.strength-fill.very-weak {
  background: #ff4444;
  width: 20%;
}

.strength-fill.weak {
  background: #ff8800;
  width: 40%;
}

.strength-fill.medium {
  background: #ffcc00;
  width: 60%;
}

.strength-fill.strong {
  background: #88cc00;
  width: 80%;
}

.strength-fill.very-strong {
  background: #44cc44;
  width: 100%;
}

/* Modal de Editar Perfil */
.profile-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

.checkbox-item span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Modal de Eliminar Cuenta */
.delete-account-modal {
  max-width: 600px;
}

.delete-warning {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.warning-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.delete-warning h3 {
  color: #ff4444;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.delete-warning p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.delete-warning ul {
  text-align: left;
  list-style: none;
  padding: 0;
}

.delete-warning li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.delete-warning li:before {
  content: "❌";
  position: absolute;
  left: 0;
  top: 0;
}

/* Estilos para formularios */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.form-actions button {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.btn-danger:disabled {
  background: rgba(255, 68, 68, 0.3);
  cursor: not-allowed;
}

/* Responsive para modales */
@media (max-width: 768px) {
  .misiones-grid {
    grid-template-columns: 1fr;
  }
  
  .mision-card {
    padding: 16px;
  }
  
  .misiones-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .delete-warning {
    padding: 16px;
  }
  
  .warning-icon {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .misiones-modal,
  .password-modal,
  .profile-modal,
  .delete-account-modal {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .mision-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .mision-progreso {
    align-self: flex-end;
  }
}

/* ================== ESTILOS MEJORADOS PARA BOTÓN DE USUARIO ================== */

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  min-width: 120px;
}

.user-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.user-btn.logged-in {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 1px solid #3498db;
}

.user-btn.logged-in:hover {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  border-color: #5dade2;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-status {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.user-avatar {
  width: 24px;
  height: 24px;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ================== NUEVO DISEÑO DE CARTAS DESDE CERO ================== */

.novela-card {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 0;
  margin: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px);
  height: 450px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4) 1;
}

.novela-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.novela-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: #ff6b6b;
}

.novela-card:hover::before {
  opacity: 1;
}

.novela-imagen {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
}

.novela-imagen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.novela-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  background: linear-gradient(45deg, #2c3e50, #34495e);
}

.novela-card:hover .novela-imagen img {
  transform: scale(1.15) rotate(3deg);
}

.btn-favorite {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  z-index: 3;
}

.btn-favorite:hover {
  background: rgba(255, 20, 147, 0.95);
  border-color: rgba(255, 20, 147, 0.9);
  transform: scale(1.2) rotate(8deg);
  box-shadow: 0 10px 25px rgba(255, 20, 147, 0.6);
}

.btn-favorite.favorited {
  background: rgba(255, 20, 147, 0.95);
  border-color: rgba(255, 20, 147, 0.9);
  animation: heartBeat 1s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.3) rotate(3deg); }
  50% { transform: scale(1.15) rotate(-2deg); }
  75% { transform: scale(1.25) rotate(2deg); }
}

.novela-actions-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.btn-share-round,
.btn-playlist-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.btn-share-round:hover,
.btn-playlist-round:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2) rotate(8deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.novela-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  position: relative;
}

.novela-titulo {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  min-height: 52px;
  word-break: break-word;
  text-overflow: ellipsis;
  white-space: normal;
  letter-spacing: 0.8px;
}

.novela-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
  align-items: center;
}

.novela-estado {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.novela-peso {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.novela-desc {
  font-size: 15px;
  color: #c8d4e0;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Responsive para el nuevo diseño */
@media (max-width: 768px) {
  .novela-card {
    height: 400px;
    border-radius: 20px;
  }
  
  .novela-imagen {
    height: 200px;
  }
  
  .novela-actions-overlay {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
  
  .btn-share-round,
  .btn-playlist-round,
  .btn-favorite {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .novela-info {
    padding: 20px;
    gap: 12px;
  }
  
  .novela-titulo {
    font-size: 18px;
    min-height: 48px;
    letter-spacing: 0.6px;
  }
  
  .novela-desc {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
  
  .novela-meta {
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .novela-estado,
  .novela-peso {
    font-size: 11px;
    padding: 5px 12px;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 480px) {
  .novela-card {
    height: 380px;
    border-radius: 18px;
  }
  
  .novela-imagen {
    height: 180px;
  }
  
  .novela-actions-overlay {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  
  .btn-share-round,
  .btn-playlist-round,
  .btn-favorite {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .novela-info {
    padding: 16px;
    gap: 10px;
  }
  
  .novela-titulo {
    font-size: 16px;
    min-height: 44px;
    letter-spacing: 0.5px;
  }
  
  .novela-desc {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  
  .novela-meta {
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .novela-estado,
  .novela-peso {
    font-size: 10px;
    padding: 4px 10px;
    letter-spacing: 1px;
  }
}

/* Grid mejorado */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
  min-height: 400px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 0 4px;
  }
}