body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* ════════════════════════════════════════════════
   REGISTRO.CSS
   ════════════════════════════════════════════════ */

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

/* ─── CONTENEDOR PRINCIPAL ────────────────────── */
.registro-container {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── FONDO ANIMADO ───────────────────────────── */
.registro-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.registro-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(249, 115, 22, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(194, 86, 10, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(8, 5, 2, 0.6) 0%, transparent 100%);
  animation: bgPulseReg 8s ease-in-out infinite alternate;
}

@keyframes bgPulseReg {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ─── CONTENIDO CENTRAL ───────────────────────── */
.registro-content {
  position: relative;
  z-index: 1;
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  padding-top: 3rem;
}

/* ─── GRID DOS COLUMNAS ───────────────────────── */
.registro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  width: 100%;
  max-width: 960px;
  align-items: start;
}

/* ═══════════════════════════════════════════════
   COLUMNA IZQUIERDA — WELCOME
   ═══════════════════════════════════════════════ */
.registro-welcome {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: sticky;
  top: 3rem;
}

/* ─── BRAND ───────────────────────────────────── */
.registro-brand { position: relative; }

.registro-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulseReg 3s ease-in-out infinite;
}

@keyframes glowPulseReg {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.registro-brand-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.registro-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--orange-glow));
}

.registro-brand-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-orange);
}

.registro-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.registro-brand-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #fdb97d 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registro-brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ─── PLATAFORMAS ─────────────────────────────── */
.registro-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.registro-platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.registro-platform-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.registro-platform-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}

.registro-platform-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ─── FEATURES ────────────────────────────────── */
.registro-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.registro-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition);
}

.registro-feature:hover {
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.2);
}

.registro-feature-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.registro-feature-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════
   COLUMNA DERECHA — CARD REGISTRO
   ═══════════════════════════════════════════════ */
.registro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-orange-lg);
  position: relative;
  overflow: hidden;
}

.registro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.9;
}

/* ─── MOBILE HEADER ───────────────────────────── */
.registro-mobile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.registro-mobile-logo {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.registro-mobile-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--orange), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ringRotateReg 4s linear infinite;
}

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

.registro-mobile-logo-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.registro-mobile-logo-fallback { font-size: 2rem; position: relative; z-index: 1; }

.registro-mobile-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #fdb97d 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registro-mobile-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── CARD HEADER ─────────────────────────────── */
.registro-card-header { margin-bottom: 1.5rem; }

.registro-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.registro-card-description { font-size: 0.85rem; color: var(--text-muted); }

/* ─── FORMULARIO ──────────────────────────────── */
.registro-form { display: flex; flex-direction: column; gap: 1rem; }

/* ─── CAMPO ───────────────────────────────────── */
.registro-field { display: flex; flex-direction: column; gap: 0.4rem; }

.registro-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.registro-field-icon { font-size: 0.85rem; line-height: 1; }

.registro-field-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.registro-field-input::placeholder { color: var(--text-faint); }

.registro-field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
  background: rgba(11, 11, 11, 0.95);
}

.registro-field-input:disabled { opacity: 0.45; cursor: not-allowed; }

.registro-field-input-error {
  border-color: var(--border-error) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08) !important;
}

/* ─── HINT / AYUDA ────────────────────────────── */
.registro-field-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  line-height: 1.4;
  padding-left: 0.1rem;
}

/* ─── CAMPO CONTRASEÑA ────────────────────────── */
.registro-field-password { position: relative; display: flex; align-items: center; }
.registro-field-password .registro-field-input { padding-right: 2.8rem; }

.registro-field-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.registro-field-toggle:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════
   SELECTOR DE TELÉFONO + PAÍS
   ═══════════════════════════════════════════════ */
.registro-field-phone { display: flex; gap: 0.5rem; align-items: stretch; }
.registro-phone-selector { position: relative; flex-shrink: 0; }

.registro-phone-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  min-height: 42px;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.registro-phone-toggle:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(11, 11, 11, 0.95);
}

.registro-phone-toggle:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
}

.registro-phone-toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.registro-phone-flag { font-size: 1.1rem; line-height: 1; }

.registro-phone-code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.registro-phone-arrow { font-size: 0.6rem; color: var(--text-faint); margin-left: 0.1rem; }

/* ─── DROPDOWN PAÍSES ─────────────────────────── */
.registro-phone-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(0,0,0,0.4);
  min-width: 200px;
  overflow: hidden;
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.registro-phone-dropdown-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.3) transparent;
}

.registro-phone-dropdown-scroll::-webkit-scrollbar { width: 4px; }
.registro-phone-dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
}

.registro-phone-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: background var(--transition);
}

.registro-phone-option:hover { background: rgba(255, 255, 255, 0.05); }
.registro-phone-option-selected { background: var(--orange-soft) !important; }
.registro-phone-option-flag { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }

.registro-phone-option-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 36px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.registro-phone-option-name { font-size: 0.82rem; color: var(--text-muted); flex: 1 1; }
.registro-phone-input { flex: 1 1; min-width: 0; }

/* ═══════════════════════════════════════════════
   CHECKBOX — TÉRMINOS
   ═══════════════════════════════════════════════ */
.registro-checkbox { margin-top: 0.25rem; }

.registro-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.registro-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.registro-checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.registro-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity var(--transition);
}

.registro-checkbox-input:checked + .registro-checkbox-custom {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.40);
}

.registro-checkbox-input:checked + .registro-checkbox-custom::after { opacity: 1; }

.registro-checkbox-label:hover .registro-checkbox-custom {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.06);
}

.registro-checkbox-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.registro-checkbox-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition);
}

.registro-checkbox-link:hover { color: #fdba74; }

/* ─── ALERTAS ─────────────────────────────────── */
.registro-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: alertInReg 0.25s ease-out;
}

@keyframes alertInReg {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.registro-alert-error {
  background: var(--error-soft);
  border-color: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

.registro-alert-success {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.registro-alert-icon { font-size: 0.9rem; flex-shrink: 0; line-height: 1.5; }
.registro-alert-message { flex: 1 1; }

/* ─── BOTÓN SUBMIT ────────────────────────────── */
.registro-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-orange), 0 2px 8px rgba(0,0,0,0.35);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    opacity var(--transition);
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}

.registro-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.registro-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #fb923c 0%, var(--orange) 100%);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.40), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.registro-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-orange);
}

.registro-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.registro-submit-loading { pointer-events: none; opacity: 0.8; }
.registro-submit-icon { font-size: 1rem; line-height: 1; }

/* ─── SPINNER ─────────────────────────────────── */
.registro-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinReg 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* ─── DIVISOR ─────────────────────────────────── */
.registro-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.registro-divider-line { flex: 1 1; height: 1px; background: var(--border-subtle); }
.registro-divider-text { font-size: 0.75rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0.05em; }

/* ─── FOOTER DE LA CARD ───────────────────────── */
.registro-card-footer { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }

.registro-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: var(--radius-md);
  color: #fdba74;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.65rem 1.25rem;
  width: 100%;
  justify-content: center;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.registro-back:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fed7aa;
  transform: translateY(-1px);
}

.registro-back:active { transform: translateY(0); }
.registro-back:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.registro-back-icon { font-size: 1rem; line-height: 1; }

/* ─── PLATAFORMAS MOBILE ──────────────────────── */
.registro-mobile-platforms {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.registro-mobile-platforms-title {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.registro-mobile-platforms-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.registro-mobile-platforms-grid img {
  height: 20px;
  width: auto;
  filter: none;
  opacity: 1;
  object-fit: contain;
  transition: opacity var(--transition);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.registro-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.registro-footer-sub { font-size: 0.7rem; opacity: 0.6; }

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
.registro-container ::-webkit-scrollbar { width: 6px; }
.registro-container ::-webkit-scrollbar-track { background: var(--bg-base); }
.registro-container ::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-full);
}
.registro-container ::-webkit-scrollbar-thumb:hover { background: rgba(249, 115, 22, 0.45); }

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .registro-grid { grid-template-columns: 1fr; max-width: 500px; gap: 0; }
  .registro-welcome { display: none; position: static; }
  .registro-content { padding: 1.5rem 1rem; padding-top: 2rem; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 600px)
   ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .registro-content { padding: 1rem 0.875rem; padding-bottom: 3rem; align-items: flex-start; }
  .registro-grid { max-width: 100%; }
  .registro-card {
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md), 0 0 24px rgba(249, 115, 22, 0.08);
  }
  .registro-mobile-header { display: flex; }
  .registro-card-header { display: none; }
  .registro-mobile-platforms { display: flex; }
  .registro-field-input { font-size: 16px; padding: 0.8rem 0.875rem; }
  .registro-field-password .registro-field-input { padding-right: 3rem; }
  .registro-phone-toggle { padding: 0.8rem 0.65rem; font-size: 0.82rem; }
  .registro-phone-option-name { display: none; }
  .registro-phone-dropdown { min-width: 160px; }
  .registro-submit { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .registro-back { font-size: 0.82rem; }
  .registro-form { gap: 0.875rem; }
  .registro-checkbox-text { font-size: 0.78rem; }
  .registro-footer { padding-bottom: 2.5rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO (max 375px)
   ═══════════════════════════════════════════════ */
@media (max-width: 375px) {
  .registro-card { padding: 1rem; border-radius: var(--radius-lg); }
  .registro-mobile-title { font-size: 1.2rem; }
  .registro-form { gap: 0.75rem; }
  .registro-submit { padding: 0.75rem 1rem; }
  .registro-field-phone { gap: 0.35rem; }
  .registro-phone-code { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════
   DESKTOP GRANDE (min 1280px)
   ═══════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .registro-grid { max-width: 1060px; gap: 4rem; }
  .registro-card { padding: 2.5rem; }
}

/* ═══════════════════════════════════════════════
   PROTECCIÓN DE IMÁGENES
   ═══════════════════════════════════════════════ */
.registro-container img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.registro-container a {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
          user-select: none;
}
/* ════════════════════════════════════════════════
   LOGIN.CSS 

════════════════════════════════════════════════ */

:root {
  --orange:         #f97316;
  --orange-hover:   #ea6a0a;
  --orange-active:  #c2560a;
  --orange-glow:    rgba(249, 115, 22, 0.35);
  --orange-soft:    rgba(249, 115, 22, 0.10);

  --bg-base:        #080808;
  --bg-surface:     #0f0f0f;
  --bg-card:        #141414;
  --bg-card-hover:  #1a1a1a;
  --bg-input:       #0b0b0b;
  --bg-overlay:     rgba(8, 8, 8, 0.88);

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-focus:   rgba(249, 115, 22, 0.55);
  --border-error:   rgba(249, 115, 22, 0.75);

  --text-primary:   #f0f0f0;
  --text-muted:     #888888;
  --text-faint:     #444444;
  --text-inverse:   #080808;

  --success:        #22c55e;
  --success-soft:   rgba(34, 197, 94, 0.10);
  --error-soft:     rgba(249, 115, 22, 0.10);
  --warning-soft:   rgba(251, 191, 36, 0.10);

  --radius-sm:      0.375rem;
  --radius-md:      0.625rem;
  --radius-lg:      0.875rem;
  --radius-xl:      1.25rem;
  --radius-2xl:     1.75rem;
  --radius-full:    9999px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.7);
  --shadow-orange:     0 0 24px rgba(249, 115, 22, 0.22);
  --shadow-orange-lg:  0 0 48px rgba(249, 115, 22, 0.14);

  --transition:      180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

/* ─── CONTENEDOR PRINCIPAL ────────────────────── */
.login-container {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #080808;
  background-color: var(--bg-base);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  color: #f0f0f0;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── FONDO ANIMADO ───────────────────────────── */
.login-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(249, 115, 22, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(194, 86, 10, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(8, 5, 2, 0.6) 0%, transparent 100%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ─── CONTENIDO CENTRAL ───────────────────────── */
.login-content {
  position: relative;
  z-index: 1;
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  padding-top: 3rem;
}

/* ─── GRID DOS COLUMNAS ───────────────────────── */
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  width: 100%;
  max-width: 960px;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   COLUMNA IZQUIERDA — WELCOME
   ═══════════════════════════════════════════════ */
.login-welcome {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* ─── BRAND ───────────────────────────────────── */
.login-brand {
  position: relative;
}

.login-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, transparent 70%);
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.login-brand-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.35));
  filter: drop-shadow(0 0 12px var(--orange-glow));
}

.login-brand-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f97316, #ea6a0a);
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.22);
  box-shadow: var(--shadow-orange);
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.login-brand-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #f0f0f0;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #fdb97d 60%, #f97316 100%);
  background: linear-gradient(135deg, #fff 0%, #fdb97d 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-brand-subtitle {
  font-size: 0.8rem;
  color: #888888;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ─── PLATAFORMAS ─────────────────────────────── */
.login-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.login-platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.login-platform-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.login-platform-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition), transform var(--transition);
}

.login-platform-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ─── FEATURES ────────────────────────────────── */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition);
}

.login-feature:hover {
  background: rgba(249, 115, 22, 0.10);
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.2);
}

.login-feature-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.login-feature-text {
  font-size: 0.85rem;
  color: #888888;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   COLUMNA DERECHA — CARD LOGIN
   ═══════════════════════════════════════════════ */
.login-card {
  background: #141414;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 48px rgba(249, 115, 22, 0.14);
  box-shadow: var(--shadow-lg), var(--shadow-orange-lg);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.9;
}

/* ─── MOBILE HEADER ───────────────────────────── */
.login-mobile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--border-subtle);
}

