/* ==========================================
   ESTILOS GENERALES Y PALETA DE LUJO (ARTE PERUANO)
   ========================================== */
:root {
  --bg-main: #fbf9f5;          /* Marfil / Sepia muy claro de fondo */
  --bg-card: #ffffff;
  --bg-dark: #1e1b18;          /* Marrón oscuro peruano / tierra */
  --accent-gold: #8c6d46;      /* Dorado sobrio / Sepia noble */
  --accent-gold-hover: #735735;
  --text-main: #2c2825;
  --text-muted: #78716c;
  --border-sepia: #e6e1da;
  --success-green: #166534;
  --danger-red: #991b1b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-logo {
  font-family: 'Cinzel', serif;
}

/* ==========================================
   NAVBAR MOBILE-FIRST (RESPONSIVE PROFESIONAL)
   ========================================== */
.navbar {
  background-color: var(--bg-dark);
  border-bottom: 2px solid var(--accent-gold);
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  row-gap: 10px;
  column-gap: 8px;
}

/* ==========================================
/* ==========================================
   LOGO UNIFICADO: ALL POINTS BIDS
   ========================================== */
.brand-unified-logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s ease;
}

.brand-unified-logo:hover {
  transform: translateY(-1px);
}

.brand-emblem-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2521 0%, #171513 100%);
  border: 1.5px solid var(--accent-gold);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-text-main {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
}

.brand-text-gold {
  color: #d4af37;
  font-weight: 800;
}

