/* ========================================
   GAME OVER - Inventory System Styles
   Mobile-First Gamer Design
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --primary: #00ff88;
  --secondary: #ff00ff;
  --accent: #00ffff;
  --text: #ffffff;
  --text-dim: #8888aa;
  --danger: #ff3366;
  --glow-primary: 0 0 10px #00ff88, 0 0 20px #00ff8866, 0 0 30px #00ff8833;
  --glow-secondary: 0 0 10px #ff00ff, 0 0 20px #ff00ff66, 0 0 30px #ff00ff33;
  --glow-accent: 0 0 10px #00ffff, 0 0 20px #00ffff66, 0 0 30px #00ffff33;
  --font-main: 'Segoe UI', 'Roboto', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

a:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

/* === ANIMATED BACKGROUND === */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a20 50%, #0a0a1a 100%);
  overflow: hidden;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--text);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* === LOGIN PAGE === */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: logoGlow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--secondary));
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 6px;
  margin-top: 5px;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--secondary)); }
  100% { filter: drop-shadow(0 0 30px var(--accent)) drop-shadow(0 0 60px var(--primary)); }
}

.login-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius);
  padding: 30px 25px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  color: var(--bg-dark);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

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

.login-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* === HOME PAGE === */
.home-container {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  padding: 15px 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px var(--primary));
}

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

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--danger);
}

/* Search Bar */
.search-container {
  padding: 15px 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 12px 20px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
}

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

.search-bar input:focus {
  outline: none;
}

.search-icon {
  color: var(--text-dim);
}

/* Section Title */
.section-title {
  padding: 0 20px;
  margin: 25px 0 15px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Grid Sections */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 20px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.section-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.15);
}

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

.section-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.section-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.section-card:hover .section-name {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 255, 136, 0.15);
  padding: 10px 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px var(--primary));
}

.nav-icon {
  font-size: 1.4rem;
}

/* === MI COLECCIÓN PAGE === */
.coleccion-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

.coleccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: var(--glow-primary);
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px var(--primary));
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-action-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  box-shadow: var(--glow-primary);
}

.header-action-btn span {
  font-weight: 700;
}

/* Search */
.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
}

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

.search-input:focus {
  outline: none;
}

/* Filter Tabs */
.filter-tabs-container {
  padding: 0 16px;
  margin-bottom: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs-container::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--text);
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.filter-tabs-marca {
  margin-top: 10px;
}

.filter-tab-marca {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab-marca:hover {
  border-color: rgba(255, 0, 255, 0.3);
  color: var(--text);
}

.filter-tab-marca.active {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.3);
}

/* Summary Section */
.summary-section {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.summary-section::-webkit-scrollbar {
  display: none;
}

.summary-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.summary-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.summary-icon {
  font-size: 1.5rem;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.summary-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Items Section */
.items-section {
  padding: 0 16px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  pointer-events: none;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.15);
}

.item-card:hover::before {
  border-color: var(--primary);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1), 0 0 15px rgba(0, 255, 136, 0.3);
}