.login-mobile-logo {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-mobile-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #f97316, transparent) border-box;
  background: linear-gradient(135deg, var(--orange), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
}

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

.login-mobile-logo-image {
  width: 56px;
  height: 56px;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.login-mobile-logo-fallback {
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.login-mobile-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #fdb97d 50%, #f97316 100%);
  background: linear-gradient(135deg, #fff 0%, #fdb97d 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-mobile-subtitle {
  font-size: 0.78rem;
  color: #888888;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── CARD HEADER ─────────────────────────────── */
.login-card-header { margin-bottom: 1.5rem; }

.login-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f0f0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.login-card-description {
  font-size: 0.85rem;
  color: #888888;
  color: var(--text-muted);
}

/* ─── FORMULARIO ──────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── CAMPO ───────────────────────────────────── */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888888;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-field-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.login-field-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #0b0b0b;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  outline: none;
  transition:
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.login-field-input::placeholder { color: #444444; color: var(--text-faint); }

.login-field-input:focus {
  border-color: rgba(249, 115, 22, 0.55);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
  background: rgba(11, 11, 11, 0.95);
}

.login-field-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.login-field-input-error {
  border-color: rgba(249, 115, 22, 0.75) !important;
  border-color: var(--border-error) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08) !important;
}

/* ─── CAMPO CONTRASEÑA ────────────────────────── */
.login-field-password {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field-password .login-field-input { padding-right: 2.8rem; }

.login-field-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888888;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-field-toggle:hover { color: #f0f0f0; color: var(--text-primary); }

/* ─── OLVIDASTE CONTRASEÑA ────────────────────── */
.login-forgot {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: #f97316;
  color: var(--orange);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  padding: 0;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: color var(--transition), opacity var(--transition);
  margin-top: -0.25rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
}

.login-forgot:hover {
  color: #fdba74;
  text-decoration-color: currentColor;
}

/* ─── ALERTAS ─────────────────────────────────── */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: alertIn 0.25s ease-out;
}

@keyframes alertIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-alert-error {
  background: rgba(249, 115, 22, 0.10);
  background: var(--error-soft);
  border-color: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

.login-alert-success {
  background: rgba(34, 197, 94, 0.10);
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.login-alert-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.login-alert-message { flex: 1 1; }

/* ─── BLOQUEADO ───────────────────────────────── */
.login-blocked {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  animation: alertIn 0.25s ease-out;
}

.login-blocked-icon { font-size: 1.25rem; flex-shrink: 0; }

.login-blocked-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fdba74;
  margin-bottom: 0.15rem;
}

.login-blocked-timer {
  font-size: 0.78rem;
  color: #888888;
  color: var(--text-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ─── BOTÓN SUBMIT ────────────────────────────── */
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #f97316 0%, #ea6a0a 100%);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.22), 0 2px 8px rgba(0,0,0,0.35);
  box-shadow: var(--shadow-orange), 0 2px 8px rgba(0,0,0,0.35);
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    opacity var(--transition);
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}

.login-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  background: linear-gradient(135deg, #fb923c 0%, var(--orange) 100%);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.40), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.22);
  box-shadow: var(--shadow-orange);
}

.login-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.login-submit-loading { pointer-events: none; opacity: 0.8; }

.login-submit-blocked {
  background: linear-gradient(135deg, #555, #333) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.login-submit-icon { font-size: 1rem; line-height: 1; }

/* ─── SPINNER ─────────────────────────────────── */
.login-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* ─── DIVISOR ─────────────────────────────────── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.login-divider-line { flex: 1 1; height: 1px; background: rgba(255, 255, 255, 0.06); background: var(--border-subtle); }

.login-divider-text {
  font-size: 0.75rem;
  color: #444444;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ─── FOOTER DE LA CARD ───────────────────────── */
.login-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.login-register {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fdba74;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.65rem 1.25rem;
  width: 100%;
  justify-content: center;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.login-register:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fed7aa;
  transform: translateY(-1px);
}

.login-register:active { transform: translateY(0); }
.login-register-icon { font-size: 0.9rem; line-height: 1; }

.login-attempts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #444444;
  color: var(--text-faint);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.login-attempts-icon { font-size: 0.75rem; line-height: 1; }

/* ─── PLATAFORMAS MOBILE ──────────────────────── */
.login-mobile-platforms {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid var(--border-subtle);
}

.login-mobile-platforms-title {
  font-size: 0.72rem;
  color: #444444;
  color: var(--text-faint);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-mobile-platforms-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-mobile-platforms-grid img {
  height: 20px;
  width: auto;
  filter: none;
  opacity: 1;
  object-fit: contain;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition);
}

/* ═══════════════════════════════════════════════
   BOTONES SOPORTE FLOTANTES
   ═══════════════════════════════════════════════ */
.login-mobile-support {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.login-mobile-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-md);
}

.login-mobile-support-btn:hover {
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.1);
}

.login-mobile-support-btn:active { transform: scale(0.97); }

.login-mobile-support-whatsapp {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.login-mobile-support-telegram {
  background: #2aabee;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.35);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.login-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
  color: #444444;
  color: var(--text-faint);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.login-footer-sub { font-size: 0.7rem; opacity: 0.6; }

/* ═══════════════════════════════════════════════
   MODAL — RECUPERAR CONTRASEÑA
   ═══════════════════════════════════════════════ */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: overlayIn 0.2s ease-out;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-modal {
  background: #141414;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 48px rgba(249, 115, 22, 0.14);
  box-shadow: var(--shadow-lg), var(--shadow-orange-lg);
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.login-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.login-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f0f0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #888888;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
}

.login-modal-close:hover {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fdba74;
}

.login-modal-content { padding: 1.25rem 1.5rem 1.75rem; }

.login-modal-description {
  font-size: 0.85rem;
  color: #888888;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.login-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080808; background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.25);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(249, 115, 22, 0.45); }

/* ═══════════════════════════════════════════════
   FOCUS ACCESIBLE
   ═══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid #f97316;
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .login-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 0;
  }
  .login-welcome { display: none; }
  .login-content {
    padding: 1.5rem 1rem;
    padding-top: 2rem;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 600px)
   ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .login-content {
    padding: 1rem 0.875rem;
    padding-bottom: 6rem;
    align-items: flex-start;
  }
  .login-grid { max-width: 100%; }
  .login-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 24px rgba(249, 115, 22, 0.08);
    box-shadow: var(--shadow-md), 0 0 24px rgba(249, 115, 22, 0.08);
  }
  .login-mobile-header { display: flex; }
  .login-mobile-platforms { display: flex; }
  .login-card-header { display: none; }
  .login-field-input { font-size: 16px; padding: 0.8rem 0.875rem; }
  .login-field-password .login-field-input { padding-right: 3rem; }
  .login-submit { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .login-register { font-size: 0.82rem; }
  .login-footer { padding-bottom: 5.5rem; }
  .login-modal { border-radius: 1.25rem; border-radius: var(--radius-xl); }
  .login-modal-header { padding: 1rem 1.25rem 0; }
  .login-modal-content { padding: 1rem 1.25rem 1.5rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO (max 375px)
   ═══════════════════════════════════════════════ */
@media (max-width: 375px) {
  .login-card { padding: 1rem; border-radius: 0.875rem; border-radius: var(--radius-lg); }
  .login-mobile-title { font-size: 1.2rem; }
  .login-form { gap: 0.875rem; }
  .login-submit { padding: 0.75rem 1rem; }
  .login-mobile-support { bottom: 1rem; right: 0.875rem; }
  .login-mobile-support-btn { width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════════
   DESKTOP GRANDE (min 1280px)
   ═══════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .login-grid { max-width: 1060px; gap: 4rem; }
  .login-card { padding: 2.5rem; }
}

/* ═══════════════════════════════════════════════
   PROTECCIÓN DE IMÁGENES
   ═══════════════════════════════════════════════ */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

a {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
          user-select: none;
}
/* ════════════════════════════════════════════
   Disney+ — componente interno del dashboard
   Paleta: dark navy / indigo / cyan
   ════════════════════════════════════════════ */

.dpx {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin-inline: auto; /* ✅ centrado en desktop */
}

/* ── Chips de correos ───────────────────── */
.dpx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dpx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(99 120 180 / 0.07);
  border: 1px solid rgba(99 120 180 / 0.14);
  color: #8896b3;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms, color 150ms;
  min-height: 34px;
}
.dpx-chip:hover {
  background: rgba(91 127 255 / 0.1);
  border-color: rgba(91 127 255 / 0.3);
  color: #93a8ff;
}
.dpx-chip--active {
  background: rgba(91 127 255 / 0.14);
  border-color: rgba(91 127 255 / 0.4);
  color: #93a8ff;
}

.dpx-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Campo ──────────────────────────────── */
.dpx-field { display: flex; flex-direction: column; gap: 6px; }

.dpx-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d4f6e;
}

.dpx-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 46px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.dpx-input-wrap:focus-within {
  border-color: rgba(91 127 255 / 0.5);
  background: #1a2235;
  box-shadow: 0 0 0 3px rgba(91 127 255 / 0.1);
}
.dpx-input-wrap--err {
  border-color: rgba(248 113 113 / 0.4) !important;
  box-shadow: 0 0 0 3px rgba(248 113 113 / 0.07) !important;
}
.dpx-input-wrap--filled:not(.dpx-input-wrap--err):not(:focus-within) {
  border-color: rgba(91 127 255 / 0.22);
}

.dpx-input-icon { font-size: 14px; flex-shrink: 0; }

.dpx-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8ecf4;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 0;
}
.dpx-input::placeholder { color: #2a3650; }
.dpx-input:disabled { opacity: 0.45; cursor: not-allowed; }

.dpx-input-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 10px;
  color: #3d4f6e;
  background: rgba(99 120 180 / 0.12);
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}
.dpx-input-clear:hover { background: rgba(248 113 113 / 0.15); color: #f87171; }

/* ── Alerta error ───────────────────────── */
.dpx-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(248 113 113 / 0.08);
  border: 1px solid rgba(248 113 113 / 0.2);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  animation: dpx-slide-in 160ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes dpx-slide-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Botón principal ────────────────────── */
.dpx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #5b7fff 0%, #818cf8 100%);
  border: 1px solid rgba(91 127 255 / 0.3);
  box-shadow: 0 1px 0 rgba(255 255 255 / 0.1) inset, 0 0 20px rgba(91 127 255 / 0.18);
  cursor: pointer;
  transition: opacity 150ms ease, transform 120ms, box-shadow 150ms;
}
.dpx-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(91 127 255 / 0.28);
}
.dpx-btn:active:not(:disabled) { transform: translateY(0); }
.dpx-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.dpx-btn--loading {
  background: #1a2235 !important;
  color: #8896b3 !important;
  border-color: rgba(99 120 180 / 0.12) !important;
  box-shadow: none !important;
}

.dpx-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(136 150 179 / 0.25);
  border-top-color: #8896b3;
  border-radius: 50%;
  animation: dpx-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes dpx-spin { to { transform: rotate(360deg); } }

/* ── Resultado ──────────────────────────── */
.dpx-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #0c1120;
  border: 1px solid rgba(91 127 255 / 0.16);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.4);
  animation: dpx-result-in 220ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.dpx-result::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg, transparent,
    rgba(91 127 255 / 0.5),
    rgba(56 189 248 / 0.3),
    transparent
  );
}
@keyframes dpx-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dpx-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dpx-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3d4f6e;
}

/* ── Código ─────────────────────────────── */
.dpx-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
}
.dpx-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e8ecf4;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.dpx-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(91 127 255 / 0.12);
  border: 1px solid rgba(91 127 255 / 0.22);
  color: #93a8ff;
  min-height: 34px;
  transition: background 140ms, border-color 140ms;
}
.dpx-copy-btn:hover { background: rgba(91 127 255 / 0.2); border-color: rgba(91 127 255 / 0.4); }
.dpx-copy-btn--done {
  background: rgba(52 211 153 / 0.12) !important;
  border-color: rgba(52 211 153 / 0.25) !important;
  color: #6ee7b7 !important;
}

/* ── Meta ───────────────────────────────── */
.dpx-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dpx-meta-item {
  font-size: 12px;
  color: #3d4f6e;
  background: rgba(99 120 180 / 0.06);
  border: 1px solid rgba(99 120 180 / 0.1);
  border-radius: 9999px;
  padding: 4px 10px;
}

/* ── Badge validez ──────────────────────── */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}
.vbadge--valid    { background: rgba(52 211 153 / 0.1);  border: 1px solid rgba(52 211 153 / 0.2);  color: #6ee7b7; }
.vbadge--expiring { background: rgba(251 191 36 / 0.1);  border: 1px solid rgba(251 191 36 / 0.2);  color: #fcd34d; }
.vbadge--expired  { background: rgba(248 113 113 / 0.1); border: 1px solid rgba(248 113 113 / 0.2); color: #fca5a5; }
.vbadge--unknown  { background: rgba(99 120 180 / 0.08); border: 1px solid rgba(99 120 180 / 0.14); color: #3d4f6e; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 480px) {
  .dpx-code     { font-size: 18px; }
  .dpx-code-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dpx-copy-btn { width: 100%; justify-content: center; }
}
/* ════════════════════════════════════════════
   Netflix — componente dashboard
   Paleta: dark navy / indigo / cyan
   ════════════════════════════════════════════ */

.nfx {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

/* ── Chips ──────────────────────────────── */
.nfx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.nfx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(99 120 180 / 0.07);
  border: 1px solid rgba(99 120 180 / 0.14);
  color: #8896b3;
  cursor: pointer;
  min-height: 34px;
  transition: background 150ms ease, border-color 150ms, color 150ms;
}
.nfx-chip:hover   { background: rgba(91 127 255 / 0.1);  border-color: rgba(91 127 255 / 0.3);  color: #93a8ff; }
.nfx-chip--active { background: rgba(91 127 255 / 0.14); border-color: rgba(91 127 255 / 0.4);  color: #93a8ff; }
.nfx-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Campo ──────────────────────────────── */
.nfx-field { display: flex; flex-direction: column; gap: 6px; }

.nfx-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d4f6e;
}

/* ── Selector tipo ──────────────────────── */
.nfx-select {
  position: relative;
  /* ✅ CRÍTICO: permite que el dropdown salga del contenedor */
  overflow: visible;
}

.nfx-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  min-height: 54px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #e8ecf4;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.nfx-select-btn:hover,
.nfx-select-btn--open {
  border-color: rgba(91 127 255 / 0.4);
  background: #1a2235;
}
.nfx-select-btn--open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(91 127 255 / 0.08);
}

.nfx-select-icon  { font-size: 18px; flex-shrink: 0; }
.nfx-select-label { flex: 1 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nfx-select-title { font-size: 13.5px; font-weight: 700; color: #e8ecf4; }
.nfx-select-desc  { font-size: 11px; color: #3d4f6e; }

.nfx-arrow {
  font-size: 9px;
  color: #3d4f6e;
  transition: transform 160ms ease;
  flex-shrink: 0;
}
.nfx-arrow--up { transform: rotate(180deg); }

/* ✅ DROPDOWN — z-index alto + max-height con scroll */
.nfx-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111827;
  border: 1px solid rgba(91 127 255 / 0.3);
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  overflow-y: auto;
  max-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91 127 255 / 0.2) transparent;
  animation: nfx-drop 140ms cubic-bezier(0.16,1,0.3,1);
  box-shadow:
    0 16px 40px rgba(0 0 0 / 0.65),
    0 0 0 1px rgba(91 127 255 / 0.06);
}

@keyframes nfx-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nfx-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  color: #8896b3;
  font-size: 13px;
  min-height: 50px;
  border-bottom: 1px solid rgba(99 120 180 / 0.06);
  transition: background 120ms, color 120ms;
}
.nfx-option:last-child   { border-bottom: none; }
.nfx-option:hover        { background: rgba(91 127 255 / 0.07); color: #e8ecf4; }
.nfx-option--active      { background: rgba(91 127 255 / 0.12); color: #93a8ff; }

.nfx-option-icon  { font-size: 16px; flex-shrink: 0; }
.nfx-option-info  { flex: 1 1; display: flex; flex-direction: column; gap: 2px; }
.nfx-option-title { font-size: 13px; font-weight: 600; }
.nfx-option-desc  { font-size: 11px; color: #3d4f6e; }
.nfx-option-check { font-size: 13px; font-weight: 700; color: #5b7fff; flex-shrink: 0; }

/* ── Input correo ───────────────────────── */
.nfx-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 46px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.nfx-input-wrap:focus-within {
  border-color: rgba(91 127 255 / 0.5);
  background: #1a2235;
  box-shadow: 0 0 0 3px rgba(91 127 255 / 0.1);
}
.nfx-input-wrap--err {
  border-color: rgba(248 113 113 / 0.4) !important;
  box-shadow: 0 0 0 3px rgba(248 113 113 / 0.07) !important;
}
.nfx-input-wrap--filled:not(.nfx-input-wrap--err):not(:focus-within) {
  border-color: rgba(91 127 255 / 0.22);
}

.nfx-input-icon { font-size: 14px; flex-shrink: 0; }

.nfx-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8ecf4;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 0;
}
.nfx-input::placeholder { color: #2a3650; }
.nfx-input:disabled     { opacity: 0.45; cursor: not-allowed; }

.nfx-input-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 10px;
  color: #3d4f6e;
  background: rgba(99 120 180 / 0.12);
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}
.nfx-input-clear:hover { background: rgba(248 113 113 / 0.15); color: #f87171; }

/* ── Alerta ─────────────────────────────── */
.nfx-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(248 113 113 / 0.08);
  border: 1px solid rgba(248 113 113 / 0.2);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  animation: nfx-in 160ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes nfx-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Botón principal ────────────────────── */
.nfx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #5b7fff 0%, #818cf8 100%);
  border: 1px solid rgba(91 127 255 / 0.3);
  box-shadow: 0 1px 0 rgba(255 255 255 / 0.1) inset, 0 0 20px rgba(91 127 255 / 0.18);
  cursor: pointer;
  transition: opacity 150ms ease, transform 120ms, box-shadow 150ms;
}
.nfx-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(91 127 255 / 0.28);
}
.nfx-btn:active:not(:disabled) { transform: translateY(0); }
.nfx-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.nfx-btn--loading {
  background: #1a2235 !important;
  color: #8896b3 !important;
  border-color: rgba(99 120 180 / 0.12) !important;
  box-shadow: none !important;
}

.nfx-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(136 150 179 / 0.25);
  border-top-color: #8896b3;
  border-radius: 50%;
  animation: nfx-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes nfx-spin { to { transform: rotate(360deg); } }

/* ── Resultado (base) ───────────────────── */
.nfx-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #0c1120;
  border: 1px solid rgba(91 127 255 / 0.16);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.4);
  animation: nfx-result-in 220ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.nfx-result::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg, transparent,
    rgba(91 127 255 / 0.5),
    rgba(56 189 248 / 0.3),
    transparent
  );
}
@keyframes nfx-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nfx-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.nfx-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3d4f6e;
}

/* ── Código ─────────────────────────────── */
.nfx-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
}
.nfx-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e8ecf4;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ── Link ───────────────────────────────── */
.nfx-link-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111827;
  border: 1px solid rgba(99 120 180 / 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.nfx-link-icon { font-size: 14px; flex-shrink: 0; }
.nfx-link-text {
  font-size: 12px;
  color: #8896b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

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

.nfx-btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(56 189 248 / 0.1);
  border: 1px solid rgba(56 189 248 / 0.22);
  color: #7dd3fc;
  min-height: 36px;
  flex: 1 1;
  transition: background 140ms, border-color 140ms;
}
.nfx-btn-open:hover {
  background: rgba(56 189 248 / 0.18);
  border-color: rgba(56 189 248 / 0.38);
}

/* ── Copiar ─────────────────────────────── */
.nfx-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(91 127 255 / 0.12);
  border: 1px solid rgba(91 127 255 / 0.22);
  color: #93a8ff;
  min-height: 36px;
  transition: background 140ms, border-color 140ms;
}
.nfx-copy-btn:hover { background: rgba(91 127 255 / 0.2); border-color: rgba(91 127 255 / 0.4); }
.nfx-copy-btn--done {
  background: rgba(52 211 153 / 0.12) !important;
  border-color: rgba(52 211 153 / 0.25) !important;
  color: #6ee7b7 !important;
}

/* ── Meta ───────────────────────────────── */
.nfx-result-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.nfx-meta-item {
  font-size: 12px;
  color: #3d4f6e;
  background: rgba(99 120 180 / 0.06);
  border: 1px solid rgba(99 120 180 / 0.1);
  border-radius: 9999px;
  padding: 4px 10px;
}

/* ── Iframe ─────────────────────────────── */
.nfx-iframe-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(91 127 255 / 0.16);
  border-radius: 14px;
  overflow: hidden;
  animation: nfx-result-in 220ms cubic-bezier(0.16,1,0.3,1);
}