/* Barra Superior Unificada para páginas secundarias (Pujas, Perfil, Envíos, Ayuda) */
.top-header {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.top-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.btn-back-nav {
  background: rgba(255, 255, 255, 0.08);
  color: #fbf9f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-back-nav:hover {
  background: var(--accent-gold);
  color: #121214;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(140, 109, 70, 0.3);
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-title span {
  color: #d4af37;
}

.btn-back-nav {
  background: rgba(255, 255, 255, 0.08);
  color: #fbf9f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back-nav:hover {
  background: var(--accent-gold);
  color: #121214;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Fila 1 en Mobile: Logo a la izquierda, Acciones de Usuario a la derecha */
.brand-logo {
  order: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-fallback {
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-actions {
  order: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

.icon-link:hover {
  color: var(--accent-gold);
}

.badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 15px;
  text-align: center;
  border: 1px solid var(--bg-dark);
}

.btn-login-main {
  background-color: var(--accent-gold);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-login-main:hover {
  background-color: var(--accent-gold-hover);
}

/* Menú Desplegable de Usuario Logueado (Solo Clic, sin Hover) */
.auth-menu-container {
  position: relative;
}

.user-dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-header {
  background: var(--bg-dark);
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
  transition: all 0.2s;
  max-width: 135px;
}

.dropdown-header:hover {
  background-color: #2a2521;
}

#userGreeting {
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow-down {
  font-size: 10px;
  color: var(--accent-gold);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  min-width: 210px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 1px solid var(--border-sepia);
  overflow: hidden;
  z-index: 100;
}

.dropdown-content.show {
  display: block;
  animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a, .dropdown-content button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-content a:hover, .dropdown-content button:hover {
  background-color: var(--bg-main);
  color: var(--accent-gold);
}

/* Fila 2 en Mobile: Buscador toma 100% del ancho */
.search-bar {
  order: 3;
  display: flex;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--accent-gold);
  height: 38px;
}

.search-bar input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 0;
}

.search-bar button {
  background: var(--accent-gold);
  border: none;
  padding: 0 14px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fila 3 en Mobile: Botón explícito "Ver estado de pedidos" */
.btn-order-status-nav {
  order: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(140, 109, 70, 0.15);
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-order-status-nav:hover {
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(140, 109, 70, 0.3);
}

.btn-order-status-icon {
  font-size: 14px;
  line-height: 1;
}

.btn-order-status-text {
  letter-spacing: 0.2px;
}

.badge-status-count {
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ==========================================
   DESKTOP (PANTALLAS >= 992px)
   ========================================== */
@media (min-width: 992px) {
  .navbar {
    padding: 12px 20px;
  }

  .nav-container {
    flex-wrap: nowrap;
    gap: 15px;
  }

  .brand-logo {
    order: 1;
  }

  .brand-logo img {
    height: 40px;
  }

  .brand-fallback {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .search-bar {
    order: 2;
    flex: 1;
    max-width: 440px;
  }

  .btn-order-status-nav {
    order: 3;
    width: auto;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .nav-actions {
    order: 4;
    gap: 15px;
  }

  .user-icons {
    gap: 12px;
  }

  .icon-link svg {
    width: 22px;
    height: 22px;
  }

  .dropdown-header {
    padding: 8px 14px;
    font-size: 14px;
    max-width: 180px;
  }

  #userGreeting {
    max-width: 130px;
  }
}

/* ==========================================
   LAYOUT PRINCIPAL Y FILTROS
   ========================================== */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  flex: 1;
}

.filters-section {
  margin-bottom: 20px;
}

.btn-toggle-filters {
  background-color: #fff;
  border: 1px solid var(--border-sepia);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 220px;
  color: var(--text-main);
}

.filters-grid {
  background: #fff;
  border: 1px solid var(--border-sepia);
  border-radius: 6px;
  padding: 20px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-item input, .filter-item select {
  padding: 8px;
  border: 1px solid var(--border-sepia);
  border-radius: 4px;
  font-size: 13px;
}

.range-inputs {
  display: flex;
  gap: 8px;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-filter-apply {
  background: var(--accent-gold);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.btn-filter-reset {
  background: #e5e7eb;
  color: var(--text-main);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.promo-banner {
  background-color: var(--bg-dark);
  color: var(--accent-gold);
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 25px;
  border: 1px solid var(--accent-gold);
}

/* ==========================================
   GRID DE TARJETAS (MOBILE-FIRST HORIZONTAL / DESKTOP 6 COLUMNAS)
   ========================================== */
.auctions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .auctions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .auctions-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.auction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sepia);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

@media (min-width: 1200px) {
  .auction-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
}

.card-img-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .card-img-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
  }
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

@media (min-width: 1200px) {
  .card-content {
    padding: 12px;
    gap: 8px;
  }
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estados de texto del postor */
.bidder-status-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.bidder-status-text.is-winning {
  color: var(--success-green);
}

.bidder-status-text.is-outbid {
  color: var(--danger-red);
}

/* Indicador destacado de puja dentro del modal de la gema */
#modalBidStatusIndicator {
  margin: 12px 0 16px 0;
  width: 100%;
}

#modalBidStatusIndicator .bidder-status-text {
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
}

#modalBidStatusIndicator .bidder-status-text.is-winning {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #065f46 !important;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 2px solid #10b981 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  display: block !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
  animation: pulse-winning 2s infinite ease-in-out;
}

@keyframes pulse-winning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

#modalBidStatusIndicator .bidder-status-text.is-outbid {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #991b1b !important;
  background: #fef2f2 !important;
  border: 1.5px solid #f87171 !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  display: block !important;
  text-align: center !important;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.card-price {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 13px;
}

.card-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.btn-card-bid {
  background-color: var(--accent-gold);
  color: #fff;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (min-width: 1200px) {
  .btn-card-bid {
    padding: 10px;
    font-size: 13px;
    margin-top: auto;
  }
}

.btn-card-bid:hover {
  background-color: var(--accent-gold-hover);
}

/* ==========================================
   PAGINACIÓN
   ========================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pagination-btn {
  background: #fff;
  border: 1px solid var(--border-sepia);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.pagination-btn.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================
   MODALES UNIVERSALES (MEJORADOS CON BOTONES GRANDES)
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  border: 1px solid var(--border-sepia);
}

.modal-large {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-compact {
  max-width: 320px;
}

/* Botón X superior agrandado y redondeado */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f4f1ea;
  border: 1px solid var(--border-sepia);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg-dark);
  color: var(--accent-gold);
  border-color: var(--bg-dark);
  transform: scale(1.05);
}

.modal-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--bg-dark);
  padding-right: 40px; /* Espacio para no chocar con la X grande */
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input, .form-group select {
  padding: 10px;
  border: 1px solid var(--border-sepia);
  border-radius: 4px;
  font-size: 14px;
}

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-input-group select {
  flex: 0 0 130px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-links {
  margin-bottom: 15px;
  font-size: 13px;
  text-align: right;
}

.form-links a {
  color: var(--accent-gold);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

.modal-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
}

.modal-footer a {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
}

/* Botón Cerrar Secundario Inferior */
.modal-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-sepia);
}

.btn-modal-close-secondary {
  background: #e5e7eb;
  color: var(--text-main);
  border: 1px solid #d1d5db;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-modal-close-secondary:hover {
  background: #d1d5db;
  color: #000;
}

/* Spinner de carga */
.spinner-gold {
  border: 4px solid var(--border-sepia);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border-top-color: var(--accent-gold);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-center { text-align: center; }

/* ==========================================
   ESTILOS ESPECÍFICOS MODAL DE DETALLE Y PUJA
   ========================================== */
.media-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.main-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0d0c0b;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-sepia);
}

.main-video-wrapper iframe,
.main-video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

.main-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0d0c0b;
  display: block;
}

.thumbnails-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnails-row::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-row::-webkit-scrollbar-thumb {
  background-color: var(--border-sepia);
  border-radius: 3px;
}

.thumb-item {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border-sepia);
  cursor: pointer;
  background: #111;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.thumb-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.thumb-item.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(140, 109, 70, 0.45);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 27, 24, 0.85);
  color: var(--accent-gold);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
}

.bidding-status-bar {
  background: #f4f1ea;
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.bid-actions-box {
  border: 1px solid var(--border-sepia);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.bid-input-row {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.bid-input-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-sepia);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
}

.btn-bid-submit {
  background: var(--success-green);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.quick-bid-buttons {
  display: flex;
  gap: 8px;
}

.btn-quick-bid {
  background: #e5e7eb;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.btn-quick-bid:hover {
  background: var(--accent-gold);
  color: #fff;
}

.gem-specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
  font-size: 13px;
  background: #faf8f5;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-sepia);
}

/* ==========================================
   ESTILOS DEL MODAL DE CARRITO DE COMPRAS
   ========================================== */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 6px;
}

.cart-items-container::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: var(--border-sepia);
  border-radius: 3px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #faf8f5;
  border: 1px solid var(--border-sepia);
  border-radius: 6px;
  padding: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.cart-item-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-sepia);
  flex-shrink: 0;
  background: #111;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-date {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-gold);
  text-align: right;
  flex-shrink: 0;
}