.item-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--bg-dark);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tipo-juego {
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  color: var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tipo-consola {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.tipo-accesorio {
  background: linear-gradient(135deg, var(--secondary), #cc00cc);
  color: var(--bg-dark);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.item-info {
  padding: 12px;
}

.item-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-marca {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.item-valor {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.item-edicion {
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 4px;
}

.item-edicion.especial {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-condicion {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.item-condicion.nuevo {
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.item-condicion.usado {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.item-completo {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  border: none;
  color: var(--bg-dark);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: var(--glow-primary), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--primary), 0 0 50px rgba(0, 255, 136, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

.coleccion-spacer {
  height: 20px;
}

/* === AGREGAR ARTÍCULO PAGE === */

.agregar-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

/* Type Selector Tabs */
.type-tabs-container {
  padding: 15px 16px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.type-tabs-container::-webkit-scrollbar {
  display: none;
}

.type-tabs {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.type-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 18px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.type-tab-icon {
  font-size: 1.1rem;
}

.type-tab:hover {
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--text);
}

.type-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Form */
.agregar-form {
  padding: 10px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.form-divider-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

/* Select */
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ff88' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

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

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Valor Row */
.valor-row {
  display: flex;
  gap: 10px;
}

.valor-row .form-input {
  flex: 1;
}

.valor-moneda {
  width: 90px !important;
  flex-shrink: 0;
}

/* Toggle Switch */
.toggle-group {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  margin-top: 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-row label:first-child {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.4), rgba(0, 255, 255, 0.2));
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.toggle-detail {
  margin-top: 10px;
}

/* Photo Upload */
.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(0, 255, 136, 0.3);
  border-radius: var(--radius);
  transition: var(--transition);
}

.photo-upload-area:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.photo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 255, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: var(--transition);
}

.photo-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 255, 0.15));
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.photo-btn-icon {
  font-size: 1.2rem;
}

.photo-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

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

.photo-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(255, 51, 102, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Save Button */
.btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary), 0 0 50px rgba(0, 255, 136, 0.4);
}

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

.form-spacer {
  height: 20px;
}

/* Input glow animation on focus */
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), 0 0 30px rgba(0, 255, 136, 0.1);
  animation: inputGlow 1.5s ease-in-out infinite alternate;
}

@keyframes inputGlow {
  0% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.1); }
  100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.15); }
}

/* === MERCADO PAGE === */
.mercado-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

.mercado-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

/* Mobile filters toggle */
.mobile-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 0 16px 10px;
  background: var(--bg-card);
  border: 1px dashed rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-filters-toggle:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--primary);
}

.filtros-wrapper {
  /* shown by default on desktop, toggled on mobile */
}

.filtros-wrapper.hidden-mobile {
  display: none;
}

@media (max-width: 600px) {
  .filtros-wrapper.hidden-mobile {
    display: block;
  }
}

/* Ordenar tabs */
.ordenar-container {
  padding: 0 16px;
  margin-bottom: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ordenar-container::-webkit-scrollbar {
  display: none;
}

.ordenar-tabs {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.ordenar-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.ordenar-tab:hover {
  border-color: rgba(0, 255, 255, 0.3);
  color: var(--text);
}

.ordenar-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 136, 0.1));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Mercado stats */
.mercado-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 15px;
  background: rgba(0, 255, 136, 0.05);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.mercado-stats-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.mercado-stats-label strong {
  color: var(--primary);
  font-weight: 700;
}

.mercado-stats-location {
  font-size: 0.75rem;
  color: var(--accent);
}

/* Items grid - mercado */
.items-grid-mercado {
  /* inherits .items-grid */
}

/* Item card - venta */
.item-card-venta {
  /* inherits .item-card */
}

.item-card-venta:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.15), 0 0 20px rgba(0, 255, 136, 0.1);
}

.item-card-venta:hover::before {
  border-color: var(--primary);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1), 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Precio venta */
.item-precio-venta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.precio-valor {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: var(--glow-primary);
  animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
  0% { text-shadow: 0 0 5px var(--primary), 0 0 10px rgba(0, 255, 136, 0.5); }
  100% { text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0, 255, 136, 0.7), 0 0 30px rgba(0, 255, 136, 0.4); }
}

.precio-mxn {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Envio badge on image */
.item-envio-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.item-envio-texto {
  font-size: 0.7rem;
  color: var(--accent);
  margin-left: auto;
}

/* Vendedor row */
.item-vendedor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vendedor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.65rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.vendedor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vendedor-nombre {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendedor-ubicacion {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.btn-contactar {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-contactar:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 255, 0.2));
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  transform: scale(1.05);
}

.btn-contactar:active {
  transform: scale(0.95);
}

/* Item edicion badge on card */
.item-edicion-badge {
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 4px;
}

.item-edicion-badge.especial {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

/* Wishlist Section */
.wishlist-section {
  margin-top: 30px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wishlist-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 255, 0.15);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.wishlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  pointer-events: none;
}

.wishlist-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 255, 0.3);
  box-shadow: 0 6px 20px rgba(255, 0, 255, 0.12);
}

.wishlist-card:hover::before {
  border-color: var(--secondary);
  box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.08), 0 0 12px rgba(255, 0, 255, 0.2);
}

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

.wishlist-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wishlist-prioridad {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
}