.nfx-iframe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0c1120;
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  gap: 10px;
}
.nfx-iframe-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8896b3;
}
.nfx-iframe-close {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(248 113 113 / 0.1);
  border: 1px solid rgba(248 113 113 / 0.2);
  color: #fca5a5;
  min-height: 32px;
  transition: background 140ms;
  cursor: pointer;
}
.nfx-iframe-close:hover { background: rgba(248 113 113 / 0.18); }

.nfx-iframe {
  width: 100%;
  height: 520px;
  border: none;
  background: #111827;
  display: block;
}

/* ── Badge validez ──────────────────────── */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}
.vbadge--valid    { background: rgba(52 211 153 / 0.1);  border: 1px solid rgba(52 211 153 / 0.2);  color: #6ee7b7; }
.vbadge--expiring { background: rgba(251 191 36 / 0.1);  border: 1px solid rgba(251 191 36 / 0.2);  color: #fcd34d; }
.vbadge--expired  { background: rgba(248 113 113 / 0.1); border: 1px solid rgba(248 113 113 / 0.2); color: #fca5a5; }
.vbadge--unknown  { background: rgba(99 120 180 / 0.08); border: 1px solid rgba(99 120 180 / 0.14); color: #3d4f6e; }

/* ── Scrollbar del dropdown ─────────────── */
.nfx-dropdown::-webkit-scrollbar { width: 4px; }
.nfx-dropdown::-webkit-scrollbar-track { background: transparent; }
.nfx-dropdown::-webkit-scrollbar-thumb {
  background: rgba(91 127 255 / 0.25);
  border-radius: 9999px;
}
.nfx-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(91 127 255 / 0.4);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 480px) {
  .nfx-code          { font-size: 20px; letter-spacing: 0.12em; }
  .nfx-code-row      { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nfx-copy-btn,
  .nfx-btn-open      { flex: 1 1; justify-content: center; }
  .nfx-link-actions  { flex-direction: column; }
  .nfx-iframe        { height: 380px; }
}

/* ── Portal dropdown (renderizado en document.body) ── */
.nfx-dropdown-portal {
  position: fixed;          /* ✅ escapa cualquier overflow:hidden del padre */
  z-index: 99999;
  background: #111827;
  border: 1px solid rgba(91 127 255 / 0.3);
  border-radius: 10px;
  overflow-y: auto;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91 127 255 / 0.2) transparent;
  animation: nfx-drop 140ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 16px 40px rgba(0 0 0 / 0.7), 0 0 0 1px rgba(91 127 255 / 0.06);
}
.nfx-dropdown-portal::-webkit-scrollbar       { width: 4px; }
.nfx-dropdown-portal::-webkit-scrollbar-track { background: transparent; }
.nfx-dropdown-portal::-webkit-scrollbar-thumb { background: rgba(91 127 255 / 0.25); border-radius: 9999px; }

/* ── Opciones dentro del portal ─────────── */
.nfx-dropdown-portal button,
.nfx-dropdown-portal .nfx-option {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(99 120 180 / 0.06);
  color: #8896b3;
}

.nfx-dropdown-portal .nfx-option:last-child {
  border-bottom: none;
}

.nfx-dropdown-portal .nfx-option:hover {
  background: rgba(91 127 255 / 0.07);
  color: #e8ecf4;
}

.nfx-dropdown-portal .nfx-option--active {
  background: rgba(91 127 255 / 0.12);
  color: #93a8ff;
}

.nfx-dropdown-portal .nfx-option-title {
  color: inherit;
}

.nfx-dropdown-portal .nfx-option-desc {
  color: #3d4f6e;
}

.nfx-dropdown-portal .nfx-option-check {
  color: #5b7fff;
}
/* ════════════════════════════════════════════
   Amazon Prime Video — componente dashboard
   Paleta: dark navy / amazon orange
   ════════════════════════════════════════════ */

.apx {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

/* ── Campo ──────────────────────────────── */
.apx-field { display: flex; flex-direction: column; gap: 6px; }

.apx-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a5a30;
}

/* ── Selector tipo ──────────────────────── */
.apx-select { position: relative; overflow: visible; }

.apx-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  min-height: 54px;
  background: #111827;
  border: 1px solid rgba(255 153 0 / 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #e8ecf4;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.apx-select-btn:hover,
.apx-select-btn--open {
  border-color: rgba(255 153 0 / 0.45);
  background: #1a1408;
}
.apx-select-btn--open {
  box-shadow: 0 0 0 3px rgba(255 153 0 / 0.08);
}

.apx-select-icon  { font-size: 18px; flex-shrink: 0; }
.apx-select-label { flex: 1 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.apx-select-title { font-size: 13.5px; font-weight: 700; color: #e8ecf4; }
.apx-select-desc  { font-size: 11px; color: #7a5a30; }

.apx-arrow { font-size: 9px; color: #7a5a30; transition: transform 160ms ease; flex-shrink: 0; }
.apx-arrow--up { transform: rotate(180deg); }

/* ── Portal dropdown ────────────────────── */
.apx-dropdown-portal {
  position: fixed;
  z-index: 99999;
  background: #111827;
  border: 1px solid rgba(255 153 0 / 0.3);
  border-radius: 10px;
  overflow: visible;          /* ← NO hidden */
  max-height: none;           /* ← sin límite que corte */
  scrollbar-width: thin;
  scrollbar-color: rgba(255 153 0 / 0.2) transparent;
  animation: apx-drop 140ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 16px 40px rgba(0 0 0 / 0.7), 0 0 0 1px rgba(255 153 0 / 0.06);
}
.apx-dropdown-portal::-webkit-scrollbar       { width: 4px; }
.apx-dropdown-portal::-webkit-scrollbar-track { background: transparent; }
.apx-dropdown-portal::-webkit-scrollbar-thumb { background: rgba(255 153 0 / 0.25); border-radius: 9999px; }

@keyframes apx-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Opciones del dropdown ──────────────── */
.apx-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: #c8a87a;
  font-size: 13px;
  min-height: 52px;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(255 153 0 / 0.06);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.apx-option:first-child { border-radius: 10px 10px 0 0; }
.apx-option:last-child  { border-bottom: none; border-radius: 0 0 10px 10px; }
.apx-option:only-child  { border-radius: 10px; }
.apx-option:hover       { background: rgba(255 153 0 / 0.08); color: #e8ecf4; }
.apx-option--active     { background: rgba(255 153 0 / 0.14); color: #ffb84d; }

.apx-option-icon  { font-size: 16px; flex-shrink: 0; }
.apx-option-info  { flex: 1 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apx-option-title { font-size: 13px; font-weight: 600; }
.apx-option-desc  { font-size: 11px; color: #7a5a30; }
.apx-option-check { font-size: 13px; font-weight: 700; color: #ff9900; flex-shrink: 0; }

/* ── Input correo ───────────────────────── */
.apx-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 46px;
  background: #111827;
  border: 1px solid rgba(255 153 0 / 0.12);
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.apx-input-wrap:focus-within {
  border-color: rgba(255 153 0 / 0.5);
  background: #1a1408;
  box-shadow: 0 0 0 3px rgba(255 153 0 / 0.1);
}
.apx-input-wrap--err {
  border-color: rgba(248 113 113 / 0.4) !important;
  box-shadow: 0 0 0 3px rgba(248 113 113 / 0.07) !important;
}
.apx-input-wrap--filled:not(.apx-input-wrap--err):not(:focus-within) {
  border-color: rgba(255 153 0 / 0.25);
}

.apx-input-icon { font-size: 14px; flex-shrink: 0; }
.apx-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8ecf4;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 0;
}
.apx-input::placeholder { color: #3a2a10; }
.apx-input:disabled     { opacity: 0.45; cursor: not-allowed; }

.apx-input-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 10px;
  color: #7a5a30;
  background: rgba(255 153 0 / 0.1);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}
.apx-input-clear:hover { background: rgba(248 113 113 / 0.15); color: #f87171; }

/* ── Alerta ─────────────────────────────── */
.apx-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(248 113 113 / 0.08);
  border: 1px solid rgba(248 113 113 / 0.2);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  animation: apx-in 160ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes apx-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Botón principal ────────────────────── */
.apx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ff9900 0%, #ffb347 100%);
  border: 1px solid rgba(255 153 0 / 0.5);
  box-shadow: 0 1px 0 rgba(255 255 255 / 0.15) inset, 0 0 20px rgba(255 153 0 / 0.2);
  cursor: pointer;
  transition: opacity 150ms ease, transform 120ms, box-shadow 150ms;
}
.apx-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255 153 0 / 0.35);
}
.apx-btn:active:not(:disabled) { transform: translateY(0); }
.apx-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.apx-btn--loading {
  background: #1a1408 !important;
  color: #c8a87a !important;
  border-color: rgba(255 153 0 / 0.12) !important;
  box-shadow: none !important;
}

.apx-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(200 168 122 / 0.25);
  border-top-color: #c8a87a;
  border-radius: 50%;
  animation: apx-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes apx-spin { to { transform: rotate(360deg); } }

/* ── Resultado ──────────────────────────── */
.apx-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #0d0a04;
  border: 1px solid rgba(255 153 0 / 0.18);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.4);
  animation: apx-result-in 220ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.apx-result::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255 153 0 / 0.5), rgba(255 179 71 / 0.3), transparent);
}
@keyframes apx-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.apx-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.apx-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7a5a30;
}

/* ── Código ─────────────────────────────── */
.apx-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  border: 1px solid rgba(255 153 0 / 0.12);
  border-radius: 10px;
}
.apx-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e8ecf4;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ── Copiar ─────────────────────────────── */
.apx-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255 153 0 / 0.1);
  border: 1px solid rgba(255 153 0 / 0.2);
  color: #c8a87a;
  min-height: 36px;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.apx-copy-btn:hover  { background: rgba(255 153 0 / 0.2); border-color: rgba(255 153 0 / 0.38); }
.apx-copy-btn--done  { background: rgba(52 211 153 / 0.12) !important; border-color: rgba(52 211 153 / 0.25) !important; color: #6ee7b7 !important; }

/* ── Meta ───────────────────────────────── */
.apx-result-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.apx-meta-item {
  font-size: 12px;
  color: #7a5a30;
  background: rgba(255 153 0 / 0.06);
  border: 1px solid rgba(255 153 0 / 0.1);
  border-radius: 9999px;
  padding: 4px 10px;
}

/* ── Instrucciones ──────────────────────── */
.apx-instructions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255 153 0 / 0.04);
  border: 1px solid rgba(255 153 0 / 0.1);
  border-radius: 9px;
}
.apx-instructions-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a5a30;
}
.apx-instructions-text {
  font-size: 13px;
  color: #c8a87a;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}

/* ── Badge validez ──────────────────────── */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}
.vbadge--valid    { background: rgba(52 211 153 / 0.1);  border: 1px solid rgba(52 211 153 / 0.2);  color: #6ee7b7; }
.vbadge--expiring { background: rgba(251 191 36 / 0.1);  border: 1px solid rgba(251 191 36 / 0.2);  color: #fcd34d; }
.vbadge--expired  { background: rgba(248 113 113 / 0.1); border: 1px solid rgba(248 113 113 / 0.2); color: #fca5a5; }
.vbadge--unknown  { background: rgba(255 153 0 / 0.08);  border: 1px solid rgba(255 153 0 / 0.14);  color: #7a5a30; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 480px) {
  .apx-code     { font-size: 20px; letter-spacing: 0.12em; }
  .apx-code-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .apx-copy-btn { width: 100%; justify-content: center; }
}
/* ════════════════════════════════════════════
   HBO Max — componente dashboard
   Paleta: dark navy / purple / violet
   ════════════════════════════════════════════ */

.hbx {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

/* ── Chips ──────────────────────────────── */
.hbx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hbx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(120 80 180 / 0.07);
  border: 1px solid rgba(120 80 180 / 0.14);
  color: #a890c8;
  cursor: pointer;
  min-height: 34px;
  transition: background 150ms ease, border-color 150ms, color 150ms;
}
.hbx-chip:hover   { background: rgba(140 90 210 / 0.12); border-color: rgba(140 90 210 / 0.3);  color: #c4a8e8; }
.hbx-chip--active { background: rgba(140 90 210 / 0.18); border-color: rgba(140 90 210 / 0.45); color: #c4a8e8; }
.hbx-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── Campo ──────────────────────────────── */
.hbx-field { display: flex; flex-direction: column; gap: 6px; }

.hbx-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a4070;
}

/* ── Selector tipo ──────────────────────── */
.hbx-select { position: relative; overflow: visible; }

.hbx-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  min-height: 54px;
  background: #111827;
  border: 1px solid rgba(120 80 180 / 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #e8ecf4;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.hbx-select-btn:hover,
.hbx-select-btn--open {
  border-color: rgba(140 90 210 / 0.45);
  background: #1a1530;
}
.hbx-select-btn--open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(140 90 210 / 0.08);
}

.hbx-select-icon  { font-size: 18px; flex-shrink: 0; }
.hbx-select-label { flex: 1 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hbx-select-title { font-size: 13.5px; font-weight: 700; color: #e8ecf4; }
.hbx-select-desc  { font-size: 11px; color: #5a4070; }

.hbx-arrow { font-size: 9px; color: #5a4070; transition: transform 160ms ease; flex-shrink: 0; }
.hbx-arrow--up { transform: rotate(180deg); }

/* ── Portal dropdown ────────────────────── */
.hbx-dropdown-portal {
  position: fixed;
  z-index: 99999;
  background: #111827;
  border: 1px solid rgba(140 90 210 / 0.35);
  border-radius: 10px;
  overflow-y: auto;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(140 90 210 / 0.2) transparent;
  animation: hbx-drop 140ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 16px 40px rgba(0 0 0 / 0.7), 0 0 0 1px rgba(140 90 210 / 0.06);
}
.hbx-dropdown-portal::-webkit-scrollbar       { width: 4px; }
.hbx-dropdown-portal::-webkit-scrollbar-track { background: transparent; }
.hbx-dropdown-portal::-webkit-scrollbar-thumb { background: rgba(140 90 210 / 0.25); border-radius: 9999px; }

@keyframes hbx-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hbx-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  color: #a890c8;
  font-size: 13px;
  min-height: 50px;
  border-bottom: 1px solid rgba(120 80 180 / 0.06);
  transition: background 120ms, color 120ms;
}
.hbx-option:last-child { border-bottom: none; }
.hbx-option:hover      { background: rgba(140 90 210 / 0.08); color: #e8ecf4; }
.hbx-option--active    { background: rgba(140 90 210 / 0.14); color: #c4a8e8; }

.hbx-option-icon  { font-size: 16px; flex-shrink: 0; }
.hbx-option-info  { flex: 1 1; display: flex; flex-direction: column; gap: 2px; }
.hbx-option-title { font-size: 13px; font-weight: 600; }
.hbx-option-desc  { font-size: 11px; color: #5a4070; }
.hbx-option-check { font-size: 13px; font-weight: 700; color: #9b6fd4; flex-shrink: 0; }

/* ── Input correo ───────────────────────── */
.hbx-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 46px;
  background: #111827;
  border: 1px solid rgba(120 80 180 / 0.12);
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms, box-shadow 160ms;
}
.hbx-input-wrap:focus-within {
  border-color: rgba(140 90 210 / 0.5);
  background: #1a1530;
  box-shadow: 0 0 0 3px rgba(140 90 210 / 0.1);
}
.hbx-input-wrap--err {
  border-color: rgba(248 113 113 / 0.4) !important;
  box-shadow: 0 0 0 3px rgba(248 113 113 / 0.07) !important;
}
.hbx-input-wrap--filled:not(.hbx-input-wrap--err):not(:focus-within) {
  border-color: rgba(140 90 210 / 0.25);
}

.hbx-input-icon { font-size: 14px; flex-shrink: 0; }
.hbx-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8ecf4;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 0;
}
.hbx-input::placeholder { color: #2e2040; }
.hbx-input:disabled     { opacity: 0.45; cursor: not-allowed; }

.hbx-input-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 10px;
  color: #5a4070;
  background: rgba(120 80 180 / 0.12);
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}
.hbx-input-clear:hover { background: rgba(248 113 113 / 0.15); color: #f87171; }

/* ── Alerta ─────────────────────────────── */
.hbx-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(248 113 113 / 0.08);
  border: 1px solid rgba(248 113 113 / 0.2);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  animation: hbx-in 160ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes hbx-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Botón principal ────────────────────── */
.hbx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #7b3fe4 0%, #9b5fd4 100%);
  border: 1px solid rgba(140 90 210 / 0.35);
  box-shadow: 0 1px 0 rgba(255 255 255 / 0.1) inset, 0 0 20px rgba(140 90 210 / 0.2);
  cursor: pointer;
  transition: opacity 150ms ease, transform 120ms, box-shadow 150ms;
}
.hbx-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(140 90 210 / 0.32);
}
.hbx-btn:active:not(:disabled) { transform: translateY(0); }
.hbx-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.hbx-btn--loading {
  background: #1a1530 !important;
  color: #a890c8 !important;
  border-color: rgba(120 80 180 / 0.12) !important;
  box-shadow: none !important;
}

.hbx-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(168 144 200 / 0.25);
  border-top-color: #a890c8;
  border-radius: 50%;
  animation: hbx-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes hbx-spin { to { transform: rotate(360deg); } }

/* ── Resultado ──────────────────────────── */
.hbx-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #0d0a18;
  border: 1px solid rgba(140 90 210 / 0.18);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.4);
  animation: hbx-result-in 220ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.hbx-result::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140 90 210 / 0.5), rgba(180 120 255 / 0.3), transparent);
}
@keyframes hbx-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hbx-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.hbx-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5a4070;
}

/* ── Código ─────────────────────────────── */
.hbx-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  border: 1px solid rgba(120 80 180 / 0.12);
  border-radius: 10px;
}
.hbx-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e8ecf4;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ── Link ───────────────────────────────── */
.hbx-link-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111827;
  border: 1px solid rgba(120 80 180 / 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.hbx-link-icon { font-size: 14px; flex-shrink: 0; }
.hbx-link-text {
  font-size: 12px;
  color: #a890c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

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

.hbx-btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(140 90 210 / 0.1);
  border: 1px solid rgba(140 90 210 / 0.22);
  color: #c4a8e8;
  min-height: 36px;
  flex: 1 1;
  transition: background 140ms, border-color 140ms;
}
.hbx-btn-open:hover { background: rgba(140 90 210 / 0.2); border-color: rgba(140 90 210 / 0.4); }

/* ── Copiar ─────────────────────────────── */
.hbx-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(140 90 210 / 0.1);
  border: 1px solid rgba(140 90 210 / 0.2);
  color: #c4a8e8;
  min-height: 36px;
  transition: background 140ms, border-color 140ms;
}
.hbx-copy-btn:hover  { background: rgba(140 90 210 / 0.2); border-color: rgba(140 90 210 / 0.38); }
.hbx-copy-btn--done  { background: rgba(52 211 153 / 0.12) !important; border-color: rgba(52 211 153 / 0.25) !important; color: #6ee7b7 !important; }

/* ── Meta ───────────────────────────────── */
.hbx-result-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hbx-meta-item {
  font-size: 12px;
  color: #5a4070;
  background: rgba(120 80 180 / 0.06);
  border: 1px solid rgba(120 80 180 / 0.1);
  border-radius: 9999px;
  padding: 4px 10px;
}

/* ── Badge validez ──────────────────────── */
.hbx-vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}
.hbx-vbadge--valid    { background: rgba(52 211 153 / 0.1);  border: 1px solid rgba(52 211 153 / 0.2);  color: #6ee7b7; }
.hbx-vbadge--expiring { background: rgba(251 191 36 / 0.1);  border: 1px solid rgba(251 191 36 / 0.2);  color: #fcd34d; }
.hbx-vbadge--expired  { background: rgba(248 113 113 / 0.1); border: 1px solid rgba(248 113 113 / 0.2); color: #fca5a5; }
.hbx-vbadge--unknown  { background: rgba(120 80 180 / 0.08); border: 1px solid rgba(120 80 180 / 0.14); color: #5a4070; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 480px) {
  .hbx-code         { font-size: 20px; letter-spacing: 0.12em; }
  .hbx-code-row     { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hbx-copy-btn,
  .hbx-btn-open     { flex: 1 1; justify-content: center; }
  .hbx-link-actions { flex-direction: column; }
}
/* ═══════════════════════════════════════════════════════════
   👤 MIS CUENTAS - PERFIL Y ASIGNACIONES
   ═══════════════════════════════════════════════════════════ */

.miscuentas-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   🎯 LOADING STATE
   ═══════════════════════════════════════════════════════════ */
.miscuentas-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.miscuentas-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(76, 175, 80, 0.2);
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.miscuentas-loading-text {
  font-size: 1.1rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📋 HEADER CON INFO DEL USUARIO
   ═══════════════════════════════════════════════════════════ */
.miscuentas-header-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.miscuentas-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.miscuentas-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.miscuentas-info-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #4CAF50;
  transform: translateY(-2px);
}

.miscuentas-info-label {
  font-size: 0.85rem;
  color: #808080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miscuentas-info-value {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  word-break: break-word;
}

.miscuentas-info-value-highlight {
  font-size: 1.3rem;
  color: #4CAF50;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   🟢 ESTADO DE LA CUENTA
   ═══════════════════════════════════════════════════════════ */
.miscuentas-status-section {
  margin-bottom: 2rem;
}

.miscuentas-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

.miscuentas-status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.miscuentas-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.miscuentas-status-active {
  background: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.miscuentas-status-inactive {
  background: #FF9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.miscuentas-status-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.miscuentas-status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.miscuentas-date-label {
  font-size: 0.9rem;
  color: #808080;
  font-weight: 600;
}

.miscuentas-date-value {
  font-size: 0.95rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📺 PLATAFORMAS CON CORREOS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platforms-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.miscuentas-platform-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.miscuentas-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--miscuentas-platform-color);
  opacity: 0.5;
}

.miscuentas-platform-card:hover {
  border-color: var(--miscuentas-platform-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 20px var(--miscuentas-platform-color);
  transform: translateY(-2px);
}

.miscuentas-platform-expanded {
  border-color: var(--miscuentas-platform-color);
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER DE PLATAFORMA (CLICKEABLE)
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 1rem;
}

.miscuentas-platform-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.miscuentas-platform-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-platform-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: rgba(255, 18, 18, 0.05);
  border: 3px solid var(--miscuentas-platform-color);
  box-shadow: 0 0 15px var(--miscuentas-platform-color);
  flex-shrink: 0;
}

.miscuentas-platform-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.miscuentas-platform-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.miscuentas-platform-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.miscuentas-platform-subtitle {
  font-size: 0.9rem;
  color: var(--miscuentas-platform-color);
  font-weight: 600;
}

.miscuentas-platform-date {
  font-size: 0.8rem;
  color: #808080;
}

.miscuentas-platform-right {
  flex-shrink: 0;
}

.miscuentas-expand-arrow {
  font-size: 1.2rem;
  color: #808080;
  transition: transform 0.3s ease;
  display: inline-block;
}

.miscuentas-expand-rotated {
  transform: rotate(180deg);
  color: var(--miscuentas-platform-color);
}

/* ═══════════════════════════════════════════════════════════
   📧 CUERPO EXPANDIBLE CON CORREOS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platform-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.miscuentas-email-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.miscuentas-email-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--miscuentas-platform-color);
  transform: translateX(5px);
}

.miscuentas-email-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.miscuentas-email-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: #808080;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.miscuentas-email-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miscuentas-email-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.miscuentas-email-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-email-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.miscuentas-email-address {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.miscuentas-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--miscuentas-platform-color) 0%, var(--miscuentas-platform-color) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.miscuentas-copy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              0 0 20px var(--miscuentas-platform-color);
}

.miscuentas-copy-btn:active {
  transform: translateY(0) scale(0.98);
}

.miscuentas-copy-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  animation: successPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.miscuentas-copy-icon {
  font-size: 1.1rem;
}

.miscuentas-copy-text {
  font-weight: 700;
}

.miscuentas-email-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.miscuentas-footer-label {
  font-size: 0.8rem;
  color: #808080;
  font-weight: 600;
}

.miscuentas-footer-value {
  font-size: 0.85rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📊 HISTORIAL DE CONSULTAS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-historial-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.miscuentas-historial-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
}

.miscuentas-historial-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.miscuentas-historial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  gap: 1rem;
  flex-wrap: wrap;
}

.miscuentas-historial-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.miscuentas-historial-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-historial-platform {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.miscuentas-historial-email {
  font-size: 0.85rem;
  color: #808080;
  word-break: break-all;
}

.miscuentas-historial-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.miscuentas-historial-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.miscuentas-historial-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.miscuentas-historial-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.miscuentas-historial-timestamp {
  font-size: 0.75rem;
  color: #666666;
}

/* ═══════════════════════════════════════════════════════════
   📭 ESTADO VACÍO
   ═══════════════════════════════════════════════════════════ */
.miscuentas-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeInUp 0.5s ease-out;
}

.miscuentas-empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.miscuentas-empty-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.miscuentas-empty-text {
  font-size: 1.1rem;
  color: #808080;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   📝 FOOTER
   ═══════════════════════════════════════════════════════════ */
.miscuentas-footer-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.miscuentas-footer-note {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.miscuentas-footer-uid {
  font-size: 0.85rem;
  color: #666666;
  margin: 0;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MÓVIL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .miscuentas-main-container {
    padding: 1rem;
  }

  .miscuentas-header-section {
    padding: 1.25rem;
  }

  .miscuentas-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .miscuentas-info-box {
    padding: 0.75rem;
  }

  .miscuentas-info-value {
    font-size: 1rem;
  }

  .miscuentas-info-value-highlight {
    font-size: 1.1rem;
  }

  .miscuentas-status-card {
    padding: 1rem;
  }

  .miscuentas-platform-header {
    padding: 1rem;
  }

  .miscuentas-platform-logo {
    width: 40px;
    height: 40px;
  }

  .miscuentas-platform-name {
    font-size: 1.2rem;
  }

  .miscuentas-platform-body {
    padding: 0 1rem 1rem 1rem;
  }

  .miscuentas-email-content {
    flex-direction: column;
    align-items: stretch;
  }

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

  .miscuentas-historial-section {
    padding: 1.25rem;
  }

  .miscuentas-historial-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .miscuentas-historial-right {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .miscuentas-main-container {
    padding: 0.75rem;
  }

  .miscuentas-info-grid {
    grid-template-columns: 1fr;
  }

  .miscuentas-platform-name {
    font-size: 1.1rem;
  }

  .miscuentas-email-address {
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ CONFIGURACIÓN - GESTIÓN DE CUENTA Y SEGURIDAD
   ═══════════════════════════════════════════════════════════ */

.config-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   🔄 LOADING STATE
   ═══════════════════════════════════════════════════════════ */
.config-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.config-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 152, 0, 0.2);
  border-top-color: #FF9800;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.config-loading-text {
  font-size: 1.1rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER
   ═══════════════════════════════════════════════════════════ */
.config-header-section {
  margin-bottom: 2rem;
}

.config-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.config-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.config-icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
}

.config-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.config-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.config-subtitle {
  font-size: 1rem;
  color: #808080;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   📑 TABS
   ═══════════════════════════════════════════════════════════ */
.config-tabs-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.config-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #808080;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.config-tab-btn:hover {
  color: #FF9800;
  background: rgba(255, 152, 0, 0.05);
}

.config-tab-active {
  color: #FF9800;
  border-bottom-color: #FF9800;
}

.config-tab-icon {
  font-size: 1.3rem;
}

.config-tab-text {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   📄 CARDS
   ═══════════════════════════════════════════════════════════ */
.config-content-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.config-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: cardSlideIn 0.4s ease-out backwards;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-card:hover {
  border-color: rgba(255, 152, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.config-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.config-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.config-card-body {
  padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   📊 DATOS PERSONALES
   ═══════════════════════════════════════════════════════════ */
.config-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.config-data-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-data-label {
  font-size: 0.85rem;
  color: #808080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-data-value-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.config-data-value-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 152, 0, 0.3);
}

.config-data-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  flex: 1 1;
  word-break: break-word;
}

.config-data-badge {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #FF9800;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-status-badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-status-active {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.config-status-inactive {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #FF9800;
}

/* ═══════════════════════════════════════════════════════════
   📋 BOTÓN DE COPIAR
   ═══════════════════════════════════════════════════════════ */
.config-copy-btn {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.config-copy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.config-copy-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  animation: successPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   🔑 UID BOX
   ═══════════════════════════════════════════════════════════ */
.config-uid-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.config-uid-code {
  flex: 1 1;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #FF9800;
  background: rgba(255, 152, 0, 0.1);
  padding: 0.75rem;
  border-radius: 6px;
  word-break: break-all;
}

.config-copy-btn-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.config-copy-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.config-copy-icon {
  font-size: 1.1rem;
}

.config-uid-note {
  font-size: 0.9rem;
  color: #808080;
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   📺 PLATAFORMAS
   ═══════════════════════════════════════════════════════════ */
.config-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.config-platform-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.config-platform-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FF9800;
  transform: translateY(-2px);
}

.config-platform-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.config-platform-status {
  font-size: 1.2rem;
}

.config-empty-text {
  font-size: 1rem;
  color: #808080;
  text-align: center;
  padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   🔐 FORMULARIO DE CONTRASEÑA
   ═══════════════════════════════════════════════════════════ */
.config-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-form-label {
  font-size: 0.9rem;
  color: #b3b3b3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-input-wrapper {
  position: relative;
}

.config-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.config-form-input::placeholder {
  color: #666666;
}

.config-form-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FF9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.config-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.config-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #FF9800;
}

.config-checkbox-label {
  font-size: 0.95rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS
   ═══════════════════════════════════════════════════════════ */
.config-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.config-alert-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #81c784;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTONES DE ACCIÓN
   ═══════════════════════════════════════════════════════════ */
.config-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
}

.config-submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.config-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.config-btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   🚪 BOTÓN CERRAR SESIÓN
   ═══════════════════════════════════════════════════════════ */
.config-logout-text {
  font-size: 1rem;
  color: #b3b3b3;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.config-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-logout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

.config-logout-icon {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MÓVIL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .config-main-container {
    padding: 1rem;
  }

  .config-title {
    font-size: 1.75rem;
  }

  .config-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .config-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .config-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .config-tab-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .config-data-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .config-uid-box {
    flex-direction: column;
    align-items: stretch;
  }

  .config-copy-btn-large {
    width: 100%;
    justify-content: center;
  }

  .config-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-card-header {
    padding: 1.25rem;
  }

  .config-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .config-main-container {
    padding: 0.75rem;
  }

  .config-title {
    font-size: 1.5rem;
  }

  .config-subtitle {
    font-size: 0.9rem;
  }

  .config-platforms-grid {
    grid-template-columns: 1fr;
  }

  .config-submit-btn,
  .config-logout-btn {
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
  }
}

/* ════════════════════════════════════════════════
   DASHBOARD.CSS — Pollito Streaming
   ════════════════════════════════════════════════ */

:root {
  --red-primary:            #e63946;
  --red-hover:              #c1121f;
  --red-soft:               rgba(230, 57, 70, 0.12);
  --red-glow:               rgba(230, 57, 70, 0.25);

  --bg-base:                #0a0a0f;
  --bg-card:                #16161f;
  --bg-input:               #0e0e16;

  --border-subtle:          rgba(255, 255, 255, 0.07);

  --text-primary:           #f0f0f5;
  --text-muted:             #9090a8;
  --text-faint:             #55556a;

  --sidebar-width:          260px;
  --sidebar-collapsed-width:60px;
  --header-height:          60px;

  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  0.875rem;
  --radius-xl:  1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full:9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-red: 0 0 24px rgba(230, 57, 70, 0.2);

  --transition:      180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */

.dashboard-container {
  display: flex;
  min-height: 100dvh;
  background: #0a0a0f;
  background: var(--bg-base);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  color: #f0f0f5;
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
}

/* ─── OVERLAY (solo mobile) ───────────────────── */
.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlayFadeIn 0.2s ease-out;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   SIDEBAR BASE
   ═══════════════════════════════════════════════ */

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 60px;
  width: var(--sidebar-collapsed-width);
  background: #16161f;
  background: var(--bg-card);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  transition:
    width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    width var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

/* Sidebar expandido (desktop y mobile) */
.dashboard-sidebar.sidebar-expanded {
  width: 260px;
  width: var(--sidebar-width);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════
   SIDEBAR HEADER
   ═══════════════════════════════════════════════ */

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;   /* centrado cuando colapsado */
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  transition: padding 320ms cubic-bezier(0.16, 1, 0.3, 1), justify-content 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: padding var(--transition-slow), justify-content var(--transition-slow);
}

.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  opacity: 0.4;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(230, 57, 70, 0.25));
  filter: drop-shadow(0 0 6px var(--red-glow));
}

/* ─── Textos ocultos por defecto (colapsado) ──── */
.brand-text,
.nav-title,
.nav-info,
.user-info,
.sidebar-status,
.sidebar-close {
  display: none;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition-slow);
}

/* ─── Textos visibles al expandir ─────────────── */
.dashboard-sidebar.sidebar-expanded .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .nav-title {
  display: block;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .nav-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .sidebar-status {
  display: block;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .sidebar-close {
  display: flex;
  opacity: 1;
}

.dashboard-sidebar.sidebar-expanded .sidebar-header {
  justify-content: space-between;
  padding: 1.1rem 1rem 1rem;
}

/* ─── brand text styles ───────────────────────── */
.brand-text h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, #fff 0%, #ff8a94 60%, #e63946 100%);
  background: linear-gradient(135deg, #fff 0%, #ff8a94 60%, var(--red-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text p {
  font-size: 0.68rem;
  color: #55556a;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #9090a8;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.sidebar-close:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  color: #ff8a94;
}

/* ─── ESTADO CONEXIÓN ─────────────────────────── */
.sidebar-status {
  padding: 0.6rem 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--border-subtle);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.status-connected    { color: #68d391; border-color: rgba(56,161,105,0.3);  background: rgba(56,161,105,0.08);  }
.status-disconnected { color: #ff8a94; border-color: rgba(230,57,70,0.3);   background: rgba(230, 57, 70, 0.12);   background: var(--red-soft);        }
.status-connecting   { color: #f6e05e; border-color: rgba(246,224,94,0.3);  background: rgba(246,224,94,0.08);  }
.status-maintenance  { color: #f6ad55; }
.status-locked       { color: #55556a; color: var(--text-faint); }
.status-active       { color: #68d391; }

.status-retry {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  margin-left: 0.2rem;
  line-height: 1;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform var(--transition);
}
.status-retry:hover { transform: rotate(180deg); }

/* ─── NAV SCROLL ──────────────────────────────── */
.sidebar-nav-scroll {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(230,57,70,0.25) transparent;
}
.sidebar-nav-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(230,57,70,0.25);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* ─── NAV ─────────────────────────────────────── */
.sidebar-nav { padding: 0.5rem 0; }
.sidebar-nav + .sidebar-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
}

.nav-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55556a;
  color: var(--text-faint);
  padding: 0.5rem 1rem 0.35rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.35rem;   /* compacto colapsado */
  transition: padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: padding var(--transition-slow);
}

.dashboard-sidebar.sidebar-expanded .nav-list {
  padding: 0 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;  /* centrado colapsado */
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0;       /* sin padding horizontal colapsado */
  background: none;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  text-align: left;
  position: relative;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 320ms cubic-bezier(0.16, 1, 0.3, 1),
    justify-content 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    padding var(--transition-slow),
    justify-content var(--transition-slow);
}

.dashboard-sidebar.sidebar-expanded .nav-item {
  justify-content: flex-start;
  padding: 0.6rem 0.75rem;
}

.nav-item:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255, 255, 255, 0.07);
  border-color: var(--border-subtle);
}

.nav-item-active {
  background: rgba(230, 57, 70, 0.12) !important;
  background: var(--red-soft) !important;
  border-color: rgba(230,57,70,0.25) !important;
}

.nav-item-disabled { opacity: 0.4; cursor: not-allowed; }

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1), height 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.dashboard-sidebar.sidebar-expanded .nav-icon {
  width: 28px;
  height: 28px;
}

.nav-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0f0f5;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-status {
  font-size: 0.7rem;
  color: #55556a;
  color: var(--text-faint);
  font-weight: 500;
}

.nav-active-bar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #e63946;
  background: var(--red-primary);
  border-radius: 9999px 0 0 9999px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 8px var(--red-glow);
}

/* ─── TOOLTIP (solo colapsado, solo desktop) ──── */
@media (min-width: 768px) {
  .dashboard-sidebar:not(.sidebar-expanded) .nav-item {
    position: relative;
  }

  .dashboard-sidebar:not(.sidebar-expanded) .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: #16161f;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-subtle);
    color: #f0f0f5;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 0.625rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    z-index: 200;
    animation: tooltipIn 0.15s ease-out;
  }

  .dashboard-sidebar:not(.sidebar-expanded) .nav-item:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 0.4rem);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.07);
    border-right-color: var(--border-subtle);
    pointer-events: none;
    z-index: 201;
  }

  @keyframes tooltipIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
  }
}

/* ─── SIDEBAR FOOTER ──────────────────────────── */
.sidebar-footer {
  padding: 0.5rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: padding var(--transition-slow);
}

.dashboard-sidebar.sidebar-expanded .sidebar-footer {
  padding: 0.75rem;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: center;   /* centrado colapsado */
  gap: 0.65rem;
  padding: 0.65rem 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 320ms cubic-bezier(0.16, 1, 0.3, 1),
    justify-content 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    padding var(--transition-slow),
    justify-content var(--transition-slow);
}

.dashboard-sidebar.sidebar-expanded .user-card {
  justify-content: flex-start;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255, 255, 255, 0.07);
  border-color: var(--border-subtle);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 10px var(--red-glow);
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0f0f5;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-type {
  font-size: 0.68rem;
  color: #55556a;
  color: var(--text-faint);
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.btn-logout {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #9090a8;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.dashboard-sidebar:not(.sidebar-expanded) .btn-logout {
  display: none;
}

.btn-logout:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230,57,70,0.3);
  color: #ff8a94;
}

/* ═══════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════ */

.dashboard-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-width: 0;
  /* Siempre margen del sidebar colapsado en desktop */
  margin-left: 60px;
  margin-left: var(--sidebar-collapsed-width);
  transition: margin-left 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: margin-left var(--transition-slow);
}

/* Cuando sidebar expandido → main se corre */
.sidebar-is-open .dashboard-main {
  margin-left: 260px;
  margin-left: var(--sidebar-width);
}

/* ─── HEADER ──────────────────────────────────── */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}
.btn-menu:hover { background: rgba(255,255,255,0.06); }
.btn-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: #9090a8;
  background: var(--text-muted);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}
.btn-menu:hover span { background: #f0f0f5; background: var(--text-primary); }

.header-brand-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-logo-mobile {
  width: 26px;
  height: 26px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.header-title {
  flex: 1 1;
  min-width: 0;
  text-align: center;
}

.header-title h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0f0f5;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-desc {
  font-size: 0.72rem;
  color: #55556a;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

.header-status-dot.status-connected    { background: #68d391; box-shadow: 0 0 6px rgba(56,161,105,0.5); }
.header-status-dot.status-disconnected { background: #ff8a94; box-shadow: 0 0 6px rgba(230,57,70,0.5);  }
.header-status-dot.status-connecting   { background: #f6e05e; box-shadow: 0 0 6px rgba(246,224,94,0.5); }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  color: #25d366;
  cursor: pointer;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-whatsapp:hover {
  background: rgba(37,211,102,0.2);
  box-shadow: 0 0 12px rgba(37,211,102,0.3);
  transform: scale(1.05);
}

.btn-logout-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #ff8a94;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-logout-header:hover {
  background: rgba(230,57,70,0.15);
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   CONTENIDO
   ═══════════════════════════════════════════════ */

.dashboard-content {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-content::-webkit-scrollbar { width: 5px; }
.dashboard-content::-webkit-scrollbar-track { background: transparent; }
.dashboard-content::-webkit-scrollbar-thumb {
  background: rgba(230,57,70,0.25);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}
.dashboard-content::-webkit-scrollbar-thumb:hover {
  background: rgba(230,57,70,0.4);
}

/* ─── ERROR BANNER ────────────────────────────── */
.dashboard-error {
  margin: 1rem 1.25rem 0;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230,57,70,0.25);
  animation: alertIn 0.25s ease-out;
}

@keyframes alertIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.error-text { flex: 1 1; min-width: 0; }
.error-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff8a94;
  margin-bottom: 0.1rem;
}
.error-text p { font-size: 0.78rem; color: #9090a8; color: var(--text-muted); }

.btn-retry {
  padding: 0.4rem 0.85rem;
  background: #e63946;
  background: var(--red-primary);
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), transform var(--transition);
}
.btn-retry:hover { background: #c1121f; background: var(--red-hover); transform: translateY(-1px); }

/* ─── LOADING ─────────────────────────────────── */
.dashboard-loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #0a0a0f;
  background: var(--bg-base);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  color: #f0f0f5;
  color: var(--text-primary);
}

.dashboard-loading h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-loading p { font-size: 0.85rem; color: #9090a8; color: var(--text-muted); }

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(230,57,70,0.2);
  border-top-color: #e63946;
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 20px var(--red-glow);
}

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

/* ═══════════════════════════════════════════════
   PLATFORM BANNER
   ═══════════════════════════════════════════════ */

.platform-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.platform-banner {
  padding: 1.5rem 1.5rem 1.25rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.platform-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,15,0.8) 100%);
  pointer-events: none;
}

.platform-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.platform-banner-logo {
  width: 52px;
  height: 52px;
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.platform-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.platform-banner-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.platform-banner-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.platform-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.platform-banner-badge--active {
  background: rgba(56,161,105,0.15);
  border: 1px solid rgba(56,161,105,0.3);
  color: #68d391;
}

.platform-banner-badge--locked {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230,57,70,0.3);
  color: #ff8a94;
}

.platform-content {
  flex: 1 1;
  padding: 1.25rem 1.5rem;
}

/* ═══════════════════════════════════════════════
   MANTENIMIENTO
   ═══════════════════════════════════════════════ */

.dashboard-maintenance {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.maintenance-card {
  background: #16161f;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-lg);
}

.maintenance-icon { font-size: 3rem; margin-bottom: 1.25rem; }

.maintenance-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #f0f0f5;
  color: var(--text-primary);
}

.maintenance-card p {
  font-size: 0.88rem;
  color: #9090a8;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.maintenance-subtitle {
  color: #55556a !important;
  color: var(--text-faint) !important;
  font-size: 0.78rem !important;
  margin-bottom: 1.5rem !important;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.2);
  box-shadow: var(--shadow-red);
  transition: box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}
.btn-support:hover {
  box-shadow: 0 0 24px rgba(230,57,70,0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: #55556a;
  color: var(--text-faint);
  flex-shrink: 0;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.status-connected    { background: #68d391; }
.status-dot.status-disconnected { background: #ff8a94; }
.status-dot.status-connecting   { background: #f6e05e; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 767px)
   ═══════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Sidebar oculto en mobile */
  .dashboard-sidebar {
    width: 260px;
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  /* Sidebar visible en mobile al abrir */
  .dashboard-sidebar.sidebar-expanded {
    transform: translateX(0);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    box-shadow: var(--shadow-lg);
  }

  /* Overlay visible en mobile */
  .sidebar-is-open .dashboard-overlay {
    display: block;
  }

  /* Main ocupa todo el ancho en mobile */
  .dashboard-main {
    margin-left: 0 !important;
  }

  /* Header brand visible en mobile */
  .header-brand-mobile {
    display: flex;
  }

  .dashboard-header { padding: 0 0.875rem; }
  .header-title h1  { font-size: 0.9rem; }
  .header-desc      { display: none; }

  .btn-logout-header span { display: none; }
  .btn-logout-header {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 9999px;
    border-radius: var(--radius-full);
  }

  .platform-banner  { padding: 1rem 1rem 0.875rem; }
  .platform-banner-name { font-size: 1.1rem; }
  .platform-banner-logo { width: 40px; height: 40px; }
  .platform-content { padding: 1rem; }
  .dashboard-footer { padding: 0.65rem 1rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — DESKTOP GRANDE (min 1280px)
   ═══════════════════════════════════════════════ */

@media (min-width: 1280px) {
  .header-brand-mobile { display: none; }
  .platform-banner     { padding: 2rem 2rem 1.75rem; }
  .platform-content    { padding: 1.5rem 2rem; }
  .platform-banner-name { font-size: 1.6rem; }
  .platform-banner-logo { width: 64px; height: 64px; }
}

/* ═══════════════════════════════════════════════
   UTILS
   ═══════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid #e63946;
  outline: 2px solid var(--red-primary);
  outline-offset: 3px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
}

.dashboard-container img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ════════════════════════════════════════════════
   CLIENTESGESTION.CSS — Gestor de Asignaciones
  
   ════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --red:            #e63946;
  --red-hover:      #c1121f;
  --red-soft:       rgba(230, 57, 70, 0.12);
  --red-border:     rgba(230, 57, 70, 0.3);
  --red-glow:       rgba(230, 57, 70, 0.22);

  --bg:             #0a0a0f;
  --surface:        #111118;
  --surface-2:      #16161f;
  --surface-3:      #1c1c28;
  --surface-4:      #22222e;

  --border:         rgba(255, 255, 255, 0.07);
  --border-2:       rgba(255, 255, 255, 0.11);

  --text:           #f0f0f5;
  --text-muted:     #b0b0c0;
  --text-faint:     #6868a0;
  --text-label:     #c8c8dc;

  --success:        #22c55e;
  --success-soft:   rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.3);

  --warning-soft:   rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.35);

  --blue-soft:      rgba(59, 130, 246, 0.12);
  --blue-border:    rgba(59, 130, 246, 0.35);

  --radius-sm:      0.375rem;
  --radius-md:      0.625rem;
  --radius-lg:      0.875rem;
  --radius-xl:      1.125rem;
  --radius-2xl:     1.5rem;
  --radius-full:    9999px;

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.65);

  --transition:     180ms cubic-bezier(0.16, 1, 0.3, 1);
  --font:           'Inter', 'Segoe UI', sans-serif;
}

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

/* ═══════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════ */
.clientes-gestion-remasterizado {
  min-height: 100vh;
  background: #0a0a0f;
  background: var(--bg);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  color: #f0f0f5;
  color: var(--text);
  padding: 1.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .clientes-gestion-remasterizado { padding: 1rem 0.875rem; }
}

/* ═══════════════════════════════════════════════
   NOTIFICACIONES
   ═══════════════════════════════════════════════ */
.notifications-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  width: calc(100% - 2.5rem);
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  box-shadow: var(--shadow-md);
  animation: notifIn 0.22s ease-out;
  pointer-events: all;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1;
  min-width: 0;
}

.notification-icon { font-size: 0.9rem; flex-shrink: 0; line-height: 1; }

.notification-message {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.notification-close {
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  color: #b0b0c0;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition);
}

.notification-close:hover { background: rgba(255,255,255,0.15); color: #f0f0f5; color: var(--text); }

.notification-success {
  background: rgba(16, 22, 20, 0.97);
  border-color: rgba(34, 197, 94, 0.3);
  border-color: var(--success-border);
}
.notification-success .notification-message { color: #86efac; }

.notification-error {
  background: rgba(20, 14, 16, 0.97);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
}
.notification-error .notification-message { color: #fca5a5; }

.notification-warning {
  background: rgba(20, 18, 12, 0.97);
  border-color: rgba(245, 158, 11, 0.35);
  border-color: var(--warning-border);
}
.notification-warning .notification-message { color: #fcd34d; }

.notification-info {
  background: rgba(12, 14, 22, 0.97);
  border-color: rgba(59, 130, 246, 0.35);
  border-color: var(--blue-border);
}
.notification-info .notification-message { color: #93c5fd; }

/* ═══════════════════════════════════════════════
   HEADER PRINCIPAL
   ═══════════════════════════════════════════════ */
.header-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.title-section h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #f0f0f5;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.title-section p {
  font-size: 0.85rem;
  color: #b0b0c0;
  color: var(--text-muted);
  line-height: 1.5;
}

.title-section strong {
  color: #c8c8dc;
  color: var(--text-label);
  font-weight: 700;
}

/* ─── STATS RÁPIDAS ───────────────────────────── */
.stats-quick {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  background: #16161f;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  min-width: 70px;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), background var(--transition);
}

.stat-item:hover {
  background: #1c1c28;
  background: var(--surface-3);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: #e63946;
  color: var(--red);
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b0b0c0;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   NUEVA ASIGNACIÓN — FORMULARIO
   ═══════════════════════════════════════════════ */
.nueva-asignacion-section {
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 1.5rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.nueva-asignacion-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.nueva-asignacion-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ─── FORM HORIZONTAL ─────────────────────────── */
.asignacion-form-horizontal {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  grid-gap: 1rem;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .asignacion-form-horizontal {
    grid-template-columns: 1fr 1fr;
  }
  .action-field { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .asignacion-form-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ─── CAMPOS ──────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c8c8dc;
  color: var(--text-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── TEXTAREA DE CORREOS ─────────────────────── */
.correos-textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f5;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  resize: vertical;
  outline: none;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.correos-textarea::placeholder { color: #6868a0; color: var(--text-faint); font-size: 0.82rem; }

.correos-textarea:focus {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.correos-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  color: var(--success);
  padding: 0.2rem 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  letter-spacing: 0.02em;
}

/* ─── INPUTS CON SUGERENCIAS ──────────────────── */
.input-with-suggestions { position: relative; }

.cliente-input,
.plataforma-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f5;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  outline: none;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cliente-input::placeholder,
.plataforma-input::placeholder { color: #6868a0; color: var(--text-faint); }

.cliente-input:focus,
.plataforma-input:focus {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* ─── DROPDOWN SUGERENCIAS ────────────────────── */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.65);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
  animation: dropIn 0.18s ease-out;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.suggestions-dropdown::-webkit-scrollbar { width: 4px; }
.suggestions-dropdown::-webkit-scrollbar-track { background: #1c1c28; background: var(--surface-3); }
.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* ─── ITEM SUGERENCIA CLIENTE ─────────────────── */
.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--border);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}

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

.suggestion-item:hover { background: #22222e; background: var(--surface-4); }

.suggestion-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.suggestion-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
}

.suggestion-id {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6868a0;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
  background: #22222e;
  background: var(--surface-4);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.suggestion-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-email,
.suggestion-phone {
  font-size: 0.75rem;
  color: #b0b0c0;
  color: var(--text-muted);
}

/* ─── ITEM SUGERENCIA PLATAFORMA ──────────────── */
.plataforma-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  position: relative;
}

.plataforma-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e63946;
  background: var(--plataforma-color, var(--red));
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition);
}

.plataforma-item:hover::before { opacity: 1; }

.plataforma-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }

.plataforma-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f0f5;
  color: var(--text);
}

/* ─── SELECCIONADOS ───────────────────────────── */
.selected-cliente,
.selected-plataforma {
  font-size: 0.78rem;
  font-weight: 600;
  color: #86efac;
  padding: 0.35rem 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── BOTÓN CREAR ASIGNACIÓN ──────────────────── */
.action-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 1.15rem;
}

.btn-crear-asignacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.22), 0 2px 8px rgba(0,0,0,0.3);
  box-shadow: 0 0 20px var(--red-glow), 0 2px 8px rgba(0,0,0,0.3);
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    opacity var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-crear-asignacion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.btn-crear-asignacion:hover:not(:disabled) {
  background: linear-gradient(135deg, #f05060, #e63946);
  background: linear-gradient(135deg, #f05060, var(--red));
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.45), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-crear-asignacion:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.22);
  box-shadow: 0 0 16px var(--red-glow);
}

.btn-crear-asignacion:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── SPINNER ─────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════
   CONTROLES CORREOS ASIGNADOS
   ═══════════════════════════════════════════════ */
.controles-correos-section {
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.controles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.controles-header h2 {
  font-size: 0.975rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
  letter-spacing: -0.01em;
}

.controles-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn-toggle-correos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #b0b0c0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn-toggle-correos:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  color: #fca5a5;
  transform: translateY(-1px);
}

.btn-toggle-correos:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── BUSCADOR ────────────────────────────────── */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  padding: 0 0.75rem;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.search-input {
  flex: 1 1;
  padding: 0.7rem 0.5rem;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f5;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  min-width: 0;
}

.search-input::placeholder { color: #6868a0; color: var(--text-faint); }

.search-icon {
  font-size: 0.9rem;
  color: #6868a0;
  color: var(--text-faint);
  flex-shrink: 0;
  line-height: 1;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: #6868a0;
  color: var(--text-faint);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}

.search-clear:hover {
  color: #fca5a5;
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
}

/* ═══════════════════════════════════════════════
   TABLA DE ASIGNACIONES
   ═══════════════════════════════════════════════ */
.asignaciones-table-container {
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

/* ─── LOADING ─────────────────────────────────── */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: #b0b0c0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.loading-container .loading-spinner {
  width: 20px;
  height: 20px;
  border-color: rgba(230, 57, 70, 0.25);
  border-top-color: #e63946;
  border-top-color: var(--red);
}

/* ─── WRAPPER + SCROLL ────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper::-webkit-scrollbar { height: 5px; }
.table-wrapper::-webkit-scrollbar-track { background: #16161f; background: var(--surface-2); }
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* ─── TABLA ───────────────────────────────────── */
.asignaciones-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

/* ENCABEZADOS */
.asignaciones-table thead tr {
  background: #1c1c28;
  background: var(--surface-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid var(--border-2);
}

.asignaciones-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c8c8dc;
  color: var(--text-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.th-correo   { min-width: 200px; }
.th-cliente  { min-width: 160px; }
.th-plataforma { min-width: 130px; }
.th-fecha    { min-width: 90px; }
.th-acciones { width: 105px; text-align: center; }

/* FILAS */
.tabla-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--border);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}

.tabla-row:last-child { border-bottom: none; }
.tabla-row:hover { background: rgba(255, 255, 255, 0.025); }

.tabla-row.row-inactivo {
  opacity: 0.55;
  background: rgba(230, 57, 70, 0.03);
}

.asignaciones-table td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

/* ─── CELDA CORREO ────────────────────────────── */
.correo-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.correo-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0f0f5;
  color: var(--text);
  word-break: break-all;
}

.btn-copy-table {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-copy-table:hover {
  background: rgba(59, 130, 246, 0.12);
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.35);
  border-color: var(--blue-border);
  transform: scale(1.1);
}

.edit-correo-input-table {
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: #22222e;
  background: var(--surface-4);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f5;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
  min-width: 180px;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition);
}

.edit-correo-input-table::placeholder { color: #6868a0; color: var(--text-faint); }

/* ─── CELDA CLIENTE ───────────────────────────── */
.cliente-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cliente-nombre {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
  white-space: nowrap;
}

.cliente-email {
  font-size: 0.75rem;
  color: #b0b0c0;
  color: var(--text-muted);
  word-break: break-all;
}

.cliente-uid {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6868a0;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
}

/* ─── CELDA PLATAFORMA ────────────────────────── */
.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plataforma-cell .plataforma-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.plataforma-cell .plataforma-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0b0c0;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── CELDA FECHA ─────────────────────────────── */
.fecha-cell {
  font-size: 0.82rem;
  font-weight: 500;
  color: #b0b0c0;
  color: var(--text-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ─── CELDA ACCIONES ──────────────────────────── */
.acciones-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-table-edit,
.btn-table-delete,
.btn-table-save,
.btn-table-cancel {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  line-height: 1;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn-table-edit:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.12);
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.35);
  border-color: var(--blue-border);
  transform: scale(1.1);
}

.btn-table-delete:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  transform: scale(1.1);
}

.btn-table-save:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.3);
  border-color: var(--success-border);
  transform: scale(1.1);
}

.btn-table-cancel:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  transform: scale(1.1);
}

.btn-table-edit:disabled,
.btn-table-delete:disabled,
.btn-table-save:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════
   ESTADOS VACÍOS
   ═══════════════════════════════════════════════ */

/* ─── SIN CORREOS ─────────────────────────────── */
.no-correos-message {
  background: #111118;
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border: 1px dashed var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  margin-bottom: 1rem;
}

.no-correos-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.no-correos-icon {
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.55;
  margin-bottom: 0.25rem;
}

.no-correos-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
}

.no-correos-content p {
  font-size: 0.85rem;
  color: #b0b0c0;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.6;
}

.no-correos-hint {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #b0b0c0;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

.no-correos-hint strong {
  color: #c8c8dc;
  color: var(--text-label);
  font-weight: 700;
}

/* ─── SIN RESULTADOS BÚSQUEDA ─────────────────── */
.no-resultados-message {
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  margin-bottom: 1rem;
}

.no-resultados-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.no-resultados-icon {
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.55;
}

.no-resultados-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
}

.no-resultados-content p {
  font-size: 0.875rem;
  color: #b0b0c0;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.6;
}

.no-resultados-content strong {
  color: #fca5a5;
  font-weight: 700;
}

.clear-search-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1.1rem;
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  cursor: pointer;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.clear-search-btn:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.5);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   FOOTER DE ACCIONES
   ═══════════════════════════════════════════════ */
.footer-actions {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
}

.footer-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info,
.footer-search-info,
.footer-estructura {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6868a0;
  color: var(--text-faint);
  white-space: nowrap;
}

.footer-search-info { color: #b0b0c0; color: var(--text-muted); }

.footer-estructura {
  margin-left: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR GLOBAL
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111118; background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.28);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(230, 57, 70, 0.5); }

/* ═══════════════════════════════════════════════
   FOCUS ACCESIBLE
   ═══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid #e63946;
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-quick {
    width: 100%;
    justify-content: stretch;
  }

  .stat-item { flex: 1 1; }

  .controles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .controles-actions { width: 100%; }
  .btn-toggle-correos { width: 100%; justify-content: center; }

  .footer-stats { flex-direction: column; gap: 0.4rem; }
  .footer-estructura { margin-left: 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nueva-asignacion-section { padding: 1rem; }
  .controles-correos-section { padding: 1rem; }

  .search-input { font-size: 16px; } /* Evita zoom iOS */
  .cliente-input,
  .plataforma-input,
  .correos-textarea { font-size: 16px; }

  .stats-quick { gap: 0.5rem; }
  .stat-number { font-size: 1.1rem; }

  .notifications-container {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    width: auto;
  }

  .btn-crear-asignacion { font-size: 0.82rem; padding: 0.7rem 1rem; }
}
/* ════════════════════════════════════════════════
   EDITOR.CSS — Panel Admin: Editor de Usuarios
  
   ════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --red:          #e63946;
  --red-hover:    #c1121f;
  --red-soft:     rgba(230, 57, 70, 0.12);
  --red-border:   rgba(230, 57, 70, 0.3);
  --red-glow:     rgba(230, 57, 70, 0.2);

  --bg:           #0a0a0f;
  --surface:      #111118;
  --surface-2:    #16161f;
  --surface-3:    #1c1c28;
  --surface-4:    #22222e;

  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.12);

  /* ✅ TEXTO MUY VISIBLE */
  --text:         #f0f0f5;
  --text-muted:   #b0b0c0;
  --text-faint:   #7070a0;
  --text-label:   #c8c8dc;

  --success:      #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --success-border:rgba(34, 197, 94, 0.3);

  --warning:      #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);

  --blue:         #3b82f6;
  --blue-soft:    rgba(59, 130, 246, 0.12);

  --radius-sm:    0.375rem;
  --radius-md:    0.625rem;
  --radius-lg:    0.875rem;
  --radius-xl:    1.125rem;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.6);

  --transition:   180ms cubic-bezier(0.16, 1, 0.3, 1);
  --font:         'Inter', 'Segoe UI', sans-serif;
}

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

/* ═══════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════ */
.editor-usuarios-panel {
  min-height: 100vh;
  background: #0a0a0f;
  background: var(--bg);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  color: #f0f0f5;
  color: var(--text);
  padding: 1.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .editor-usuarios-panel {
    padding: 1rem 0.875rem;
  }
}

/* ═══════════════════════════════════════════════
   NOTIFICACIONES
   ═══════════════════════════════════════════════ */
.notifications-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  width: 100%;
}

.notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f0f0f5;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  box-shadow: var(--shadow-md);
  animation: notifIn 0.2s ease-out;
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.notification-success {
  background: rgba(22, 22, 30, 0.97);
  border-color: rgba(34, 197, 94, 0.3);
  border-color: var(--success-border);
  color: #86efac;
}

.notification-error {
  background: rgba(22, 22, 30, 0.97);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  color: #fca5a5;
}

.notification-warning {
  background: rgba(22, 22, 30, 0.97);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.notification-info {
  background: rgba(22, 22, 30, 0.97);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.notification-message {
  flex: 1 1;
  line-height: 1.5;
  color: inherit;
}

.notification button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #b0b0c0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
}

.notification button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f0f0f5;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: overlayIn 0.2s ease-out;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: #16161f;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);
  letter-spacing: -0.02em;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #b0b0c0;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.modal-close:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  color: #fca5a5;
}

.modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-body p {
  font-size: 0.9rem;
  color: #b0b0c0;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid var(--border);
}

.btn-modal-cancel {
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #b0b0c0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f5;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  border-color: var(--border-2);
}

.btn-modal-confirm {
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 16px var(--red-glow);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-modal-confirm:hover {
  background: linear-gradient(135deg, #f05060, #e63946);
  background: linear-gradient(135deg, #f05060, var(--red));
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   HEADER DEL EDITOR
   ═══════════════════════════════════════════════ */
.editor-header {
  margin-bottom: 1.75rem;
}

.editor-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #f0f0f5;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.editor-header p {
  font-size: 0.9rem;
  color: #b0b0c0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   BUSCADOR
   ═══════════════════════════════════════════════ */
.editor-search-section {
  margin-bottom: 1.5rem;
  position: relative;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #16161f;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-container:focus-within {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.search-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f5;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  min-width: 0;
}

.search-input::placeholder {
  color: #7070a0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-results-count {
  font-size: 0.78rem;
  color: #7070a0;
  color: var(--text-faint);
  white-space: nowrap;
}

.search-actions button {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
  color: #b0b0c0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.search-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f0f0f5;
  color: var(--text);
}

/* ─── ACCIONES EN LOTE ────────────────────────── */
.batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.batch-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fca5a5;
}

.batch-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-batch-ban {
  padding: 0.45rem 0.9rem;
  background: rgba(230, 57, 70, 0.18);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition);
}

.btn-batch-ban:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.28);
  border-color: rgba(230, 57, 70, 0.6);
}

.btn-batch-unban {
  padding: 0.45rem 0.9rem;
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}

.btn-batch-unban:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.2);
}

.btn-batch-ban:disabled,
.btn-batch-unban:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════
   LISTA DE RESULTADOS
   ═══════════════════════════════════════════════ */
.users-results-list {
  position: relative;
  background: #16161f;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
}

.users-results-list::-webkit-scrollbar { width: 5px; }
.users-results-list::-webkit-scrollbar-track { background: #16161f; background: var(--surface-2); }
.users-results-list::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.no-results {
  padding: 2rem;
  text-align: center;
}

.no-results p {
  font-size: 0.875rem;
  color: #b0b0c0;
  color: var(--text-muted);
}

/* ─── HEADER RESULTADOS ───────────────────────── */
.results-header {
  padding: 0.65rem 1rem;
  background: #1c1c28;
  background: var(--surface-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
}

/* ─── ITEM DE USUARIO ─────────────────────────── */
.user-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}

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

.user-result-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.user-result-item.user-banned {
  background: rgba(230, 57, 70, 0.04);
}

.user-result-content {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1 1;
  cursor: pointer;
  min-width: 0;
}

.user-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 12px var(--red-glow);
}

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

.user-result-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);           /* ✅ MUY VISIBLE */
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-result-details span {
  font-size: 0.75rem;
  color: #b0b0c0;
  color: var(--text-muted);      /* ✅ VISIBLE */
  white-space: nowrap;
}

.user-result-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-cliente {
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  color: #86efac;
}

.status-admin {
  background: rgba(59, 130, 246, 0.12);
  background: var(--blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.status-baneado {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════
   CUSTOM CHECKBOX
   ═══════════════════════════════════════════════ */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.83rem;
  color: #b0b0c0;
  color: var(--text-muted);
  font-weight: 500;
  -webkit-user-select: none;
          user-select: none;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border: 2px solid var(--border-2);
  border-radius: 4px;
  background: #1c1c28;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.checkbox-container input:checked + .checkmark {
  background: #e63946;
  background: var(--red);
  border-color: #e63946;
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 8px var(--red-glow);
}

.checkbox-container input:checked + .checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.checkbox-container:hover .checkmark {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
}

/* ═══════════════════════════════════════════════
   SECCIÓN EDITOR DEL USUARIO
   ═══════════════════════════════════════════════ */
.editor-user-section {
  background: #111118;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

/* ─── HEADER USUARIO ──────────────────────────── */
.editor-user-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #16161f;
  background: var(--surface-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-wrap: wrap;
}

.editor-user-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.user-header-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1 1;
  min-width: 0;
}

.user-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 20px var(--red-glow);
}

.user-header-details {
  flex: 1 1;
  min-width: 0;
}

.user-header-details h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #f0f0f5;
  color: var(--text);           /* ✅ MUY VISIBLE */
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.user-header-details p {
  font-size: 0.78rem;
  color: #7070a0;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
  margin-bottom: 0.6rem;
  word-break: break-all;
}

.user-header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.activity-badge.active {
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  color: #86efac;
}

.activity-badge.inactive {
  background: rgba(100, 100, 120, 0.12);
  border: 1px solid rgba(100, 100, 120, 0.3);
  color: #b0b0c0;
  color: var(--text-muted);
}

.user-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-stats .stat-item {
  font-size: 0.8rem;
  color: #b0b0c0;
  color: var(--text-muted);    /* ✅ LEGIBLE */
  font-weight: 500;
}

/* ─── ACCIONES DEL HEADER ─────────────────────── */
.user-header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .user-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
  }
}

.btn-ban {
  padding: 0.55rem 1rem;
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-ban:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.22);
  border-color: rgba(230, 57, 70, 0.5);
  transform: translateY(-1px);
}

.btn-unban {
  padding: 0.55rem 1rem;
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border: 1px solid var(--success-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), transform var(--transition);
}

.btn-unban:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

.btn-close {
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #b0b0c0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), color var(--transition);
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f5;
  color: var(--text);
}

.btn-ban:disabled,
.btn-unban:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════
   DATOS BÁSICOS — FORMULARIO
   ═══════════════════════════════════════════════ */
.editor-basic-data {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
}

.editor-basic-data h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);           /* ✅ MUY VISIBLE */
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c8c8dc;
  color: var(--text-label);     /* ✅ LABELS BIEN VISIBLES */
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: #1c1c28;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f5;
  color: var(--text);           /* ✅ TEXTO VISIBLE */
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  outline: none;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: #7070a0;
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 stroke=%27%237070a0%27 stroke-width=%271.5%27 fill=%27none%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.form-group select option {
  background: #1c1c28;
  background: var(--surface-3);
  color: #f0f0f5;
  color: var(--text);
}

.btn-save-changes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  border: none;
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 20px var(--red-glow);
  letter-spacing: 0.02em;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}

.btn-save-changes:hover:not(:disabled) {
  background: linear-gradient(135deg, #f05060, #e63946);
  background: linear-gradient(135deg, #f05060, var(--red));
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
  transform: translateY(-1px);
}

.btn-save-changes:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════
   TABLA DE CORREOS
   ═══════════════════════════════════════════════ */
.editor-emails-table-section {
  padding: 1.5rem;
}

.emails-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.emails-table-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);           /* ✅ MUY VISIBLE */
  letter-spacing: -0.01em;
}

.emails-batch-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.emails-batch-actions .batch-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b0b0c0;
  color: var(--text-muted);
}

.btn-delete-selected {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition);
}

.btn-delete-selected:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.22);
  border-color: rgba(230, 57, 70, 0.5);
}