.cart-empty-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: #faf8f5;
  border-radius: 6px;
  border: 1px dashed var(--border-sepia);
}

.cart-summary-box {
  border-top: 2px solid var(--border-sepia);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
}

.cart-total-row strong {
  font-size: 24px;
  color: var(--accent-gold);
  font-weight: 800;
}

.cart-actions-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.btn-checkout {
  background-color: var(--success-green);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}

.btn-checkout:hover {
  background-color: #14532d;
  transform: translateY(-1px);
}

/* ==========================================
   MODAL DE SEGUIMIENTO Y ESTADO DE PEDIDOS
   ========================================== */
.orders-verification-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.orders-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #faf8f5;
  border: 1px dashed var(--border-sepia);
  border-radius: 8px;
}

.order-status-card {
  background: #fff;
  border: 1px solid var(--border-sepia);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: border-color 0.2s;
}

.order-status-card:hover {
  border-color: var(--accent-gold);
}

.order-status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-sepia);
  gap: 10px;
}

.order-card-code {
  display: block;
  font-family: monospace;
  font-weight: 800;
  font-size: 14px;
  color: var(--bg-dark);
}

.order-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Badges de estado */
.badge-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-en-verificacion {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-aprobado,
.badge-pago-validado {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.badge-pendiente-envio {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe !important;
}

.badge-enviado {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.badge-finalizado {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}

.badge-observado {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Cajas de Aviso / Horario de atención */
.order-notice-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.45;
}

.order-notice-box.notice-warning {
  background: #fffbeb;
  border: 1px solid #fef08a;
  color: #78350f;
}

.order-notice-box.notice-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.order-notice-box .notice-icon {
  font-size: 16px;
  line-height: 1.2;
}

/* Detalles de Monto, Método y Cantidad */
.order-status-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: #faf8f5;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-sepia);
  margin-bottom: 14px;
}

.order-status-detail-cell {
  display: flex;
  flex-direction: column;
}

.order-status-detail-cell .cell-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

.order-status-detail-cell .cell-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.order-status-detail-cell .cell-value-highlight {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-order-voucher-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--border-sepia);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-order-voucher-link:hover {
  background: var(--bg-dark);
  color: var(--accent-gold);
  border-color: var(--bg-dark);
}

/* Lista de gemas en el pedido */
.order-card-items-section {
  border-top: 1px solid var(--border-sepia);
  padding-top: 10px;
}

.order-card-items-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.order-mini-items-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-sepia);
  border-radius: 6px;
  padding: 8px 12px;
}

