/* ============================================================
   SORTEOS TONY — ESTILOS v1.1
   ============================================================ */

:root {
  --sc-primary:   #F59E0B;
  --sc-danger:    #EF4444;
  --sc-success:   #22C55E;
  --sc-blue:      #3B82F6;
  --sc-dark:      #0A0A0A;
  --sc-dark2:     #111111;
  --sc-dark3:     #1A1A1A;
  --sc-border:    #2A2A2A;
  --sc-text:      #F3F4F6;
  --sc-muted:     #9CA3AF;
  --sc-white:     #FFFFFF;
  --sc-radius:    12px;
  --sc-shadow:    0 4px 24px rgba(0,0,0,0.5);
}

/* ── Reset ──────────────────────────────────────────────────── */
#sc-grid-app, #sc-admin-app, #sc-super-app,
#sc-operator-app, #sc-account-app, #sc-register-app,
#sc-search-widget, #sc-tabla-app {
  background: var(--sc-dark);
  color: var(--sc-text);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 12px;
  box-sizing: border-box;
}

/* ── Super admin: más ancho en desktop, compacto en móvil ── */
#sc-super-app {
  max-width: 100% !important;
  width: 100% !important;
  padding: 12px 14px;
  box-sizing: border-box;
  display: block;
}
@media (min-width: 600px) {
  #sc-super-app { padding: 16px 20px; }
}
@media (min-width: 1024px) {
  #sc-super-app { padding: 20px 28px; }
}

/* ── Header ──────────────────────────────────────────────────── */
.sc-header { text-align: center; padding: 14px 0 4px; }
.sc-header h1, .sc-header h2 { color: var(--sc-primary); margin: 0; font-size: 1.4rem; }
.sc-header p { color: var(--sc-muted); margin: 4px 0 0; font-size: 0.85rem; }
.sc-price { color: var(--sc-primary) !important; font-size: 0.9rem !important; }

/* ── Leyenda ──────────────────────────────────────────────────── */
.sc-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 6px 0 10px;
  font-size: 0.78rem;
  color: var(--sc-muted);
  flex-wrap: wrap;
}
.sc-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Countdown ───────────────────────────────────────────────── */
.sc-countdown {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sc-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   GRILLA — COMPACTA
   Celular: 10 columnas (círculos pequeños, números legibles)
   Desktop: 10 columnas también, pero el contenedor más ancho
   ══════════════════════════════════════════════════════════════ */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 2px;
}

/* Cada número */
.sc-num {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tamaño de fuente relativo al tamaño del círculo */
  font-size: clamp(0.55rem, 2.2vw, 0.75rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  user-select: none;
  line-height: 1;
  color: #111;
}

/* Skeleton de carga — evita flash de pantalla en blanco */
.sc-grid-skeleton {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 2px;
  min-height: 200px;
}
.sc-grid-skeleton::before {
  content: '⏳ Cargando números...';
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sc-muted);
  font-size: .88rem;
  padding: 40px 0;
  align-self: center;
}

/* Evitar flash de contenido sin estilo (FOUC) */
#sc-grid-app:not(.sc-ready) .sc-legend { opacity: 0; }
#sc-grid-app.sc-ready .sc-legend { opacity: 1; transition: opacity .2s ease; }

/* Hover: solo en disponibles y seleccionados */
.sc-num--avail:hover,
.sc-num--selected:hover {
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(245,158,11,0.6);
  z-index: 2;
  position: relative;
}