.wishlist-prioridad.alta {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.4);
}

.wishlist-prioridad.media {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.wishlist-prioridad.baja {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wishlist-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-marca {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}

.wishlist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wishlist-vendedor {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-tienes {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.15), rgba(0, 255, 255, 0.1));
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-tienes:hover {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.25), rgba(0, 255, 255, 0.15));
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.3);
}

.btn-tienes:active {
  transform: scale(0.95);
}

.mercado-spacer {
  height: 20px;
}

/* === RESPONSIVE === */

/* Small phones */
@media (max-width: 360px) {
  .logo {
    font-size: 2.4rem;
  }
  
  .sections-grid {
    gap: 10px;
  }
  
  .section-card {
    padding: 15px 10px;
  }
  
  .section-icon {
    font-size: 1.8rem;
  }
}

/* Tablets */
@media (min-width: 600px) {
  .sections-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .login-card {
    padding: 40px 35px;
  }

  /* Coleccion responsive */
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 600px;
    margin: 0 auto;
  }

  .summary-section {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .summary-card {
    min-width: 150px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .sections-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .header {
    padding: 20px 40px;
  }
  
  .search-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .section-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-card {
    padding: 25px 20px;
  }
  
  .section-icon {
    font-size: 2.5rem;
  }
  
  .section-name {
    font-size: 0.95rem;
  }

  /* Coleccion desktop */
  .coleccion-container {
    padding: 0 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .items-section {
    max-width: 1000px;
    margin: 0 auto;
  }

  .summary-section {
    max-width: 1000px;
  }

  .summary-card {
    flex: 1;
  }

  .filter-tabs-container {
    max-width: 1000px;
    margin: 0 auto 20px;
  }

  .item-image {
    height: 150px;
  }

  .item-nombre {
    font-size: 0.95rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .sections-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    gap: 30px;
  }
  
  .home-container {
    padding-bottom: 100px;
  }
}

/* === UTILITY === */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

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

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

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

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

/* ==============================
   NOTIFICACIONES
   ============================== */

.notificaciones-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

.notifications-list {
  padding: 16px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
  position: relative;
}

.notification-item:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.05));
  border-color: rgba(0, 255, 136, 0.3);
}

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.notification-icon.mensaje { background: rgba(0, 255, 136, 0.2); }
.notification-icon.venta { background: rgba(255, 0, 255, 0.2); }
.notification-icon.wishlist { background: rgba(255, 100, 0, 0.2); }
.notification-icon.success { background: rgba(0, 200, 100, 0.2); }
.notification-icon.user { background: rgba(0, 150, 255, 0.2); }
.notification-icon.alert { background: rgba(255, 200, 0, 0.2); }
.notification-icon.foro { background: rgba(100, 100, 255, 0.2); }
.notification-icon.reminder { background: rgba(255, 100, 150, 0.2); }

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

.notification-title {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.notification-title strong {
  color: var(--primary);
}

.notification-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.notification-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.notification-action {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  align-self: center;
}

.notification-action:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ========================================
   CHATS LIST STYLES
   ======================================== */

.chats-container {
  min-height: 100vh;
  padding-bottom: 80px;
}

.chats-search-container {
  padding: 0 16px 12px;
}

.chat-list {
  padding: 0 16px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.chat-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 136, 0.2);
  transform: translateX(4px);
}

.chat-item:active {
  transform: scale(0.98);
}

