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;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LUPPATV — Registro.css  v3.0
   Misma paleta que Login.css — Dark Navy / Indigo / Cyan
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:              #070b14;
  --surface-1:       #0c1120;
  --surface-2:       #111827;
  --surface-3:       #1a2235;
  --surface-4:       #212d42;
  --accent:          #5b7fff;
  --accent-2:        #818cf8;
  --accent-hover:    #4a6eff;
  --cyan:            #38bdf8;
  --text-1:          #e8ecf4;
  --text-2:          #8896b3;
  --text-3:          #3d4f6e;
  --text-4:          #2a3650;
  --border:          rgba(99 120 180 / 0.1);
  --border-2:        rgba(99 120 180 / 0.2);
  --green:           #34d399;
  --green-subtle:    rgba(52 211 153 / 0.1);
  --green-border:    rgba(52 211 153 / 0.22);
  --red:             #f87171;
  --red-subtle:      rgba(248 113 113 / 0.1);
  --red-border:      rgba(248 113 113 / 0.22);
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 9999px;
  --shadow-md:     0 4px 20px rgba(0 0 0 / 0.55);
  --shadow-lg:     0 12px 40px rgba(0 0 0 / 0.65);
  --shadow-accent: 0 0 24px rgba(91 127 255 / 0.2);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════════ */

.registro-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #070b14;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

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

.registro-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 70% -5%,  rgba(91 127 255 / 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 10% 100%, rgba(56 189 248 / 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 60%,  rgba(129 140 248 / 0.04) 0%, transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(99 120 180 / 0.015) 1px, transparent 0);
  background-size: 100%, 100%, 100%, 28px 28px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════════════════════════ */

.registro-content {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 24px 16px;
}

.registro-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: 960px;
  align-items: start;
}

@media (min-width: 900px) {
  .registro-grid {
    grid-template-columns: 1fr 460px;
    gap: 48px;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COLUMNA IZQUIERDA — WELCOME (solo desktop)
   ═══════════════════════════════════════════════════════════════════════════════ */

.registro-welcome { display: none; flex-direction: column; gap: 36px; }

@media (min-width: 900px) {
  .registro-welcome { display: flex; }
}

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

.registro-logo-glow {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91 127 255 / 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

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

.registro-brand-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(91 127 255 / 0.28);
  box-shadow: 0 0 0 4px rgba(91 127 255 / 0.07), 0 4px 20px rgba(0 0 0 / 0.55), 0 0 24px rgba(91 127 255 / 0.15);
  box-shadow: 0 0 0 4px rgba(91 127 255 / 0.07), var(--shadow-md), 0 0 24px rgba(91 127 255 / 0.15);
}

.registro-brand-logo-fallback {
  width: 64px; height: 64px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #5b7fff, #818cf8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(91 127 255 / 0.2);
  box-shadow: var(--shadow-accent);
}

.registro-brand-text { display: flex; flex-direction: column; gap: 3px; }

.registro-brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(130deg, #93a8ff 0%, #38bdf8 100%);
  background: linear-gradient(130deg, #93a8ff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.registro-brand-subtitle {
  font-size: 13px;
  color: #3d4f6e;
  color: var(--text-3);
  font-weight: 500;
  max-width: 28ch;
  line-height: 1.5;
}

/* ── Plataformas ── */
.registro-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.registro-platform-item {
  width: 52px; height: 52px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms, box-shadow 180ms;
  transition: transform 180ms var(--ease), border-color 180ms, box-shadow 180ms;
}
.registro-platform-item:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(99 120 180 / 0.2);
  border-color: var(--border-2);
  box-shadow: 0 8px 24px rgba(0 0 0 / 0.45);
}
.registro-platform-item img {
  width: 36px; height: 36px;
  object-fit: contain;
}

/* ── Features ── */
.registro-features { display: flex; flex-direction: column; gap: 12px; }

.registro-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--r-lg);
  transition: border-color 180ms;
}
.registro-feature:hover { border-color: rgba(99 120 180 / 0.2); border-color: var(--border-2); }
.registro-feature-icon { font-size: 18px; flex-shrink: 0; }
.registro-feature-text { font-size: 14px; font-weight: 600; color: #e8ecf4; color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.registro-card {
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 24px;
  border-radius: var(--r-2xl);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow:
    0 12px 40px rgba(0 0 0 / 0.65),
    0 0 0 1px rgba(91 127 255 / 0.05),
    inset 0 1px 0 rgba(255 255 255 / 0.03);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(91 127 255 / 0.05),
    inset 0 1px 0 rgba(255 255 255 / 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  animation: card-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: card-in 280ms var(--ease);
}

.registro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg, transparent,
    rgba(91 127 255 / 0.4),
    rgba(56 189 248 / 0.3),
    transparent
  );
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .registro-card { max-width: none; margin: 0; padding: 28px 26px; }
}

/* ── Mobile header ── */
.registro-mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

@media (min-width: 900px) { .registro-mobile-header { display: none; } }

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

.registro-mobile-logo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#0c1120, #0c1120) padding-box,
    conic-gradient(#5b7fff 0%, #38bdf8 40%, #818cf8 70%, transparent 80%) border-box;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    conic-gradient(var(--accent) 0%, var(--cyan) 40%, var(--accent-2) 70%, transparent 80%) border-box;
  animation: ring-spin 3s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.registro-mobile-logo-image {
  width: 52px; height: 52px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid rgba(91 127 255 / 0.25);
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.55), 0 0 18px rgba(91 127 255 / 0.15);
  box-shadow: var(--shadow-md), 0 0 18px rgba(91 127 255 / 0.15);
  position: relative; z-index: 1;
}

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

.registro-mobile-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #93a8ff, #38bdf8);
  background: linear-gradient(130deg, #93a8ff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registro-mobile-subtitle {
  font-size: 11px;
  color: #3d4f6e;
  color: var(--text-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Card header ── */
.registro-card-header { text-align: center; }

.registro-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #e8ecf4;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.registro-card-description {
  font-size: 12.5px;
  color: #3d4f6e;
  color: var(--text-3);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORMULARIO
   ═══════════════════════════════════════════════════════════════════════════════ */

.registro-form { display: flex; flex-direction: column; gap: 13px; }

/* ── Campo base ── */
.registro-field { display: flex; flex-direction: column; gap: 5px; }

.registro-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8896b3;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.registro-field-icon { font-size: 12px; flex-shrink: 0; }

.registro-field-input {
  width: 100%;
  padding: 10px 14px;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--r-md);
  color: #e8ecf4;
  color: var(--text-1);
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.5;
  min-height: 44px;
  outline: none;
  appearance: none;
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms, box-shadow 160ms;
  transition: border-color 160ms var(--ease), background 160ms, box-shadow 160ms;
}
.registro-field-input::placeholder { color: #2a3650; color: var(--text-4); }
.registro-field-input:focus {
  border-color: rgba(91 127 255 / 0.5);
  background: #1a2235;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(91 127 255 / 0.1);
}
.registro-field-input:disabled { opacity: 0.45; cursor: not-allowed; }
.registro-field-input-error { border-color: rgba(248 113 113 / 0.22) !important; border-color: var(--red-border) !important; }
.registro-field-input-error:focus { box-shadow: 0 0 0 3px rgba(248 113 113 / 0.1) !important; box-shadow: 0 0 0 3px var(--red-subtle) !important; }

.registro-field-hint {
  font-size: 11px;
  color: #2a3650;
  color: var(--text-4);
  padding-left: 2px;
}

/* ── Password wrapper ── */
.registro-field-password { position: relative; }
.registro-field-password .registro-field-input { padding-right: 46px; }

.registro-field-toggle {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #3d4f6e;
  color: var(--text-3);
  border-radius: 0 10px 10px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: color 140ms;
}
.registro-field-toggle:hover { color: #8896b3; color: var(--text-2); }

/* ── Teléfono con selector ── */
.registro-field-phone {
  display: flex;
  gap: 8px;
  align-items: stretch;
  position: relative;
}

.registro-phone-selector { position: relative; flex-shrink: 0; }

.registro-phone-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 44px;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--r-md);
  color: #e8ecf4;
  color: var(--text-1);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 160ms, background 160ms;
  cursor: pointer;
}
.registro-phone-toggle:hover:not(:disabled) {
  border-color: rgba(99 120 180 / 0.2);
  border-color: var(--border-2);
  background: #1a2235;
  background: var(--surface-3);
}
.registro-phone-toggle:disabled { opacity: 0.45; cursor: not-allowed; }

.registro-phone-flag   { font-size: 16px; }
.registro-phone-code   { font-size: 12.5px; font-weight: 600; }
.registro-phone-arrow  { font-size: 8px; color: #3d4f6e; color: var(--text-3); }

.registro-phone-input { flex: 1 1; }

/* Dropdown de países */
.registro-phone-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0 0 0 / 0.65);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 200px;
  animation: dropdown-in 140ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: dropdown-in 140ms var(--ease);
  overflow: hidden;
}

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

.registro-phone-dropdown-scroll {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99 120 180 / 0.2) transparent;
  padding: 4px;
}

.registro-phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: #8896b3;
  color: var(--text-2);
  text-align: left;
  transition: background 120ms, color 120ms;
}
.registro-phone-option:hover { background: #1a2235; background: var(--surface-3); color: #e8ecf4; color: var(--text-1); }
.registro-phone-option-selected { background: rgba(91 127 255 / 0.1) !important; color: #5b7fff !important; color: var(--accent) !important; }

.registro-phone-option-flag { font-size: 14px; flex-shrink: 0; }
.registro-phone-option-code { font-weight: 700; min-width: 36px; flex-shrink: 0; }
.registro-phone-option-name { color: #3d4f6e; color: var(--text-3); font-size: 11.5px; }

/* ── Checkbox términos ── */
.registro-checkbox { display: flex; }

.registro-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #8896b3;
  color: var(--text-2);
  line-height: 1.55;
}

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

.registro-checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border-radius: var(--r-xs);
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.2);
  border: 1px solid var(--border-2);
  margin-top: 2px;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms;
  transition: background 160ms var(--ease), border-color 160ms;
  position: relative;
}

.registro-checkbox-input:checked + .registro-checkbox-custom {
  background: #5b7fff;
  background: var(--accent);
  border-color: #5b7fff;
  border-color: var(--accent);
}

.registro-checkbox-input:checked + .registro-checkbox-custom::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(44deg) translate(-0.5px, -1px);
}

.registro-checkbox-input:focus-visible + .registro-checkbox-custom {
  outline: 2px solid #5b7fff;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.registro-checkbox-text { flex: 1 1; }
.registro-checkbox-link { color: #5b7fff; color: var(--accent); font-weight: 600; cursor: pointer; }
.registro-checkbox-link:hover { text-decoration: underline; }

/* ── Alerta de error ── */
.registro-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  animation: slide-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-in 160ms var(--ease);
}

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

.registro-alert-error {
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  border: 1px solid rgba(248 113 113 / 0.22);
  border: 1px solid var(--red-border);
  color: #fca5a5;
}

.registro-alert-icon    { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.registro-alert-message { font-weight: 500; }

/* ── Botón submit ── */
.registro-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  font-size: 14.5px;
  font-weight: 700;
  min-height: 48px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #5b7fff 0%, #818cf8 100%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border: 1px solid rgba(91 127 255 / 0.3);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.1) inset,
    0 0 24px rgba(91 127 255 / 0.2);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.1) inset,
    var(--shadow-accent);
  cursor: pointer;
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 120ms, box-shadow 160ms;
  transition: opacity 160ms var(--ease), transform 120ms, box-shadow 160ms;
}
.registro-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(91 127 255 / 0.3), 0 4px 20px rgba(0 0 0 / 0.55);
  box-shadow: 0 0 32px rgba(91 127 255 / 0.3), var(--shadow-md);
}
.registro-submit:active:not(:disabled) { transform: translateY(0); }
.registro-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.registro-submit-loading {
  background: #1a2235 !important;
  background: var(--surface-3) !important;
  color: #8896b3 !important;
  color: var(--text-2) !important;
  border-color: rgba(99 120 180 / 0.1) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.registro-submit-icon { font-size: 16px; }

/* Spinner dentro del botón */
.registro-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255 255 255 / 0.2);
  border-top-color: #8896b3;
  border-top-color: var(--text-2);
  border-radius: 50%;
  animation: spin-btn 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin-btn { to { transform: rotate(360deg); } }