/* Estados */
.sc-num--avail    { background: #FFFFFF; color: #111; }
.sc-num--selected { background: #3B82F6; color: #fff; cursor: pointer; }
.sc-num--reserved { background: #3B82F6; color: #fff; cursor: not-allowed; }
.sc-num--paid     { background: #EF4444; color: #fff; cursor: not-allowed; }

/* Animación pop al seleccionar */
.sc-num--anim {
  animation: sc-pop .3s ease;
}
@keyframes sc-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Desktop: un poco más grande */
@media (min-width: 600px) {
  .sc-grid { max-width: 640px; gap: 5px; }
  .sc-num  { font-size: clamp(0.65rem, 1.5vw, 0.85rem); }
}
@media (min-width: 900px) {
  .sc-grid { max-width: 720px; gap: 6px; }
  .sc-num  { font-size: 0.82rem; }
}

/* ── Barra de selección ──────────────────────────────────────── */
.sc-selection-bar {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  background: var(--sc-dark3);
  border-top: 1px solid var(--sc-blue);
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 20px rgba(59,130,246,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.sc-selection-bar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-selection-bar__label {
  font-size: 0.9rem;
  color: var(--sc-text);
}

.sc-selection-total {
  display: inline-block;
  margin-left: 8px;
  color: var(--sc-primary);
  font-weight: 700;
}

.sc-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 80px;
  overflow-y: auto;
}

/* Chips de números */
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sc-blue);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.sc-chip--reserved {
  background: var(--sc-blue);
}

.sc-chip__x {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
}
.sc-chip__x:hover { color: #fff; }

.sc-btn-link {
  background: none;
  border: none;
  color: var(--sc-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.sc-btn-link:hover { color: var(--sc-text); }

/* ── Botón full width ────────────────────────────────────────── */
.sc-btn--full { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }

/* ── Grupo WhatsApp ──────────────────────────────────────────── */
.sc-group-btns { display: none; margin-top: 12px; }  /* JS lo muestra si está habilitado */
.sc-group-btns.sc-visible { display: flex !important; }
.sc-group-btns.sc-hidden  { display: none !important; }
.sc-btn--group {
  background: #25D366; color: #fff; width: 100%;
  padding: 13px; font-size: 0.95rem; border-radius: 10px;
  border: none; cursor: pointer; font-weight: 600;
}

/* ── MODAL ───────────────────────────────────────────────────── */
.sc-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.sc-modal__box {
  background: var(--sc-dark3);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 24px 20px;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: var(--sc-shadow);
  animation: sc-slide-up .22s ease;
}
@keyframes sc-slide-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.sc-modal__title { color: #FFFFFF; margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.sc-modal__nums  { color: var(--sc-blue); font-size: 0.88rem; margin: 0 0 16px; }
.sc-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--sc-muted);
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.sc-modal__close:hover { color: var(--sc-white); }
.sc-modal__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#sc-pay-content p { color: #F3F4F6; }
#sc-pay-content strong { color: #FFFFFF; }

/* ── Campos ──────────────────────────────────────────────────── */
.sc-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.sc-field label { font-size: 0.8rem; color: var(--sc-muted); font-weight: 500; }
.sc-field input, .sc-field select, .sc-field textarea {
  background: var(--sc-dark2);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  color: var(--sc-text);
  padding: 9px 11px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus {
  border-color: var(--sc-primary);
}
.sc-phone-row { display: flex; gap: 7px; }
.sc-country-select { flex: 0 0 auto; min-width: 88px; max-width: 120px; }
.sc-phone-row input { flex: 1; }

/* ── Botones ──────────────────────────────────────────────────── */
.sc-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .18s, transform .1s;
  text-decoration: none;
}
.sc-btn:hover  { opacity: .87; }
.sc-btn:active { transform: scale(.97); }
.sc-btn--primary { background: var(--sc-primary);  color: #000; }
.sc-btn--danger  { background: var(--sc-danger);   color: #fff; }
.sc-btn--success { background: var(--sc-success);  color: #000; }
.sc-btn--ghost   { background: var(--sc-border);   color: var(--sc-text); }
.sc-btn--wa      { background: #25D366;            color: #fff; }

/* ── Alertas ──────────────────────────────────────────────────── */
.sc-alert { padding: 9px 12px; border-radius: 8px; font-size: 0.86rem; margin-top: 6px; }
.sc-alert--error   { background: rgba(239,68,68,.15);  color: #FCA5A5; border: 1px solid rgba(239,68,68,.3); }
.sc-alert--success { background: rgba(34,197,94,.15);  color: #86EFAC; border: 1px solid rgba(34,197,94,.3); }
.sc-alert--info    { background: rgba(245,158,11,.12); color: #FCD34D; border: 1px solid rgba(245,158,11,.3); }

/* ── Pago ────────────────────────────────────────────────────── */
.sc-reserved-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sc-pay-total { font-size: 1.1rem; font-weight: 700; color: var(--sc-primary); margin: 8px 0; }
.sc-pay-hint  { font-size: 0.82rem; color: var(--sc-muted); margin: 0; }

/* ── Imagen de fondo ─────────────────────────────────────────── */
#sc-grid-app.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#sc-grid-app.has-bg::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 0;
}
#sc-grid-app.has-bg > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   PANELES (Admin, Super, Operador)
   ══════════════════════════════════════════════════════════════ */

/* ── TABS ───────────────────────────────────────────────────── */
.sc-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 20px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sc-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--sc-muted);
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all .18s;
  white-space: nowrap;
}
.sc-tab-btn:hover {
  background: rgba(245,158,11,0.08);
  color: var(--sc-text);
  border-color: rgba(245,158,11,0.2);
}
.sc-tab-btn.active {
  background: linear-gradient(135deg,#1C1500,#111);
  color: var(--sc-primary);
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}
.sc-tab-panel { display: none; }
.sc-tab-panel.active { display: block; }

/* ── Form Grid ───────────────────────────────────────────────── */
.sc-form-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .sc-form-grid { grid-template-columns: 1fr 1fr; } }
.sc-field--full { grid-column: 1 / -1; }

/* ── Tablas ──────────────────────────────────────────────────── */
.sc-table-wrap { overflow-x: auto; margin-top: 10px; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.sc-table th, .sc-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--sc-border); }
.sc-table th { color: var(--sc-muted); font-weight: 600; background: var(--sc-dark3); }
.sc-table tr:hover td { background: rgba(255,255,255,.03); }

/* ── Badges ──────────────────────────────────────────────────── */
.sc-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.73rem; font-weight: 600; }
.sc-badge--paid    { background: rgba(34,197,94,.2);  color: #86EFAC; }
.sc-badge--due     { background: rgba(239,68,68,.2);  color: #FCA5A5; }
.sc-badge--partial { background: rgba(245,158,11,.2); color: #FCD34D; }
.sc-badge--active  { background: rgba(34,197,94,.2);  color: #86EFAC; }
.sc-badge--paused  { background: rgba(156,163,175,.2);color: #9CA3AF; }

/* ── Stats cards ─────────────────────────────────────────────── */
.sc-stats-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sc-stat-card { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px 18px; flex: 1; min-width: 110px; text-align: center; }
.sc-stat-card__num   { font-size: 1.6rem; font-weight: 700; color: var(--sc-primary); }
.sc-stat-card__label { font-size: 0.74rem; color: var(--sc-muted); margin-top: 3px; }

/* ── Draw cards ──────────────────────────────────────────────── */
.sc-draw-card { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px; margin-bottom: 10px; }
.sc-draw-card__title { font-size: 0.95rem; font-weight: 700; color: var(--sc-primary); margin: 0 0 8px; }

.sc-draw-links { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px; margin-top: 14px; }
.sc-draw-links h4 { color: var(--sc-primary); margin: 0 0 10px; }
.sc-link-row { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; background: var(--sc-dark2); border-radius: 8px; padding: 7px 10px; }
.sc-link-row span { flex: 1; font-size: 0.75rem; word-break: break-all; color: var(--sc-muted); }
.sc-link-row label { font-size: 0.72rem; color: var(--sc-primary); min-width: 50px; }

/* ── Notificaciones ──────────────────────────────────────────── */
.sc-notif-bar { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 10px 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.sc-notif-item { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; cursor: pointer; }
.sc-notif-item:hover { background: rgba(245,158,11,.2); }

/* ── Balance ─────────────────────────────────────────────────── */
.sc-balance-badge { background: var(--sc-primary); color: #000; font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; text-align: center; margin-bottom: 14px; }

/* ── Operator ────────────────────────────────────────────────── */
.sc-op-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.sc-op-section { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px; margin-bottom: 14px; }
.sc-op-section h4 { color: var(--sc-primary); margin: 0 0 10px; }
.sc-op-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ── Búsqueda ────────────────────────────────────────────────── */
.sc-search-box, #sc-search-widget { background: var(--sc-dark3); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px; margin-bottom: 18px; }
.sc-search-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sc-search-row input { flex: 1; min-width: 150px; }

/* ── Filter ──────────────────────────────────────────────────── */
.sc-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sc-filter-row input { flex: 1; min-width: 130px; }

/* ── Admin header ────────────────────────────────────────────── */
.sc-admin-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 7px; }
.sc-admin-links { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── Divider ─────────────────────────────────────────────────── */
.sc-divider { border: none; border-top: 1px solid var(--sc-border); margin: 20px 0; }

/* ── Loading ─────────────────────────────────────────────────── */
.sc-loading { display: flex; align-items: center; justify-content: center; padding: 32px; color: var(--sc-muted); font-size: 0.88rem; }
.sc-spinner { width: 22px; height: 22px; border: 3px solid var(--sc-border); border-top-color: var(--sc-primary); border-radius: 50%; animation: sc-spin .7s linear infinite; margin-right: 9px; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-error { color: var(--sc-danger); padding: 14px; text-align: center; }

/* ── Grilla admin ────────────────────────────────────────────── */
.sc-grid--admin .sc-num--reserved:hover,
.sc-grid--admin .sc-num--paid:hover { transform: scale(1.1); cursor: pointer; }

/* ── Responsive final ────────────────────────────────────────── */
@media (max-width: 400px) {
  .sc-modal__box { padding: 18px 14px; }
  .sc-selection-bar { padding: 10px 10px; }
  #sc-grid-app { padding: 8px 6px; }
}

/* ══════════════════════════════════════════════════════════════
   ESTILOS v11 — Nuevos componentes
   ══════════════════════════════════════════════════════════════ */

/* ── Subtítulos ──────────────────────────────────────────────── */
.sc-subtitle-1 {
  font-size: 1rem;
  color: var(--sc-muted);
  margin: 2px 0 0;
  font-weight: 500;
}
.sc-subtitle-2 {
  font-size: 0.83rem;
  color: #6B7280;
  margin: 2px 0 4px;
}

/* ── Barra de vendedor (top bar) ─────────────────────────────── */
#sc-vendor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #111;
  border-bottom: 1px solid #2A2A2A;
  padding: 8px 16px;
  font-size: .85rem;
  color: #F3F4F6;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Panel de auth de vendedores ─────────────────────────────── */
#sc-vendor-auth-app {
  background: var(--sc-dark);
  color: var(--sc-text);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 24px 12px;
  box-sizing: border-box;
}

/* ── Buscador de usuarios (clientes) ─────────────────────────── */
#sc-user-search-app {
  background: var(--sc-dark);
  color: var(--sc-text);
  min-height: 60vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 12px;
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Sección de sorteo en resultados usuario ─────────────────── */
#us-results .draw-group {
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #1A1A1A;
}

/* ── Responsive vendor bar ───────────────────────────────────── */
@media (max-width: 480px) {
  #sc-vendor-bar {
    font-size: .78rem;
    padding: 6px 10px;
    gap: 8px;
  }
}

/* ── v12: Gate de login vendedor ─────────────────────────────── */
#sc-vendor-gate {
  background: var(--sc-dark, #0A0A0A);
  color: var(--sc-text, #F3F4F6);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 32px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Previsualización números ─────────────────────────────────── */
#draw-preview .sc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s, color .2s;
  cursor: default;
  user-select: none;
}

/* ── Tabla vendedores con scroll ─────────────────────────────── */
#sc-vendors-table .sc-table td { vertical-align: middle; }
#sc-vendors-table .sc-pin-hidden { font-family: monospace; letter-spacing: 2px; }

/* ── Panel mis ventas del vendedor ──────────────────────────── */
#sc-vendor-mysales .sc-table { font-size: .82rem; }

/* ── Ocultar con máxima prioridad (móvil incluido) ──────────── */
.sc-hidden {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   PAGE LOADER — pantalla completa al cargar
   ══════════════════════════════════════════════════════════════ */
#sc-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .4s ease;
}
#sc-page-loader.sc-fade-out {
  opacity: 0;
  pointer-events: none;
}
.sc-loader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #2A2A2A;
  border-top-color: #F59E0B;
  border-radius: 50%;
  animation: sc-spin .8s linear infinite;
}
.sc-loader-text {
  color: #9CA3AF;
  font-size: .95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════════
   OVERLAY "APARTANDO NÚMEROS"
   ══════════════════════════════════════════════════════════════ */
#sc-reserving-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
#sc-reserving-overlay.sc-visible {
  display: flex;
}
.sc-reserving-box {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 18px;
  padding: 36px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.sc-reserving-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #2A2A2A;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: sc-spin .7s linear infinite;
}
.sc-reserving-title {
  color: #F3F4F6;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.sc-reserving-sub {
  color: #9CA3AF;
  font-size: .85rem;
  margin: 0;
}

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

/* ══════════════════════════════════════════════════════════════
   AUTH PREMIUM DESIGN — v24
   Aplica solo a pantallas de login/registro/OTP
   NO toca la grilla ni el panel de vendedor
   ══════════════════════════════════════════════════════════════ */

/* ── Fondo oscuro con grid overlay (solo en app containers auth) ── */
#sc-register-app,
#sc-operator-app,
#sc-account-app {
  position: relative;
  overflow: hidden;
}

/* Grid pattern CSS puro — sin canvas, sin JS */
#sc-register-app::before,
#sc-operator-app::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}

/* Orbs difuminados — CSS puro, ligeros */
.sc-auth-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: sc-orb-float 9s ease-in-out infinite alternate;
}
.sc-auth-orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
  top: -140px; left: -120px;
  filter: blur(60px);
}
.sc-auth-orb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  filter: blur(60px);
  animation-delay: -4s;
}
.sc-auth-orb--3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  top: 42%; left: 55%;
  filter: blur(50px);
  animation-delay: -2s;
}
@keyframes sc-orb-float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(28px) scale(1.07); }
}

/* Scanline sutil */
.sc-auth-scanline {
  position: fixed;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.3), transparent);
  z-index: 1;
  pointer-events: none;
  animation: sc-scan 5s linear infinite;
  opacity: 0.5;
}
@keyframes sc-scan {
  from { top: -2px; }
  to   { top: 100vh; }
}

/* ── Auth cards mejoradas ── */
.sc-auth-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 28px auto;
  padding: 32px 26px;
  background: linear-gradient(160deg, #0E0E0E 0%, #080808 100%);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.06),
              0 24px 48px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Línea dorada superior */
.sc-auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
  border-radius: 1px;
}

/* ── Botón primario premium ── */
.sc-auth-card .sc-btn--primary,
.sc-auth-card .sc-btn--primary.sc-btn--full,
.sc-op-screen .sc-btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 60%, #B45309 100%);
  color: #0A0A0A;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35),
              inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.22s cubic-bezier(.16,1,.3,1), box-shadow 0.22s;
}
.sc-auth-card .sc-btn--primary::after,
.sc-op-screen .sc-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.sc-auth-card .sc-btn--primary:hover,
.sc-op-screen .sc-btn--primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 28px rgba(245,158,11,0.55),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.sc-auth-card .sc-btn--primary:hover::after,
.sc-op-screen .sc-btn--primary:hover::after { opacity: 1; }

/* ── Botón WhatsApp premium ── */
.sc-auth-card .sc-btn--wa,
.sc-op-screen .sc-btn--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
  transition: transform 0.22s, box-shadow 0.22s, filter 0.22s;
}
.sc-auth-card .sc-btn--wa:hover,
.sc-op-screen .sc-btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  filter: brightness(1.08);
}

/* ── Mensaje WhatsApp OTP ── */
.sc-wa-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(37,211,102,0.07);
  border: 1px solid rgba(37,211,102,0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: rgba(243,244,246,0.85);
  line-height: 1.5;
  animation: sc-fadeDown 0.4s ease both;
}
.sc-wa-notice__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.sc-wa-notice strong {
  color: #22C55E;
  font-weight: 700;
}

/* ── OTP input mejorado ── */
.sc-op-screen .sc-otp-input {
  border-radius: 14px;
  border: 2px solid rgba(245,158,11,0.25);
  background: rgba(10,10,10,0.8);
  letter-spacing: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-op-screen .sc-otp-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

/* ── Animación entrada pantallas auth ── */
.sc-op-screen {
  animation: sc-fadeDown 0.3s ease both;
}
@keyframes sc-fadeDown {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   LOADING OVERLAY PREMIUM — compartido por todos los paneles
   ══════════════════════════════════════════════════════════════ */
#sc-global-loader {
  position: fixed;
  inset: 0;
  z-index: 200001;
  background: #050A0E;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#sc-global-loader.sc-loader--active {
  opacity: 1;
  pointer-events: all;
}
/* Grid overlay dentro del loader */
#sc-global-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.sc-loader__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
/* 3 anillas giratorias */
.sc-loader__rings {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
}
.sc-loader__ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 3px solid transparent;
  transform: translate(-50%, -50%);
}
.sc-loader__ring--1 {
  width: 110px; height: 110px;
  border-top-color: #F59E0B;
  animation: sc-ring-spin 1.3s linear infinite;
}
.sc-loader__ring--2 {
  width: 82px; height: 82px;
  border-right-color: #22C55E;
  animation: sc-ring-spin 1.9s linear infinite reverse;
}
.sc-loader__ring--3 {
  width: 54px; height: 54px;
  border-bottom-color: #3B82F6;
  animation: sc-ring-spin 0.9s linear infinite;
}
@keyframes sc-ring-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.sc-loader__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  animation: sc-icon-pulse 1s ease-in-out infinite alternate;
}
@keyframes sc-icon-pulse {
  from { transform: translate(-50%,-50%) scale(0.88); }
  to   { transform: translate(-50%,-50%) scale(1.12); }
}
.sc-loader__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #F3F4F6;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.sc-loader__bar-wrap {
  width: 240px;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  margin: 0 auto 12px;
  overflow: hidden;
}
.sc-loader__bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, #F59E0B, #22C55E, #3B82F6);
  background-size: 200% 100%;
  animation: sc-bar-shimmer 1.5s linear infinite;
  transition: width 0.12s linear;
}
@keyframes sc-bar-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.sc-loader__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
  min-height: 18px;
  transition: opacity 0.2s ease;
}