.order-mini-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-sepia);
  background: #fdfcfb;
  flex-shrink: 0;
  display: block;
}

.order-mini-info {
  flex: 1;
  min-width: 0;
}

.order-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-mini-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.order-mini-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* Botones de Requerir Envío */
.btn-requerir-envio-single {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #121214;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(140, 109, 70, 0.25);
}

.btn-requerir-envio-single:hover {
  background: var(--accent-gold-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(140, 109, 70, 0.35);
}

.bulk-shipping-card {
  margin-top: 24px;
  background: #1e1b18;
  color: #fbf9f5;
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bulk-shipping-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-shipping-text strong {
  font-size: 14.5px;
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
}

.bulk-shipping-text span {
  font-size: 12.5px;
  color: #d6d3d1;
}

.btn-requerir-envio-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #22c55e;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.btn-requerir-envio-all:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

/* ==========================================
   CAMPOS CON CONTRASEÑA Y BOTÓN OJITO
   ========================================== */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper input {
  width: 100%;
  padding-right: 44px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s ease, transform 0.1s ease;
  user-select: none;
}

.btn-toggle-password:hover {
  color: var(--accent-gold);
}

.btn-toggle-password:active {
  transform: translateY(-50%) scale(0.95);
}

/* ==========================================
   MODAL DE ALERTA GLOBAL ELEGANTE (SIN ALERTS FEOS)
   ========================================== */
.modal-system-alert {
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(5px) !important;
}

.modal-system-alert-card {
  max-width: 440px !important;
  text-align: center;
  padding: 32px 26px !important;
  border: 1.5px solid var(--accent-gold) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  position: relative;
}

.alert-icon-wrap {
  font-size: 38px;
  margin-bottom: 12px;
  line-height: 1;
}

.alert-message-body {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
  white-space: pre-line;
  margin: 10px 0 20px 0;
}

.btn-alert-ok {
  background: var(--bg-dark);
  color: #fbf9f5;
  border: 1px solid var(--accent-gold);
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(30, 27, 24, 0.25);
  margin: 0 auto;
  display: block;
}

.btn-alert-ok:hover {
  background: var(--accent-gold);
  color: #121214;
  transform: translateY(-1px);
}

/* ==========================================
   MODAL DE AYUDA Y SOPORTE
   ========================================== */
.help-phrase-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.help-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.help-contact-card {
  background: #faf8f5;
  border: 1px solid var(--border-sepia);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-contact-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.help-contact-card .contact-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.help-phone-number {
  font-family: monospace;
  font-size: 19px;
  font-weight: 800;
  color: var(--bg-dark);
  letter-spacing: 1px;
}

.btn-help-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
}

.btn-help-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.help-exclusive-whatsapp-alert {
  background: #fef2f2;
  border: 1.5px solid #f87171;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 14px;
}