/* ── Divisor ── */
.registro-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.registro-divider-line { flex: 1 1; height: 1px; background: rgba(99 120 180 / 0.1); background: var(--border); }
.registro-divider-text {
  font-size: 11px;
  color: #2a3650;
  color: var(--text-4);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Footer de la card ── */
.registro-card-footer { display: flex; justify-content: center; }

.registro-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #8896b3;
  color: var(--text-2);
  min-height: 36px;
  padding: 6px 0;
  transition: color 140ms;
}
.registro-back:hover:not(:disabled) { color: #5b7fff; color: var(--accent); }
.registro-back:disabled { opacity: 0.4; cursor: not-allowed; }
.registro-back-icon { font-size: 14px; }

/* ── Mobile platforms ── */
.registro-mobile-platforms { text-align: center; }
@media (min-width: 900px) { .registro-mobile-platforms { display: none; } }

.registro-mobile-platforms-title {
  font-size: 11px;
  color: #2a3650;
  color: var(--text-4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.registro-mobile-platforms-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.registro-mobile-platforms-grid img {
  width: 34px; height: 34px;
  object-fit: contain;
  border-radius: 6px;
  border-radius: var(--r-sm);
  background: #111827;
  background: var(--surface-2);
  padding: 4px;
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
}

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

.registro-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(99 120 180 / 0.1);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.registro-footer p {
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(130deg, #93a8ff, #38bdf8);
  background: linear-gradient(130deg, #93a8ff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registro-footer-sub {
  font-size: 11px !important;
  background: none !important;
  -webkit-text-fill-color: #2a3650 !important;
  -webkit-text-fill-color: var(--text-4) !important;
  color: #2a3650 !important;
  color: var(--text-4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .registro-card    { padding: 20px 16px; border-radius: 18px; border-radius: var(--r-xl); }
  .registro-content { padding: 16px 12px; }
  .registro-phone-dropdown { min-width: 180px; }
}

@media (min-width: 481px) and (max-width: 899px) {
  .registro-content { padding: 28px 20px; }
}
/* ═══════════════════════════════════════════════════════════════════════════════
   LUPPATV — Login.css  v3.0
   Página de inicio de sesión — Dark Navy / Indigo / Cyan
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:              #070b14;
  --surface-1:       #0c1120;
  --surface-2:       #111827;
  --surface-3:       #1a2235;
  --surface-4:       #212d42;
  --accent:          #5b7fff;
  --accent-2:        #818cf8;
  --accent-hover:    #4a6eff;
  --cyan:            #38bdf8;
  --text-1:          #e8ecf4;
  --text-2:          #8896b3;
  --text-3:          #3d4f6e;
  --text-4:          #2a3650;
  --border:          rgba(99 120 180 / 0.1);
  --border-2:        rgba(99 120 180 / 0.2);
  --green:           #34d399;
  --green-subtle:    rgba(52 211 153 / 0.1);
  --green-border:    rgba(52 211 153 / 0.22);
  --red:             #f87171;
  --red-subtle:      rgba(248 113 113 / 0.1);
  --red-border:      rgba(248 113 113 / 0.22);
  --yellow:          #fbbf24;
  --yellow-subtle:   rgba(251 191 36 / 0.1);
  --yellow-border:   rgba(251 191 36 / 0.22);
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 9999px;
  --shadow-md:     0 4px 20px rgba(0 0 0 / 0.55);
  --shadow-lg:     0 12px 40px rgba(0 0 0 / 0.65);
  --shadow-accent: 0 0 24px rgba(91 127 255 / 0.2);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTAINER PRINCIPAL
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #070b14;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

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

.login-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 30% -5%,  rgba(91 127 255 / 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 80% 100%, rgba(56 189 248 / 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 70%,  rgba(129 140 248 / 0.04) 0%, transparent 50%),
    /* Cuadrícula muy sutil */
    radial-gradient(circle at 1px 1px, rgba(99 120 180 / 0.015) 1px, transparent 0);
  background-size: 100%, 100%, 100%, 28px 28px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTENIDO — GRID DOS COLUMNAS
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-content {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 24px 16px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: 960px;
  align-items: center;
}

@media (min-width: 900px) {
  .login-grid {
    grid-template-columns: 1fr 440px;
    gap: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COLUMNA IZQUIERDA — BIENVENIDA
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-welcome {
  display: none;
  flex-direction: column;
  gap: 36px;
}

@media (min-width: 900px) {
  .login-welcome { display: flex; }
}

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

.login-logo-glow {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91 127 255 / 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

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

.login-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(91 127 255 / 0.28);
  box-shadow:
    0 0 0 4px rgba(91 127 255 / 0.07),
    0 4px 20px rgba(0 0 0 / 0.55),
    0 0 24px rgba(91 127 255 / 0.15);
  box-shadow:
    0 0 0 4px rgba(91 127 255 / 0.07),
    var(--shadow-md),
    0 0 24px rgba(91 127 255 / 0.15);
}

.login-brand-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #5b7fff, #818cf8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(91 127 255 / 0.2);
  box-shadow: var(--shadow-accent);
}

.login-brand-text { display: flex; flex-direction: column; gap: 3px; }

.login-brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(130deg, #93a8ff 0%, #38bdf8 100%);
  background: linear-gradient(130deg, #93a8ff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.login-brand-subtitle {
  font-size: 13px;
  color: #3d4f6e;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 28ch;
}

/* ── Plataformas ── */
.login-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.login-platform-item {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms, box-shadow 180ms;
  transition: transform 180ms var(--ease), border-color 180ms, box-shadow 180ms;
  flex-shrink: 0;
}

.login-platform-item:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(99 120 180 / 0.2);
  border-color: var(--border-2);
  box-shadow: 0 8px 24px rgba(0 0 0 / 0.45);
}

.login-platform-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* ── Features ── */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--r-lg);
  transition: border-color 180ms;
}
.login-feature:hover { border-color: rgba(99 120 180 / 0.2); border-color: var(--border-2); }

.login-feature-icon { font-size: 18px; flex-shrink: 0; }

.login-feature-text {
  font-size: 14px;
  font-weight: 600;
  color: #e8ecf4;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TARJETA DE LOGIN
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-card {
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 24px;
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow:
    0 12px 40px rgba(0 0 0 / 0.65),
    0 0 0 1px rgba(91 127 255 / 0.06),
    inset 0 1px 0 rgba(255 255 255 / 0.03);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(91 127 255 / 0.06),
    inset 0 1px 0 rgba(255 255 255 / 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  animation: card-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: card-in 280ms var(--ease);
}

/* Brillo sutil en el borde superior */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(91 127 255 / 0.4),
    rgba(56 189 248 / 0.3),
    transparent
  );
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .login-card { max-width: none; margin: 0; }
}

/* ── Mobile header (solo mobile) ── */
.login-mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

@media (min-width: 900px) {
  .login-mobile-header { display: none; }
}

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

.login-mobile-logo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#0c1120, #0c1120) padding-box,
    conic-gradient(#5b7fff 0%, #38bdf8 40%, #818cf8 70%, transparent 80%) border-box;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    conic-gradient(var(--accent) 0%, var(--cyan) 40%, var(--accent-2) 70%, transparent 80%) border-box;
  animation: ring-spin 3s linear infinite;
}

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

.login-mobile-logo-image {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid rgba(91 127 255 / 0.25);
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.55), 0 0 18px rgba(91 127 255 / 0.15);
  box-shadow: var(--shadow-md), 0 0 18px rgba(91 127 255 / 0.15);
  position: relative;
  z-index: 1;
}

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

.login-mobile-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #93a8ff, #38bdf8);
  background: linear-gradient(130deg, #93a8ff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-mobile-subtitle {
  font-size: 11.5px;
  color: #3d4f6e;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Header de la card ── */
.login-card-header { text-align: center; }

.login-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #e8ecf4;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.login-card-description {
  font-size: 13px;
  color: #3d4f6e;
  color: var(--text-3);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORMULARIO
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-form { display: flex; flex-direction: column; gap: 14px; }

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

.login-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8896b3;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-field-icon { font-size: 13px; flex-shrink: 0; }

.login-field-input {
  width: 100%;
  padding: 11px 14px;
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--r-md);
  color: #e8ecf4;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 44px;
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms, box-shadow 160ms;
  transition: border-color 160ms var(--ease), background 160ms, box-shadow 160ms;
  outline: none;
  appearance: none;
}

.login-field-input::placeholder { color: #2a3650; color: var(--text-4); }

.login-field-input:focus {
  border-color: rgba(91 127 255 / 0.5);
  background: #1a2235;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(91 127 255 / 0.1);
}

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

.login-field-input-error { border-color: rgba(248 113 113 / 0.22) !important; border-color: var(--red-border) !important; }
.login-field-input-error:focus { box-shadow: 0 0 0 3px rgba(248 113 113 / 0.1) !important; box-shadow: 0 0 0 3px var(--red-subtle) !important; }

.login-field-password { position: relative; }
.login-field-password .login-field-input { padding-right: 46px; }

.login-field-toggle {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #3d4f6e;
  color: var(--text-3);
  border-radius: 0 10px 10px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: color 140ms;
}
.login-field-toggle:hover { color: #8896b3; color: var(--text-2); }

/* ── Olvidaste contraseña ── */
.login-forgot {
  align-self: flex-end;
  font-size: 12px;
  font-weight: 600;
  color: #3d4f6e;
  color: var(--text-3);
  transition: color 140ms;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.login-forgot:hover { color: #5b7fff; color: var(--accent); }

/* ── Alertas ── */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  animation: slide-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-in 160ms var(--ease);
}

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

.login-alert-error {
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  border: 1px solid rgba(248 113 113 / 0.22);
  border: 1px solid var(--red-border);
  color: #fca5a5;
}
.login-alert-success {
  background: rgba(52 211 153 / 0.1);
  background: var(--green-subtle);
  border: 1px solid rgba(52 211 153 / 0.22);
  border: 1px solid var(--green-border);
  color: #6ee7b7;
}

.login-alert-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.login-alert-message { font-weight: 500; }

/* ── Bloqueado ── */
.login-blocked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(251 191 36 / 0.1);
  background: var(--yellow-subtle);
  border: 1px solid rgba(251 191 36 / 0.22);
  border: 1px solid var(--yellow-border);
  border-radius: 10px;
  border-radius: var(--r-md);
  animation: slide-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-in 160ms var(--ease);
}

.login-blocked-icon { font-size: 20px; flex-shrink: 0; }

.login-blocked-title {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  color: var(--yellow);
}

.login-blocked-timer {
  font-size: 12px;
  color: rgba(251 191 36 / 0.7);
  margin-top: 2px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ── Botón submit ── */
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  font-size: 14.5px;
  font-weight: 700;
  min-height: 48px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #5b7fff 0%, #818cf8 100%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border: 1px solid rgba(91 127 255 / 0.3);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.1) inset,
    0 0 24px rgba(91 127 255 / 0.2);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.1) inset,
    var(--shadow-accent);
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 120ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms;
  transition: opacity 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms;
  cursor: pointer;
}

.login-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(91 127 255 / 0.3), 0 4px 20px rgba(0 0 0 / 0.55);
  box-shadow: 0 0 32px rgba(91 127 255 / 0.3), var(--shadow-md);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
  opacity: 1;
}

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

.login-submit-loading {
  background: #1a2235 !important;
  background: var(--surface-3) !important;
  color: #8896b3 !important;
  color: var(--text-2) !important;
  border-color: rgba(99 120 180 / 0.1) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.login-submit-blocked {
  background: #1a2235 !important;
  background: var(--surface-3) !important;
  color: #3d4f6e !important;
  color: var(--text-3) !important;
  border-color: rgba(99 120 180 / 0.1) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.login-submit-icon { font-size: 16px; }

/* Spinner dentro del botón */
.login-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255 255 255 / 0.2);
  border-top-color: #8896b3;
  border-top-color: var(--text-2);
  border-radius: 50%;
  animation: spin-btn 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin-btn { to { transform: rotate(360deg); } }

/* ── Divisor ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-divider-line {
  flex: 1 1;
  height: 1px;
  background: rgba(99 120 180 / 0.1);
  background: var(--border);
}

.login-divider-text {
  font-size: 11.5px;
  color: #2a3650;
  color: var(--text-4);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Footer de la card ── */
.login-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-register {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #8896b3;
  color: var(--text-2);
  min-height: 36px;
  padding: 6px 0;
  transition: color 140ms;
}
.login-register:hover { color: #5b7fff; color: var(--accent); }
.login-register-icon { font-size: 14px; }

.login-attempts {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #2a3650;
  color: var(--text-4);
  font-weight: 500;
}
.login-attempts-icon { font-size: 11px; }

/* ── Plataformas mobile (dentro de la card) ── */
.login-mobile-platforms { text-align: center; }

@media (min-width: 900px) {
  .login-mobile-platforms { display: none; }
}

.login-mobile-platforms-title {
  font-size: 11px;
  color: #2a3650;
  color: var(--text-4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.login-mobile-platforms-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-mobile-platforms-grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  border-radius: var(--r-sm);
  background: #111827;
  background: var(--surface-2);
  padding: 4px;
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODAL — RECUPERAR CONTRASEÑA
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0 5 15 / 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  animation: overlay-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: overlay-in 180ms var(--ease);
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-modal {
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.2);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0 0 0 / 0.65), 0 0 0 1px rgba(91 127 255 / 0.06);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(91 127 255 / 0.06);
  overflow: hidden;
  animation: modal-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: modal-in 220ms var(--ease);
  position: relative;
}

/* Línea gradiente superior */
.login-modal::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 modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  border-bottom: 1px solid var(--border);
}

.login-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #e8ecf4;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.login-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  color: #3d4f6e;
  color: var(--text-3);
  font-size: 14px;
  min-width: 44px;
  min-height: 44px;
  transition: background 140ms, color 140ms;
}
.login-modal-close:hover { background: #1a2235; background: var(--surface-3); color: #e8ecf4; color: var(--text-1); }

.login-modal-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-modal-description {
  font-size: 13.5px;
  color: #8896b3;
  color: var(--text-2);
  line-height: 1.65;
}

.login-modal-form { display: flex; flex-direction: column; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTONES FLOTANTES DE SOPORTE (mobile)
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-mobile-support {
  position: fixed;
  bottom: 80px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

@media (min-width: 900px) {
  .login-mobile-support { bottom: 20px; }
}

.login-mobile-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border-radius: var(--r-full);
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.55);
  box-shadow: var(--shadow-md);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms;
  transition: transform 160ms var(--ease), box-shadow 160ms;
}
.login-mobile-support-btn:hover  { transform: scale(1.1); box-shadow: 0 12px 40px rgba(0 0 0 / 0.65); box-shadow: var(--shadow-lg); }
.login-mobile-support-btn:active { transform: scale(0.96); }

.login-mobile-support-whatsapp {
  background: #1a3c2a;
  color: #25d366;
  border: 1px solid rgba(37 211 102 / 0.25);
}
.login-mobile-support-whatsapp:hover { background: #1e4a31; }

.login-mobile-support-telegram {
  background: #0f2a3d;
  color: #29a8e8;
  border: 1px solid rgba(40 168 230 / 0.22);
}
.login-mobile-support-telegram:hover { background: #133347; }

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

.login-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(99 120 180 / 0.1);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-footer p {
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(130deg, #93a8ff, #38bdf8);
  background: linear-gradient(130deg, #93a8ff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-footer-sub {
  font-size: 11px !important;
  color: #2a3650 !important;
  color: var(--text-4) !important;
  background: none !important;
  -webkit-text-fill-color: #2a3650 !important;
  -webkit-text-fill-color: var(--text-4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .login-card    { padding: 22px 18px; border-radius: 18px; border-radius: var(--r-xl); }
  .login-content { padding: 16px 12px; }
  .login-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (min-width: 481px) and (max-width: 899px) {
  .login-content { padding: 32px 24px; }
}

@media (min-width: 900px) {
  .login-card { padding: 32px 28px; }
}
/* ════════════════════════════════════════════
   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; }
/* ════════════════════════════════════════════
   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;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LUPPATV — Dashboard.css  v3.0
   Tema: Dark Professional — Navy / Slate / Indigo
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  /* Sidebar */
  --sidebar-w:          260px;
  --sidebar-mini:       66px;

  /* Superficies */
  --bg:                 #070b14;
  --surface-0:          #070b14;
  --surface-1:          #0c1120;
  --surface-2:          #111827;
  --surface-3:          #1a2235;
  --surface-4:          #212d42;

  /* Sidebar específico */
  --sidebar-bg:         #080c18;
  --sidebar-border:     rgba(99 120 180 / 0.1);
  --sidebar-hover:      rgba(99 120 180 / 0.06);
  --sidebar-active:     rgba(99 120 180 / 0.12);

  /* Header */
  --header-bg:          rgba(7 11 20 / 0.92);

  /* Acento — Indigo brillante */
  --accent:             #5b7fff;
  --accent-2:           #818cf8;
  --accent-hover:       #4a6eff;
  --accent-subtle:      rgba(91 127 255 / 0.1);
  --accent-glow:        rgba(91 127 255 / 0.22);

  /* Acento secundario — Cyan eléctrico */
  --cyan:               #38bdf8;
  --cyan-subtle:        rgba(56 189 248 / 0.1);

  /* Texto */
  --text-1:             #e8ecf4;
  --text-2:             #8896b3;
  --text-3:             #3d4f6e;
  --text-4:             #2a3650;

  /* Bordes */
  --border:             rgba(99 120 180 / 0.1);
  --border-2:           rgba(99 120 180 / 0.16);

  /* Estados */
  --green:              #34d399;
  --green-subtle:       rgba(52 211 153 / 0.1);
  --green-border:       rgba(52 211 153 / 0.2);
  --red:                #f87171;
  --red-subtle:         rgba(248 113 113 / 0.1);
  --red-border:         rgba(248 113 113 / 0.2);
  --yellow:             #fbbf24;
  --yellow-subtle:      rgba(251 191 36 / 0.1);
  --yellow-border:      rgba(251 191 36 / 0.2);

  /* Layout */
  --header-h:           56px;

  /* Radios */
  --r-xs:               4px;
  --r-sm:               6px;
  --r-md:               10px;
  --r-lg:               14px;
  --r-xl:               18px;
  --r-2xl:              24px;
  --r-full:             9999px;

  /* Sombras */
  --shadow-sm:          0 1px 4px rgba(0 0 0 / 0.5);
  --shadow-md:          0 4px 20px rgba(0 0 0 / 0.55);
  --shadow-lg:          0 12px 40px rgba(0 0 0 / 0.65);
  --shadow-accent:      0 0 24px rgba(91 127 255 / 0.18);
  --shadow-glow-sm:     0 0 12px rgba(91 127 255 / 0.14);

  /* Transiciones */
  --ease:               cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:             110ms;
  --t-base:             190ms;
  --t-slide:            250ms;
}

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

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #070b14;
  background: var(--bg);
  color: #e8ecf4;
  color: var(--text-1);
  line-height: 1.5;
}

button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul[role="list"] { list-style: none; }
img { display: block; }

:focus-visible {
  outline: 2px solid #5b7fff;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
  border-radius: var(--r-sm);
}

::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(99 120 180 / 0.2); border-radius: 9999px; border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(99 120 180 / 0.35); }

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

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

.dashboard-container {
  display: flex;
  min-height: 100dvh;
  background: #070b14;
  background: var(--bg);
  position: relative;
  /* Textura muy sutil */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91 127 255 / 0.06) 0%, transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(99 120 180 / 0.018) 1px, transparent 0);
  background-size: 100%, 32px 32px;
}

/* ── Overlay (solo mobile) ──────────────────────────────────────────────────── */
.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0 5 15 / 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--t-slide) var(--ease);
}

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

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  background: #080c18;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(99 120 180 / 0.1);
  border-right: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  z-index: 100;
  overflow: hidden;
  position: relative;
}

/* Línea decorativa indigo en el borde derecho */
.dashboard-sidebar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(91 127 255 / 0.3) 25%,
    rgba(56 189 248 / 0.2) 75%,
    transparent 100%
  );
  pointer-events: none;
}

/* Scroll area dentro del sidebar */
.sidebar-nav-scroll {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(99 120 180 / 0.12) transparent;
}

/* ── MOBILE: sidebar = drawer ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    width: 260px;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform var(--t-slide) var(--ease);
    box-shadow: 0 12px 40px rgba(0 0 0 / 0.65);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-is-open .dashboard-sidebar  { transform: translateX(0); }
  .dashboard-overlay                   { display: block; pointer-events: none; }
  .sidebar-is-open .dashboard-overlay  { opacity: 1; pointer-events: auto; }
  .dashboard-main                      { margin-left: 0 !important; }
}

/* ── DESKTOP: icon rail ↔ sidebar completo ──────────────────────────────────── */
@media (min-width: 768px) {
  .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 66px;
    width: var(--sidebar-mini);
    transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: width var(--t-slide) var(--ease);
  }

  .sidebar-is-open .dashboard-sidebar {
    width: 260px;
    width: var(--sidebar-w);
  }

  .dashboard-main {
    width: calc(100% - 66px);
    width: calc(100% - var(--sidebar-mini));
    transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: width var(--t-slide) var(--ease);
  }

  .sidebar-is-open .dashboard-main {
    width: calc(100% - 260px);
    width: calc(100% - var(--sidebar-w));
  }

  .dashboard-overlay { display: none !important; }

  /* ── Mini mode: ocultar textos ── */
  .dashboard-container:not(.sidebar-is-open) .brand-text,
  .dashboard-container:not(.sidebar-is-open) .nav-title,
  .dashboard-container:not(.sidebar-is-open) .nav-info,
  .dashboard-container:not(.sidebar-is-open) .user-info,
  .dashboard-container:not(.sidebar-is-open) .sidebar-status,
  .dashboard-container:not(.sidebar-is-open) .sidebar-close,
  .dashboard-container:not(.sidebar-is-open) .btn-logout,
  .dashboard-container:not(.sidebar-is-open) .nav-active-bar {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    transition: opacity 110ms cubic-bezier(0.16, 1, 0.3, 1), width 250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity var(--t-fast) var(--ease), width var(--t-slide) var(--ease);
  }

  /* ── Mini mode: centrar iconos ── */
  .dashboard-container:not(.sidebar-is-open) .sidebar-header {
    justify-content: center;
    padding: 16px 8px;
  }
  .dashboard-container:not(.sidebar-is-open) .sidebar-brand { justify-content: center; }
  .dashboard-container:not(.sidebar-is-open) .nav-item      { justify-content: center; padding: 10px 0; }
  .dashboard-container:not(.sidebar-is-open) .nav-list      { align-items: center; }
  .dashboard-container:not(.sidebar-is-open) .user-card     {
    justify-content: center;
    padding: 10px 8px;
    border-color: transparent;
    background: transparent;
  }
  .dashboard-container:not(.sidebar-is-open) .user-avatar { margin: 0 auto; }

  /* ── Tooltip mini ── */
  .dashboard-container:not(.sidebar-is-open) .nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a2235;
    background: var(--surface-3);
    color: #e8ecf4;
    color: var(--text-1);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(99 120 180 / 0.16);
    border: 1px solid var(--border-2);
    box-shadow: 0 4px 20px rgba(0 0 0 / 0.55);
    box-shadow: var(--shadow-md);
    z-index: 300;
    transition: opacity 110ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity var(--t-fast) var(--ease);
    width: auto;
    overflow: visible;
  }
  .dashboard-container:not(.sidebar-is-open) .nav-item:hover::before { opacity: 1; }

  /* ── Estado abierto: restaurar elementos ── */
  .sidebar-is-open .brand-text,
  .sidebar-is-open .nav-title,
  .sidebar-is-open .nav-info,
  .sidebar-is-open .user-info,
  .sidebar-is-open .sidebar-status,
  .sidebar-is-open .sidebar-close,
  .sidebar-is-open .btn-logout,
  .sidebar-is-open .nav-active-bar {
    opacity: 1;
    pointer-events: auto;
    width: auto;
    transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity var(--t-slide) var(--ease);
  }

  /* ── Logo header desaparece cuando sidebar abierto ── */
  .sidebar-is-open .header-brand-mobile {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }
}