/* ── Field hint — "sin indicativo de país" ── */
.sc-field-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: rgba(245,158,11,0.7);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Botón ojo contraseña en sc-auth-card ── */
.sc-auth-card .sc-pass-toggle,
.sc-op-screen .sc-pass-toggle {
  position: absolute;
  right: 10px;
  top: 34px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  padding: 4px 6px;
  color: #9CA3AF;
  transition: opacity 0.18s;
  z-index: 2;
}
.sc-auth-card .sc-pass-toggle:hover,
.sc-op-screen .sc-pass-toggle:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   SUPER ADMIN PREMIUM STYLING
   ══════════════════════════════════════════════════════════════ */

/* Contenedor de contenido del tab */
.sc-tab-panel {
  animation: sc-fadeDown 0.2s ease both;
}

/* Sección / card dentro del panel */
.sc-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sc-section h3 {
  font-size: 0.9rem;
  color: var(--sc-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sc-border);
}

/* Tabla mejorada */
.sc-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(245,158,11,0.04);
  border-bottom: 1px solid rgba(245,158,11,0.15);
}
.sc-table tr:hover td { background: rgba(245,158,11,0.03); }

/* Botones compactos en tablas */
.sc-table .sc-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Grid de stats del admin */
.sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.sc-stat-card {
  background: linear-gradient(145deg, rgba(245,158,11,0.05) 0%, transparent 100%);
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.sc-stat-card__val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sc-primary);
  display: block;
}
.sc-stat-card__label {
  font-size: 0.72rem;
  color: var(--sc-muted);
  margin-top: 3px;
}