.btn-delete-selected:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── TABLA ───────────────────────────────────── */
.emails-table-container {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  box-shadow: var(--shadow-sm);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.emails-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* ─── ENCABEZADOS ─────────────────────────────── */
.emails-table thead tr {
  background: #1c1c28;
  background: var(--surface-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid var(--border-2);
}

.emails-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  color: #c8c8dc;
  color: var(--text-label);     /* ✅ HEADERS BIEN VISIBLES */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.th-checkbox { width: 48px; padding-left: 1rem; }
.th-correo   { min-width: 200px; }
.th-plataforma { min-width: 130px; }
.th-fecha    { min-width: 100px; }
.th-acciones { width: 110px; text-align: center; }

/* ─── FILAS ───────────────────────────────────── */
.email-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition);
}

.email-row:last-child { border-bottom: none; }

.email-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.emails-table td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

.td-checkbox { padding-left: 1rem; }

/* ─── CELDA CORREO ────────────────────────────── */
.email-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-text {
  font-size: 0.875rem;
  color: #f0f0f5;
  color: var(--text);           /* ✅ CORREOS BIEN VISIBLES */
  font-weight: 500;
  word-break: break-all;
}

.edit-email-input {
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: #22222e;
  background: var(--surface-4);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border: 1px solid var(--red-border);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  color: #f0f0f5;
  color: var(--text);           /* ✅ INPUT VISIBLE */
  font-size: 0.875rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 0 3px var(--red-soft);
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition);
  min-width: 180px;
}

