/* ============================================
   WONDERLAND GAMES PERU - POKELANCES
   Diseño: Gamer, Futurista, Oscuro Elegante
   ============================================ */

/* Fuentes - Guía de Marca */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Orbitron:wght@500;600;700&display=swap');

/* Variables - Paleta Oficial Wonderland Games */
:root {
  /* Colores de fondo - Guía de Marca */
  --color-bg-main: #0C1015;
  /* Fondo principal - Negro azulado */
  --color-bg-card: #262F38;
  /* Cards/Secciones - Gris azulado oscuro */
  --color-border: #4F646E;
  /* Bordes UI - Gris azulado medio */
  --color-primary: #1DC5DF;
  /* Color de marca - Turquesa vibrante */
  --color-text-main: #EEF1F3;
  /* Texto principal - Blanco suave */
  --color-text-muted: #9F9C9C;
  /* Texto secundario - Gris neutro */

  /* Aliases para compatibilidad */
  --bg-primary: var(--color-bg-main);
  --bg-secondary: #141A1F;
  --bg-tertiary: var(--color-bg-card);
  --bg-card: var(--color-bg-card);
  --accent-primary: var(--color-primary);
  --accent-secondary: #17A5BC;
  --accent-tertiary: #00E5A0;
  --text-primary: var(--color-text-main);
  --text-secondary: var(--color-text-muted);
  --text-muted: #6B7280;
  --border-subtle: var(--color-border);

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #1DC5DF, #17A5BC);
  --gradient-glow: radial-gradient(ellipse at center, rgba(29, 197, 223, 0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(145deg, #262F38, #1E252D);

  /* Sombras y efectos */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(29, 197, 223, 0.25);
  --shadow-neon: 0 0 15px rgba(29, 197, 223, 0.4), 0 0 30px rgba(29, 197, 223, 0.2);
  --border-glow: rgba(29, 197, 223, 0.5);

  /* Border radius - Guía de Marca */
  --radius-sm: 8px;
  --radius-md: 12px;
  /* Botones: 10-14px */
  --radius-lg: 16px;
  /* Cards: 16px */
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Transiciones suaves */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Breakpoints (referencia para media queries; mobile-first) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --touch-target-min: 44px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

#root {
  min-width: 0;
}

/* Fondo sutil con gradiente */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(29, 197, 223, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(29, 197, 223, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   COMPONENTES BASE
   ============================================ */

/* Contenedor principal (mobile-first: fluido, luego max-width en desktop) */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md, 8px);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.header-store:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
}

.header-store-sep {
  opacity: 0.5;
  margin-right: 0.25rem;
  font-weight: 300;
}

.header-store-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.header-store-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-store-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.header-store-name {
  font-weight: 600;
  color: var(--color-text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

/* Indicador de sala (debajo del header, discreto; no es botón) */
.room-indicator {
  --room-accent: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: default;
}

.room-indicator.has-accent .room-indicator-name {
  color: var(--room-accent);
  font-weight: 600;
}

.room-indicator-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: color-mix(in srgb, var(--room-accent) 18%, var(--color-bg-tertiary));
}

.room-indicator-icon .room-indicator-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.room-indicator-icon .room-indicator-emoji {
  font-size: 0.85rem;
  display: block;
}

.room-indicator-label {
  font-weight: 500;
}

.room-indicator-name {
  color: var(--color-text-main);
  font-weight: 600;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), #0E8A9A);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(29, 197, 223, 0.3);
  border: 2px solid rgba(29, 197, 223, 0.2);
}

img.logo-icon {
  background: none;
  border: none;
  box-shadow: none;
  object-fit: contain;
  padding: 0;
}

/* Botones - Guía de Marca */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), background var(--transition-fast), filter var(--transition-fast);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Botón Primario - Fondo turquesa, texto oscuro */
.btn-primary {
  background: linear-gradient(145deg, #20d4ee 0%, var(--color-primary) 50%, #17A5BC 100%);
  color: var(--color-bg-main);
  box-shadow: 0 2px 8px rgba(29, 197, 223, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 197, 223, 0.4), 0 0 24px rgba(29, 197, 223, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.06);
}

/* Botón Secundario - Transparente con borde */
.btn-secondary {
  background: rgba(29, 197, 223, 0.06);
  color: var(--color-primary);
  border: 1.5px solid rgba(29, 197, 223, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(29, 197, 223, 0.14);
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(29, 197, 223, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-danger {
  background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.08);
}

.btn-success {
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.08);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Botón pill (icono en pastilla) – uso en room-selector y donde se necesite */
.btn-pill {
  border-radius: 9999px;
  padding-left: 6px;
  padding-right: 14px;
  gap: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn-pill .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-secondary.btn-pill .btn-ico {
  background: rgba(29, 197, 223, 0.2);
}

.btn-primary.btn-pill .btn-ico {
  background: rgba(255, 255, 255, 0.25);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Botón "próximamente" - visible pero no clickeable, opaco */
.btn-coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

.btn-coming-soon:hover {
  transform: none;
  filter: grayscale(0.3);
}

/* Inputs - Guía de Marca */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--color-bg-main);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.15);
}

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

/* ============================================
   Cards y paneles – diseño consistente (ui-modern-llamativo)
   Barra superior gradiente, título con línea, padding generoso, hover unificado
   ============================================ */

/* Cards - contenedor con barra superior gradiente */
.card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.9;
  border-radius: 20px 20px 0 0;
}

.card:hover {
  border-color: rgba(29, 197, 223, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(29, 197, 223, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.card-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  max-width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(29, 197, 223, 0.4);
}

/* ============================================
   PÁGINA DE LOGIN
   ============================================ */

/* Auth (mobile-first) */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .auth-page {
    padding: 24px;
  }
}

.auth-container {
  width: 100%;
  max-width: min(440px, calc(100vw - 2rem));
  box-sizing: border-box;
}

.auth-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .auth-card {
    padding: 40px;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo {
  justify-content: center;
  margin-bottom: 16px;
  font-size: 2rem;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.auth-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-md);
}

.auth-tab {
  flex: 1;
  min-height: 44px;
  padding: 12px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-tab.active {
  background: var(--color-primary);
  color: var(--color-bg-main);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
}

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-oauth:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-oauth svg {
  flex-shrink: 0;
}

.btn-google {
  background: white;
  color: #3c4043;
  border-color: #dadce0;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-facebook {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-facebook svg {
  filter: brightness(0) invert(1);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ============================================
   PÁGINA DE SUBASTA (USUARIO)
   ============================================ */

/* Toggle En vivo / Programadas – mismo estilo que botones del panel (pill + icono en pastilla) */
.auction-view-toggle,
.buyer-view-toggle {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  padding: 5px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  width: fit-content;
}

.auction-view-toggle {
  margin-bottom: 20px;
}

.buyer-view-toggle {
  margin-bottom: 0;
}

.buyer-view-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.view-toggle-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.3;
}

.auction-view-toggle .toggle-btn,
.buyer-view-toggle .toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 10px 6px 6px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border-radius: 9999px;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  text-transform: none;
  letter-spacing: 0.02em;
}

.auction-view-toggle .toggle-btn .toggle-btn-ico,
.buyer-view-toggle .toggle-btn .toggle-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.auction-view-toggle .toggle-btn:hover,
.buyer-view-toggle .toggle-btn:hover {
  color: var(--color-text-main);
}

.auction-view-toggle .toggle-btn:hover .toggle-btn-ico,
.buyer-view-toggle .toggle-btn:hover .toggle-btn-ico {
  background: rgba(0, 0, 0, 0.25);
}

.auction-view-toggle .toggle-btn.active,
.buyer-view-toggle .toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.auction-view-toggle .toggle-btn.active .toggle-btn-ico,
.buyer-view-toggle .toggle-btn.active .toggle-btn-ico {
  background: rgba(255, 255, 255, 0.25);
}

.auction-view-toggle .toggle-btn.active:hover,
.buyer-view-toggle .toggle-btn.active:hover {
  background: #17A5BC;
  color: var(--color-bg-main);
  box-shadow: 0 2px 8px rgba(29, 197, 223, 0.3);
}

/* Grid de cards de subastas programadas */
.scheduled-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  min-height: 120px;
}

.scheduled-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.scheduled-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.scheduled-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.scheduled-card-body {
  padding: 16px;
}

.scheduled-card-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scheduled-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.scheduled-card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  font-weight: 600;
}

.scheduled-card-room {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scheduled-card-price {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-tertiary);
}

.scheduled-card-end {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   Subastas programadas v2 – UI moderno (skill ui-modern-llamativo)
   Fondo gradiente, card glass, título con línea, filtros, grid con barra y hover
   ============================================ */
.scheduled-view {
  min-height: 400px;
  padding: 24px 0;
  position: relative;
}

.scheduled-view::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scheduled-view-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(25, 30, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 32px 32px;
  overflow: hidden;
}

.scheduled-view-accent,
.scheduled-detail-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.9;
  border-radius: 22px 22px 0 0;
}

.scheduled-view-header {
  margin-bottom: 24px;
}

.scheduled-view-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.scheduled-view-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(29, 197, 223, 0.45);
}

.scheduled-view-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Filtros */
.scheduled-filters {
  margin-bottom: 24px;
}

.scheduled-status-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  width: fit-content;
}