/* Campo de hint (indicativo) */
.sc-field-hint {
  display: block;
  font-size: 0.73rem;
  color: var(--sc-muted);
  margin-top: 4px;
  padding: 3px 6px;
  background: rgba(245,158,11,0.05);
  border-radius: 5px;
}

/* Draw cards más premium */
.sc-draw-card {
  background: linear-gradient(160deg, #0E0E0E 0%, #080808 100%);
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.sc-draw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
}
.sc-draw-card:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 4px 20px rgba(245,158,11,0.08);
}

/* ══════════════════════════════════════════════════════════════
   TARJETA DE PERFIL — Ajustes usuario/operador
   ══════════════════════════════════════════════════════════════ */
.sc-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.sc-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
}
.sc-profile-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1C1500, #0A0A0A);
  border: 2px solid rgba(245,158,11,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: var(--sc-primary);
  flex-shrink: 0;
  text-transform: uppercase;
}
.sc-profile-card__info {
  flex: 1;
  min-width: 0;
}
.sc-profile-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: #F3F4F6;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-profile-card__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.sc-profile-card__icon {
  font-size: .85rem;
  flex-shrink: 0;
}
.sc-profile-card__row span:last-child {
  font-size: .82rem;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info notice (hint informativo, no alerta) */
.sc-info-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 10px;
  padding: 10px 13px;
  margin: 10px 0 14px;
  font-size: .8rem;
  color: #93C5FD;
  line-height: 1.4;
  animation: sc-fadeDown .3s ease both;
}
.sc-info-notice__icon { flex-shrink: 0; font-size: .9rem; }