.edit-email-input::placeholder {
  color: #7070a0;
  color: var(--text-faint);
}

/* ─── CELDA PLATAFORMA ────────────────────────── */
.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plataforma-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.plataforma-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0b0c0;
  color: var(--text-muted);     /* ✅ PLATAFORMA VISIBLE */
}

/* ─── CELDA FECHA ─────────────────────────────── */
.fecha-cell {
  font-size: 0.82rem;
  color: #b0b0c0;
  color: var(--text-muted);     /* ✅ FECHA VISIBLE */
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ─── CELDA ACCIONES ──────────────────────────── */
.acciones-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-table-edit,
.btn-table-delete,
.btn-table-save,
.btn-table-cancel {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-2);
  border-radius: 0.625rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-table-edit:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.12);
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.35);
  transform: scale(1.1);
}

.btn-table-delete:hover:not(:disabled) {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  transform: scale(1.1);
}

.btn-table-save:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.12);
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.3);
  border-color: var(--success-border);
  transform: scale(1.1);
}

.btn-table-cancel:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--red-soft);
  border-color: rgba(230, 57, 70, 0.3);
  border-color: var(--red-border);
  transform: scale(1.1);
}

.btn-table-edit:disabled,
.btn-table-delete:disabled,
.btn-table-save:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════
   ESTADOS VACÍOS
   ═══════════════════════════════════════════════ */