.scheduled-status-tab {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.scheduled-status-tab:hover {
  color: var(--color-text-main, #fff);
  background: rgba(255, 255, 255, 0.06);
}

.scheduled-status-tab--active {
  background: var(--color-primary, #00f0ff);
  color: var(--color-bg-main, #0f1419);
}

.scheduled-status-tab--active:hover {
  background: var(--color-primary, #00f0ff);
  color: var(--color-bg-main, #0f1419);
}

.scheduled-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.scheduled-filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.scheduled-filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.5;
  pointer-events: none;
}

.scheduled-filter-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.scheduled-filter-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.scheduled-filter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.12);
}

.scheduled-filter-select {
  padding: 10px 32px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 100px;
  transition: border-color 0.25s ease;
}

.scheduled-filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.scheduled-filter-category-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.scheduled-filter-category-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.scheduled-filter-category-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.scheduled-filter-category-btn--active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.scheduled-filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.scheduled-filter-sort-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.scheduled-filter-sort {
  min-width: 140px;
}

.scheduled-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.scheduled-filter-check input {
  accent-color: var(--color-primary);
}

.scheduled-clear-filters {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.scheduled-clear-filters:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-main);
}

/* Grid de cards */
.scheduled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.scheduled-card {
  --type-color: #475569;
  --type-color-glow: rgba(71, 85, 105, 0.08);
  position: relative;
  background: linear-gradient(145deg, var(--color-bg-card), rgba(30, 37, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
  color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
  animation: scheduled-card-in 0.45s ease both;
}

@keyframes scheduled-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scheduled-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 1;
}

.scheduled-card:hover {
  border-color: var(--type-color);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px var(--type-color-glow);
}

.scheduled-card:hover .scheduled-card-accent {
  opacity: 1;
}

.scheduled-card-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.scheduled-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

/* ── Lot Stack — horizontal fan ── */
.lot-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

/*
 * Cada carta ocupa el 62% del ancho del contenedor.
 * Se posicionan con left:50% + translateX para crear el fan lateral:
 *   card-1 (frente): derecha  — translateX(-20%)
 *   card-2 (medio):  centro   — translateX(-72%)
 *   card-3 (fondo):  izquierda — translateX(-104%)  (levemente recortada)
 * La rotación es secundaria: sólo da el twist visual.
 */
.lot-stack-card {
  position: absolute;
  width: 62%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  left: 50%;
  bottom: 0;
  transform-origin: bottom center;
  border-radius: 6px;
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1),
              filter 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

/* Fondo — izquierda */
.lot-stack-card--3 {
  transform: translateX(-104%) rotate(-10deg);
  z-index: 1;
  opacity: 0.7;
  filter: brightness(0.72);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.45);
}

/* Medio */
.lot-stack-card--2 {
  transform: translateX(-72%) rotate(-5deg);
  z-index: 2;
  opacity: 0.87;
  filter: brightness(0.88);
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.35);
}

/* Frente — derecha */
.lot-stack-card--1 {
  transform: translateX(-20%);
  z-index: 3;
  box-shadow: 2px 6px 22px rgba(0, 0, 0, 0.45);
}

/* Fan-out hover — grid */
.scheduled-card:hover .lot-stack-card--3 {
  transform: translateX(-116%) rotate(-16deg);
  filter: brightness(0.82);
}
.scheduled-card:hover .lot-stack-card--2 {
  transform: translateX(-80%) rotate(-9deg);
  filter: brightness(0.94);
}
.scheduled-card:hover .lot-stack-card--1 {
  transform: translateX(-14%) rotate(3deg);
}

/* Fan-out hover — featured carousel */
.featured-item--active:hover .lot-stack-card--3 {
  transform: translateX(-116%) rotate(-16deg);
  filter: brightness(0.82);
}
.featured-item--active:hover .lot-stack-card--2 {
  transform: translateX(-80%) rotate(-9deg);
  filter: brightness(0.94);
}
.featured-item--active:hover .lot-stack-card--1 {
  transform: translateX(-14%) rotate(3deg);
}

/* +N more counter */
.lot-stack-more {
  position: absolute;
  bottom: 8px;
  right: 6px;
  z-index: 10;
  background: rgba(168, 85, 247, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* Mobile: fan estático, sin animación hover */
@media (hover: none) {
  .lot-stack-card--3 {
    transform: translateX(-104%) rotate(-8deg);
  }
  .lot-stack-card--2 {
    transform: translateX(-72%) rotate(-4deg);
  }
}

.scheduled-card-body {
  padding: 16px;
}

.scheduled-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scheduled-card-price {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.scheduled-card-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.scheduled-card-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Countdown badge (tarjetas listado) ── */
.cd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--color-primary);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.cd-badge--warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

.cd-badge--urgent {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  animation: cd-badge-pulse 1.2s ease-in-out infinite;
}

@keyframes cd-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.scheduled-card--ended {
  opacity: 0.85;
}

.scheduled-card--ended:hover {
  opacity: 1;
}

.scheduled-card-badge-ended {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(100, 116, 139, 0.95);
  color: #fff;
  border-radius: 6px;
  pointer-events: none;
}

/* Loading y empty */
.scheduled-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
  color: var(--color-text-muted);
}

.scheduled-loading-dots {
  display: flex;
  gap: 8px;
}

.scheduled-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: rs-dot-bounce 1.2s ease-in-out infinite;
}

.scheduled-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.scheduled-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.scheduled-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--color-text-muted);
}

.scheduled-empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

/* Vista detalle (dentro de scheduled-view) */
.scheduled-detail-card {
  padding: 0;
}

.scheduled-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scheduled-back-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scheduled-back-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
}

.scheduled-detail-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-main);
}

.scheduled-detail-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px 32px;
  align-items: start;
}

.scheduled-detail-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.scheduled-detail-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.scheduled-detail-info {
  min-width: 0;
}

.scheduled-detail-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 12px;
  line-height: 1.3;
}

.scheduled-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.scheduled-meta--type {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-primary);
}

.scheduled-current-bid {
  margin: 20px 0 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(29, 197, 223, 0.08), rgba(38, 47, 56, 0.6));
  border: 1px solid rgba(29, 197, 223, 0.2);
  border-radius: 14px;
}