/* Hint de envío WA antes del botón */
.sc-wa-send-hint {
  font-size: .78rem;
  color: #6B7280;
  text-align: center;
  margin: -6px 0 10px;
  line-height: 1.4;
}
.sc-wa-send-hint strong { color: #9CA3AF; }

/* ══════════════════════════════════════════════════════════════
   SUPER ADMIN — Contenedor más ancho
   ══════════════════════════════════════════════════════════════ */
#sc-super-app {
  max-width: 100% !important;
  width: 100% !important;
  padding: 16px !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #sc-super-app { padding: 20px 32px !important; }
}
@media (min-width: 1200px) {
  #sc-super-app { padding: 24px 48px !important; }
}

/* Forzar que la tabla del super admin use el ancho completo */
#sc-super-app .sc-table-wrap { overflow-x: auto; width: 100%; }
#sc-super-app .sc-table { min-width: 700px; }

/* Secciones del super admin */
#sc-super-app .sc-form-grid {
  max-width: 100%;
}
@media (min-width: 768px) {
  #sc-super-app .sc-form-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1200px) {
  #sc-super-app .sc-form-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR COMPARTIDO — Dropdown, campanita, badge activo
   ══════════════════════════════════════════════════════════════ */

/* Botón de menú dropdown (operador y usuario) */
.sc-topbar-menu-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #9CA3AF;
  font-size: .78rem;
  padding: 5px 10px;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s;
}
.sc-topbar-menu-btn:hover { background: rgba(255,255,255,.11); color: #F3F4F6; }

/* Dropdown genérico del topbar */
.sc-topbar-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #161616;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  min-width: 170px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.7);
  overflow: hidden;
  animation: sc-fadeDown .18s ease both;
}
.sc-topbar-dropdown__item {
  width: 100%;
  background: none;
  border: none;
  color: #F3F4F6;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  font-size: .85rem;
  display: flex; align-items: center; gap: 8px;
  transition: background .12s;
  border-bottom: 1px solid #1F2937;
}
.sc-topbar-dropdown__item:last-child { border-bottom: none; }
.sc-topbar-dropdown__item:hover { background: rgba(255,255,255,.05); }
.sc-topbar-dropdown__item--danger { color: #EF4444; }
.sc-topbar-dropdown__item--danger:hover { background: rgba(239,68,68,.08); }

/* Badge "Activo" del operador — igual que el usuario */
.sc-op-badge-active {
  font-size: .72rem;
  color: #22C55E;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: text-glow 2.5s ease-in-out infinite;
}
.sc-op-badge-active::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Topbar del operador — menos margen inferior */
.sc-op-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 10px;
  border-bottom: 1px solid #1A1A1A;
  margin-bottom: 10px;
}
.sc-op-topbar__left { display: flex; align-items: center; gap: 10px; }
.sc-op-topbar__name { color: #F3F4F6; font-size: .92rem; font-weight: 700; }
.sc-op-topbar__right { display: flex; align-items: center; gap: 7px; }

/* ── CAMPANITA DE NOTIFICACIONES ──────────────────────────── */
.sc-notif-bell-wrap {
  position: relative;
}
.sc-notif-bell-btn {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #D1D5DB;          /* más visible */
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sc-notif-bell-btn svg {
  display: block;
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
  flex-shrink: 0;
}
.sc-notif-bell-btn:hover {
  background: rgba(245,158,11,.1);
  color: #F59E0B;
  border-color: rgba(245,158,11,.3);
}
.sc-notif-bell-btn--admin {
  color: #F59E0B;
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.2);
}
.sc-notif-bell-dot {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  background: #EF4444;
  border-radius: 8px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid #0A0A0A;
  animation: sc-bell-bounce .4s ease;
}
.sc-notif-bell-dot--admin {
  background: #F59E0B;
  color: #111;
}
@keyframes sc-bell-bounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Dropdown de notificaciones */
.sc-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;            /* alinear al borde derecho del wrap */
  left: auto;          /* nunca irse a la izquierda */
  width: min(300px, calc(100vw - 24px));  /* no salir de pantalla en móvil */
  background: #111;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.8);
  z-index: 9999;       /* encima de todo */
  overflow: hidden;
  animation: sc-fadeDown .2s ease both;
  max-height: 60vh;
  overflow-y: auto;
  /* Evitar que se salga por la izquierda en pantallas pequeñas */
  transform-origin: top right;
}
/* En el topbar del operador puede quedar pegado a la derecha del viewport */
.sc-op-topbar .sc-notif-dropdown,
.sc-user-topbar .sc-notif-dropdown,
.sc-topbar .sc-notif-dropdown {
  position: fixed !important;
  top: 56px !important;   /* debajo del topbar */
  right: 10px !important;
  left: auto !important;
  transform: none !important;
  width: min(310px, calc(100vw - 20px)) !important;
  margin-top: 0;
}
.sc-notif-dropdown--admin { right: 0; width: 320px; }
.sc-notif-dd__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #1F2937;
  font-size: .85rem;
  font-weight: 700;
  color: #F3F4F6;
  position: sticky; top: 0;
  background: #111;
}
.sc-notif-dd__item {
  padding: 12px 14px;
  border-bottom: 1px solid #1A1A1A;
  cursor: pointer;
  transition: background .12s;
}
.sc-notif-dd__item:hover { background: rgba(255,255,255,.04); }
.sc-notif-dd__item--new { background: rgba(245,158,11,.04); }
.sc-notif-dd__item--new .sc-notif-dd__title { color: #F59E0B; }
.sc-notif-dd__title {
  font-size: .85rem;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 4px;
}
.sc-notif-dd__body {
  font-size: .78rem;
  color: #9CA3AF;
  line-height: 1.4;
  margin-bottom: 4px;
}
.sc-notif-dd__time {
  font-size: .72rem;
  color: #4B5563;
}
.sc-notif-dd__action-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  color: #F59E0B;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(245,158,11,.1);
  border-radius: 6px;
  transition: background .12s;
}
.sc-notif-dd__action-btn:hover { background: rgba(245,158,11,.2); }