.chat-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.chat-avatar.small {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.chat-avatar .avatar-letter {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.chat-avatar.small .avatar-letter {
  font-size: 1.1rem;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--text-dim);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.online-indicator.active {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

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

.chat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.chat-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chat-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chat-preview {
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.unread-badge {
  min-width: 22px;
  height: 22px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 0 10px var(--primary);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--accent);
}

.fab:active {
  transform: scale(0.95);
}

/* Header Actions */
.header-back {
  display: flex;
  align-items: center;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.3rem;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.new-chat-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.new-chat-btn:hover,
.menu-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

/* ========================================
   CONVERSATION STYLES
   ======================================== */

.conversation-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.conversation-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.conversation-user-info {
  display: flex;
  flex-direction: column;
}

.conversation-user-name {
  font-weight: 600;
  font-size: 1rem;
}

.conversation-user-status {
  font-size: 0.75rem;
  color: var(--primary);
}

/* Security Bar */
.security-bar {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 255, 0.1));
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--primary);
  text-align: center;
  letter-spacing: 1px;
}

/* Messages Area */
.messages-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-divider {
  text-align: center;
  margin: 12px 0;
}

.date-divider span {
  background: var(--bg-card);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Message Bubbles */
.message {
  display: flex;
  max-width: 85%;
}

.message.received {
  align-self: flex-start;
}

.message.sent {
  align-self: flex-end;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  position: relative;
}

.message.received .message-bubble {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  color: var(--bg-dark);
  border-bottom-right-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.message-bubble p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message-bubble .message-time {
  display: block;
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
}

.message.sent .message-time {
  color: var(--bg-dark);
}

.message.received .message-time {
  color: var(--text-dim);
}

/* Message Image */
.message-image {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 40px 60px;
  margin-bottom: 8px;
  text-align: center;
}

.image-placeholder {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Auto Delete Indicator */
.message-bubble.auto-delete {
  border: 1px solid rgba(255, 0, 255, 0.3);
}

.auto-delete-indicator {
  font-size: 0.7rem !important;
  color: var(--secondary) !important;
  margin-bottom: 4px !important;
}

/* Input Area */
.input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
}

.attach-btn,
.camera-btn,
.send-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.attach-btn:hover,
.camera-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.send-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

.send-btn:active {
  transform: scale(0.95);
}

.input-wrapper {
  flex: 1;
}

.message-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.message-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.message-input::placeholder {
  color: var(--text-dim);
}

/* ========================================
   FOROS PAGE STYLES
   ======================================== */

/* Foros Container */
.foros-container {
  min-height: 100vh;
  padding-bottom: 100px;
}

/* Header Left (for back button alignment) */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Button */
.search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 8px;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary);
}

/* Section Title */
.section-title {
  padding: 0 16px;
  margin: 20px 0 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Pinned Section */
.pinned-section {
  margin-bottom: 10px;
}

.pinned-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Foros Section */
.foros-section {
  margin-top: 10px;
}

.foros-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Forum Card */
.foro-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.foro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: var(--transition);
}

.foro-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

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

/* Pinned Card Variant */
.pinned-card {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.05));
}

.pinned-card::before {
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  opacity: 1;
}

.pinned-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 25px rgba(255, 215, 0, 0.2);
}

/* Forum Header */
.foro-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Forum Badge */
.foro-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.foro-badge.pinned {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
}

.foro-badge.popular {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(255, 100, 100, 0.1));
  border: 1px solid rgba(255, 0, 255, 0.5);
  color: #ff00ff;
}

.foro-badge.new {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 100, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #00ff88;
}

.foro-badge.cerrado {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
}

/* Forum Category Badge */
.foro-categoria {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.foro-categoria.general {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.foro-categoria.nintendo {
  background: rgba(230, 0, 0, 0.15);
  border: 1px solid rgba(230, 0, 0, 0.4);
  color: #ff3333;
}

.foro-categoria.playstation {
  background: rgba(0, 112, 209, 0.15);
  border: 1px solid rgba(0, 112, 209, 0.4);
  color: #0070d1;
}

.foro-categoria.sega {
  background: rgba(0, 30, 180, 0.15);
  border: 1px solid rgba(0, 30, 180, 0.4);
  color: #4477ff;
}

.foro-categoria.xbox {
  background: rgba(0, 200, 80, 0.15);
  border: 1px solid rgba(0, 200, 80, 0.4);
  color: #00c850;
}

.foro-categoria.retro {
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ff8c00;
}

.foro-categoria.mercado {
  background: rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #00ffff;
}

.foro-categoria.ayuda {
  background: rgba(255, 0, 255, 0.15);
  border: 1px solid rgba(255, 0, 255, 0.3);
  color: #ff00ff;
}

/* Forum Title */
.foro-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.foro-card:hover .foro-titulo {
  color: var(--primary);
}

/* Forum Meta */
.foro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Forum Creator */
.foro-creador {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Forum Avatar */
.foro-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

/* Forum Stats */
.foro-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.foro-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Forum Time */
.foro-tiempo {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* FAB - Floating Action Button */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: var(--bg-dark);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.7), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .foro-card {
    padding: 14px;
  }

  .foro-titulo {
    font-size: 0.95rem;
  }

  .foro-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .fab {
    bottom: 85px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* ========================================
   FORO DETALLE PAGE STYLES
   ======================================== */

/* Detalle Container */
.detalle-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

/* Detalle Content */
.detalle-content {
  padding: 0 16px;
}

/* Detalle Header Section */
.detalle-header-section {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 20px;
}

.detalle-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0;
  line-height: 1.4;
}

.detalle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.detalle-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.detalle-tiempo {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* Post Card */
.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.post-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
}

.original-post {
  border-color: rgba(0, 255, 136, 0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 136, 0.03));
}

.reply {
  margin-left: 10px;
  border-left: 3px solid var(--secondary);
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.post-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.post-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.post-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.post-badge.OP {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Post Content */
.post-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 10px;
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* Post Actions */
.post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-action-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--primary);
}

/* Replies Section */
.replies-section {
  margin-top: 25px;
}

.replies-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-left: 4px;
}

/* Reply Input Container */
.reply-input-container {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 255, 136, 0.15);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
}