.no-emails-message {
  padding: 2.5rem 1rem;
}

.no-emails-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.no-emails-icon {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.6;
}

.no-emails-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #b0b0c0;
  color: var(--text-muted);
}

.no-emails-content p {
  font-size: 0.85rem;
  color: #7070a0;
  color: var(--text-faint);
  max-width: 36ch;
  line-height: 1.5;
}

/* ─── ESTADO INICIAL VACÍO ────────────────────── */
.editor-empty-state {
  margin-top: 2rem;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  background: #111118;
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border: 1px dashed var(--border-2);
  border-radius: 1.125rem;
  border-radius: var(--radius-xl);
}

.empty-state-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.7;
}

.empty-state-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--text);           /* ✅ MUY VISIBLE */
  letter-spacing: -0.02em;
}

.empty-state-content > p {
  font-size: 0.875rem;
  color: #b0b0c0;
  color: var(--text-muted);
  max-width: 40ch;
  line-height: 1.6;
}

.empty-state-tips {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  border-radius: var(--radius-lg);
  text-align: left;
  max-width: 380px;
  width: 100%;
}

.empty-state-tips p {
  font-size: 0.82rem;
  color: #b0b0c0;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.empty-state-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.empty-state-tips li {
  font-size: 0.8rem;
  color: #7070a0;
  color: var(--text-faint);    /* ✅ TIPS LEGIBLES */
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111118; background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 57, 70, 0.5);
}

/* ═══════════════════════════════════════════════
   FOCUS ACCESIBLE
   ═══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid #e63946;
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 0.375rem;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .editor-user-header {
    flex-direction: column;
    gap: 1rem;
  }

  .user-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .user-header-actions button {
    flex: 1 1;
    min-width: 0;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }

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

  .batch-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .emails-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .editor-basic-data,
  .editor-emails-table-section {
    padding: 1rem;
  }

  .user-header-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-stats { justify-content: center; }
  .user-header-status { justify-content: center; }

  .notifications-container {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .search-input { font-size: 16px; } /* Evita zoom iOS */

  .empty-state-tips {
    max-width: 100%;
  }
}
/* ════════════════════════════════════════════════
   ADMINPANEL.CSS — Pollito Streaming
   Tema: Oscuro + Rojo | Desktop & Mobile
   ════════════════════════════════════════════════ */

:root {
  --adm-red:           #e63946;
  --adm-red-hover:     #c1121f;
  --adm-red-soft:      rgba(230, 57, 70, 0.12);
  --adm-red-glow:      rgba(230, 57, 70, 0.25);

  --adm-bg:            #0a0a0f;
  --adm-surface:       #111118;
  --adm-card:          #16161f;
  --adm-card-2:        #1c1c28;

  --adm-border:        rgba(255, 255, 255, 0.07);
  --adm-border-hover:  rgba(255, 255, 255, 0.12);

  --adm-text:          #f0f0f5;
  --adm-muted:         #9090a8;
  --adm-faint:         #55556a;

  --adm-success:       #38a169;
  --adm-success-soft:  rgba(56, 161, 105, 0.12);
  --adm-warning:       #d69e2e;
  --adm-warning-soft:  rgba(214, 158, 46, 0.12);
  --adm-error-soft:    rgba(230, 57, 70, 0.12);

  --adm-sidebar-w:     240px;
  --adm-sidebar-col:   60px;
  --adm-header-h:      62px;

  --adm-radius-sm:     0.375rem;
  --adm-radius-md:     0.625rem;
  --adm-radius-lg:     0.875rem;
  --adm-radius-xl:     1.25rem;
  --adm-radius-full:   9999px;

  --adm-shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --adm-shadow-md:     0 4px 16px rgba(0,0,0,0.5);
  --adm-shadow-lg:     0 12px 40px rgba(0,0,0,0.6);
  --adm-shadow-red:    0 0 20px rgba(230,57,70,0.2);

  --adm-transition:    180ms cubic-bezier(0.16, 1, 0.3, 1);
  --adm-transition-sl: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  --adm-font: 'Inter', 'Segoe UI', sans-serif;
}

/* Dark mode tokens */
[data-theme="dark"] {
  --adm-bg:        #07070c;
  --adm-surface:   #0e0e14;
  --adm-card:      #121219;
  --adm-card-2:    #18181f;
  --adm-border:    rgba(255,255,255,0.06);
  --adm-text:      #e8e8f0;
}

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

/* ════════════════════════════════════════════════
   LAYOUT PANEL
   ════════════════════════════════════════════════ */

.servicios-admin-panel {
  display: flex;
  min-height: 100dvh;
  background: #0a0a0f;
  background: var(--adm-bg);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  color: #f0f0f5;
  color: var(--adm-text);
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════ */

.servicios-admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 240px;
  width: var(--adm-sidebar-w);
  background: #16161f;
  background: var(--adm-card);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: width var(--adm-transition-sl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  box-shadow: var(--adm-shadow-lg);
}

/* Colapsado */
.servicios-admin-sidebar-collapsed .servicios-admin-sidebar {
  width: 60px;
  width: var(--adm-sidebar-col);
}

/* ─── Sidebar Header ──────────────────────────── */
.servicios-admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
  min-height: 62px;
  min-height: var(--adm-header-h);
  position: relative;
}

.servicios-admin-sidebar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--adm-red), transparent);
  opacity: 0.5;
}

.servicios-admin-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
}

.servicios-admin-logo-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.25));
  filter: drop-shadow(0 0 8px var(--adm-red-glow));
}

.servicios-admin-logo-text {
  min-width: 0;
  overflow: hidden;
}

.servicios-admin-logo-text h3 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, #fff 0%, #ff8a94 60%, #e63946 100%);
  background: linear-gradient(135deg, #fff 0%, #ff8a94 60%, var(--adm-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.servicios-admin-logo-text p {
  font-size: 0.67rem;
  color: #55556a;
  color: var(--adm-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.servicios-admin-sidebar-toggle {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), color var(--adm-transition), border-color var(--adm-transition);
}

.servicios-admin-sidebar-toggle:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border-color: rgba(230,57,70,0.3);
  color: #ff8a94;
}

/* ─── Nav ─────────────────────────────────────── */
.servicios-admin-sidebar-nav {
  flex: 1 1;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(230,57,70,0.2) transparent;
}

.servicios-admin-sidebar-nav::-webkit-scrollbar { width: 3px; }
.servicios-admin-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(230,57,70,0.2);
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
}

.servicios-admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  color: #9090a8;
  color: var(--adm-muted);
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  position: relative;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--adm-transition),
    border-color var(--adm-transition),
    color var(--adm-transition);
  white-space: nowrap;
  overflow: hidden;
}

.servicios-admin-nav-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255, 255, 255, 0.07);
  border-color: var(--adm-border);
  color: #f0f0f5;
  color: var(--adm-text);
}

.servicios-admin-nav-active {
  background: rgba(230, 57, 70, 0.12) !important;
  background: var(--adm-red-soft) !important;
  border-color: rgba(230,57,70,0.25) !important;
  color: #ff8a94 !important;
  font-weight: 600;
}

.servicios-admin-nav-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.servicios-admin-nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  color: #9090a8;
  color: var(--adm-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
  flex-shrink: 0;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.servicios-admin-nav-badge-warning {
  background: rgba(230,57,70,0.15);
  color: #ff8a94;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Colapsado: centrar iconos */
.servicios-admin-sidebar-collapsed .servicios-admin-nav-item {
  justify-content: center;
  padding: 0.65rem 0;
}

.servicios-admin-sidebar-collapsed .servicios-admin-nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* ─── Sidebar Footer ──────────────────────────── */
.servicios-admin-sidebar-footer {
  padding: 0.75rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid var(--adm-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.servicios-admin-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  border-radius: 0.875rem;
  border-radius: var(--adm-radius-lg);
  overflow: hidden;
}

.servicios-admin-sidebar-collapsed .servicios-admin-profile {
  justify-content: center;
  background: none;
  border-color: transparent;
  padding: 0.5rem 0;
}

.servicios-admin-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--adm-red), var(--adm-red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 10px var(--adm-red-glow);
}

.servicios-admin-profile-info {
  min-width: 0;
  overflow: hidden;
}

.servicios-admin-profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.1rem;
}

.servicios-admin-profile-role {
  font-size: 0.68rem;
  color: #e63946;
  color: var(--adm-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.servicios-admin-profile-email {
  font-size: 0.68rem;
  color: #55556a;
  color: var(--adm-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.servicios-admin-sidebar-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.servicios-admin-sidebar-collapsed .servicios-admin-sidebar-controls {
  flex-direction: column;
  align-items: center;
}

.servicios-admin-control-btn {
  flex: 1 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
  cursor: pointer;
  height: 34px;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), border-color var(--adm-transition);
}

.servicios-admin-control-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.12);
  border-color: var(--adm-border-hover);
}

.servicios-admin-logout-btn {
  flex: 2 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  height: 34px;
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  color: #ff8a94;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  white-space: nowrap;
  overflow: hidden;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), border-color var(--adm-transition), transform var(--adm-transition);
}

.servicios-admin-logout-btn:hover {
  background: rgba(230,57,70,0.2);
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-1px);
}

.servicios-admin-sidebar-collapsed .servicios-admin-logout-btn {
  flex: 1 1;
  width: 34px;
  padding: 0;
}

/* ════════════════════════════════════════════════
   MAIN
   ════════════════════════════════════════════════ */

.servicios-admin-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-width: 0;
  margin-left: 240px;
  margin-left: var(--adm-sidebar-w);
  transition: margin-left 300ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: margin-left var(--adm-transition-sl);
}

.servicios-admin-sidebar-collapsed .servicios-admin-main {
  margin-left: 60px;
  margin-left: var(--adm-sidebar-col);
}

/* ─── Header ──────────────────────────────────── */
.servicios-admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  height: var(--adm-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.servicios-admin-header-left {
  min-width: 0;
  flex-shrink: 0;
}

.servicios-admin-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f0f5;
  color: var(--adm-text);
  line-height: 1.2;
}

.servicios-admin-section-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.servicios-admin-section-breadcrumb {
  font-size: 0.72rem;
  color: #55556a;
  color: var(--adm-faint);
  margin-top: 0.15rem;
}

.servicios-admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.servicios-admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Botón secundario ────────────────────────── */
.servicios-admin-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  cursor: pointer;
  border: none;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), opacity var(--adm-transition), transform var(--adm-transition);
}

.servicios-admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.servicios-admin-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
}

.servicios-admin-btn-secondary:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.12);
  border-color: var(--adm-border-hover);
  color: #f0f0f5;
  color: var(--adm-text);
  transform: translateY(-1px);
}