/* ── Sidebar: header ────────────────────────────────────────────────────────── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  transition: padding 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: padding var(--t-slide) var(--ease);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(91 127 255 / 0.25);
  box-shadow: 0 0 12px rgba(91 127 255 / 0.14);
  box-shadow: var(--shadow-glow-sm);
}

.brand-text { overflow: hidden; white-space: nowrap; }

.brand-text h2 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(130deg, #93a8ff 0%, #60cbf5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text p {
  font-size: 10px;
  color: #3d4f6e;
  color: var(--text-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 1px;
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  color: #3d4f6e;
  color: var(--text-3);
  font-size: 13px;
  flex-shrink: 0;
  transition: background 110ms, color 110ms;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar-close:hover { background: #1a2235; background: var(--surface-3); color: #e8ecf4; color: var(--text-1); }

/* ── Status badge ───────────────────────────────────────────────────────────── */
.sidebar-status {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 9999px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.status-badge.status-connected {
  background: rgba(52 211 153 / 0.1);
  background: var(--green-subtle);
  color: #34d399;
  color: var(--green);
  border: 1px solid rgba(52 211 153 / 0.2);
  border: 1px solid var(--green-border);
}
.status-badge.status-disconnected {
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  color: #f87171;
  color: var(--red);
  border: 1px solid rgba(248 113 113 / 0.2);
  border: 1px solid var(--red-border);
}
.status-badge.status-connecting {
  background: rgba(251 191 36 / 0.1);
  background: var(--yellow-subtle);
  color: #fbbf24;
  color: var(--yellow);
  border: 1px solid rgba(251 191 36 / 0.2);
  border: 1px solid var(--yellow-border);
  animation: pulse-badge 2s ease-in-out infinite;
}

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

.status-retry { font-size: 12px; opacity: 0.65; transition: opacity 110ms; transition: opacity var(--t-fast); }
.status-retry:hover { opacity: 1; }

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.sidebar-nav {
  padding: 8px 0;
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-nav:last-of-type { border-bottom: none; }

.nav-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a3650;
  color: var(--text-4);
  padding: 4px 16px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.nav-list {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ── Nav item ───────────────────────────────────────────────────────────────── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border-radius: var(--r-md);
  text-align: left;
  min-height: 44px;
  overflow: hidden;
  transition:
    background 110ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    background var(--t-fast) var(--ease),
    padding var(--t-slide) var(--ease);
  white-space: nowrap;
}

.nav-item:hover:not(:disabled)  { background: rgba(99 120 180 / 0.06); background: var(--sidebar-hover); }
.nav-item:active:not(:disabled) { transform: scale(0.985); }

.nav-item-active {
  background: rgba(99 120 180 / 0.12) !important;
  background: var(--sidebar-active) !important;
  box-shadow: inset 0 0 0 1px rgba(91 127 255 / 0.12);
}

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

.nav-active-bar {
  position: absolute;
  right: 0;
  top: 16%;
  width: 3px;
  height: 68%;
  border-radius: 2px 0 0 2px;
  background: #5b7fff;
  background: var(--platform-color, var(--accent));
  box-shadow: 0 0 10px #5b7fff;
  box-shadow: 0 0 10px var(--platform-color, var(--accent));
}

.nav-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 110ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform var(--t-fast) var(--ease);
}
.nav-item:hover .nav-icon { transform: scale(1.06); }

.nav-info { flex: 1 1; min-width: 0; overflow: hidden; }

.nav-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e8ecf4;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 1px;
}
.nav-status.status-active       { color: #34d399; color: var(--green); }
.nav-status.status-locked       { color: #3d4f6e; color: var(--text-3); }
.nav-status.status-maintenance  { color: #fbbf24; color: var(--yellow); }

/* ── Footer sidebar ─────────────────────────────────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(99 120 180 / 0.1);
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  overflow: hidden;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border-radius: var(--r-md);
  background: rgba(99 120 180 / 0.04);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  transition: background 110ms;
  transition: background var(--t-fast);
}
.user-card:hover { background: rgba(99 120 180 / 0.08); }

.user-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9999px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #5b7fff 0%, #a78bfa 100%);
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(91 127 255 / 0.3);
}

.user-info { flex: 1 1; min-width: 0; overflow: hidden; }

.user-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e8ecf4;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-type {
  display: block;
  font-size: 10.5px;
  color: #3d4f6e;
  color: var(--text-3);
  margin-top: 1px;
  text-transform: capitalize;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  color: #3d4f6e;
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 110ms, color 110ms;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-logout:hover { background: rgba(248 113 113 / 0.1); background: var(--red-subtle); color: #f87171; color: var(--red); }

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

.dashboard-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: width var(--t-slide) var(--ease);
}

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

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  height: var(--header-h);
  background: rgba(7 11 20 / 0.92);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(99 120 180 / 0.1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

/* Línea gradiente inferior */
.dashboard-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91 127 255 / 0.35) 25%,
    rgba(56 189 248 / 0.25) 75%,
    transparent 100%
  );
}

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