/* ══════════════════════════════════════════════════════════════
   SUPER ADMIN HEADER PREMIUM
   ══════════════════════════════════════════════════════════════ */
.sc-super-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245,158,11,.12);
}
.sc-super-header__left {}
.sc-super-header__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #F3F4F6;
  letter-spacing: .5px;
}
.sc-super-header__sub {
  font-size: .72rem;
  color: #6B7280;
  margin-top: 2px;
}
.sc-super-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-super-diag-btn {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.2);
  color: #F59E0B;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.sc-super-diag-btn:hover { background: rgba(245,158,11,.18); }
.sc-super-api-link {
  color: #60A5FA;
  font-size: .75rem;
  text-decoration: none;
  border: 1px solid rgba(96,165,250,.2);
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(96,165,250,.05);
}
.sc-super-api-link:hover { background: rgba(96,165,250,.1); }

/* ══════════════════════════════════════════════════════════════
   TAB NOTIFICAR — Compose y lista
   ══════════════════════════════════════════════════════════════ */
.sc-notify-compose {
  background: linear-gradient(145deg, rgba(245,158,11,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(245,158,11,.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}
.sc-notify-compose::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.5), transparent);
}
.sc-notify-compose__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sc-notify-compose__icon { font-size: 1.1rem; }
.sc-notify-compose__title {
  font-size: .95rem;
  font-weight: 800;
  color: #F3F4F6;
  margin: 0;
}
.sc-notify-compose__toggle {
  margin: 10px 0;
}
.sc-notify-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sc-notify-list-header h3 {
  font-size: .9rem;
  color: #F3F4F6;
  margin: 0;
}

/* Tarjetas de notificaciones guardadas */
.sc-notif-card {
  background: #0E0E0E;
  border: 1px solid #1F2937;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.sc-notif-card:hover { border-color: rgba(245,158,11,.2); }
.sc-notif-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-notif-card__title {
  font-size: .9rem;
  font-weight: 700;
  color: #F3F4F6;
  flex: 1;
}
.sc-notif-card__badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.sc-notif-badge {
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}
.sc-notif-badge--users  { background: rgba(34,197,94,.1);   color: #22C55E; }
.sc-notif-badge--ops    { background: rgba(96,165,250,.1);  color: #60A5FA; }
.sc-notif-card__body {
  font-size: .82rem;
  color: #9CA3AF;
  line-height: 1.45;
  margin-bottom: 8px;
}
.sc-notif-card__btn-preview {
  font-size: .76rem;
  color: #F59E0B;
  background: rgba(245,158,11,.06);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.sc-notif-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-notif-card__result {
  font-size: .8rem;
  margin-top: 6px;
  min-height: 14px;
}

/* ══════════════════════════════════════════════════════════════
   SOLICITUDES DE RETIRO
   ══════════════════════════════════════════════════════════════ */
.sc-withdrawal-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 9px;
  padding: 6px 12px;
  color: #F59E0B;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  position: relative;
  white-space: nowrap;
}
.sc-withdrawal-btn:hover { background: rgba(245,158,11,.18); }

.sc-withdrawal-item {
  background: #0E0E0E;
  border: 1px solid #1F2937;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.sc-withdrawal-item:hover { border-color: rgba(245,158,11,.2); }
.sc-withdrawal-item__main { margin-bottom: 10px; }
.sc-withdrawal-item__title { font-size: .88rem; font-weight: 700; color: #F3F4F6; margin-bottom: 4px; }
.sc-withdrawal-item__body  { font-size: .82rem; color: #9CA3AF; line-height: 1.4; margin-bottom: 4px; }
.sc-withdrawal-item__time  { font-size: .72rem; color: #4B5563; }
.sc-withdrawal-item__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-withdrawal-item__msg { font-size: .78rem; margin-top: 6px; min-height: 14px; }

/* ══════════════════════════════════════════════════════════════
   BÚSQUEDA DE USUARIOS PARA NOTIFICACIÓN
   ══════════════════════════════════════════════════════════════ */
.sc-user-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #111;
  border: 1px solid #1F2937;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: border-color .15s;
}
.sc-user-search-item:hover { border-color: rgba(245,158,11,.25); }
.sc-user-search-item__name  { font-size: .84rem; font-weight: 700; color: #F3F4F6; }
.sc-user-search-item__phone { font-size: .75rem; color: #6B7280; margin-top: 2px; }

/* Estado vacío del dropdown de notificaciones */
.sc-notif-dd__empty {
  padding: 20px 14px;
  text-align: center;
  color: #6B7280;
  font-size: .82rem;
  line-height: 1.5;
}
.sc-notif-dd__empty::before {
  content: '🔕';
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════
   MÉTRICAS DE NOTIFICACIONES
   ══════════════════════════════════════════════════════════════ */
.sc-notif-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.02);
  border-radius: 8px;
  border: 1px solid #1A1A1A;
}
.sc-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .73rem;
  color: #6B7280;
  background: rgba(255,255,255,.04);
  border: 1px solid #222;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.sc-metric__ico { font-size: .8rem; }
.sc-metric--view  { color: #22C55E; border-color: rgba(34,197,94,.2);  background: rgba(34,197,94,.05);  }
.sc-metric--click { color: #60A5FA; border-color: rgba(96,165,250,.2); background: rgba(96,165,250,.05); }
.sc-metric--rate  { color: #F59E0B; border-color: rgba(245,158,11,.2); background: rgba(245,158,11,.05); }

/* ══════════════════════════════════════════════════════════════
   TABS DE FILTRO DE NOTIFICACIONES
   ══════════════════════════════════════════════════════════════ */
.sc-notif-filter-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid #222;
  border-radius: 8px;
  color: #9CA3AF;
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sc-notif-filter-btn:hover {
  background: rgba(255,255,255,.07);
  color: #F3F4F6;
}
.sc-notif-filter-btn--active {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.35);
  color: #F59E0B;
}

@keyframes sc-pulse {
  from { opacity: .5; }
  to   { opacity: 1; }
}