.reply-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 8px 8px 8px 16px;
  transition: var(--transition);
}

.reply-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.reply-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 0;
}

.reply-input::placeholder {
  color: var(--text-dim);
}

.reply-input:focus {
  outline: none;
}

/* Reply Send Button */
.reply-input-container .send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: var(--bg-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.reply-input-container .send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

.reply-input-container .send-btn:active {
  transform: scale(0.95);
}

/* Responsive for Detalle */
@media (max-width: 480px) {
  .detalle-titulo {
    font-size: 1.15rem;
  }

  .detalle-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-card {
    padding: 14px;
  }

  .post-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .reply {
    margin-left: 0;
  }
}

/* ==============================
   CREAR FORO
   ============================== */

.crear-foro-container {
  min-height: 100vh;
  padding-bottom: 100px;
}

.crear-foro-form {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

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

.char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.categoria-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.categoria-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.categoria-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.categoria-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.form-checkbox input {
  display: none;
}

.checkbox-mark {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.form-checkbox input:checked + .checkbox-mark {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input:checked + .checkbox-mark::after {
  content: '✓';
  position: absolute;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.foro-preview {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.foro-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.foro-preview-title {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.foro-preview-cat {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.foro-preview-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-crear-foro {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* ==========================================
   EN BÚSQUEDA (WISHLIST) PAGE
   ========================================== */

.busqueda-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 120px;
  min-height: 100vh;
}

/* Header */
.busqueda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-main) 80%, transparent);
}

.busqueda-header .header-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Notificaciones dot */
.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 8px;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent-magenta);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}

/* Ordenar */
.ordenar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ordenar-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.ordenar-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ordenar-tab {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ordenar-tab.active {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* Wishlist Section */
.wishlist-section,
.otros-buscan-section {
  margin-top: 24px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.wishlist-count {
  background: var(--accent-magenta);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Wishlist Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Wishlist Card */
.wishlist-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.wishlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.wishlist-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  transform: translateY(-2px);
}

.wishlist-card-inner {
  padding: 14px;
}

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

.wishlist-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tipo-juego {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.tipo-consola {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent-cyan);
}

.tipo-accesorio {
  background: rgba(255, 0, 255, 0.2);
  color: var(--accent-magenta);
}

.wishlist-prioridad {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.prioridad-alta {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.prioridad-media {
  background: rgba(255, 200, 0, 0.2);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.3);
}

.prioridad-baja {
  background: rgba(100, 100, 100, 0.2);
  color: #888;
  border: 1px solid rgba(100, 100, 100, 0.3);
}

.wishlist-nombre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.3;
}

.wishlist-marca {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 10px;
}

/* Foto referencia */
.wishlist-foto-ref {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
  position: relative;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.foto-ref-label {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Budget */
.wishlist-budget {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.budget-label {
  color: var(--text-dim);
}

.budget-value {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Contacto toggle */
.wishlist-contacto {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch .toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.toggle-input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Wishlist Actions */
.wishlist-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wishlist-action-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wishlist-action-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--primary);
}

.delete-btn {
  border-color: rgba(255, 0, 255, 0.2);
  background: rgba(255, 0, 255, 0.05);
}

.delete-btn:hover {
  background: rgba(255, 0, 255, 0.15);
  border-color: var(--accent-magenta);
}

/* OTROS BUSCAN */
.otros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.otros-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.otros-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.otros-card-inner {
  padding: 14px;
}

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

.otros-usuario {
  display: flex;
  align-items: center;
  gap: 8px;
}

.usuario-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.usuario-nombre {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.otros-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.otros-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.3;
}

.otros-marca {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 10px;
}

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

.otros-prioridad {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.otros-match {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-tag {
  font-size: 0.7rem;
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-tengo-esto {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 255, 255, 0.1);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tengo-esto:hover {
  background: var(--accent-cyan);
  color: var(--bg-main);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: var(--bg-main);
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

.fab:active {
  transform: scale(0.95);
}

/* ==========================================
   MODAL: AGREGAR A BÚSQUEDA
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-busqueda {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg-main);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-busqueda {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
}

/* Modal Type Tabs */
.modal-type-tabs {
  display: flex;
  padding: 12px 20px;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  flex-shrink: 0;
}

.modal-type-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-type-tab.active {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

/* Modal Form */
.modal-form {
  padding: 16px 20px 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-type-section {
  display: block;
}

.modal-type-section.hidden {
  display: none;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff88' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* Prioridad tabs */
.prioridad-tabs {
  display: flex;
  gap: 8px;
}

.prioridad-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.prioridad-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 255, 136, 0.1);
}

.prioridad-tab.active[data-prioridad="alta"] {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.prioridad-tab.active[data-prioridad="media"] {
  border-color: #ffc800;
  color: #ffc800;
  background: rgba(255, 200, 0, 0.1);
}

.prioridad-tab.active[data-prioridad="baja"] {
  border-color: #888;
  color: #888;
  background: rgba(100, 100, 100, 0.1);
}

/* Photo upload */
.photo-upload-area {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.photo-upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
}

.photo-upload-icon {
  font-size: 1.5rem;
}

.photo-upload-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.photo-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

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

.photo-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 68, 68, 0.9);
  color: white;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Submit button */
.btn-save-busqueda {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: var(--bg-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-save-busqueda:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

.btn-save-busqueda:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

@media (min-width: 600px) {
  .wishlist-grid,
  .otros-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .busqueda-container {
    max-width: 720px;
  }
}

@media (min-width: 900px) {
  .wishlist-grid,
  .otros-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .busqueda-container {
    max-width: 960px;
  }
}

/* ==============================
   MATCH ALERT - BÚSQUEDA
   ============================== */

.match-alert {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(255, 0, 255, 0.1));
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: glowPulse 2s infinite;
}

.match-icon {
  font-size: 1.8rem;
}

.match-text {
  font-size: 0.9rem;
  color: var(--text);
}

.match-text strong {
  color: var(--primary);
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
}

/* User info in cards */
.wishlist-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--bg-dark);
}

.user-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  flex: 1;
}

.user-location {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Tengo esto button */
.btn-tengo-esto {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-tengo-esto:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* ==============================
   MATCH SECTION - TIENEN LO QUE BUSCO
   ============================== */

.match-section {
  padding: 0 16px;
  margin-bottom: 24px;
}

.match-info {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Match card - same size as wishlist-card */
.match-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  pointer-events: none;
}

.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: 0 6px 20px rgba(255, 0, 255, 0.2);
}

.match-card:hover::before {
  border-color: var(--secondary);
  box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.1), 0 0 12px rgba(255, 0, 255, 0.3);
}

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

.match-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-match {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--bg-dark);
}

.match-user-info {
  display: flex;
  flex-direction: column;
}

.match-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.match-user-loc {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.match-badge-match {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 0, 255, 0.2);
  color: var(--secondary);
}

.match-item-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.match-item-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.match-item-type {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.match-item-precio {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.btn-match-chat {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid var(--secondary);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-match-chat:hover {
  background: var(--secondary);
  color: var(--bg-dark);
}

/* Wishlist actions buttons */
.wishlist-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wishlist-action-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.wishlist-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.wishlist-action-btn.delete-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
}

/* OTROS BUSCAN - Color Cyan */
.wishlist-card.otros-buscan {
  border-color: rgba(0, 255, 255, 0.2);
}

.wishlist-card.otros-buscan:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.15);
}

.wishlist-card.otros-buscan::before {
  border-color: var(--accent-cyan);
}

.wishlist-card.otros-buscan .wishlist-badge {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent-cyan);
}

.wishlist-card.otros-buscan .wishlist-prioridad.prioridad-alta {
  background: rgba(255, 100, 0, 0.2);
  color: #ff6432;
}

.wishlist-card.otros-buscan .wishlist-prioridad.prioridad-media {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent-cyan);
}

.wishlist-card.otros-buscan .wishlist-prioridad.prioridad-baja {
  background: rgba(150, 150, 150, 0.2);
  color: #999;
}

/* ========================================
   ESTADÍSTICAS - Stats Dashboard
   ======================================== */

.stats-container {
  max-width: 100%;
  padding: 0 16px 100px;
  min-height: 100vh;
}

/* Header */
.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 10;
}

.nav-arrow {
  font-size: 1.5rem;
  color: var(--text);
  padding: 8px 12px;
  transition: var(--transition);
}

.nav-arrow:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.nav-arrow-right {
  font-size: 1.5rem;
  color: var(--text);
  padding: 8px 12px;
  transition: var(--transition);
}

.nav-arrow-right:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.stats-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 10px var(--primary);
}

.period-selector {
  position: absolute;
  right: 50px;
}

.period-dropdown {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.period-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Sections */
.stats-section {
  margin-bottom: 28px;
}

.stats-section .section-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-left: 4px;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.summary-card.primary {
  border-color: rgba(0, 255, 136, 0.3);
}

.summary-card.primary:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.summary-card.secondary {
  border-color: rgba(255, 0, 255, 0.3);
}

.summary-card.secondary:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.15);
}

.summary-card.accent {
  border-color: rgba(0, 255, 255, 0.3);
}

.summary-card.accent:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.summary-card.success {
  border-color: rgba(0, 255, 136, 0.3);
}

.summary-card.success:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.summary-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.summary-card.primary .summary-value { color: var(--primary); }
.summary-card.secondary .summary-value { color: var(--secondary); }
.summary-card.accent .summary-value { color: var(--accent); }
.summary-card.success .summary-value { color: var(--primary); }

.summary-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.summary-sublabel {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px 12px;
  transition: var(--transition);
}

.chart-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 12px;
}

.donut-chart {
  position: relative;
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px;
}

.donut-svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 22;
  stroke-linecap: round;
  transition: var(--transition);
}

.chart-card:hover .donut-segment {
  stroke-width: 24;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-icon {
  font-size: 1.4rem;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  color: var(--text-dim);
  flex: 1;
}

.legend-value {
  color: var(--text);
  font-weight: 600;
}

/* Top 5 */
.top5-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.top5-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  transition: var(--transition);
}

.top5-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.top5-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.top5-list {
  list-style: none;
}

.top5-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top5-item:last-child {
  border-bottom: none;
}

.top5-rank {
  width: 20px;
  height: 20px;
  background: rgba(0, 255, 136, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.top5-item:nth-child(2) .top5-rank {
  background: rgba(255, 0, 255, 0.15);
  color: var(--secondary);
}

.top5-item:nth-child(3) .top5-rank {
  background: rgba(0, 255, 255, 0.15);
  color: var(--accent);
}

.top5-name {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top5-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

/* Activity */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: var(--transition);
}

.activity-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.activity-card.success {
  border-color: rgba(0, 255, 136, 0.2);
}

.activity-card.success:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.activity-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.activity-info {
  display: flex;
  flex-direction: column;
}

.activity-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.activity-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.activity-amount {
  font-size: 0.7rem;
  color: var(--primary);
  margin-top: 2px;
}

/* Ranking */
.ranking-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.ranking-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ranking-position {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ranking-hash {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
}

.ranking-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.ranking-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ranking-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ranking-detail {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.ranking-badge {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-icon {
  font-size: 0.9rem;
}

.badge-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.bottom-spacer {
  height: 20px;
}

/* Mobile Responsive */
@media (max-width: 400px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .top5-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-grid {
    grid-template-columns: 1fr;
  }
  
  .ranking-card {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }
  
  .ranking-info {
    width: 100%;
    order: 3;
    text-align: center;
  }
  
  .ranking-badge {
    order: 2;
  }
}

@media (min-width: 768px) {
  .stats-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 120px;
  }
  
  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .top5-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activity-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   CONFIGURACIÓN PAGE
   ======================================== */

.config-container {
  min-height: 100vh;
  padding-bottom: 90px;
}

.config-content {
  padding: 0 16px;
}

/* Section Title */
.config-section {
  margin-bottom: 24px;
}

.config-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 20px 0 10px;
  padding-left: 4px;
}

/* Config Card */
.config-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profile Avatar Row */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-primary);
}

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

.profile-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-member-since {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Form Row (two columns) */
.form-row {
  display: flex;
  gap: 12px;
}

.form-group.half {
  flex: 1;
  min-width: 0;
}

/* Toggle Row (scoped to config card) */
.config-card .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.config-card .toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.config-card .toggle-info {
  flex: 1;
  min-width: 0;
}

.toggle-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.toggle-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Toggle Switch (scoped to config card) */
.config-card .toggle-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
}

.config-card .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.config-card .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-card .toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: 0.3s;
}

.config-card .toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.config-card .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: var(--bg-dark);
}

/* Form Select */
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

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

/* Button Variants */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.btn-danger {
  background: rgba(255, 51, 102, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 51, 102, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
}

/* About Row */
.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.about-label {
  font-size: 0.95rem;
  color: var(--text);
}

.about-value {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: monospace;
}

/* Bottom spacer */
.config-bottom-spacer {
  height: 20px;
}

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

@media (max-width: 360px) {
  .profile-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ========================================
   MI PERFIL PAGE
   ======================================== */

.page-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, var(--bg-dark) 80%, transparent);
  z-index: 10;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-arrow {
  font-size: 1.3rem;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  color: var(--primary);
  background: var(--bg-card-hover);
  text-shadow: none;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-primary);
  letter-spacing: 1px;
}

.btn-edit {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Profile Hero */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
  text-align: center;
}

.profile-avatar-large {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  z-index: 0;
  animation: rotateGlow 4s linear infinite;
  filter: blur(8px);
  opacity: 0.6;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-username {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-rating {
  color: #ffcc00;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Sections */
.profile-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Public Link */
.public-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-link {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: monospace;
}

.input-link:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-copy {
  background: rgba(0, 255, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(0, 255, 136, 0.3);
  border: 1px solid var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

/* Collection Preview */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

.mini-icon {
  font-size: 1.5rem;
}

.mini-name {
  font-size: 0.6rem;
  color: var(--text);
  text-align: center;
  padding: 0 4px;
  line-height: 1.2;
}

.btn-link {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.btn-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.dot-green {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.dot-magenta {
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

.dot-cyan {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.timeline-text strong {
  color: var(--primary);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Wishlist Preview */
.wishlist-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: var(--transition);
}

.wishlist-item:hover {
  border-color: rgba(255, 0, 255, 0.3);
  background: var(--bg-card-hover);
}

.wishlist-icon {
  font-size: 1.4rem;
}

.wishlist-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wishlist-name {
  font-size: 0.88rem;
  color: var(--text);
}

.wishlist-price {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

/* Page bottom spacer */
.page-bottom-spacer {
  height: 80px;
}

/* ========================================
   RESPONSIVE - MI PERFIL
   ======================================== */

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-avatar-large {
    width: 85px;
    height: 85px;
  }

  .avatar-inner {
    font-size: 2rem;
  }
}

/* Loading spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #00ff88;
  font-size: 18px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
  grid-column: 1 / -1;
}

/* Error message */
.error-msg {
  text-align: center;
  padding: 40px;
  color: #ff4444;
  font-size: 16px;
  grid-column: 1 / -1;
}

#photoInput {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  z-index: -1 !important;
}