/* Hamburger — visible siempre */
.btn-menu {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  min-width: 44px;
  min-height: 44px;
  transition: background 110ms;
  transition: background var(--t-fast);
}
.btn-menu:hover { background: #1a2235; background: var(--surface-3); }
.btn-menu span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #8896b3;
  background: var(--text-2);
  border-radius: 2px;
  transition: background 110ms;
  transition: background var(--t-fast);
}
.btn-menu:hover span { background: #e8ecf4; background: var(--text-1); }

/* Logo en header */
.header-brand-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(130deg, #93a8ff, #60cbf5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  max-width: 180px;
  transition: max-width 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: max-width var(--t-slide) var(--ease), opacity var(--t-slide) var(--ease);
  overflow: hidden;
}

.brand-logo-mobile {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

/* Título central */
.header-title { flex: 1 1; min-width: 0; text-align: center; }

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

.header-desc { font-size: 11px; color: #3d4f6e; color: var(--text-3); margin-top: 1px; display: none; }

@media (min-width: 768px) {
  .header-title h1 { font-size: 16px; }
  .header-desc     { display: block; }
}

/* Derecha */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.header-status-dot.status-connected    { background: #34d399; background: var(--green); box-shadow: 0 0 6px #34d399; box-shadow: 0 0 6px var(--green); }
.header-status-dot.status-disconnected { background: #f87171; background: var(--red); }
.header-status-dot.status-connecting   { background: #fbbf24; background: var(--yellow); animation: pulse-dot 1.6s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  color: #25d366;
  min-width: 44px;
  min-height: 44px;
  transition: background 110ms;
  transition: background var(--t-fast);
}
.btn-whatsapp:hover { background: rgba(37 211 102 / 0.1); }

.btn-logout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 34px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: #8896b3;
  color: var(--text-2);
  min-height: 44px;
  border: 1px solid transparent;
  transition: background 110ms, color 110ms, border-color 110ms;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn-logout-header:hover {
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  color: #f87171;
  color: var(--red);
  border-color: rgba(248 113 113 / 0.2);
  border-color: var(--red-border);
}
.btn-logout-header span { display: none; }
@media (min-width: 500px) { .btn-logout-header span { display: inline; } }

/* ═══════════════════════════════════════════════════════════════════════════════
   ERROR BANNER
   ═══════════════════════════════════════════════════════════════════════════════ */

.dashboard-error {
  margin: 14px 18px 0;
  border-radius: 10px;
  border-radius: var(--r-md);
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  border: 1px solid rgba(248 113 113 / 0.2);
  border: 1px solid var(--red-border);
  padding: 12px 16px;
  flex-shrink: 0;
  animation: slide-down 180ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-down 180ms var(--ease);
}

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

.error-content { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.error-icon    { font-size: 18px; flex-shrink: 0; }
.error-text    { flex: 1 1; min-width: 0; }
.error-text h4 { font-size: 13px; font-weight: 700; color: #fca5a5; }
.error-text p  { font-size: 12px; color: #8896b3; color: var(--text-2); margin-top: 2px; }

.btn-retry {
  padding: 6px 14px;
  border-radius: 6px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  background: rgba(248 113 113 / 0.12);
  color: #f87171;
  color: var(--red);
  border: 1px solid rgba(248 113 113 / 0.2);
  border: 1px solid var(--red-border);
  min-height: 36px;
  transition: background 110ms;
  transition: background var(--t-fast);
}
.btn-retry:hover { background: rgba(248 113 113 / 0.22); }

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

.dashboard-content {
  flex: 1 1;
  padding: 20px;
  animation: fade-up 200ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: fade-up 200ms var(--ease);
}

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

@media (min-width: 768px) { .dashboard-content { padding: 24px 28px; } }

/* ═══════════════════════════════════════════════════════════════════════════════
   PLATFORM WRAPPER — banner + contenido
   ═══════════════════════════════════════════════════════════════════════════════ */

.platform-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0 0 0 / 0.45);
}

.platform-banner {
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
}

/* Punto de luz sutil en el banner */
.platform-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255 255 255 / 0.03);
  pointer-events: none;
}
.platform-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255 255 255 / 0.06);
  pointer-events: none;
}

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

.platform-banner-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0 0 0 / 0.55);
  border: 1px solid rgba(255 255 255 / 0.1);
}

.platform-banner-info { display: flex; flex-direction: column; gap: 4px; }

.platform-banner-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.platform-banner-desc {
  font-size: 12.5px;
  color: rgba(255 255 255 / 0.45);
  font-weight: 400;
}

.platform-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  width: fit-content;
}

.platform-banner-badge--active {
  background: rgba(52 211 153 / 0.1);
  background: var(--green-subtle);
  color: #34d399;
  color: var(--green);
  border: 1px solid rgba(52 211 153 / 0.2);
  border: 1px solid var(--green-border);
}
.platform-banner-badge--locked {
  background: rgba(255 255 255 / 0.05);
  color: rgba(255 255 255 / 0.3);
  border: 1px solid rgba(255 255 255 / 0.08);
}

.platform-content {
  background: #0c1120;
  background: var(--surface-1);
  padding: 24px;
}

@media (max-width: 767px) {
  .platform-banner      { padding: 20px 16px; }
  .platform-banner-logo { width: 46px; height: 46px; }
  .platform-banner-name { font-size: 20px; }
  .platform-content     { padding: 16px; }
}

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

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

.maintenance-card {
  text-align: center;
  max-width: 380px;
  padding: 44px 36px;
  border-radius: 24px;
  border-radius: var(--r-2xl);
  background: #111827;
  background: var(--surface-2);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.55);
  box-shadow: var(--shadow-md);
}

.maintenance-icon    { font-size: 48px; margin-bottom: 20px; }
.maintenance-card h2 { font-size: 20px; font-weight: 700; color: #e8ecf4; color: var(--text-1); margin-bottom: 10px; letter-spacing: -0.02em; }
.maintenance-card p  { font-size: 14px; color: #8896b3; color: var(--text-2); margin-bottom: 4px; line-height: 1.6; }
.maintenance-subtitle { font-size: 12px !important; color: #3d4f6e !important; color: var(--text-3) !important; margin-bottom: 28px !important; }

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #5b7fff, #818cf8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  min-height: 44px;
  box-shadow: 0 0 24px rgba(91 127 255 / 0.18);
  box-shadow: var(--shadow-accent);
  transition: opacity 110ms, transform 110ms;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.btn-support:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-support:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING
   ═══════════════════════════════════════════════════════════════════════════════ */

.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 16px;
  background: #070b14;
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(91 127 255 / 0.07) 0%, transparent 60%);
}

.dashboard-loading h3 { font-size: 17px; font-weight: 700; color: #e8ecf4; color: var(--text-1); letter-spacing: -0.02em; }
.dashboard-loading p  { font-size: 13px; color: #3d4f6e; color: var(--text-3); }

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2.5px solid rgba(99 120 180 / 0.12);
  border-top-color: #5b7fff;
  border-top-color: var(--accent);
  border-right-color: #38bdf8;
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  box-shadow: 0 0 18px rgba(91 127 255 / 0.2);
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-top: 1px solid rgba(99 120 180 / 0.1);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #3d4f6e;
  color: var(--text-3);
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(7 11 20 / 0.6);
}

.footer-status { display: flex; align-items: center; gap: 6px; }

.status-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.status-dot.status-connected    { background: #34d399; background: var(--green); box-shadow: 0 0 5px #34d399; box-shadow: 0 0 5px var(--green); }
.status-dot.status-disconnected { background: #f87171; background: var(--red); }
.status-dot.status-connecting   { background: #fbbf24; background: var(--yellow); }
/* ✅ ADMINPANEL.CSS - ARCHIVO COMPLETO */

/* ============================================
   VARIABLES CSS Y TEMAS
   ============================================ */

:root {
  /* Colores Light Mode */
  --admin-bg-primary: #f8f9fa;
  --admin-bg-secondary: #ffffff;
  --admin-bg-sidebar: #2c3e50;
  --admin-text-primary: #2c3e50;
  --admin-text-secondary: #6c757d;
  --admin-text-light: #ffffff;
  --admin-border: #dee2e6;
  --admin-shadow: rgba(0, 0, 0, 0.1);
  --admin-accent: #667eea;
  --admin-success: #28a745;
  --admin-warning: #ffc107;
  --admin-danger: #dc3545;
  --admin-info: #17a2b8;
  
  /* Transiciones */
  --admin-transition: all 0.3s ease;
  --admin-transition-fast: all 0.2s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --admin-bg-primary: #1a1a1a;
  --admin-bg-secondary: #2d2d2d;
  --admin-bg-sidebar: #121212;
  --admin-text-primary: #ffffff;
  --admin-text-secondary: #b0b0b0;
  --admin-text-light: #ffffff;
  --admin-border: #404040;
  --admin-shadow: rgba(0, 0, 0, 0.3);
  --admin-accent: #667eea;
  --admin-success: #4caf50;
  --admin-warning: #ff9800;
  --admin-danger: #f44336;
  --admin-info: #2196f3;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.servicios-admin-panel {
  display: flex;
  min-height: 100vh;
  background-color: #f8f9fa;
  background-color: var(--admin-bg-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.3s ease;
  transition: var(--admin-transition);
}

.servicios-admin-sidebar-collapsed .servicios-admin-sidebar {
  width: 80px;
}

.servicios-admin-sidebar-collapsed .servicios-admin-main {
  margin-left: 80px;
}

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

.servicios-admin-sidebar {
  width: 280px;
  background: #2c3e50;
  background: var(--admin-bg-sidebar);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  transition: var(--admin-transition);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* HEADER DEL SIDEBAR */
.servicios-admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.servicios-admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.servicios-admin-logo-icon {
  font-size: 28px;
  color: #667eea;
  color: var(--admin-accent);
}

.servicios-admin-logo-text h3 {
  margin: 0;
  color: #ffffff;
  color: var(--admin-text-light);
  font-size: 18px;
  font-weight: 700;
}

.servicios-admin-logo-text p {
  margin: 0;
  color: #6c757d;
  color: var(--admin-text-secondary);
  font-size: 12px;
  opacity: 0.8;
}

.servicios-admin-sidebar-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  color: var(--admin-text-light);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.servicios-admin-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* NAVEGACIÓN */
.servicios-admin-sidebar-nav {
  flex: 1 1;
  padding: 20px 0;
}

.servicios-admin-nav-item {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  color: var(--admin-text-light);
  padding: 15px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  font-size: 14px;
}

.servicios-admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.servicios-admin-nav-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.servicios-admin-nav-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #667eea;
  background: var(--admin-accent);
}

.servicios-admin-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.servicios-admin-nav-badge {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
  font-weight: 600;
}

.servicios-admin-nav-badge-warning {
  background: #ffc107;
  background: var(--admin-warning);
  color: #000;
}

/* FOOTER DEL SIDEBAR */
.servicios-admin-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.servicios-admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.servicios-admin-profile-avatar {
  width: 40px;
  height: 40px;
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.servicios-admin-profile-info {
  flex: 1 1;
}

.servicios-admin-profile-name {
  margin: 0;
  color: #ffffff;
  color: var(--admin-text-light);
  font-size: 14px;
  font-weight: 600;
}

.servicios-admin-profile-role {
  margin: 0;
  color: #6c757d;
  color: var(--admin-text-secondary);
  font-size: 12px;
  opacity: 0.8;
}

.servicios-admin-profile-email {
  margin: 0;
  color: #6c757d;
  color: var(--admin-text-secondary);
  font-size: 11px;
  opacity: 0.7;
}

.servicios-admin-sidebar-controls {
  display: flex;
  gap: 8px;
}

.servicios-admin-control-btn,
.servicios-admin-logout-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  color: var(--admin-text-light);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.servicios-admin-control-btn:hover,
.servicios-admin-logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.servicios-admin-logout-btn {
  background: rgba(220, 53, 69, 0.2);
}

.servicios-admin-logout-btn:hover {
  background: rgba(220, 53, 69, 0.3);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */

.servicios-admin-main {
  flex: 1 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.3s ease;
  transition: var(--admin-transition);
}

/* HEADER PRINCIPAL */
.servicios-admin-header {
  background: #ffffff;
  background: var(--admin-bg-secondary);
  border-bottom: 1px solid #dee2e6;
  border-bottom: 1px solid var(--admin-border);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px var(--admin-shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.servicios-admin-header-left {
  flex: 1 1;
}

.servicios-admin-section-title {
  margin: 0 0 4px 0;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.servicios-admin-section-icon {
  font-size: 28px;
}

.servicios-admin-section-breadcrumb {
  margin: 0;
  color: #6c757d;
  color: var(--admin-text-secondary);
  font-size: 14px;
}

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

.servicios-admin-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.servicios-admin-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.servicios-admin-btn-secondary {
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  color: #2c3e50;
  color: var(--admin-text-primary);
  border: 1px solid #dee2e6;
  border: 1px solid var(--admin-border);
}

.servicios-admin-btn-secondary:hover:not(:disabled) {
  background: #6c757d;
  background: var(--admin-text-secondary);
  color: white;
  transform: translateY(-1px);
}

.servicios-admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.servicios-admin-refresh-icon {
  font-size: 16px;
}

.servicios-admin-spinning {
  animation: spin 1s linear infinite;
}

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

/* NOTIFICACIONES DROPDOWN */
.servicios-admin-notifications-dropdown {
  position: relative;
}

.servicios-admin-notification-btn {
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  border: 1px solid #dee2e6;
  border: 1px solid var(--admin-border);
  color: #2c3e50;
  color: var(--admin-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.servicios-admin-notification-btn:hover {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
}

.servicios-admin-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  background: var(--admin-danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* INFO DEL ADMIN */
.servicios-admin-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.servicios-admin-details {
  text-align: right;
}

.servicios-admin-name {
  display: block;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.servicios-admin-badge {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.servicios-admin-system-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.servicios-admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  background: var(--admin-success);
}

.servicios-admin-status-online {
  background: #28a745;
  background: var(--admin-success);
}

.servicios-admin-status-error {
  background: #dc3545;
  background: var(--admin-danger);
}

.servicios-admin-status-text {
  font-size: 12px;
  color: #6c757d;
  color: var(--admin-text-secondary);
}

/* ============================================
   ÁREA DE CONTENIDO
   ============================================ */

.servicios-admin-content {
  flex: 1 1;
  padding: 30px;
  background: #f8f9fa;
  background: var(--admin-bg-primary);
}

/* ============================================
   SISTEMA DE NOTIFICACIONES TOAST
   ============================================ */

.admin-notification-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.admin-notification-toast {
  background: #ffffff;
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 30px var(--admin-shadow);
  border-left: 4px solid #28a745;
  border-left: 4px solid var(--admin-success);
  overflow: hidden;
  animation: slideInRight 0.3s ease-out;
}

.admin-notification-toast-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
  background: linear-gradient(135deg, #d4edda 0%, var(--admin-bg-secondary) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-notification-toast-icon {
  font-size: 24px;
}

.admin-notification-toast-title h4 {
  margin: 0 0 4px 0;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 16px;
  font-weight: 600;
}

.admin-notification-toast-time {
  font-size: 12px;
  color: #6c757d;
  color: var(--admin-text-secondary);
  margin: 0;
}

.admin-notification-toast-close {
  background: none;
  border: none;
  color: #6c757d;
  color: var(--admin-text-secondary);
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  margin-left: auto;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.admin-notification-toast-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.admin-notification-toast-body {
  padding: 0 20px 15px 20px;
}

.admin-notification-toast-user p {
  margin: 4px 0;
  font-size: 14px;
  color: #2c3e50;
  color: var(--admin-text-primary);
}

.admin-notification-toast-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  text-align: right;
}

.admin-notification-toast-action {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.admin-notification-toast-action:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   DROPDOWN DE NOTIFICACIONES
   ============================================ */

.admin-notification-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  background: #ffffff;
  background: var(--admin-bg-secondary);
  border: 1px solid #dee2e6;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 30px var(--admin-shadow);
  z-index: 2000;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

.admin-notification-dropdown-header {
  padding: 15px 20px;
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  border-bottom: 1px solid #dee2e6;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-notification-dropdown-header h3 {
  margin: 0;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 16px;
  font-weight: 600;
}

.admin-notification-dropdown-count {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-notification-dropdown-list {
  max-height: 300px;
  overflow-y: auto;
}

.admin-notification-dropdown-item {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  border-bottom: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
  display: flex;
  gap: 12px;
  position: relative;
}

.admin-notification-dropdown-item:hover {
  background: #f8f9fa;
  background: var(--admin-bg-primary);
}

.admin-notification-dropdown-item:last-child {
  border-bottom: none;
}

.admin-notification-unread {
  background: rgba(102, 126, 234, 0.05);
}

.admin-notification-dropdown-item-icon {
  font-size: 18px;
  color: #667eea;
  color: var(--admin-accent);
  margin-top: 2px;
}

.admin-notification-dropdown-item-content {
  flex: 1 1;
}

.admin-notification-dropdown-item-title {
  font-weight: 600;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.admin-notification-dropdown-item-details p {
  margin: 2px 0;
  font-size: 12px;
  color: #6c757d;
  color: var(--admin-text-secondary);
}

.admin-notification-dropdown-item-time {
  font-size: 11px;
  color: #6c757d;
  color: var(--admin-text-secondary);
  margin-top: 4px;
}

.admin-notification-dropdown-item-dot {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  background: #667eea;
  background: var(--admin-accent);
  border-radius: 50%;
}

.admin-notification-dropdown-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  border-top: 1px solid #dee2e6;
  border-top: 1px solid var(--admin-border);
  text-align: center;
}

.admin-notification-dropdown-view-all {
  background: none;
  border: none;
  color: #667eea;
  color: var(--admin-accent);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.admin-notification-dropdown-view-all:hover {
  text-decoration: underline;
}

.admin-notification-dropdown-empty {
  padding: 30px 20px;
  text-align: center;
  color: #6c757d;
  color: var(--admin-text-secondary);
}

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

/* ============================================
   SECCIÓN DE NOTIFICACIONES COMPLETA
   ============================================ */

.admin-notification-full-section {
  background: #ffffff;
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px var(--admin-shadow);
  overflow: hidden;
}

.admin-notification-full-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
}

.admin-notification-full-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.admin-notification-full-header p {
  margin: 0 0 15px 0;
  opacity: 0.9;
  font-size: 16px;
}

.admin-notification-full-stats {
  display: flex;
  gap: 20px;
}

.admin-notification-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.admin-notification-full-list {
  max-height: 500px;
  overflow-y: auto;
}

.admin-notification-full-item {
  padding: 20px 30px;
  border-bottom: 1px solid #dee2e6;
  border-bottom: 1px solid var(--admin-border);
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
}

.admin-notification-full-item:hover {
  background: #f8f9fa;
  background: var(--admin-bg-primary);
}

.admin-notification-unread {
  background: rgba(102, 126, 234, 0.05);
  border-left: 4px solid #667eea;
  border-left: 4px solid var(--admin-accent);
}

.admin-notification-full-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.admin-notification-full-item-user {
  display: flex;
  gap: 12px;
  flex: 1 1;
}

.admin-notification-full-avatar {
  width: 45px;
  height: 45px;
  background: #667eea;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.admin-notification-full-user-info h4 {
  margin: 0 0 4px 0;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-size: 16px;
  font-weight: 600;
}

.admin-notification-full-user-info p {
  margin: 0;
  color: #6c757d;
  color: var(--admin-text-secondary);
  font-size: 14px;
}

.admin-notification-full-actions {
  display: flex;
  gap: 10px;
}

.admin-notification-full-action-btn,
.admin-notification-full-mark-read {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  transition: var(--admin-transition-fast);
  border: none;
  font-weight: 500;
}

.admin-notification-full-action-btn {
  background: #667eea;
  background: var(--admin-accent);
  color: white;
}

.admin-notification-full-action-btn:hover {
  background: #5a6fd8;
}

.admin-notification-full-mark-read {
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  color: #6c757d;
  color: var(--admin-text-secondary);
  border: 1px solid #dee2e6;
  border: 1px solid var(--admin-border);
}

.admin-notification-full-mark-read:hover {
  background: #6c757d;
  background: var(--admin-text-secondary);
  color: white;
}

.admin-notification-full-item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.admin-notification-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-notification-detail-label {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  color: var(--admin-text-secondary);
  min-width: 80px;
}

.admin-notification-detail-value {
  font-size: 14px;
  color: #2c3e50;
  color: var(--admin-text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f8f9fa;
  background: var(--admin-bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-notification-empty {
  padding: 60px 30px;
  text-align: center;
  color: #6c757d;
  color: var(--admin-text-secondary);
}

.admin-notification-empty h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #2c3e50;
  color: var(--admin-text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .servicios-admin-sidebar {
    width: 260px;
  }
  
  .servicios-admin-main {
    margin-left: 260px;
  }
  
  .servicios-admin-sidebar-collapsed .servicios-admin-sidebar {
    width: 70px;
  }
  
  .servicios-admin-sidebar-collapsed .servicios-admin-main {
    margin-left: 70px;
  }
}

@media (max-width: 768px) {
  .servicios-admin-sidebar {
    width: 100%;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    transition: var(--admin-transition);
  }
  
  .servicios-admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .servicios-admin-main {
    margin-left: 0;
  }
  
  .servicios-admin-header {
    padding: 15px 20px;
  }
  
  .servicios-admin-content {
    padding: 20px;
  }
  
  .servicios-admin-section-title {
    font-size: 20px;
  }
  
  .admin-notification-toast-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .admin-notification-dropdown-content {
    width: 90vw;
    right: 5vw;
  }
}

@media (max-width: 480px) {
  .servicios-admin-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .servicios-admin-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .admin-notification-full-item {
    padding: 15px 20px;
  }
  
  .admin-notification-full-item-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .admin-notification-full-item-details {
    grid-template-columns: 1fr;
  }
}
/* ✅ CLIENTESGESTION.CSS - ARCHIVO COMPLETO */

/* ============================================
   HEREDA VARIABLES DE ADMINPANEL
   ============================================ */

/* 
   NOTA: Este CSS usa las variables definidas en AdminPanel.css
   Las variables --admin-* se convierten automáticamente según el tema
   NO definir nuevas variables aquí, usar las del AdminPanel
*/

.clientes-gestion-remasterizado {
  /* Usa las variables del AdminPanel para consistencia de tema */
  --clientes-primary: var(--admin-accent);
  --clientes-secondary: #764ba2;
  --clientes-success: var(--admin-success);
  --clientes-warning: var(--admin-warning);
  --clientes-danger: var(--admin-danger);
  --clientes-info: var(--admin-info);
  
  /* Backgrounds heredados */
  --clientes-bg-main: var(--admin-bg-primary);
  --clientes-bg-white: var(--admin-bg-secondary);
  --clientes-bg-gradient: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  
  /* Textos heredados */
  --clientes-text-primary: var(--admin-text-primary);
  --clientes-text-secondary: var(--admin-text-secondary);
  --clientes-text-muted: #adb5bd;
  --clientes-text-white: var(--admin-text-light);
  
  /* Bordes y sombras heredados */
  --clientes-border: var(--admin-border);
  --clientes-border-light: var(--admin-bg-primary);
  --clientes-shadow: var(--admin-shadow);
  --clientes-shadow-lg: rgba(0, 0, 0, 0.15);
  
  /* Transiciones heredadas */
  --clientes-transition: var(--admin-transition);
  --clientes-transition-fast: var(--admin-transition-fast);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.clientes-gestion-remasterizado {
  padding: 25px;
  background: var(--clientes-bg-main);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES PROPIAS
   ============================================ */

.notifications-container {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 10000;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification {
  background: var(--clientes-bg-white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px var(--clientes-shadow-lg);
  border-left: 5px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
             fadeOut 0.4s ease-in 2.6s;
  animation-fill-mode: both;
  pointer-events: auto;
  transform: translateX(0);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.notification-success {
  border-left-color: var(--clientes-success);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-error {
  border-left-color: var(--clientes-danger);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-warning {
  border-left-color: var(--clientes-warning);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-info {
  border-left-color: var(--clientes-info);
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.notification-icon {
  font-size: 18px;
  font-weight: bold;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-message {
  color: var(--clientes-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notification-close {
  background: rgba(108, 117, 125, 0.1);
  border: none;
  color: var(--clientes-text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 8px;
  margin-left: 12px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--clientes-transition-fast);
}

.notification-close:hover {
  background: rgba(108, 117, 125, 0.2);
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
    scale: 0.8;
  }
  to {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
  }
}

/* ============================================
   HEADER SECTION
   ============================================ */

.header-section {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  padding: 35px 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"grain\" width=\"100\" height=\"100\" patternUnits=\"userSpaceOnUse\"><circle cx=\"25\" cy=\"25\" r=\"1\" fill=\"rgba%28255,255,255,0.05%29\"/><circle cx=\"75\" cy=\"75\" r=\"1\" fill=\"rgba%28255,255,255,0.05%29\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url%28%23grain%29\"/></svg>");
  opacity: 0.3;
}

.title-section {
  position: relative;
  z-index: 1;
}

.title-section h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.title-section p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 400;
}

.stats-quick {
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 25px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--clientes-transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-item.warning {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.3);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================================
   FORMULARIO DE NUEVA ASIGNACIÓN
   ============================================ */

.nueva-asignacion-section {
  background: var(--clientes-bg-white);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.nueva-asignacion-section h2 {
  margin: 0 0 25px 0;
  color: var(--clientes-text-primary);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.asignacion-form-horizontal {
  display: grid;
  grid-template-columns: 2fr 2.5fr 2fr 1.2fr;
  grid-gap: 25px;
  gap: 25px;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.correo-input,
.cliente-input,
.plataforma-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--clientes-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
}

.correo-input:focus,
.cliente-input:focus,
.plataforma-input:focus {
  outline: none;
  border-color: var(--clientes-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.correo-input {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.btn-crear-asignacion {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-crear-asignacion:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

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

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============================================
   SISTEMA DE SUGERENCIAS
   ============================================ */

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

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--clientes-bg-white);
  border: 1px solid var(--clientes-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--clientes-shadow-lg);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
  animation: fadeInDown 0.2s ease-out;
}

.suggestion-item {
  padding: 15px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--clientes-border-light);
  transition: var(--clientes-transition-fast);
  position: relative;
}

.suggestion-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: translateX(3px);
}

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

.suggestion-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.suggestion-name {
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

.suggestion-id {
  font-size: 11px;
  color: var(--clientes-text-muted);
  background: var(--clientes-light);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--clientes-text-secondary);
}

.suggestion-email,
.suggestion-phone {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.plataforma-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.plataforma-icon {
  font-size: 20px;
}

.plataforma-name {
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

.selected-cliente,
.selected-plataforma {
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
  color: #155724;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

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

/* ============================================
   CONTROLES DE CORREOS ASIGNADOS
   ============================================ */

.controles-correos-section {
  background: var(--clientes-bg-white);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.controles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.controles-header h2 {
  margin: 0;
  color: var(--clientes-text-primary);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-correos {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.btn-toggle-correos:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1 1;
  padding: 14px 50px 14px 20px;
  border: 2px solid var(--clientes-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--clientes-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-icon {
  position: absolute;
  right: 40px;
  font-size: 18px;
  color: var(--clientes-text-secondary);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  background: rgba(108, 117, 125, 0.1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--clientes-text-secondary);
  padding: 4px 8px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--clientes-transition-fast);
}

.search-clear:hover {
  background: rgba(220, 53, 69, 0.1);
  color: var(--clientes-danger);
  transform: scale(1.1);
}

/* ============================================
   TABLA DE ASIGNACIONES
   ============================================ */

.asignaciones-table-container {
  margin-top: 25px;
  background: var(--clientes-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 650px;
}

.asignaciones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--clientes-bg-white);
}

/* ENCABEZADOS DE TABLA */
.asignaciones-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.asignaciones-table th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--clientes-text-primary);
  border-bottom: 2px solid var(--clientes-border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.th-correo { width: 32%; }
.th-cliente { width: 28%; }
.th-plataforma { width: 20%; }
.th-fecha { width: 12%; }
.th-acciones { width: 8%; text-align: center; }

/* FILAS DE TABLA */
.asignaciones-table tbody tr {
  border-bottom: 1px solid var(--clientes-border-light);
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
}

.asignaciones-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
  transform: scale(1.002);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.asignaciones-table tbody tr:nth-child(even) {
  background: rgba(248, 249, 250, 0.5);
}

.asignaciones-table tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

/* FILAS ESPECIALES */
.row-huerfana {
  background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%) !important;
  color: #856404;
  border-left: 4px solid var(--clientes-warning);
}

.row-huerfana:hover {
  background: linear-gradient(135deg, #ffeeba 0%, #fff3cd 100%) !important;
  transform: scale(1.005);
}

.row-inactivo {
  opacity: 0.7;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  border-left: 4px solid var(--clientes-danger);
}

/* CELDAS DE TABLA */
.asignaciones-table td {
  padding: 18px 24px;
  vertical-align: middle;
  border-bottom: 1px solid var(--clientes-border-light);
}

/* CELDA DE CORREO */
.correo-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.correo-text {
  flex: 1 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--clientes-text-primary);
  word-break: break-all;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid var(--clientes-border);
}

.btn-copy-table {
  background: linear-gradient(135deg, var(--clientes-info) 0%, #138496 100%);
  color: var(--clientes-text-white);
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--clientes-transition);
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-copy-table:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-copy-table:active {
  transform: translateY(0);
}

.edit-correo-input-table {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--clientes-primary);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.edit-correo-input-table:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* CELDA DE CLIENTE */
.cliente-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.cliente-nombre {
  font-weight: 700;
  color: var(--clientes-text-primary);
  font-size: 15px;
  line-height: 1.3;
}

.cliente-email {
  font-size: 12px;
  color: var(--clientes-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid var(--clientes-border);
}

.cliente-id {
  font-size: 11px;
  color: var(--clientes-text-muted);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clientes-primary) 0%, var(--clientes-secondary) 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* CELDA DE PLATAFORMA */
.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.plataforma-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plataforma-nombre {
  font-weight: 700;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

/* CELDA DE FECHA */
.fecha-cell {
  font-size: 12px;
  color: var(--clientes-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--clientes-border);
  min-width: 80px;
}

/* CELDA DE ACCIONES */
.acciones-cell {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.btn-table-edit,
.btn-table-delete,
.btn-table-save,
.btn-table-cancel {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--clientes-transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-table-edit {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-table-edit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-table-delete {
  background: linear-gradient(135deg, var(--clientes-danger) 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-table-delete:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-table-save {
  background: linear-gradient(135deg, var(--clientes-success) 0%, #1e7e34 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.btn-table-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-table-cancel {
  background: linear-gradient(135deg, var(--clientes-warning) 0%, #e0a800 100%);
  color: #212529;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.btn-table-cancel:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-table-edit:disabled,
.btn-table-delete:disabled,
.btn-table-save:disabled,
.btn-table-cancel:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   MENSAJES DE ESTADO
   ============================================ */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  background: var(--clientes-bg-white);
  border-radius: 16px;
  margin: 20px 0;
}

.loading-container .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--clientes-border);
  border-top: 4px solid var(--clientes-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-container span {
  color: var(--clientes-text-secondary);
  font-size: 16px;
  font-weight: 500;
}

.no-correos-message,
.no-resultados-message {
  background: var(--clientes-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  margin: 25px 0;
  border: 2px dashed var(--clientes-border);
}

.no-correos-content,
.no-resultados-content {
  padding: 60px 40px;
  text-align: center;
}

.no-correos-icon,
.no-resultados-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
  display: block;
}

.no-correos-content h3,
.no-resultados-content h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: var(--clientes-text-primary);
  font-weight: 700;
}

.no-correos-content p,
.no-resultados-content p {
  margin: 0 0 20px 0;
  color: var(--clientes-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.clear-search-btn {
  background: var(--clientes-bg-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.clear-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================
   FOOTER CON ACCIONES
   ============================================ */

.footer-actions {
  background: var(--clientes-bg-white);
  padding: 25px 30px;
  border-radius: 16px;
  margin-top: 30px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-refresh {
  background: linear-gradient(135deg, var(--clientes-text-secondary) 0%, #495057 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(108, 117, 125, 0.2);
}

.btn-refresh:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

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

.btn-refresh .spinning {
  animation: spin 1s linear infinite;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-info,
.footer-search-info,
.footer-warning {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-info {
  background: rgba(23, 162, 184, 0.1);
  color: var(--clientes-info);
  border: 1px solid rgba(23, 162, 184, 0.2);
}

.footer-search-info {
  background: rgba(102, 126, 234, 0.1);
  color: var(--clientes-primary);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .clientes-gestion-remasterizado {
    padding: 20px;
  }
  
  .header-section {
    padding: 25px 30px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .stats-quick {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .asignacion-form-horizontal {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .form-field.action-field {
    grid-column: 1 / -1;
  }
  
  .asignaciones-table th,
  .asignaciones-table td {
    padding: 12px 16px;
  }
  
  .notifications-container {
    right: 15px;
    max-width: 350px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .clientes-gestion-remasterizado {
    padding: 15px;
  }
  
  .header-section {
    padding: 20px;
  }
  
  .title-section h1 {
    font-size: 24px;
  }
  
  .stats-quick {
    gap: 15px;
  }
  
  .stat-item {
    padding: 15px 20px;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .nueva-asignacion-section,
  .controles-correos-section {
    padding: 20px;
  }
  
  .asignacion-form-horizontal {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .asignaciones-table {
    font-size: 12px;
  }
  
  .asignaciones-table th,
  .asignaciones-table td {
    padding: 10px 12px;
  }
  
  .correo-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .correo-text {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .cliente-cell {
    gap: 4px;
    min-width: auto;
  }
  
  .cliente-nombre {
    font-size: 13px;
  }
  
  .cliente-email {
    font-size: 11px;
  }
  
  .plataforma-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: auto;
  }
  
  .plataforma-icon {
    font-size: 18px;
  }
  
  .plataforma-nombre {
    font-size: 12px;
  }
  
  .fecha-cell {
    font-size: 10px;
    padding: 4px 8px;
    min-width: auto;
  }
  
  .acciones-cell {
    flex-direction: column;
    gap: 4px;
  }
  
  .btn-table-edit,
  .btn-table-delete,
  .btn-table-save,
  .btn-table-cancel {
    padding: 8px 10px;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
  }
  
  .footer-actions {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .notifications-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    padding: 12px 16px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .clientes-gestion-remasterizado {
    padding: 10px;
  }
  
  .header-section {
    padding: 15px;
  }
  
  .title-section h1 {
    font-size: 20px;
  }
  
  .title-section p {
    font-size: 14px;
  }
  
  .stats-quick {
    gap: 10px;
  }
  
  .stat-item {
    padding: 12px 15px;
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .nueva-asignacion-section,
  .controles-correos-section {
    padding: 15px;
  }
  
  .nueva-asignacion-section h2,
  .controles-header h2 {
    font-size: 18px;
  }
  
  .table-wrapper {
    max-height: 400px;
  }
  
  .no-correos-content,
  .no-resultados-content {
    padding: 40px 20px;
  }
  
  .no-correos-icon,
  .no-resultados-icon {
    font-size: 48px;
  }
  
  .no-correos-content h3,
  .no-resultados-content h3 {
    font-size: 20px;
  }
  
  .no-correos-content p,
  .no-resultados-content p {
    font-size: 14px;
  }
}

/* ============================================
   UTILIDADES Y HELPERS
   ============================================ */

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* Efectos de hover mejorados */
.hover-lift {
  transition: var(--clientes-transition);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--clientes-shadow-lg);
}

/* Estados de carga */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  :root {
    --clientes-border: #000000;
    --clientes-text-secondary: #000000;
    --clientes-shadow: rgba(0, 0, 0, 0.5);
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ✅ EDITOR.CSS - ESTILOS PARA EDITOR DE USUARIOS */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.editor-usuarios-panel {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--admin-shadow);
  overflow: hidden;
  min-height: 600px;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES
   ============================================ */

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.notification {
  background: var(--admin-bg-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--admin-shadow);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease-out;
}

.notification-success {
  border-left: 4px solid var(--admin-success);
}

.notification-error {
  border-left: 4px solid var(--admin-danger);
}

.notification-warning {
  border-left: 4px solid var(--admin-warning);
}

.notification-info {
  border-left: 4px solid var(--admin-info);
}

.notification-message {
  color: var(--admin-text-primary);
  font-size: 14px;
  font-weight: 500;
}

.notification button {
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition-fast);
}

.notification button:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   HEADER DEL EDITOR
   ============================================ */

.editor-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
}

.editor-header h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

/* ============================================
   SECCIÓN DE BÚSQUEDA
   ============================================ */

.editor-search-section {
  padding: 30px;
  border-bottom: 1px solid var(--admin-border);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1 1;
  padding: 15px 20px;
  border: 2px solid var(--admin-border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  transition: var(--admin-transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-results-count {
  color: var(--admin-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.search-actions button {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--admin-transition-fast);
}

.search-actions button:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* ============================================
   LISTA DE RESULTADOS DE BÚSQUEDA
   ============================================ */

.users-results-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-bg-primary);
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--admin-text-secondary);
}

.no-results p {
  margin: 0;
  font-size: 16px;
}

.user-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-border);
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-result-item:hover {
  background: var(--admin-bg-secondary);
  transform: translateX(5px);
}

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

.user-banned {
  background: rgba(220, 53, 69, 0.05);
  border-left: 4px solid var(--admin-danger);
}

.user-result-avatar {
  width: 50px;
  height: 50px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.user-banned .user-result-avatar {
  background: var(--admin-danger);
}

.user-result-info {
  flex: 1 1;
}

.user-result-name {
  font-weight: 600;
  color: var(--admin-text-primary);
  font-size: 16px;
  margin-bottom: 5px;
}

.user-result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.user-result-details span {
  font-size: 12px;
  color: var(--admin-text-secondary);
  background: var(--admin-bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}

.user-result-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-cliente {
  background: var(--admin-success);
  color: white;
}

.status-admin {
  background: var(--admin-accent);
  color: white;
}

.status-baneado {
  background: var(--admin-danger);
  color: white;
}

.banned-icon {
  font-size: 20px;
}

/* ============================================
   SECCIÓN DE EDICIÓN DE USUARIO
   ============================================ */

.editor-user-section {
  padding: 30px;
}

.editor-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--admin-bg-primary);
  border-radius: 12px;
  border: 1px solid var(--admin-border);
}

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

.user-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.user-header-details h2 {
  margin: 0 0 8px 0;
  color: var(--admin-text-primary);
  font-size: 24px;
  font-weight: 700;
}

.user-header-details p {
  margin: 0 0 12px 0;
  color: var(--admin-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  background: var(--admin-bg-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.user-header-status {
  display: flex;
  gap: 10px;
  align-items: center;
}

.activity-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.activity-badge.active {
  background: var(--admin-success);
  color: white;
}

.activity-badge.inactive {
  background: var(--admin-danger);
  color: white;
}

.user-header-actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.btn-ban,
.btn-unban,
.btn-close {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-ban {
  background: var(--admin-danger);
  color: white;
}

.btn-ban:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-unban {
  background: var(--admin-success);
  color: white;
}

.btn-unban:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
}

.btn-close {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-close:hover {
  background: #495057;
  transform: translateY(-1px);
}

.btn-ban:disabled,
.btn-unban:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FORMULARIO DE DATOS BÁSICOS
   ============================================ */

.editor-basic-data {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--admin-border);
}

.editor-basic-data h3 {
  margin: 0 0 20px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 25px;
}

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

.form-group label {
  color: var(--admin-text-primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  transition: var(--admin-transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-save-changes {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 300px;
}

.btn-save-changes:hover:not(:disabled) {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-save-changes:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   GESTIÓN DE PLATAFORMAS Y CORREOS
   ============================================ */

.editor-platforms-section {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--admin-border);
}

.editor-platforms-section h3 {
  margin: 0 0 25px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-editor {
  background: var(--admin-bg-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
}

.platform-editor:hover {
  box-shadow: 0 2px 10px var(--admin-shadow);
}

.platform-header {
  margin-bottom: 15px;
}

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

.platform-icon {
  font-size: 24px;
}

.platform-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text-primary);
}

.platform-count {
  background: var(--admin-accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.platform-emails-list {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--admin-bg-secondary);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--admin-border);
}

.email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--admin-bg-primary);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
}

.email-item:hover {
  background: var(--admin-bg-secondary);
  transform: translateX(3px);
}

.email-item:last-child {
  margin-bottom: 0;
}

.email-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--admin-text-primary);
  flex: 1 1;
}

.btn-delete-email {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  opacity: 0.7;
}

.btn-delete-email:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.05);
}

.btn-delete-email:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.platform-add-emails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-add-emails textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--admin-bg-secondary);
  color: var(--admin-text-primary);
  resize: vertical;
  min-height: 80px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  transition: var(--admin-transition-fast);
}

.platform-add-emails textarea:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-add-emails {
  background: var(--admin-success);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  align-self: flex-start;
}

.btn-add-emails:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
}

.btn-add-emails:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   MODAL PERSONALIZADO
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideInScale 0.3s ease-out;
}

.modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--admin-transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

.modal-body p {
  margin: 0;
  color: var(--admin-text-primary);
  font-size: 16px;
  line-height: 1.5;
}

.modal-footer {
  padding: 20px 25px;
  background: var(--admin-bg-primary);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--admin-border);
}

.btn-modal-cancel,
.btn-modal-confirm {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
}

.btn-modal-cancel {
  background: var(--admin-bg-secondary);
  color: var(--admin-text-secondary);
  border: 1px solid var(--admin-border);
}

.btn-modal-cancel:hover {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-modal-confirm {
  background: var(--admin-danger);
  color: white;
}

.btn-modal-confirm:hover {
  background: #c82333;
  transform: translateY(-1px);
}

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

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   CHECKBOXES PERSONALIZADOS
   ============================================ */

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
          user-select: none;
  color: var(--admin-text-primary);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--admin-bg-primary);
  border: 2px solid var(--admin-border);
  border-radius: 4px;
  transition: var(--admin-transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--admin-accent);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--admin-accent);
  border-color: var(--admin-accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================================
   ACCIONES EN LOTE
   ============================================ */

.batch-actions {
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInDown 0.3s ease-out;
}

.batch-info {
  font-weight: 600;
  font-size: 14px;
}

.batch-buttons {
  display: flex;
  gap: 12px;
}

.btn-batch-ban,
.btn-batch-unban {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-batch-ban:hover:not(:disabled) {
  background: var(--admin-danger);
  border-color: var(--admin-danger);
  transform: translateY(-1px);
}

.btn-batch-unban:hover:not(:disabled) {
  background: var(--admin-success);
  border-color: var(--admin-success);
  transform: translateY(-1px);
}

.btn-batch-ban:disabled,
.btn-batch-unban:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* ============================================
   LISTA DE RESULTADOS MEJORADA
   ============================================ */

.results-header {
  padding: 15px 20px;
  background: var(--admin-bg-secondary);
  border-bottom: 1px solid var(--admin-border);
  font-weight: 600;
}

.user-result-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1;
  cursor: pointer;
}

.user-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-result-item:hover {
  background: var(--admin-bg-secondary);
}

/* ============================================
   ESTADÍSTICAS DEL USUARIO
   ============================================ */

.user-stats {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.stat-item {
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--admin-border);
}

/* ============================================
   TABLA DE CORREOS INLINE
   ============================================ */

.editor-emails-table-section {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--admin-border);
}

.emails-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.emails-table-header h3 {
  margin: 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emails-batch-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.3s ease-out;
}

.emails-batch-actions .batch-info {
  background: var(--admin-accent);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn-delete-selected {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
}

.btn-delete-selected:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-delete-selected:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.emails-table-container {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--admin-bg-primary);
}

.emails-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.emails-table thead {
  background: var(--admin-bg-secondary);
}

.emails-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--admin-text-primary);
  border-bottom: 2px solid var(--admin-border);
}

.th-checkbox {
  width: 50px;
  text-align: center;
}

.th-correo {
  width: 35%;
}

.th-plataforma {
  width: 25%;
}

.th-fecha {
  width: 20%;
}

.th-acciones {
  width: 20%;
  text-align: center;
}

.emails-table tbody tr {
  transition: var(--admin-transition-fast);
}

.emails-table tbody tr:hover {
  background: var(--admin-bg-secondary);
}

.emails-table td {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.td-checkbox {
  text-align: center;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--admin-text-primary);
  background: var(--admin-bg-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  flex: 1 1;
}

.edit-email-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--admin-accent);
  border-radius: 6px;
  font-size: 13px;
  background: var(--admin-bg-secondary);
  color: var(--admin-text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  transition: var(--admin-transition-fast);
}

.edit-email-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plataforma-icon {
  font-size: 18px;
}

.plataforma-nombre {
  font-weight: 500;
  color: var(--admin-text-primary);
}

.fecha-cell {
  color: var(--admin-text-secondary);
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.acciones-cell {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-table-save,
.btn-table-cancel,
.btn-table-edit,
.btn-table-delete {
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-table-save {
  background: var(--admin-success);
  color: white;
}

.btn-table-save:hover:not(:disabled) {
  background: #218838;
  transform: scale(1.1);
}

.btn-table-cancel {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-table-cancel:hover {
  background: #495057;
  transform: scale(1.1);
}

.btn-table-edit {
  background: var(--admin-accent);
  color: white;
}

.btn-table-edit:hover:not(:disabled) {
  background: #5a6fd8;
  transform: scale(1.1);
}

.btn-table-delete {
  background: var(--admin-danger);
  color: white;
}

.btn-table-delete:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.1);
}

.btn-table-save:disabled,
.btn-table-edit:disabled,
.btn-table-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.no-emails-message {
  padding: 40px 20px;
  text-align: center;
  background: var(--admin-bg-primary);
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}

.no-emails-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-emails-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  opacity: 0.6;
}

.no-emails-content h3 {
  margin: 0 0 8px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
}

.no-emails-content p {
  margin: 0;
  color: var(--admin-text-secondary);
  font-size: 14px;
}

/* ============================================
   ESTADO VACÍO
   ============================================ */

.editor-empty-state {
  padding: 60px 30px;
  text-align: center;
}

.empty-state-content {
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.empty-state-content h3 {
  margin: 0 0 12px 0;
  color: var(--admin-text-primary);
  font-size: 24px;
  font-weight: 600;
}

.empty-state-content > p {
  margin: 0 0 25px 0;
  color: var(--admin-text-secondary);
  font-size: 16px;
}

.empty-state-tips {
  background: var(--admin-bg-primary);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--admin-border);
}

.empty-state-tips p {
  margin: 0 0 12px 0;
  color: var(--admin-text-primary);
  font-weight: 600;
}

.empty-state-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.empty-state-tips li {
  color: var(--admin-text-secondary);
  font-size: 14px;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.empty-state-tips li:last-child {
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .user-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .editor-user-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .user-header-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .editor-search-section,
  .editor-user-section {
    padding: 20px;
  }
  
  .editor-header {
    padding: 20px;
  }
  
  .editor-header h1 {
    font-size: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-actions {
    justify-content: space-between;
  }
  
  .user-result-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .user-header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .notifications-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .editor-header {
    padding: 15px 20px;
  }
  
  .editor-search-section,
  .editor-user-section {
    padding: 15px;
  }
  
  .editor-basic-data,
  .editor-platforms-section {
    padding: 20px;
  }
  
  .user-result-item {
    padding: 12px 15px;
  }
  
  .platform-editor {
    padding: 15px;
  }
  
  .empty-state-icon {
    font-size: 48px;
  }
  
  .empty-state-content h3 {
    font-size: 20px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════════
   LUPPATV — App.css  v3.0
   Cubre: Loading Screen · Banned Screen · App root
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:              #070b14;
  --surface-1:       #0c1120;
  --surface-2:       #111827;
  --surface-3:       #1a2235;
  --surface-4:       #212d42;
  --accent:          #5b7fff;
  --accent-2:        #818cf8;
  --cyan:            #38bdf8;
  --text-1:          #e8ecf4;
  --text-2:          #8896b3;
  --text-3:          #3d4f6e;
  --text-4:          #2a3650;
  --border:          rgba(99 120 180 / 0.1);
  --border-2:        rgba(99 120 180 / 0.18);
  --green:           #34d399;
  --green-subtle:    rgba(52 211 153 / 0.1);
  --green-border:    rgba(52 211 153 / 0.2);
  --red:             #f87171;
  --red-subtle:      rgba(248 113 113 / 0.1);
  --red-border:      rgba(248 113 113 / 0.2);
  --yellow:          #fbbf24;
  --r-sm:    6px;
  --r-md:    10px;
  --r-lg:    14px;
  --r-xl:    18px;
  --r-2xl:   24px;
  --r-full:  9999px;
  --shadow-sm:     0 1px 4px  rgba(0 0 0 / 0.5);
  --shadow-md:     0 4px 20px rgba(0 0 0 / 0.55);
  --shadow-lg:     0 12px 40px rgba(0 0 0 / 0.65);
  --shadow-accent: 0 0 24px rgba(91 127 255 / 0.2);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #070b14;
  background: var(--bg);
  color: #e8ecf4;
  color: var(--text-1);
  line-height: 1.5;
  overflow-x: hidden;
}

button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
img    { display: block; max-width: 100%; }
a      { text-decoration: none; }

:focus-visible {
  outline: 2px solid #5b7fff;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
  border-radius: var(--r-sm);
}

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

.App {
  min-height: 100dvh;
  background: #070b14;
  background: var(--bg);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════════════════════════ */

.app-loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b14;
  background: var(--bg);
  z-index: 9999;
  overflow: hidden;
}

.app-loading-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-loading-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(91 127 255 / 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%,  rgba(56 189 248 / 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 90%,  rgba(129 140 248 / 0.04) 0%, transparent 50%);
}

.app-loading-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.app-loading-particle {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #5b7fff;
  background: var(--accent);
  opacity: 0;
  animation: particle-rise linear infinite;
  box-shadow: 0 0 6px #5b7fff;
  box-shadow: 0 0 6px var(--accent);
}

.app-loading-particle:nth-child(even) {
  background: #38bdf8;
  background: var(--cyan);
  box-shadow: 0 0 6px #38bdf8;
  box-shadow: 0 0 6px var(--cyan);
  width: 1.5px;
  height: 1.5px;
}

@keyframes particle-rise {
  0%   { transform: translateY(0)       scale(1);   opacity: 0;   }
  15%  { opacity: 0.4; }
  85%  { opacity: 0.2; }
  100% { transform: translateY(-100vh)  scale(0.3); opacity: 0;   }
}

.app-loading-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.app-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 100%;
  max-width: 380px;
}

/* ── Marca ── */
.app-loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.app-loading-logo-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-loading-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#070b14, #070b14) padding-box,
    conic-gradient(
      #5b7fff   0%,
      #38bdf8     35%,
      #818cf8 65%,
      transparent     75%,
      transparent     100%
    ) border-box;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      var(--accent)   0%,
      var(--cyan)     35%,
      var(--accent-2) 65%,
      transparent     75%,
      transparent     100%
    ) border-box;
  animation: ring-spin 2.4s linear infinite;
}

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

.app-loading-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  object-fit: cover;
  border: 1px solid rgba(91 127 255 / 0.25);
  box-shadow:
    0 0 0 4px rgba(91 127 255 / 0.06),
    0 4px 20px rgba(0 0 0 / 0.55),
    0 0 28px rgba(91 127 255 / 0.15);
  box-shadow:
    0 0 0 4px rgba(91 127 255 / 0.06),
    var(--shadow-md),
    0 0 28px rgba(91 127 255 / 0.15);
  position: relative;
  z-index: 1;
}

.app-loading-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #5b7fff, #818cf8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(91 127 255 / 0.2);
  box-shadow: var(--shadow-accent);
}

.app-loading-logo-letter {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.app-loading-text { text-align: center; }

.app-loading-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #93a8ff 0%, #38bdf8 100%);
  background: linear-gradient(130deg, #93a8ff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.app-loading-subtitle {
  font-size: 12.5px;
  color: #3d4f6e;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
}

/* ── Sección progreso ── */
.app-loading-progress-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.app-loading-spinner {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.app-loading-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.app-loading-spinner-ring:nth-child(1) {
  border-top-color: #5b7fff;
  border-top-color: var(--accent);
  animation: spin-cw 1.0s linear infinite;
}
.app-loading-spinner-ring:nth-child(2) {
  inset: 6px;
  border-right-color: #38bdf8;
  border-right-color: var(--cyan);
  animation: spin-ccw 0.75s linear infinite;
}
.app-loading-spinner-ring:nth-child(3) {
  inset: 12px;
  border-bottom-color: #818cf8;
  border-bottom-color: var(--accent-2);
  animation: spin-cw 1.3s linear infinite;
}

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

.app-loading-message {
  font-size: 13.5px;
  color: #8896b3;
  color: var(--text-2);
  font-weight: 500;
  text-align: center;
  min-height: 1.5em;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 200ms var(--ease);
}

.app-loading-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.app-loading-bar {
  flex: 1 1;
  height: 3px;
  background: rgba(99 120 180 / 0.1);
  border-radius: 9999px;
  border-radius: var(--r-full);
  overflow: hidden;
}

.app-loading-bar-fill {
  height: 100%;
  border-radius: 9999px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #5b7fff, #38bdf8);
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: width 400ms var(--ease);
  box-shadow: 0 0 8px rgba(91 127 255 / 0.45);
  position: relative;
}

.app-loading-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.4));
  border-radius: 9999px;
  border-radius: var(--r-full);
  animation: bar-shine 1.4s ease-in-out infinite;
}

@keyframes bar-shine {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

.app-loading-percentage {
  font-size: 11px;
  color: #3d4f6e;
  color: var(--text-3);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}

.app-loading-dots { display: flex; gap: 6px; }

.app-loading-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a3650;
  background: var(--text-4);
  animation: dot-bounce 1.4s ease-in-out infinite;
}
.app-loading-dot:nth-child(1) { animation-delay: 0s;    }
.app-loading-dot:nth-child(2) { animation-delay: 0.18s; background: #5b7fff; background: var(--accent); }
.app-loading-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(1);   opacity: 0.35; }
  40%           { transform: scale(1.5); opacity: 1;    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   BANNED SCREEN
   ═══════════════════════════════════════════════════════════════════════════════ */

.app-banned-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b14;
  background: var(--bg);
  overflow-y: auto;
  z-index: 9999;
}

.app-banned-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.app-banned-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%,  rgba(248 113 113 / 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 85%,  rgba(91 127 255 / 0.04) 0%, transparent 50%);
}

.app-banned-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 32px 16px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-banned-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ── */
.app-banned-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 4px;
}

.app-banned-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-banned-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(248 113 113 / 0.22);
  animation: banned-ring-pulse 2.2s ease-in-out infinite;
}

@keyframes banned-ring-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.5;  }
  50%       { transform: scale(1.1); opacity: 0.15; }
}

.app-banned-icon {
  font-size: 40px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(248 113 113 / 0.4));
}

.app-banned-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e8ecf4;
  color: var(--text-1);
}

.app-banned-subtitle {
  font-size: 14px;
  color: #8896b3;
  color: var(--text-2);
  max-width: 34ch;
  line-height: 1.6;
}

/* ── Cards ── */
.app-banned-info { display: flex; flex-direction: column; gap: 12px; }

.app-banned-card {
  background: #0c1120;
  background: var(--surface-1);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-radius: var(--r-xl);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 180ms var(--ease);
}
.app-banned-card:hover { border-color: rgba(99 120 180 / 0.18); border-color: var(--border-2); }

.app-banned-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-banned-card-icon { font-size: 18px; flex-shrink: 0; }

.app-banned-card-header h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #e8ecf4;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.app-banned-user-details { display: flex; flex-direction: column; gap: 8px; }

.app-banned-detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(99 120 180 / 0.04);
  border-radius: 10px;
  border-radius: var(--r-md);
  border: 1px solid rgba(99 120 180 / 0.1);
  border: 1px solid var(--border);
}

.app-banned-detail-label {
  font-size: 11px;
  color: #3d4f6e;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 60px;
  flex-shrink: 0;
}

.app-banned-detail-value {
  font-size: 13px;
  color: #e8ecf4;
  color: var(--text-1);
  font-weight: 500;
  word-break: break-all;
}

.app-banned-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f87171;
  color: var(--red);
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  border: 1px solid rgba(248 113 113 / 0.2);
  border: 1px solid var(--red-border);
  padding: 2px 10px;
  border-radius: 9999px;
  border-radius: var(--r-full);
}

.app-banned-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.app-banned-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #8896b3;
  color: var(--text-2);
  line-height: 1.6;
}

.app-banned-bullet {
  color: #5b7fff;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.app-banned-contact-text {
  font-size: 13px;
  color: #8896b3;
  color: var(--text-2);
  line-height: 1.6;
}

.app-banned-contact-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-banned-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  transition: background 150ms, transform 150ms;
}
.app-banned-contact-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.app-banned-contact-btn:active { transform: translateY(0); }

.app-banned-whatsapp {
  background: rgba(37 211 102 / 0.1);
  color: #25d366;
  border: 1px solid rgba(37 211 102 / 0.2);
}
.app-banned-whatsapp:hover { background: rgba(37 211 102 / 0.18); }

.app-banned-telegram {
  background: rgba(40 168 230 / 0.1);
  color: #29a8e8;
  border: 1px solid rgba(40 168 230 / 0.2);
}
.app-banned-telegram:hover { background: rgba(40 168 230 / 0.18); }

/* ── Acciones ── */
.app-banned-actions { display: flex; justify-content: center; }

.app-banned-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 14px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  background: #1a2235;
  background: var(--surface-3);
  color: #e8ecf4;
  color: var(--text-1);
  border: 1px solid rgba(99 120 180 / 0.18);
  border: 1px solid var(--border-2);
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms, color 160ms, transform 120ms;
  transition: background 160ms var(--ease), border-color 160ms, color 160ms, transform 120ms;
  letter-spacing: -0.01em;
}
.app-banned-logout-btn:hover {
  background: rgba(248 113 113 / 0.1);
  background: var(--red-subtle);
  border-color: rgba(248 113 113 / 0.2);
  border-color: var(--red-border);
  color: #f87171;
  color: var(--red);
  transform: translateY(-1px);
}
.app-banned-logout-btn:active { transform: translateY(0); }

.app-banned-logout-icon { font-size: 18px; }

/* ── Footer ── */
.app-banned-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-banned-footer-brand {
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(130deg, #93a8ff, #38bdf8);
  background: linear-gradient(130deg, #93a8ff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-banned-footer-help {
  font-size: 11px;
  color: #3d4f6e;
  color: var(--text-3);
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .app-loading-title         { font-size: 24px; }
  .app-loading-logo          { width: 64px; height: 64px; }
  .app-loading-logo-wrapper  { width: 76px; height: 76px; }
  .app-banned-title          { font-size: 22px; }
  .app-banned-contact-options { flex-direction: column; }
  .app-banned-contact-btn    { justify-content: center; }
  .app-banned-card           { padding: 14px 16px; }
}

@media (min-width: 640px) {
  .app-loading-title { font-size: 34px; }
}