.servicios-admin-refresh-icon { line-height: 1; }
.servicios-admin-spinning { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Notificaciones dropdown ─────────────────── */
.servicios-admin-notifications-dropdown {
  position: relative;
}

.servicios-admin-notification-btn {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), border-color var(--adm-transition), color var(--adm-transition);
}

.servicios-admin-notification-btn:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border-color: rgba(230,57,70,0.3);
  color: #ff8a94;
}

.servicios-admin-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e63946;
  background: var(--adm-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 8px var(--adm-red-glow);
  animation: badgePulse 2s ease-in-out infinite;
}

.admin-notification-dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 340px;
  background: #16161f;
  background: var(--adm-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  border-radius: 1.25rem;
  border-radius: var(--adm-radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(230,57,70,0.2);
  box-shadow: var(--adm-shadow-lg), var(--adm-shadow-red);
  z-index: 200;
  overflow: hidden;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--adm-border);
}

.admin-notification-dropdown-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--adm-text);
}

.admin-notification-dropdown-count {
  font-size: 0.72rem;
  color: #ff8a94;
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
  font-weight: 600;
}

.admin-notification-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230,57,70,0.2) transparent;
}

.admin-notification-dropdown-list::-webkit-scrollbar { width: 3px; }
.admin-notification-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(230,57,70,0.2);
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
}

.admin-notification-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--adm-border);
  position: relative;
}

.admin-notification-dropdown-item:last-child { border-bottom: none; }

.admin-notification-dropdown-item:hover {
  background: rgba(255,255,255,0.03);
}

.admin-notification-unread {
  background: rgba(230,57,70,0.04);
}

.admin-notification-dropdown-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

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

.admin-notification-dropdown-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0f0f5;
  color: var(--adm-text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-notification-dropdown-item-details p {
  font-size: 0.75rem;
  color: #9090a8;
  color: var(--adm-muted);
  line-height: 1.5;
}

.admin-notification-dropdown-item-time {
  font-size: 0.7rem;
  color: #55556a;
  color: var(--adm-faint);
  margin-top: 0.25rem;
}

.admin-notification-dropdown-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  background: var(--adm-red);
  flex-shrink: 0;
  margin-top: 0.35rem;
  box-shadow: 0 0 6px rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 6px var(--adm-red-glow);
}

.admin-notification-dropdown-empty {
  padding: 2rem;
  text-align: center;
  color: #55556a;
  color: var(--adm-faint);
  font-size: 0.85rem;
}

.admin-notification-dropdown-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid var(--adm-border);
}

.admin-notification-dropdown-view-all {
  width: 100%;
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  color: #ff8a94;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  cursor: pointer;
  padding: 0.5rem;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), border-color var(--adm-transition);
}

.admin-notification-dropdown-view-all:hover {
  background: rgba(230,57,70,0.18);
  border-color: rgba(230,57,70,0.4);
}

/* ─── Admin info ──────────────────────────────── */
.servicios-admin-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.servicios-admin-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.servicios-admin-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0f0f5;
  color: var(--adm-text);
  white-space: nowrap;
}

.servicios-admin-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
  color: #ff8a94;
}

.servicios-admin-system-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.servicios-admin-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.servicios-admin-status-online { background: #68d391; box-shadow: 0 0 6px rgba(56,161,105,0.5); }
.servicios-admin-status-error  { background: #ff8a94; box-shadow: 0 0 6px rgba(230,57,70,0.5);  }

.servicios-admin-status-text {
  font-size: 0.7rem;
  color: #55556a;
  color: var(--adm-faint);
}

/* ════════════════════════════════════════════════
   CONTENT AREA
   ════════════════════════════════════════════════ */

.servicios-admin-content {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0a0a0f;
  background: var(--adm-bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(230,57,70,0.2) transparent;
}

.servicios-admin-content::-webkit-scrollbar { width: 5px; }
.servicios-admin-content::-webkit-scrollbar-thumb {
  background: rgba(230,57,70,0.2);
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
}

/* ════════════════════════════════════════════════
   SECCIÓN NOTIFICACIONES COMPLETA
   ════════════════════════════════════════════════ */

.admin-notification-full-section {
  padding: 1.5rem;
  max-width: 900px;
}

.admin-notification-full-header {
  margin-bottom: 1.5rem;
}

.admin-notification-full-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.admin-notification-full-header p {
  font-size: 0.85rem;
  color: #9090a8;
  color: var(--adm-muted);
  margin-bottom: 0.75rem;
}

.admin-notification-full-stats {
  display: flex;
  gap: 0.75rem;
}

.admin-notification-stat {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  border-radius: 9999px;
  border-radius: var(--adm-radius-full);
  color: #9090a8;
  color: var(--adm-muted);
}

.admin-notification-full-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-notification-full-item {
  background: #16161f;
  background: var(--adm-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  border-radius: 0.875rem;
  border-radius: var(--adm-radius-lg);
  overflow: hidden;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
}

.admin-notification-full-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  border-color: var(--adm-border-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: var(--adm-shadow-sm);
}

.admin-notification-full-item.admin-notification-unread {
  border-color: rgba(230,57,70,0.2);
  background: rgba(230,57,70,0.03);
}

.admin-notification-full-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--adm-border);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-notification-full-item-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-notification-full-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  background: linear-gradient(135deg, var(--adm-red), var(--adm-red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.admin-notification-full-user-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--adm-text);
  margin-bottom: 0.15rem;
}

.admin-notification-full-user-info p {
  font-size: 0.72rem;
  color: #55556a;
  color: var(--adm-faint);
}

.admin-notification-full-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-notification-full-action-btn,
.admin-notification-full-mark-read {
  padding: 0.4rem 0.875rem;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--adm-font);
  cursor: pointer;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), border-color var(--adm-transition), transform var(--adm-transition);
}

.admin-notification-full-action-btn {
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  border: 1px solid rgba(230,57,70,0.25);
  color: #ff8a94;
}

.admin-notification-full-action-btn:hover {
  background: rgba(230,57,70,0.2);
  transform: translateY(-1px);
}

.admin-notification-full-mark-read {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
}

.admin-notification-full-mark-read:hover {
  background: rgba(255,255,255,0.08);
  color: #f0f0f5;
  color: var(--adm-text);
}

.admin-notification-full-item-details {
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.admin-notification-detail-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.admin-notification-detail-label {
  color: #55556a;
  color: var(--adm-faint);
  flex-shrink: 0;
}

.admin-notification-detail-value {
  color: #9090a8;
  color: var(--adm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-notification-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #55556a;
  color: var(--adm-faint);
}

.admin-notification-empty h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #9090a8;
  color: var(--adm-muted);
}

.admin-notification-empty p {
  font-size: 0.85rem;
}

/* ════════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════════ */

.admin-notification-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.admin-notification-toast {
  background: #16161f;
  background: var(--adm-card);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 1.25rem;
  border-radius: var(--adm-radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(230,57,70,0.2);
  box-shadow: var(--adm-shadow-lg), var(--adm-shadow-red);
  width: 320px;
  overflow: hidden;
  position: relative;
}

.admin-notification-toast::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
  background: linear-gradient(90deg, transparent, var(--adm-red), transparent);
}

.admin-notification-toast-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.875rem 1rem 0.6rem;
}

.admin-notification-toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.admin-notification-toast-title {
  flex: 1 1;
  min-width: 0;
}

.admin-notification-toast-title h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f0f0f5;
  color: var(--adm-text);
  margin-bottom: 0.15rem;
}

.admin-notification-toast-time {
  font-size: 0.7rem;
  color: #55556a;
  color: var(--adm-faint);
}

.admin-notification-toast-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border: 1px solid var(--adm-border);
  color: #9090a8;
  color: var(--adm-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 0.625rem;
  border-radius: var(--adm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--adm-transition), color var(--adm-transition);
}

.admin-notification-toast-close:hover {
  background: rgba(230, 57, 70, 0.12);
  background: var(--adm-red-soft);
  color: #ff8a94;
}


/* ════════════════════════════════════════════════
   APP.CSS — Cosas Shidas
   Paleta: Negro profundo + Naranja fuego
════════════════════════════════════════════════ */

:root {
  --orange:         #f97316;
  --orange-hover:   #ea6a0a;
  --orange-active:  #c2560a;
  --orange-glow:    rgba(249, 115, 22, 0.35);
  --orange-soft:    rgba(249, 115, 22, 0.10);

  --bg-base:        #080808;
  --bg-surface:     #0f0f0f;
  --bg-card:        #141414;
  --bg-card-hover:  #1a1a1a;
  --bg-input:       #0b0b0b;

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-focus:   rgba(249, 115, 22, 0.55);

  --text-primary:   #f0f0f0;
  --text-muted:     #888888;
  --text-faint:     #444444;

  --success:        #22c55e;
  --success-soft:   rgba(34, 197, 94, 0.10);
  --error:          #ef4444;
  --error-soft:     rgba(239, 68, 68, 0.10);

  --radius-sm:      0.375rem;
  --radius-md:      0.5rem;
  --radius-lg:      0.75rem;
  --radius-xl:      1rem;
  --radius-full:    9999px;

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.7);
  --shadow-orange:  0 0 28px rgba(249, 115, 22, 0.25);
  --shadow-orange-lg: 0 0 56px rgba(249, 115, 22, 0.15);

  --transition:      180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: 'Inter', 'Segoe UI', sans-serif;
}


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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
  background: #080808;
  background: var(--bg-base);
  color: #f0f0f0;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.App {
  min-height: 100dvh;
  background: #080808;
  background: var(--bg-base);
}


/* ════════════════════════════════════════════════
   PANTALLA DE CARGA
════════════════════════════════════════════════ */
.app-loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  background: var(--bg-base);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.app-loading-screen.app-loading-phase-2 {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

/* Fondo */
.app-loading-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-loading-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,   rgba(249,115,22,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%,   rgba(249,115,22,0.06) 0%, transparent 60%),
    #080808;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,   rgba(249,115,22,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%,   rgba(249,115,22,0.06) 0%, transparent 60%),
    var(--bg-base);
}

.app-loading-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Partículas */
.app-loading-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-loading-particle {
  position: absolute;
  border-radius: 50%;
  background: #f97316;
  background: var(--orange);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0;    transform: translateY(0)    scale(0.5); }
  20%  { opacity: 0.35; }
  80%  { opacity: 0.15; }
  100% { opacity: 0;    transform: translateY(-120px) scale(1.2); }
}

/* Contenedor central */
.app-loading-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}

/* Brand */
.app-loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.app-loading-logo-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Órbitas */
.app-loading-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: orbitSpin linear infinite;
}

.app-loading-orbit-1 {
  inset: -8px;
  border-top-color:  #f97316;
  border-top-color:  var(--orange);
  border-right-color: #f97316;
  border-right-color: var(--orange);
  opacity: 0.6;
  animation-duration: 2.5s;
}

.app-loading-orbit-2 {
  inset: -18px;
  border-bottom-color: #f97316;
  border-bottom-color: var(--orange);
  opacity: 0.3;
  animation-duration: 4s;
  animation-direction: reverse;
}

.app-loading-orbit-3 {
  inset: -30px;
  border-left-color: #f97316;
  border-left-color: var(--orange);
  opacity: 0.15;
  animation-duration: 6s;
}

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

/* Logo */
.app-loading-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.35));
  filter: drop-shadow(0 0 18px var(--orange-glow));
  animation: logoPulse 2s ease-in-out infinite;
}

.app-loading-logo-fallback {
  width: 80px;
  height: 80px;
  font-size: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  background: #141414;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(249,115,22,0.3)); }
  50%       { filter: drop-shadow(0 0 28px rgba(249,115,22,0.6)); }
}

/* Texto brand */
.app-loading-text {
  text-align: center;
}

.app-loading-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f0f0f0;
  color: var(--text-primary);
  line-height: 1;
}

.app-loading-title-accent {
  color: #f97316;
  color: var(--orange);
}

.app-loading-subtitle {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
  color: var(--text-faint);
}

/* Sección progreso */
.app-loading-progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Mensaje */
.app-loading-message {
  font-size: 0.875rem;
  color: #888888;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.25rem;
  animation: msgFade 0.3s ease;
}

@keyframes msgFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Steps */
.app-loading-steps {
  display: flex;
  gap: 0.4rem;
}

.app-loading-step {
  width: 28px;
  height: 3px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #1a1a1a;
  background: var(--bg-card-hover);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: background var(--transition), transform var(--transition);
}

.app-loading-step.active {
  background: rgba(249, 115, 22, 0.10);
  background: var(--orange-soft);
  transform: scaleY(1.3);
}

.app-loading-step.done {
  background: #f97316;
  background: var(--orange);
}

/* Barra */
.app-loading-bar-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-loading-bar-container {
  flex: 1 1;
  height: 5px;
  background: #1a1a1a;
  background: var(--bg-card-hover);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.app-loading-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.app-loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c2560a, #f97316, #fbbf24);
  background: linear-gradient(90deg, var(--orange-active), var(--orange), #fbbf24);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.app-loading-bar-glow {
  position: absolute;
  top: 0; right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  animation: barShine 1.2s ease-in-out infinite;
}

@keyframes barShine {
  0%   { opacity: 0;   transform: translateX(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0;   transform: translateX(20px); }
}

.app-loading-percentage {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f97316;
  color: var(--orange);
  min-width: 36px;
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Stats */
.app-loading-stats {
  display: flex;
  gap: 1.5rem;
}

.app-loading-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.app-loading-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f97316;
  color: var(--orange);
  min-width: 24px;
  text-align: center;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: color var(--transition);
}

.app-loading-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444444;
  color: var(--text-faint);
}

/* Puntos */
.app-loading-dots {
  display: flex;
  gap: 0.5rem;
}

.app-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  background: var(--orange);
  animation: dotBounce 1.2s ease-in-out infinite;
}

.app-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.app-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  50%       { transform: scale(1.2); opacity: 1; }
}

/* Tagline */
.app-loading-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #444444;
  color: var(--text-faint);
  text-align: center;
}


/* ════════════════════════════════════════════════
   PANTALLA BANEADO
════════════════════════════════════════════════ */
.app-banned-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.app-banned-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-banned-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 70%),
    #080808;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 70%),
    var(--bg-base);
}

.app-banned-container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.app-banned-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header baneado */
.app-banned-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.app-banned-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-banned-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,0.35);
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.12); opacity: 1; }
}

.app-banned-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.app-banned-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  color: var(--text-primary);
}

.app-banned-subtitle {
  font-size: 0.875rem;
  color: #888888;
  color: var(--text-muted);
}

/* Cards baneado */
.app-banned-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.app-banned-card {
  background: #141414;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.app-banned-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.875rem;
}

.app-banned-card-icon { font-size: 1rem; }

.app-banned-card-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f0f0;
  color: var(--text-primary);
}

.app-banned-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-banned-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.app-banned-detail-label {
  font-size: 0.8rem;
  color: #444444;
  color: var(--text-faint);
  font-weight: 500;
}

.app-banned-detail-value {
  font-size: 0.8rem;
  color: #888888;
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-all;
}

.app-banned-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ef4444;
  color: var(--error);
  background: rgba(239, 68, 68, 0.10);
  background: var(--error-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(239,68,68,0.2);
}

.app-banned-reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-banned-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888888;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-banned-bullet {
  color: #ef4444;
  color: var(--error);
  font-size: 1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.app-banned-contact-text {
  font-size: 0.8rem;
  color: #888888;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.app-banned-contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.app-banned-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.app-banned-whatsapp {
  background: rgba(37, 211, 102, 0.10);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
}
.app-banned-whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.4);
}

.app-banned-telegram {
  background: rgba(42, 171, 238, 0.10);
  color: #2aabee;
  border-color: rgba(42, 171, 238, 0.2);
}
.app-banned-telegram:hover {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.4);
}

/* Acciones baneado */
.app-banned-actions { display: flex; justify-content: center; }

.app-banned-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #141414;
  background: var(--bg-card);
  color: #888888;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition);
}

.app-banned-logout-btn:hover {
  background: #1a1a1a;
  background: var(--bg-card-hover);
  color: #f0f0f0;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

.app-banned-logout-icon { font-size: 1rem; }

/* Footer baneado */
.app-banned-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-banned-footer-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f97316;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.app-banned-footer-help {
  font-size: 0.72rem;
  color: #444444;
  color: var(--text-faint);
}


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .app-loading-title        { font-size: 1.6rem; }
  .app-loading-logo-wrapper { width: 90px; height: 90px; }
  .app-loading-logo         { width: 64px; height: 64px; }
  .app-loading-stats        { gap: 1rem; }
  .app-loading-steps        { gap: 0.3rem; }
  .app-loading-step         { width: 22px; }
  .app-banned-title         { font-size: 1.4rem; }
}