.scheduled-current-bid-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.scheduled-current-bid-amount {
  font-family: 'Orbitron', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.scheduled-closes {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.scheduled-bid-form {
  margin-top: 8px;
}

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

.scheduled-bid-input {
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 12px;
}

.scheduled-pujar-btn {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.scheduled-pujar-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .scheduled-detail-body {
    grid-template-columns: 1fr;
  }

  .scheduled-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scheduled-filter-select {
    min-width: 0;
  }

  .scheduled-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
}

/* Vista detalle subasta programada (estilo eBay) */
.scheduled-detail-main {
  width: 100%;
}

.scheduled-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.scheduled-detail-image-wrap {
  position: relative;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scheduled-detail-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
}

.scheduled-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scheduled-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.scheduled-detail-seller {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scheduled-detail-seller a {
  color: var(--color-primary);
  text-decoration: none;
}

.scheduled-detail-seller a:hover {
  text-decoration: underline;
}

.scheduled-detail-price {
  font-family: 'Space Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-tertiary);
}

.scheduled-detail-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scheduled-detail-condition {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.scheduled-detail-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.scheduled-detail-categories .badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 197, 223, 0.15);
  color: var(--color-primary);
  font-weight: 500;
}

.scheduled-detail-categories .badge-vintage {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

/* Toolbar y filtros subastas programadas */
.scheduled-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.scheduled-search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.scheduled-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.scheduled-search-input {
  width: 100%;
  padding-left: 36px;
  padding-right: 12px;
}

.scheduled-filters-dropdown-wrap {
  position: relative;
}

.scheduled-filters-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 260px;
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scheduled-filters-panel[hidden] {
  display: none !important;
}

.scheduled-filters-panel:not([hidden]) {
  display: flex !important;
}

.scheduled-filters-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 560px) {
  .scheduled-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .scheduled-search-wrap {
    min-width: 0;
  }

  .scheduled-filters-dropdown-wrap {
    align-self: flex-end;
  }
}

.scheduled-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scheduled-filter-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scheduled-filter-group .input-sm {
  min-width: 140px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.scheduled-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.scheduled-filter-check input {
  margin: 0;
}

.scheduled-filter-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.scheduled-filter-tags-list .filter-tag-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scheduled-filter-tags-list .filter-tag-chip:hover,
.scheduled-filter-tags-list .filter-tag-chip.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(29, 197, 223, 0.1);
}

.scheduled-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.scheduled-card-badges .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(29, 197, 223, 0.15);
  color: var(--color-primary);
}

.scheduled-card-badges .badge-vintage {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

/* Modal Place bid (subastas programadas) */
.scheduled-bid-modal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scheduled-bid-info {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.scheduled-bid-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scheduled-bid-quick .btn {
  flex: 1;
  min-width: 100px;
}

.scheduled-bid-or {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.scheduled-bid-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.scheduled-bid-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Modal Perfil de la tienda: selector .modal.store-profile-modal para ganar a la base .modal (max-width/width) */
.modal.store-profile-modal {
  width: 96vw !important;
  max-width: 1400px !important;
  height: 94vh !important;
  max-height: 94vh !important;
  overflow: hidden !important;
  padding: 24px 32px;
}

.store-profile-modal .modal-header {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.store-profile-modal .modal-title {
  font-size: 1.4rem;
}

.store-profile-modal .modal-content {
  padding: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.store-profile-body::-webkit-scrollbar {
  width: 10px;
}

.store-profile-body::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 5px;
}

.store-profile-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 5px;
}

.store-profile-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.store-profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
}

.store-profile-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.store-profile-body .store-profile-about {
  min-width: 0;
}

.store-profile-body .store-profile-feedback {
  min-width: 0;
}

.store-profile-error {
  grid-column: 1 / -1;
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger, #ef4444);
  border-radius: var(--radius-md);
}

.store-profile-about-title,
.store-profile-feedback-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text-primary);
}

.store-profile-about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-profile-avatar {
  width: 96px;
  height: 96px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.store-profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.store-profile-stats {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
}

.store-profile-joined,
.store-profile-response {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.store-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.store-profile-detailed-ratings {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.store-profile-detailed-ratings h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px 0;
  color: var(--text-primary);
}

.store-profile-ratings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-profile-rating-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}

.store-profile-rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.store-profile-rating-label {
  color: var(--text-secondary);
}

.store-profile-rating-value {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 2ch;
}

.store-profile-rating-bar {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.store-profile-rating-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.store-profile-ratings-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 12px 0 0 0;
}

.store-profile-feedback {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.store-profile-feedback-title {
  white-space: nowrap;
  overflow: visible;
}

.store-profile-feedback-list {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 12px;
  flex: 1;
  min-width: 0;
}

.store-profile-feedback-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  font-size: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.store-profile-feedback-item .store-profile-feedback-rating {
  grid-row: 1;
  grid-column: 1;
}

.store-profile-feedback-item .store-profile-feedback-buyer,
.store-profile-feedback-item .store-profile-feedback-time {
  grid-column: 2;
}

.store-profile-feedback-item .store-profile-feedback-comment,
.store-profile-feedback-item .store-profile-feedback-product {
  grid-column: 1 / -1;
  margin-left: 0;
  width: 100%;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.45;
  box-sizing: border-box;
}

.store-profile-feedback-item:last-child {
  border-bottom: none;
}

.store-profile-feedback-rating {
  font-weight: bold;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.store-profile-feedback-positive {
  color: var(--color-success, #22c55e);
}

.store-profile-feedback-negative {
  color: var(--color-danger, #ef4444);
}

.store-profile-feedback-neutral {
  color: var(--text-muted);
}

.store-profile-feedback-buyer {
  color: var(--text-secondary);
}

.store-profile-feedback-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.store-profile-feedback-comment,
.store-profile-feedback-product {
  width: 100%;
  max-width: 100%;
  margin: 4px 0 0 0;
  padding: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.store-profile-feedback-comment {
  line-height: 1.5;
}

.store-profile-feedback-product {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.store-profile-feedback-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.store-profile-feedback-empty p {
  margin: 0;
}

/* Modal Mi tienda (editar información y ver reseñas) */
.my-store-section {
  margin-bottom: 24px;
}

.my-store-section:last-child {
  margin-bottom: 0;
}

.my-store-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.my-store-section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.my-store-section--custom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.input-group--checkbox {
  display: flex;
  align-items: center;
}

.input-group--checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

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

.my-store-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-store-form .input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

@media (max-width: 900px) {
  .store-profile-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modal.store-profile-modal {
    width: 96vw !important;
    height: 92vh !important;
  }

  .store-profile-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .scheduled-detail-layout {
    grid-template-columns: 1fr;
  }
}

.auction-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 24px 0;
  min-height: calc(100vh - 100px);
}

@media (max-width: 1024px) {
  .auction-layout {
    grid-template-columns: 1fr;
  }
}

/* Sección principal - Subasta actual */
.auction-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auction-card {
  position: relative;
  overflow: hidden;
}

.auction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-holographic);
}

.auction-product {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .auction-product {
    grid-template-columns: 1fr;
  }
}

.product-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #1e1e2e, #0a0a0f);
  aspect-ratio: 3/4;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-card {
  color: var(--accent-primary);
}

.badge-etb {
  color: var(--accent-tertiary);
}

.badge-bundle {
  color: var(--accent-purple);
}

.product-info {
  padding: 8px 0;
}

.product-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.product-meta span {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Timer */
.auction-timer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--color-bg-card);
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}

.timer-display {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 140px;
}

.timer-display.urgent {
  color: #EF4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.timer-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-status {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-paused {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-ended {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Current Bid – bloque Puja actual (mismo lenguaje que .card y .bid-section) */
.current-bid-wrap {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(29, 197, 223, 0.06), rgba(38, 47, 56, 0.5));
  border: 1px solid rgba(29, 197, 223, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.current-bid-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.8;
  border-radius: 20px 20px 0 0;
}

.current-bid-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.current-bid {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bid-amount {
  font-family: 'Orbitron', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.current-bidder {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.current-bidder strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.bid-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.bid-leader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
}

.bid-leader .crown {
  color: var(--color-primary);
}

/* Bid Input – mismo lenguaje que current-bid-wrap y cards */
.bid-section {
  position: relative;
  background: linear-gradient(145deg, rgba(29, 197, 223, 0.05), rgba(38, 47, 56, 0.5));
  border: 1px solid rgba(29, 197, 223, 0.12);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.8;
  border-radius: 20px 20px 0 0;
}

.bid-section:hover {
  border-color: rgba(29, 197, 223, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bid-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bid-form .bid-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.bid-form .bid-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.12);
}

.bid-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.bid-input {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  text-align: center;
}

.quick-bids {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-bid-btn {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-bid-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Bloqueo de puja cuando el usuario es el líder */
.bid-section-disabled .bid-input-group input,
.bid-section-disabled .bid-input-group button,
.bid-section-disabled .quick-bid-btn {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.bid-leader-block-msg {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================
   SIDEBAR
   ============================================ */

.auction-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Historial de pujas – contenido dentro de .card con barra superior */
.bid-history {
  max-height: 400px;
  overflow-y: auto;
}

.bid-history .history-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

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

.bid-history .history-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bid-history::-webkit-scrollbar {
  width: 6px;
}

.bid-history::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.bid-history::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

.bid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.bid-user {
  font-weight: 500;
}

.bid-user.winner {
  color: var(--accent-primary);
}

.bid-value {
  font-family: 'Space Mono', monospace;
  font-weight: 600;
  color: var(--accent-tertiary);
}

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

/* Cola de productos */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  align-items: center;
  transition: all 0.25s ease;
}

.queue-item:hover {
  background: rgba(29, 197, 223, 0.06);
  border-color: rgba(29, 197, 223, 0.15);
}

.queue-item-image {
  width: 60px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
}

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

.queue-item-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.queue-item-price {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Historial de ventas */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

.history-item {
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.history-item:hover {
  background: var(--bg-card);
  border-color: var(--color-border);
}

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

.history-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-details {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.history-item-winner {
  color: var(--color-primary);
}

.history-item-price {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: var(--accent-tertiary);
}

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

/* Badges de estado de pago */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.payment-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.payment-badge.paid {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.payment-badge.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-badge.refunded {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.payment-badge.skipped {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* ============================================
   PÁGINA DE ADMIN
   ============================================ */

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
}

@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* History table */
.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  font-size: 0.95rem;
}

.history-table .price {
  font-family: 'Space Mono', monospace;
  color: var(--accent-tertiary);
}

.history-table .winner {
  color: var(--accent-primary);
}

/* ============================================
   QR PAGE
   ============================================ */

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.qr-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  box-shadow: var(--shadow-card);
}

.qr-image {
  width: 280px;
  height: 280px;
  background: white;
  border-radius: var(--radius-lg);
  margin: 24px auto;
  padding: 16px;
}

.qr-image img {
  width: 100%;
  height: 100%;
}

.qr-code-text {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* ============================================
   ESTADOS Y UTILIDADES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Notificaciones */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

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

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.success {
  border-color: var(--accent-tertiary);
}

.notification.error {
  border-color: #ef4444;
}

.notification.bid {
  border-color: var(--accent-primary);
}

/* Badge de Sala - Diseño Visual Mejorado (accent_color, logo, flecha selector) */
.room-badge {
  --room-accent: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--gradient-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
  cursor: default;
}

.room-badge:hover {
  border-color: var(--room-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--room-accent) 18%, transparent);
}

.room-badge.has-accent {
  border-color: color-mix(in srgb, var(--room-accent) 60%, var(--color-border));
}

.room-badge.has-accent:hover {
  border-color: var(--room-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--room-accent) 22%, transparent);
}

.room-badge.is-owner {
  border-color: var(--room-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--room-accent) 12%, transparent), var(--color-bg-card));
  box-shadow: 0 0 20px color-mix(in srgb, var(--room-accent) 15%, transparent);
}

.room-badge-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--room-accent), color-mix(in srgb, var(--room-accent) 80%, #0E8A9A));
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--room-accent) 35%, transparent);
  overflow: hidden;
}

.room-badge-icon .room-badge-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.room-badge-icon .room-badge-icon-emoji {
  display: block;
}

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

.room-badge-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text-main);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.room-badge-arrow {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin-left: 2px;
  transition: color var(--transition-fast);
}

.room-badge:hover .room-badge-arrow {
  color: var(--room-accent);
}

.room-badge-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.owner-indicator {
  width: 6px;
  height: 6px;
  background: var(--room-accent, var(--color-primary));
  border-radius: 50%;
  box-shadow: 0 0 8px color-mix(in srgb, var(--room-accent, var(--color-primary)) 60%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Badge de Usuario - Avatar con menú desplegable */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.user-badge--dropdown {
  position: relative;
}

.user-badge:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(29, 197, 223, 0.1);
}

.user-avatar-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.user-avatar-trigger:hover {
  transform: scale(1.04);
}

.user-avatar-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-bg-main);
  background: linear-gradient(135deg, var(--color-primary), #0E8A9A);
  box-shadow: 0 2px 8px rgba(29, 197, 223, 0.3);
  flex-shrink: 0;
  position: relative;
}

.user-avatar.admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.user-avatar.tienda {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.3);
}

.user-avatar.comprador {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.user-role-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  border-radius: 50%;
  line-height: 1;
  background: var(--color-bg-card);
  border: 2px solid var(--color-bg-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-role-badge.admin {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.user-role-badge.tienda {
  background: rgba(157, 78, 221, 0.2);
  color: #9d4edd;
}

/* Menú desplegable de perfil */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: none;
}

.profile-dropdown.is-open {
  display: block;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.profile-dropdown-item:hover {
  background: var(--color-bg-tertiary);
}

.profile-dropdown-item[data-action="logout"] {
  color: var(--color-text-muted);
}

.profile-dropdown-item[data-action="logout"]:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.profile-dropdown-badge {
  background: var(--color-primary);
  color: var(--color-bg-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  display: none;
}

.profile-dropdown-badge:not([style*="none"]) {
  display: inline-flex;
}

.profile-dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--color-border);
}

.profile-dropdown-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Mis Compras badge en menú (mantener id por JS) */
#headerPurchasesBadge {
  background: var(--accent-primary);
  color: var(--color-bg-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

/* Users online indicator */
.users-online {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Modal (mobile-first: fluido en móvil, centrado en desktop) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal sobre otros modales (ej. constancia sobre ventas) */
.modal-overlay-top {
  z-index: 2000;
}

.modal {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0;
  width: 100%;
  max-width: min(500px, calc(100vw - 24px));
  max-height: min(90vh, calc(100dvh - 24px));
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(29, 197, 223, 0.06);
  margin: auto;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.9;
  border-radius: 22px 22px 0 0;
  z-index: 1;
}

/* Scrollbar personalizado para modales */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  background: rgba(29, 197, 223, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.modal-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  max-width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(29, 197, 223, 0.4);
}

.modal-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  min-width: var(--touch-target-min, 44px);
  min-height: var(--touch-target-min, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}

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

/* Formularios en modal (Mi tienda, etc.) – consistente con cards */
.modal .input-group {
  margin-bottom: 20px;
}

.modal .input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.modal .input {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal .input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.12);
}

.modal-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-form-actions .btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.modal-form-actions .btn:hover {
  transform: translateY(-1px);
}

/* Nueva subasta: selector de tipo (En vivo / Programada) */
.new-auction-type-selector {
  padding: 0 4px;
}

.new-auction-type-lead {
  margin: 0 0 16px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  font-size: 0.95rem;
}

.new-auction-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-auction-type-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(145deg, rgba(38, 47, 56, 0.6), rgba(30, 37, 45, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--color-text, #e6edf3);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.new-auction-type-btn:hover {
  border-color: rgba(29, 197, 223, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.new-auction-type-btn[aria-pressed="true"],
.new-auction-type-btn:focus-visible {
  border-color: var(--color-primary, #1dc5df);
  box-shadow: 0 0 0 2px rgba(29, 197, 223, 0.25);
}

.new-auction-type-btn:disabled,
.new-auction-type-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.new-auction-type-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.new-auction-type-label {
  font-weight: 600;
  font-size: 1rem;
}

.new-auction-type-desc {
  width: 100%;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.65));
}

@media (min-width: 480px) {
  .new-auction-type-desc {
    width: auto;
    margin-top: 0;
    margin-left: auto;
  }
}

/* Desde mi inventario — flujo en Nueva subasta */
/* Modal más grande cuando se seleccionan ítems del inventario */
.new-auction-modal.new-auction-modal--inventory-pick {
  max-width: min(820px, calc(100vw - 24px));
  width: 100%;
  max-height: min(88vh, calc(100dvh - 24px));
  display: flex;
  flex-direction: column;
}
.new-auction-modal.new-auction-modal--inventory-pick .modal-content {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.inventory-pick-step .inventory-pick-list {
  max-height: min(480px, 55vh);
}

.inventory-pick-step .new-auction-type-lead,
.inventory-confirm-step .new-auction-type-lead,
.inventory-scheduled-step .new-auction-type-lead,
.inventory-live-step .new-auction-type-lead {
  margin-bottom: 12px;
}

.inventory-loading,
.inventory-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  font-size: 0.95rem;
}

.inventory-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Altura por defecto cuando no está en .inventory-pick-step (por si se usa en otro contexto) */
.new-auction-modal:not(.new-auction-modal--inventory-pick) .inventory-pick-list {
  max-height: 320px;
}

/* content-visibility: defer off-screen rows in long lists (Vercel 6.2) */
.inventory-pick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: linear-gradient(145deg, rgba(38, 47, 56, 0.6), rgba(30, 37, 45, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--color-text, #e6edf3);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 0 76px;
}

.inventory-pick-item:hover {
  border-color: rgba(29, 197, 223, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.inventory-pick-item--selected {
  border-color: rgba(29, 197, 223, 0.5);
  background: linear-gradient(145deg, rgba(29, 197, 223, 0.12), rgba(29, 197, 223, 0.06));
  box-shadow: 0 0 0 1px rgba(29, 197, 223, 0.3);
}

.inventory-pick-list--multi .inventory-pick-item {
  padding-left: 12px;
}

.inventory-pick-item-check {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-primary, #1dc5df);
  margin-right: 4px;
}

.inventory-pick-item--selected .inventory-pick-item-check {
  border-color: var(--color-primary, #1dc5df);
  background: rgba(29, 197, 223, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.inventory-pick-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-pick-count {
  font-size: 0.9rem;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
}

.inventory-pick-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inventory-pick-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-pick-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inventory-pick-item-info strong.inventory-pick-item-name {
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.35;
  display: block;
}

.inventory-pick-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.65));
}

.inventory-pick-item-qty {
  white-space: nowrap;
}

.inventory-selected-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(29, 197, 223, 0.08);
  border: 1px solid rgba(29, 197, 223, 0.25);
  border-radius: 12px;
}

.inventory-selected-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.inventory-selected-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-selected-details strong {
  font-size: 1rem;
}

.inventory-selected-details span {
  font-size: 0.9rem;
  color: var(--color-primary, #1dc5df);
  font-family: var(--font-mono, 'Space Mono', monospace);
}

.new-auction-type-btn--inventory {
  border-color: rgba(0, 229, 160, 0.2);
}

.new-auction-type-btn--inventory:hover,
.new-auction-type-btn--inventory[aria-pressed="true"] {
  border-color: rgba(0, 229, 160, 0.45);
}

/* Tabs en modales */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-bottom: 2px solid var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ============================================
   MODAL DE PRODUCTOS - DISEÑO MEJORADO
   ============================================ */

.product-modal {
  max-width: 650px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.product-modal .modal-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.product-modal .modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tabs de productos mejorados */
.product-tabs {
  display: flex;
  background: var(--bg-tertiary);
  padding: 8px;
  gap: 8px;
}

.product-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.product-tab.active {
  background: var(--bg-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(29, 197, 223, 0.2);
}

.product-tab .tab-icon {
  font-size: 1.2rem;
}

.product-tab .tab-text {
  font-family: 'Poppins', sans-serif;
}

/* Contenido de tabs */
.product-modal .tab-content {
  padding: 24px 28px;
  max-height: 55vh;
  overflow-y: auto;
  display: block;
}

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

.product-modal .tab-content::-webkit-scrollbar {
  width: 6px;
}

.product-modal .tab-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.product-modal .tab-content::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

/* Barra de búsqueda mejorada */
.search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  opacity: 0.6;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 1rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(29, 197, 223, 0.15);
}

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

.btn-popular {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-popular:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Contenedor de resultados del catálogo */
.catalog-results-container {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.catalog-results {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
}

.catalog-results::-webkit-scrollbar {
  width: 6px;
}

.catalog-results::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-results::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

/* Estado vacío del catálogo */
.catalog-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.catalog-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.catalog-empty-state .empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.catalog-empty-state .empty-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tarjeta de producto seleccionado */
.selected-product-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(29, 197, 223, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.selected-product-header {
  background: var(--color-primary);
  padding: 8px 16px;
}

.selected-badge {
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selected-product-info {
  padding: 16px;
}

.selected-product-form {
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* Formulario de producto mejorado */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-subtle);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.15);
}

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

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

.form-input.with-icon {
  padding-left: 44px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.7;
  pointer-events: none;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Botón de agregar producto */
.btn-add-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #06b6d4 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--bg-primary);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 197, 223, 0.3);
}

.btn-add-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 197, 223, 0.4);
}

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

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

/* Contenedor del botón de envío */
.form-submit-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--color-primary);
}

/* Dos botones: Subasta en vivo / Subasta programada */
.product-add-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-add-buttons .btn-add-product {
  flex: 1;
  min-width: 140px;
}

.product-add-buttons .btn-add-live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-add-buttons .btn-add-live:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.product-add-buttons .btn-add-scheduled {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.product-add-buttons .btn-add-scheduled:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Panel de configuración de subasta */
.auction-config-panel {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.auction-config-panel .config-panel-title {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--color-primary);
}

.auction-config-panel .form-row {
  margin-bottom: 12px;
}

.auction-config-panel .form-row:last-of-type {
  margin-bottom: 16px;
}

.auction-config-panel .btn {
  width: 100%;
}

/* Responsive para modal de productos */
@media (max-width: 600px) {
  .product-modal {
    max-width: 95vw !important;
  }

  .product-tabs {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
  }

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

/* Responsive utilities */
.hide-mobile {
  display: block;
}

/* ============================================
   SELECTOR DE SALA
   ============================================ */

.room-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 24px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.room-selector label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.room-selector select {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--color-text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 180px;
}

.room-selector select:hover {
  border-color: var(--color-primary);
}

.room-selector select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.15);
}

.user-role.tienda {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  .timer-display {
    font-size: 1.75rem;
  }

  .bid-amount {
    font-size: 2rem;
  }

  .room-selector {
    margin-right: 12px;
    padding: 6px 12px;
  }

  .room-selector select {
    min-width: 120px;
    font-size: 0.85rem;
  }

  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .user-badge {
    padding: 4px;
    gap: 8px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .user-role-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }

  .btn-logout {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Tablets y móviles grandes (768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Touch targets: solo botones de acción principales, no los de header/nav */
  .btn:not(.btn-sm):not(.btn-icon):not(.btn-logout):not(.btn-mute-sounds):not(.user-avatar-trigger) {
    min-height: 44px;
  }

  .input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select {
    min-height: 44px;
    box-sizing: border-box;
  }

  .header {
    padding: 12px 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-right {
    gap: 10px;
  }

  .room-indicator {
    padding: 6px 0 12px;
    margin-bottom: 4px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .room-indicator-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .room-indicator-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-indicator-label {
    display: none;
  }

  .logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .auction-layout {
    padding: 16px 0;
    gap: 16px;
    min-height: auto;
  }

  .auction-product {
    gap: 20px;
  }

  .product-name {
    font-size: 1.35rem;
  }

  .auction-timer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }

  .timer-display {
    min-width: 100px;
    font-size: 1.75rem;
  }

  .bid-amount {
    font-size: 2rem;
  }

  .bid-section {
    padding: 16px;
  }

  .bid-input-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .bid-input-group input,
  .bid-input-group button {
    min-height: 48px;
    font-size: 1.1rem;
  }

  .quick-bids {
    gap: 8px;
  }

  .quick-bid-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
  }

  .auction-sidebar .card {
    padding: 16px;
  }

  .bid-history,
  .history-list {
    max-height: 280px;
  }

  .queue-item-image {
    width: 48px;
    height: 64px;
  }

  .admin-panel-content {
    padding: 12px 16px;
  }

  .admin-controls-cards {
    gap: 12px;
  }

  .admin-controls-cards .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .auction-view-toggle {
    margin-bottom: 12px;
  }

  .scheduled-cards-grid,
  .scheduled-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal {
    max-width: 95vw !important;
    max-height: 90vh;
    margin: 16px;
    margin-top: max(16px, env(safe-area-inset-top));
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }

  .modal-content {
    padding: 1rem;
  }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .header-right {
    gap: 6px;
  }

  .logo span {
    display: none;
  }

  .logo {
    min-width: 40px;
  }

  .users-online {
    font-size: 0.9rem;
  }

  #btnMyPurchases {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .buyer-view-toggle .toggle-btn,
  .auction-view-toggle .toggle-btn {
    min-height: 44px;
    padding: 8px 12px 8px 8px;
  }

  .auction-product {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-image-container {
    max-height: 280px;
  }

  .timer-display {
    font-size: 1.5rem;
    min-width: 80px;
  }

  .auction-timer {
    flex-direction: column;
    align-items: flex-start;
  }

  .timer-status {
    margin-left: 0;
  }

  .bid-amount {
    font-size: 1.75rem;
  }

  .quick-bids {
    justify-content: center;
  }

  .quick-bid-btn {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .admin-stats-mini {
    flex-direction: column;
    gap: 8px;
  }

  .stat-mini {
    width: 100%;
  }

  .card {
    padding: 14px;
  }

  .card-title {
    font-size: 0.95rem;
  }
}

/* Móviles muy pequeños (360px) */
@media (max-width: 360px) {
  .header {
    padding: 10px 0;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .room-badge-name {
    font-size: 0.8rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-bid-btn {
    min-width: 100%;
  }
}

/* Touch-friendly: asegurar targets mínimos 44x44px */
@media (hover: none) and (pointer: coarse) {

  .btn,
  button:not(.modal-close) {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 40px;
    padding: 10px 14px;
  }

  .modal-close {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }

  .toggle-btn {
    min-height: 44px;
  }
}

/* ============================================
   LANDING PAGE (React / index)
   ============================================ */

/* Skip link: accesibilidad (visible solo al enfocar con teclado) */
.skip-link {
  position: absolute;
  top: -100px;
  left: max(24px, env(safe-area-inset-left));
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-primary);
  color: var(--color-bg-main);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 24px;
  outline: 2px solid var(--color-text-main);
  outline-offset: 4px;
}

/* content-visibility: defer rendering de secciones fuera de pantalla */
.landing-section,
.info-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
  max-width: 100%;
  overflow-x: hidden;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-normal);
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-link .logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-link .logo-icon:not(img) {
  font-size: 2rem;
  width: auto;
  height: auto;
}

.logo-link .logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.landing-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-ghost:hover {
  background: rgba(29, 197, 223, 0.1);
}

@media (max-width: 768px) {
  .landing-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  min-height: calc(100vh - 300px);
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.hero-content {
  animation: hero-fade-in 0.8s ease-out;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(29, 197, 223, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-welcome {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: hero-fade-in 0.6s ease-out 0.1s both;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  animation: hero-fade-in 0.6s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-welcome {
    font-size: 1rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #1DC5DF 0%, #00E5A0 50%, #1DC5DF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary);
  text-shadow: 0 0 40px rgba(29, 197, 223, 0.3);
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.hero-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  animation: hero-fade-in 0.6s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
  animation: hero-fade-in 0.6s ease-out 0.35s both;
}

@media (max-width: 1024px) {
  .hero-subtitle {
    margin: 0 auto 32px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  animation: hero-fade-in 0.6s ease-out 0.45s both;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
}

.landing-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.landing-nav-link:hover {
  color: var(--color-primary);
  background: rgba(29, 197, 223, 0.08);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  animation: hero-fade-in 0.6s ease-out 0.55s both;
}

@media (max-width: 1024px) {
  .hero-features {
    justify-content: center;
  }
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.feature:hover {
  color: var(--color-primary);
  border-color: rgba(29, 197, 223, 0.25);
  background: rgba(29, 197, 223, 0.06);
}

.feature-icon {
  font-size: 1.25rem;
}

.hero-visual {
  position: relative;
  height: 500px;
}

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  width: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
  border: 2px solid var(--color-border);
}

.floating-card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(29, 197, 223, 0.35), 0 0 60px rgba(0, 229, 160, 0.15);
  border-color: var(--color-primary);
  border-width: 3px;
}

.floating-card img {
  width: 100%;
  height: auto;
}

.card-1 {
  top: 10%;
  left: 10%;
  transform: rotate(-15deg);
  animation: float1 6s ease-in-out infinite;
}

.card-2 {
  top: 20%;
  right: 15%;
  transform: rotate(10deg);
  animation: float2 5s ease-in-out infinite;
}

.card-3 {
  bottom: 15%;
  left: 30%;
  transform: rotate(-5deg);
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: rotate(-15deg) translateY(0);
  }

  50% {
    transform: rotate(-15deg) translateY(-20px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: rotate(10deg) translateY(0);
  }

  50% {
    transform: rotate(10deg) translateY(-15px);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-5deg) translateY(-25px);
  }
}

.info-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(29, 197, 223, 0.4);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: linear-gradient(145deg, var(--color-bg-card), #1E252D);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.8;
  border-radius: 16px 16px 0 0;
}

.step-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(29, 197, 223, 0.2), 0 0 0 1px rgba(29, 197, 223, 0.1);
}

.step-card:hover .step-number {
  text-shadow: 0 0 20px rgba(29, 197, 223, 0.5);
}

.step-number {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.landing-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: -24px auto 40px;
  line-height: 1.6;
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
}

.type-card {
  background: linear-gradient(145deg, var(--color-bg-card), #1E252D);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.type-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(29, 197, 223, 0.2), 0 0 0 1px rgba(29, 197, 223, 0.1);
  transform: translateY(-4px);
}

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

.type-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.type-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.type-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

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

@media (max-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: linear-gradient(145deg, var(--color-bg-card), #1E252D);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.benefit-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(29, 197, 223, 0.2), 0 0 0 1px rgba(29, 197, 223, 0.1);
  transform: translateY(-6px);
}

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

.benefit-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--color-text-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  background: linear-gradient(145deg, var(--color-bg-card), #1E252D);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-tertiary), var(--color-primary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.audience-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(29, 197, 223, 0.2);
  transform: translateY(-4px);
}

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

.audience-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 12px;
}

.audience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.audience-card p {
  color: var(--color-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.beta-list {
  max-width: 640px;
  margin: 0 auto 24px;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.beta-list li {
  margin-bottom: 8px;
}

.beta-objective {
  max-width: 640px;
  margin: 0 auto 32px;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

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

.contact-steps {
  max-width: 560px;
  margin: 0 auto 32px;
  padding-left: 1.5rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.contact-steps li {
  margin-bottom: 10px;
}

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

.contact-cta .btn {
  margin-bottom: 12px;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.landing-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(29, 197, 223, 0.03) 100%);
}

/* Contenedor con id para skip link */
#main-content:focus {
  outline: none;
}

/* ============================================
   PANEL DE CONTROL – mismo lenguaje que .card y sidebar
   Barra superior gradiente, título con línea, admin-cards con barra y hover
   ============================================ */
.admin-panel {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.admin-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.9;
  border-radius: 20px 20px 0 0;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(29, 197, 223, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-panel-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.admin-panel-header h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  max-width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(29, 197, 223, 0.4);
}

.admin-panel-content {
  padding: 24px;
}

.admin-panel-content.collapsed {
  display: none;
}

/* Stats compactos */
.admin-stats-mini {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-mini-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-mini-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Panel: tarjetas con barra superior y hover consistente */
.admin-controls-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.admin-card {
  position: relative;
  background: linear-gradient(145deg, rgba(38, 47, 56, 0.8), rgba(30, 37, 45, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
}

.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  opacity: 0.85;
  border-radius: 16px 16px 0 0;
}

.admin-card:hover {
  border-color: rgba(29, 197, 223, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 20px rgba(29, 197, 223, 0.08);
}

.admin-card-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

/* Botones del panel: estilo pill + icono en pastilla */
.admin-controls-cards .btn {
  min-height: 36px;
  padding: 6px 12px 6px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  gap: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.admin-controls-cards .btn .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.admin-controls-cards .btn-secondary .btn-ico {
  background: rgba(29, 197, 223, 0.2);
}

.admin-controls-cards .btn:disabled .btn-ico {
  opacity: 0.7;
}

.admin-controls-cards .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Colores planos, menos gradiente */
.admin-controls-cards .btn-success {
  background: #16a34a;
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.admin-controls-cards .btn-success .btn-ico {
  background: rgba(255, 255, 255, 0.2);
}

.admin-controls-cards .btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.admin-controls-cards .btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.admin-controls-cards .btn-danger .btn-ico {
  background: rgba(255, 255, 255, 0.2);
}

.admin-controls-cards .btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.admin-controls-cards .btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-main);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-controls-cards .btn-primary .btn-ico {
  background: rgba(255, 255, 255, 0.25);
}

.admin-controls-cards .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #17A5BC;
  box-shadow: 0 4px 12px rgba(29, 197, 223, 0.35);
}

.admin-controls-cards .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.admin-controls-cards .btn-secondary:hover:not(:disabled) {
  background: rgba(29, 197, 223, 0.12);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(29, 197, 223, 0.15);
}

.user-role {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-role.admin {
  background: rgba(29, 197, 223, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(29, 197, 223, 0.4);
}

.user-role.user {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

@media (max-width: 900px) {
  .admin-controls-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-controls-cards .btn {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .admin-stats-mini {
    flex-direction: row;
    gap: 24px;
  }
}

/* ============================================
   Room Selector v2 – Open Marketplace Layout
   Layout abierto, cards horizontales, hero header,
   barra de búsqueda, secciones Destacadas / Todas
   ============================================ */

/* ── Page ── */
.rs-page {
  min-height: 100vh;
  background: var(--color-bg-main);
  position: relative;
}

.rs-center-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Top bar ── */
.rs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(12, 16, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-topbar-logo {
  border-radius: 8px;
}

.rs-topbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.rs-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.rs-topbar-user {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Hero section ── */
.rs-hero {
  position: relative;
  padding: 64px 32px 48px;
  text-align: center;
  overflow: hidden;
}

.rs-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 197, 223, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(0, 229, 160, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg-main) 0%, #111820 100%);
  pointer-events: none;
}

.rs-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Enfoque B: dos bloques mismo nivel */
.rs-hero-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.rs-hero-block {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rs-hero-block:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.rs-hero-block--live {
  border-color: rgba(29, 197, 223, 0.2);
  background: rgba(29, 197, 223, 0.04);
}

.rs-hero-block--live:hover {
  border-color: rgba(29, 197, 223, 0.35);
  background: rgba(29, 197, 223, 0.06);
}

.rs-hero-block--scheduled {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.04);
}

.rs-hero-block--scheduled:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}

.rs-hero-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-hero-block-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.rs-hero-block-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.rs-rooms-anchor {
  scroll-margin-top: 24px;
}

.rs-section-title--live {
  margin-bottom: 20px;
}

.rs-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.rs-hero-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-tertiary));
  box-shadow: 0 0 20px rgba(29, 197, 223, 0.5);
}

.rs-hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Stats pills */
.rs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.rs-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.rs-stat-pill--live {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.rs-stat-num {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 1rem;
}

.rs-stat-label {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Search */
.rs-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
}

.rs-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}

.rs-search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.rs-search-input:focus {
  border-color: var(--color-primary);
  background: rgba(29, 197, 223, 0.04);
  box-shadow: 0 0 0 3px rgba(29, 197, 223, 0.1);
}

.rs-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.rs-search-clear:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-main);
}

/* Hero actions */
.rs-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.rs-btn--accent {
  background: linear-gradient(135deg, var(--color-primary), var(--accent-secondary));
  color: var(--color-bg-main);
  box-shadow: 0 4px 16px rgba(29, 197, 223, 0.25);
}

.rs-btn--accent:hover {
  box-shadow: 0 6px 24px rgba(29, 197, 223, 0.35);
  transform: translateY(-1px);
}

.rs-btn--outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.rs-btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(29, 197, 223, 0.05);
}

/* Botón destacado: Subastas programadas (más visible en el hero) */
.rs-btn--scheduled {
  padding: 12px 24px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.95));
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.rs-btn--scheduled:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(124, 58, 237, 1));
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.rs-btn--scheduled .rs-btn-scheduled-hint {
  font-size: 0.8em;
  opacity: 0.95;
}

.rs-btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: 10px;
}

.rs-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
}

.rs-btn--sm {
  padding: 7px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.rs-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-main);
  border-radius: 9999px;
}

/* ── Main content ── */
.rs-main {
  padding: 0 32px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Section titles */
.rs-section {
  margin-bottom: 40px;
}

.rs-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ── Grid ── */
.rs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rs-grid--featured .rs-card {
  border-width: 1.5px;
  border-color: rgba(29, 197, 223, 0.2);
}

/* ── Room Card – Horizontal layout ── */
.rs-card {
  /* content-visibility for performance (React Best Practice 6.2) */
  content-visibility: auto;
  contain-intrinsic-size: 0 120px;

  font-family: inherit;
  display: grid;
  grid-template-columns: 4px 64px 1fr auto;
  gap: 0 20px;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 24px 20px 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  animation: rs-card-in 0.45s ease both;
}

.rs-card:nth-child(1) {
  animation-delay: 0.04s;
}

.rs-card:nth-child(2) {
  animation-delay: 0.08s;
}

.rs-card:nth-child(3) {
  animation-delay: 0.12s;
}

.rs-card:nth-child(4) {
  animation-delay: 0.16s;
}

.rs-card:nth-child(5) {
  animation-delay: 0.20s;
}

.rs-card:nth-child(6) {
  animation-delay: 0.24s;
}

@keyframes rs-card-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Accent bar lateral */
.rs-card-accent {
  width: 4px;
  align-self: stretch;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--room-accent, var(--color-primary)), var(--accent-tertiary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rs-card:hover .rs-card-accent,
.rs-card--active .rs-card-accent {
  opacity: 1;
}

/* Hover */
.rs-card:hover {
  border-color: var(--room-accent, rgba(29, 197, 223, 0.25));
  transform: translateX(4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(29, 197, 223, 0.08);
}

.rs-card[style*="--room-accent"]:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--room-accent),
    0 0 20px color-mix(in srgb, var(--room-accent) 20%, transparent);
}

/* Active */
.rs-card--active {
  border-color: var(--room-accent, var(--color-primary));
  background: linear-gradient(135deg, rgba(29, 197, 223, 0.06), var(--color-bg-card));
  box-shadow: 0 0 0 1px rgba(29, 197, 223, 0.15);
}

/* Featured glow */
.rs-card--featured {
  background: linear-gradient(145deg, rgba(29, 197, 223, 0.04), var(--color-bg-card));
}

.rs-card--featured .rs-card-accent {
  opacity: 0.5;
}

/* Live card pulse */
.rs-card--live {
  border-color: rgba(239, 68, 68, 0.15);
}

/* Avatar */
.rs-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.rs-card:hover .rs-card-avatar {
  transform: scale(1.06);
}

.rs-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.rs-card-emoji {
  font-size: 2rem;
  line-height: 1;
}

/* Body */
.rs-card-body {
  min-width: 0;
}

.rs-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.rs-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.3;
}

.rs-card-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--room-accent, var(--color-primary));
  margin: 0 0 4px;
  line-height: 1.3;
}

.rs-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges */
.rs-card-badges {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.rs-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rs-badge--live {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.rs-badge--primary {
  background: rgba(29, 197, 223, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(29, 197, 223, 0.3);
}

.rs-badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rs-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rs-badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Live dot */
.rs-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: rs-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes rs-pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

/* Stats chips */
.rs-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-chip--live {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.rs-chip--rating {
  color: #fcd34d;
}

/* Right side */
.rs-card-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 100px;
}

.rs-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.rs-meta-item {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.rs-card-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--room-accent, var(--color-primary));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rs-card:hover .rs-card-cta {
  opacity: 1;
  transform: translateX(0);
}

.rs-card-link {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-card-link:hover {
  color: var(--room-accent, var(--color-primary));
  text-decoration: underline;
}

/* ── Loading ── */
.rs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  gap: 16px;
}

.rs-loading-dots {
  display: flex;
  gap: 8px;
}

.rs-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: rs-dot-bounce 1.2s ease-in-out infinite;
}

.rs-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.rs-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rs-dot-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Error ── */
.rs-error-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Empty state ── */
.rs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--color-text-muted);
}

.rs-empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

/* ── Modal (purchases) ── */
.rs-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: rs-fade-in 0.2s ease;
}

@keyframes rs-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.rs-modal {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: rs-slide-up 0.3s ease;
}

@keyframes rs-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.rs-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
}

.rs-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.rs-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-main);
}

.rs-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.rs-modal-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Purchase list */
.rs-purchases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-purchase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: background 0.2s ease;
}

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

.rs-purchase-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.rs-purchase-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rs-purchase-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-purchase-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.rs-purchase-room {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rs-hero {
    padding: 40px 20px 32px;
  }

  .rs-hero-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rs-hero-block {
    padding: 20px;
  }

  .rs-hero-title {
    font-size: 1.8rem;
  }

  .rs-main {
    padding: 0 16px 48px;
  }

  /* Cards stack vertically on mobile */
  .rs-card {
    grid-template-columns: 4px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 14px;
    padding: 16px 16px 16px 0;
  }

  .rs-card-avatar {
    grid-row: 1;
    grid-column: 2;
    width: 44px;
    height: 44px;
  }

  .rs-card-body {
    grid-column: 1 / -1;
    padding-left: 18px;
  }

  .rs-card-end {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 18px;
    min-width: 0;
  }

  .rs-card-meta {
    flex-direction: row;
    gap: 10px;
  }

  .rs-card-cta {
    opacity: 1;
    transform: none;
  }

  .rs-topbar {
    padding: 10px 16px;
    gap: 8px;
  }

  /* En pantallas pequeñas, ocultar el nombre de usuario para que quepan los botones */
  .rs-topbar-user {
    display: none;
  }

  .rs-topbar-right {
    gap: 8px;
  }

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

  .rs-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-hero-actions .rs-btn {
    justify-content: center;
  }

  .rs-btn {
    min-height: 44px;
  }
}

/* Perfil y páginas con main estrecho: fluido en móvil (override inline si existe) */
.profile-page .profile-main,
main.profile-main {
  max-width: min(560px, calc(100vw - 2rem)) !important;
  margin: 2rem auto !important;
  padding-left: max(1rem, env(safe-area-inset-left)) !important;
  padding-right: max(1rem, env(safe-area-inset-right)) !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .profile-page .profile-main,
  main.profile-main {
    max-width: 560px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ============================================
   BOTÓN COMUNIDAD WHATSAPP (flotante, visible siempre)
   ============================================ */
.whatsapp-community-btn {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.whatsapp-community-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-community-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.whatsapp-community-btn__icon {
  display: flex;
  flex-shrink: 0;
}

.whatsapp-community-btn__label {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .whatsapp-community-btn {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 12px);
    right: auto;
    left: max(20px, env(safe-area-inset-left, 20px));
  }
}

@media (max-width: 480px) {
  .whatsapp-community-btn__label {
    display: none;
  }
  .whatsapp-community-btn {
    padding: 14px;
    border-radius: var(--radius-full);
  }
}

/* ══════════════════════════════════════════════════════
   Type Badge — cartas, sellados, lotes
   ══════════════════════════════════════════════════════ */
.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════
   Featured Section — carrusel de subastas destacadas
   ══════════════════════════════════════════════════════ */
.featured-section {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 32px;
  animation: featured-section-in 0.5s ease both;
}

@keyframes featured-section-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.featured-section-header {
  padding: 0 0.25rem 0.5rem;
}

.featured-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

.featured-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0 0.25rem;
}

.featured-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.25s ease;
  line-height: 1;
  font-size: 0;
}

.featured-dot--active {
  width: 20px;
  height: 7px;
  border-radius: 4px;
}

/* Stage: contiene navegación + track */
.featured-carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.featured-nav {
  flex-shrink: 0;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.featured-nav:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

/* Track: perspectiva 3D */
.featured-carousel-track {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  padding: 1.25rem 0 2.5rem;
  overflow: hidden;
  min-height: 340px;
}

/* ── Item base ── */
.featured-item {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
  will-change: transform, opacity;
  user-select: none;
}

/* Laterales */
.featured-item--prev,
.featured-item--next {
  width: 130px;
  opacity: 0.5;
}

.featured-item--prev {
  transform: scale(0.82) rotateY(22deg);
  transform-origin: right center;
}

.featured-item--next {
  transform: scale(0.82) rotateY(-22deg);
  transform-origin: left center;
}

.featured-item--prev .featured-item-img-wrap,
.featured-item--next .featured-item-img-wrap {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Activo */
.featured-item--active {
  width: 210px;
  opacity: 1;
  z-index: 10;
}

/* Image wrap: consistente 3:4 */
.featured-item-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: rgba(15, 18, 24, 0.85);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}

.featured-item--active .featured-item-img-wrap {
  border: 2px solid var(--item-color, #00f0ff);
  box-shadow: 0 0 36px 6px var(--item-glow, rgba(0, 240, 255, 0.35));
  animation: featuredFloat 3s ease-in-out infinite;
}

@keyframes featuredFloat {
  0%,  100% { transform: translateY(0px); }
  50%        { transform: translateY(-8px); }
}

.featured-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.img-sealed-wrap {
  position: relative;
}

.img-sealed-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 38%,
    rgba(38, 47, 56, 0.55) 72%,
    rgba(38, 47, 56, 0.92) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Info debajo de la carta activa */
.featured-item-info {
  padding: 0.65rem 0.25rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.featured-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  max-width: 200px;
}

.featured-item-price {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.featured-item-cta {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.featured-item--active:hover .featured-item-cta {
  opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .featured-item--prev,
  .featured-item--next {
    width: 90px;
    transform: scale(0.78) rotateY(0deg);
  }
  .featured-item--active {
    width: 160px;
  }
  .featured-carousel-track {
    gap: 6px;
    min-height: 280px;
  }
  .featured-nav {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* Dual carousel: sellados + cartas side by side */
.featured-dual {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 32px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.featured-section--compact {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: featured-section-in 0.5s ease both;
}

@media (max-width: 768px) {
  .featured-dual {
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }
}

   / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =     