/* ============================================
   Atmic GamerZone - Estilos del Panel Admin
   ============================================ */

/* ===== BODY DEL ADMIN ===== */
.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D0221;
  background-image:
    radial-gradient(ellipse at top left, rgba(123, 44, 191, 0.3), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(58, 134, 255, 0.2), transparent 50%);
}

/* ===== LOGIN ===== */
.admin-login-wrapper {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(26, 11, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-logo {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #9D4EDD, #3A86FF, #FF006E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.admin-login-titulo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #F8F9FA;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.admin-login-desc {
  color: #B8B5C9;
  font-size: 0.85rem;
  margin: 0;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-login-form .form-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-login-form .form-grupo label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #B8B5C9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-login-form input[type="email"],
.admin-login-form input[type="password"] {
  background: rgba(13, 2, 33, 0.9) !important;
  color: #F8F9FA !important;
  border: 1px solid rgba(157, 78, 221, 0.35) !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-login-form input[type="email"]:focus,
.admin-login-form input[type="password"]:focus {
  border-color: #FF006E !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.25) !important;
}

.admin-login-form input::placeholder {
  color: #8B86A3 !important;
  opacity: 1 !important;
}

.admin-login-form .btn {
  margin-top: 0.5rem;
  font-size: 1rem !important;
  padding: 0.9rem 1.5rem !important;
}

.admin-login-error {
  background: rgba(255, 0, 110, 0.15);
  border: 1px solid rgba(255, 0, 110, 0.4);
  color: #FF006E;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.admin-login-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.25);
  text-align: center;
}

.admin-login-footer a {
  color: #9D4EDD;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.admin-login-footer a:hover {
  color: #FF006E;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .admin-login-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .admin-login-titulo {
    font-size: 1.15rem;
  }
}
/* ============================================
   ADMIN - LAYOUT (sidebar + header + contenido)
   ============================================ */

/* El body del admin cambia cuando hay layout */
.admin-body.admin-layout {
  display: block;
  min-height: 100vh;
  background: #0D0221;
}

/* ===== HEADER DEL ADMIN ===== */
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(13, 2, 33, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(157, 78, 221, 0.25);
  z-index: 100;
  gap: 1rem;
}

.admin-header__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #9D4EDD, #3A86FF, #FF006E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #B8B5C9;
  padding: 0.4rem 0.8rem;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 8px;
  white-space: nowrap;
}

.admin-header__user strong {
  color: #F8F9FA;
  font-weight: 600;
}

.admin-header__user .role-badge {
  background: linear-gradient(135deg, #9D4EDD, #FF006E);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-btn-logout {
  background: rgba(255, 0, 110, 0.15);
  border: 1px solid rgba(255, 0, 110, 0.4);
  color: #FF006E;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-btn-logout:hover {
  background: #FF006E;
  color: #fff;
}

.admin-btn-menu {
  display: none;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #F8F9FA;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== SIDEBAR ===== */
.admin-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 240px;
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(157, 78, 221, 0.25);
  overflow-y: auto;
  padding: 1rem 0;
  z-index: 90;
  transition: transform 0.3s ease;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.5rem;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #B8B5C9;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.admin-sidebar__link:hover {
  background: rgba(157, 78, 221, 0.15);
  color: #F8F9FA;
}

.admin-sidebar__link.activo {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(255, 0, 110, 0.2));
  color: #F8F9FA;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #FF006E;
}

.admin-sidebar__link .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-sidebar__divider {
  height: 1px;
  background: rgba(157, 78, 221, 0.15);
  margin: 0.75rem 1rem;
}

/* ===== MAIN CONTENT ===== */
.admin-main {
  margin-left: 240px;
  margin-top: 64px;
  padding: 2rem;
  min-height: calc(100vh - 64px);
}

.admin-page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  color: #F8F9FA;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.admin-page-subtitle {
  color: #B8B5C9;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ===== STATS CARDS ===== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

@media (min-width: 1000px) {
  .admin-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.admin-stat-card {
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9D4EDD, #3A86FF, #FF006E);
}

.admin-stat-card:hover {
  border-color: rgba(157, 78, 221, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(123, 44, 191, 0.25);
}

.admin-stat-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.admin-stat-card__label {
  color: #B8B5C9;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.admin-stat-card__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #F8F9FA;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.admin-stat-card__value.green { color: #22C55E; }
.admin-stat-card__value.blue  { color: #3A86FF; }
.admin-stat-card__value.pink  { color: #FF006E; }
.admin-stat-card__value.violet{ color: #9D4EDD; }

/* ===== ACCESOS RÁPIDOS ===== */
.admin-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

@media (min-width: 1000px) {
  .admin-quick-actions { grid-template-columns: repeat(4, 1fr); }
}

.admin-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 14px;
  color: #F8F9FA;
  text-decoration: none;
  transition: all 0.25s;
  text-align: center;
}

.admin-quick-action:hover {
  border-color: #FF006E;
  background: rgba(255, 0, 110, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 110, 0.2);
}

.admin-quick-action__icon {
  font-size: 1.75rem;
}

.admin-quick-action__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 899px) {
  .admin-btn-menu { display: inline-flex; }

  .admin-header__user .email-text { display: none; }

  .admin-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .admin-sidebar.abierto {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
  }

  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }

  .admin-page-title { font-size: 1.3rem; }
}

/* Overlay para cerrar sidebar en móvil */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80;
  display: none;
}

@media (max-width: 899px) {
  .admin-overlay.visible {
    display: block;
    animation: fade-overlay 0.25s ease;
  }
}

/* ===== LOADING SKELETON ===== */
.admin-skeleton {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.1) 25%, rgba(157, 78, 221, 0.25) 50%, rgba(157, 78, 221, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: 8px;
  height: 1.5rem;
}
/* ============================================
   ADMIN - PRODUCTOS (tabla + modal)
   ============================================ */

/* ===== BARRA DE ACCIONES ===== */
.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  padding: 0.7rem 1rem;
  background: rgba(13, 2, 33, 0.9) !important;
  color: #F8F9FA !important;
  border: 1px solid rgba(157, 78, 221, 0.35) !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: all 0.2s !important;
}

.admin-search-input:focus {
  border-color: #FF006E !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.2) !important;
}

.admin-search-input::placeholder {
  color: #8B86A3 !important;
  opacity: 1 !important;
}

/* ===== TABLA DE PRODUCTOS ===== */
.admin-table-wrapper {
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: rgba(157, 78, 221, 0.15);
}

.admin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9D4EDD;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  color: #F8F9FA;
  border-top: 1px solid rgba(157, 78, 221, 0.15);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.15s;
}

.admin-table tbody tr:hover {
  background: rgba(157, 78, 221, 0.08);
}

.admin-table__img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(157, 78, 221, 0.1);
}

.admin-table__name {
  font-weight: 600;
  max-width: 280px;
}

.admin-table__brand {
  color: #B8B5C9;
  font-size: 0.75rem;
  margin-top: 2px;
}

.admin-table__price {
  font-family: 'Orbitron', sans-serif;
  color: #3A86FF;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table__price-old {
  color: #C0392B;
  text-decoration: line-through;
  font-size: 0.75rem;
  display: block;
  opacity: 0.75;
}

.admin-table__stock {
  font-weight: 600;
  white-space: nowrap;
}

.admin-table__stock.bajo {
  color: #F59E0B;
}

.admin-table__stock.agotado {
  color: #FF006E;
}

.admin-table__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-table__badges .mini-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mini-badge.nuevo    { background: #3A86FF; color: #fff; }
.mini-badge.oferta   { background: #FF006E; color: #fff; }
.mini-badge.destacado{ background: #9D4EDD; color: #fff; }
.mini-badge.agotado  { background: #4A4A4A; color: #ddd; }
.mini-badge.inactivo { background: #333; color: #999; }

.admin-table__actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.admin-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.admin-action-btn.edit {
  background: rgba(58, 134, 255, 0.15);
  color: #3A86FF;
  border: 1px solid rgba(58, 134, 255, 0.3);
}

.admin-action-btn.edit:hover {
  background: #3A86FF;
  color: #fff;
}

.admin-action-btn.delete {
  background: rgba(255, 0, 110, 0.15);
  color: #FF006E;
  border: 1px solid rgba(255, 0, 110, 0.3);
}

.admin-action-btn.delete:hover {
  background: #FF006E;
  color: #fff;
}

/* ===== ESTADO VACÍO ===== */
.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #B8B5C9;
}

.admin-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ===== MODAL ===== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  animation: fade-overlay 0.2s ease;
}

.admin-modal {
  background: #1A0B2E;
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(157, 78, 221, 0.25);
}

.admin-modal__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8F9FA;
  letter-spacing: 0.03em;
}

.admin-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 110, 0.4);
  background: rgba(255, 0, 110, 0.15);
  color: #FF006E;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal__close:hover {
  background: #FF006E;
  color: #fff;
}

.admin-modal__body {
  padding: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.admin-modal__footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.25);
  flex-wrap: wrap;
}

/* ===== FORMULARIO DEL MODAL ===== */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
}

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

.admin-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #B8B5C9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.admin-form-input,
.admin-form-textarea,
.admin-form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(13, 2, 33, 0.9) !important;
  color: #F8F9FA !important;
  border: 1px solid rgba(157, 78, 221, 0.35) !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
}

.admin-form-input:focus,
.admin-form-textarea:focus,
.admin-form-select:focus {
  border-color: #FF006E !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.2) !important;
}

.admin-form-textarea {
  resize: vertical;
  min-height: 70px;
  font-family: 'Inter', sans-serif !important;
}

.admin-form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(rgba(13, 2, 33, 0.9), rgba(13, 2, 33, 0.9)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='%239D4EDD' d='M7 9L0 0h14z'/></svg>") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: 0 0, right 0.8rem center !important;
  background-size: 100% 100%, 14px 9px !important;
  padding-right: 2.5rem !important;
}

.admin-form-select option {
  background: #0D0221;
  color: #F8F9FA;
}

/* ===== CHECKBOXES DEL FORM ===== */
.admin-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #B8B5C9;
  user-select: none;
}

.admin-checkbox-label input[type="checkbox"] {
  accent-color: #FF006E;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ===== PREVIEW DE IMAGEN ===== */
.admin-image-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-image-preview {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 4/3;
  background: rgba(13, 2, 33, 0.6);
  border: 2px dashed rgba(157, 78, 221, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B86A3;
  font-size: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-image-preview:hover {
  border-color: #FF006E;
  background: rgba(255, 0, 110, 0.05);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-file-input {
  display: none;
}

/* ===== CONFIRMACIÓN DE ELIMINACIÓN ===== */
.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade-overlay 0.2s ease;
}

.admin-confirm {
  background: #1A0B2E;
  border: 1px solid rgba(255, 0, 110, 0.4);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.admin-confirm__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.admin-confirm__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #F8F9FA;
  margin-bottom: 0.5rem;
}

.admin-confirm__text {
  color: #B8B5C9;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.admin-confirm__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 899px) {
  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.78rem;
  }

  .admin-table__name {
    max-width: 150px;
  }

  .admin-modal {
    border-radius: 12px;
  }

  .admin-modal__body {
    padding: 1rem;
  }

  .admin-modal__footer {
    padding: 1rem;
  }
}
/* ============================================
   ADMIN - PEDIDOS / COTIZACIONES
   ============================================ */

/* ===== TARJETAS DE ESTADOS ===== */
.admin-orders-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .admin-orders-stats { grid-template-columns: repeat(4, 1fr); }
}

.admin-order-stat {
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  user-select: none;
}

.admin-order-stat:hover {
  border-color: rgba(157, 78, 221, 0.5);
  transform: translateY(-1px);
}

.admin-order-stat.activo {
  border-color: #FF006E;
  background: rgba(255, 0, 110, 0.1);
}

.admin-order-stat__num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.admin-order-stat__label {
  color: #B8B5C9;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.admin-order-stat--pendiente  .admin-order-stat__num { color: #F59E0B; }
.admin-order-stat--contactado .admin-order-stat__num { color: #3A86FF; }
.admin-order-stat--cerrado    .admin-order-stat__num { color: #22C55E; }
.admin-order-stat--cancelado  .admin-order-stat__num { color: #8B86A3; }

/* ===== BADGES DE ESTADO ===== */
.order-status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  white-space: nowrap;
}

.order-status-badge.pendiente  { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.order-status-badge.contactado { background: rgba(58, 134, 255, 0.2); color: #3A86FF; border: 1px solid rgba(58, 134, 255, 0.4); }
.order-status-badge.cerrado    { background: rgba(34, 197, 94, 0.2); color: #22C55E; border: 1px solid rgba(34, 197, 94, 0.4); }
.order-status-badge.cancelado  { background: rgba(139, 134, 163, 0.2); color: #8B86A3; border: 1px solid rgba(139, 134, 163, 0.4); }

/* ===== DETALLE DEL PEDIDO (MODAL) ===== */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .order-detail-grid { grid-template-columns: 1fr 1fr; }
}

.order-detail-field {
  background: rgba(13, 2, 33, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.order-detail-field__label {
  font-size: 0.7rem;
  color: #8B86A3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-detail-field__value {
  color: #F8F9FA;
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-word;
}

.order-detail-field__value a {
  color: #3A86FF;
  text-decoration: none;
}

.order-detail-field__value a:hover {
  color: #FF006E;
}

/* Items del pedido */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.order-item-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: rgba(13, 2, 33, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 10px;
  padding: 0.6rem;
}

.order-item-row__img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(157, 78, 221, 0.1);
}

.order-item-row__name {
  color: #F8F9FA;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.order-item-row__meta {
  color: #8B86A3;
  font-size: 0.7rem;
  margin-top: 2px;
}

.order-item-row__total {
  font-family: 'Orbitron', sans-serif;
  color: #3A86FF;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(58, 134, 255, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.order-total-row span {
  color: #B8B5C9;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.order-total-row strong {
  font-family: 'Orbitron', sans-serif;
  color: #22C55E;
  font-size: 1.3rem;
}

/* Selector de estado */
.order-status-changer {
  background: rgba(13, 2, 33, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.order-status-changer label {
  font-size: 0.75rem;
  color: #B8B5C9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

/* Tabla de pedidos: ajustar ancho */
.admin-table td.order-cliente {
  max-width: 200px;
}

.admin-table td.order-productos {
  color: #B8B5C9;
  font-size: 0.8rem;
}
/* ============================================
   ADMIN - EDITOR DE CONTENIDO
   ============================================ */

.admin-content-wrapper {
  max-width: 800px;
}

.admin-content-card {
  background: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.admin-content-card .admin-form-label {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.admin-content-help {
  display: block;
  color: #8B86A3;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.admin-content-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .admin-content-actions {
    flex-direction: column-reverse;
  }
  .admin-content-actions .btn {
    width: 100%;
  }
}