/**
 * =============================================================================
 * app.css — Design System Principal
 * CPublish
 * =============================================================================
 *
 * Sistema de diseño SaaS moderno.
 * Inspirado en Metronic, Tabler y AdminLTE con identidad Mensajería.
 *
 * ÍNDICE:
 *  1. Variables CSS (tokens del diseño)
 *  2. Reset y base
 *  3. Layout (sidebar + main content)
 *  4. Sidebar
 *  5. Topbar / Navbar
 *  6. Cards
 *  7. KPI Cards
 *  8. Tablas
 *  9. Badges y estados
 * 10. Formularios y Upload
 * 11. Botones
 * 12. Módulo de Cuentas (avatars, QR)
 * 13. Módulo de Estado (type selector, preview phone)
 * 14. Dashboard (recent posts, charts)
 * 15. Auth Layout
 * 16. Utilidades
 * 17. Animaciones
 * 18. Responsive
 * =============================================================================
 */

/* ============================================================================
   1. VARIABLES CSS (Design Tokens)
   ============================================================================ */
:root {
    /* Colores de marca */
    --cubix-green:          #3B82F6;
    --cubix-green-dark:     #6366F1;
    --cubix-green-darker:   #312E81;
    --cubix-teal:           #8B5CF6;

    /* Colores de UI */
    --brand-primary:     #38bdf8;
    --brand-secondary:   #818cf8;

    /* Sidebar */
    --sidebar-width:     240px;
    --sidebar-collapsed: 70px;
    --sidebar-bg:        #090d16;
    --sidebar-text:      #94a3b8;
    --sidebar-text-hover:#ffffff;
    --sidebar-active-bg: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 60%, #a855f7 100%);
    --sidebar-active-text: #ffffff;
    --sidebar-border:    rgba(255, 255, 255, 0.06);

    /* Layout */
    --topbar-height:     70px;
    --content-padding:   20px 24px;

    /* Superficie Oscura */
    --surface-bg:        #0b0f19;
    --card-bg:           #111728;
    --card-border:       rgba(255, 255, 255, 0.07);
    --card-radius:       18px;
    --card-shadow:       0 4px 20px rgba(0,0,0,.25);
    --card-shadow-hover: 0 10px 30px rgba(0,0,0,.35);

    /* Tipografía */
    --font-family:       'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-primary:      #f8fafc;
    --text-secondary:    #94a3b8;
    --text-muted:        #64748b;

    /* Bordes */
    --border-color:      rgba(255, 255, 255, 0.07);
    --border-radius:     12px;
    --border-radius-sm:  8px;
    --border-radius-lg:  18px;

    /* Transiciones */
    --transition-base:   all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Status colors */
    --status-working:    #22c55e;
    --status-stopped:    #64748b;
    --status-scan-qr:    #eab308;
    --status-starting:   #06b6d4;
    --status-failed:     #f43f5e;
}

/* ============================================================================
   2. RESET Y BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family:     var(--font-family);
    font-size:       14px;
    line-height:     1.6;
    color:           var(--text-primary);
    background:      var(--surface-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x:      hidden;
    width:           100%;
}

/* Links */
a { color: var(--brand-primary); text-decoration: none; transition: var(--transition-base); }
a:hover { color: #93c5fd; }

/* ============================================================================
   3. LAYOUT
   ============================================================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--surface-bg);
    position: relative;
}

.main-content {
    flex: 1 1 auto;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-bg);
    overflow-x: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.page-content {
    padding: var(--content-padding);
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.3;
}
.page-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================================================
   4. SIDEBAR
   ============================================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Scrollbar personalizado */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Brand / Logo */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 22px 20px;
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-cube-svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.6));
}
.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}
.brand-sub {
    font-size: 11px;
    color: var(--sidebar-text);
    font-weight: 500;
}
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-base);
    font-size: 18px;
    line-height: 1;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,0.08); color: white; }

/* Navegación */
.sidebar-nav { flex: 1; padding: 10px 0; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-separator {
    padding: 18px 22px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
}
.nav-item { margin: 3px 12px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}
.nav-link:hover:not(.disabled) {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}
.nav-link.active {
    background: var(--sidebar-active-bg);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.nav-link.active .nav-icon { color: #ffffff; }
.nav-icon { font-size: 16px; flex-shrink: 0; width: 18px; color: var(--sidebar-text); }
.nav-text { flex: 1; }

.nav-badge-pill {
    font-size: 9.5px;
    font-weight: 700;
    background: #0284c7;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer del sidebar */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* User Pill Widget */
.sidebar-user-pill { width: 100%; }
.user-pill-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-pill-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.user-pill-avatar {
    width: 32px;
    height: 32px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}
.user-pill-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.user-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-pill-role {
    font-size: 11px;
    color: #64748b;
}
.user-pill-caret {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

/* Tarjeta Plan Empresarial */
.sidebar-plan-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(76, 29, 149, 0.5) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
}
.plan-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.plan-card-icon {
    font-size: 15px;
    color: #c084fc;
}
.plan-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}
.plan-card-date {
    font-size: 11.5px;
    color: rgba(203, 213, 225, 0.75);
    margin: 0 0 6px;
}
.plan-usage-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}
.plan-usage-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.plan-usage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2dd4bf 0%, #38bdf8 100%);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}
.plan-usage-percent {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
}
.plan-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 7px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.plan-card-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

/* Overlay para móviles */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1039;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

/* ============================================================================
   5. TOPBAR
   ============================================================================ */
.topbar {
    height: var(--topbar-height);
    background: #0b0f19;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }

/* Buscador global */
.topbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #111728;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 14px;
    width: 280px;
    height: 42px;
    transition: all 0.2s ease;
}
.topbar-search-wrapper:focus-within {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}
.search-icon {
    font-size: 14px;
    color: #64748b;
    margin-right: 8px;
}
.topbar-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    width: 100%;
}
.topbar-search-input::placeholder { color: #64748b; }
.search-shortcut {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Botón Publicar Estado Topbar */
.btn-topbar-publish {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
    transition: all 0.2s ease;
}
.btn-topbar-publish:hover {
    color: #ffffff;
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
}
.publish-pulse-icon {
    font-size: 15px;
}

/* Botón Icono Topbar */
.btn-topbar-icon {
    background: #111728;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-topbar-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
.notification-dot {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 7px;
    height: 7px;
    background: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 8px #ec4899;
}

/* User Menu Topbar */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.topbar-user-btn::after { display: none; }
.user-avatar-circle {
    width: 36px;
    height: 36px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}
.user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.user-name-text {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}
.user-role-text {
    font-size: 11px;
    color: #64748b;
}

/* Dropdown Menus Dark Futuristic */
.dropdown-menu {
    background: #111728 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.6) !important;
    padding: 8px !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(16px);
}
.dropdown-item {
    color: #94a3b8 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.dropdown-item.text-danger {
    color: #f87171 !important;
}
.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}
.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin: 6px 0 !important;
}
.dropdown-header {
    color: #cbd5e1 !important;
    padding: 8px 12px 4px !important;
}

/* ============================================================================
   6. CARDS (Base)
   ============================================================================ */
.card-app {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.card-app:hover { box-shadow: var(--card-shadow-hover); }

.card-header-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}
.card-title-app {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

/* ============================================================================
   7. KPI CARDS
   ============================================================================ */
.kpi-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    height: 100%;
}
.kpi-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.kpi-card-primary .kpi-icon { background: rgba(18,140,126,0.12); color: var(--brand-primary); }
.kpi-card-success .kpi-icon { background: rgba(25,135,84,0.12); color: #198754; }
.kpi-card-info    .kpi-icon { background: rgba(13,110,253,0.10); color: #0d6efd; }
.kpi-card-warning .kpi-icon { background: rgba(255,193,7,0.15);  color: #856404; }

.kpi-body { flex: 1; }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; line-height: 1; }
.kpi-sub   { font-size: 12px; color: var(--text-muted); margin: 0; }
.kpi-link  { font-size: 12px; color: var(--brand-primary); font-weight: 500; }
.kpi-link:hover { color: var(--brand-secondary); }

/* ============================================================================
   8. TABLAS
   ============================================================================ */
.table-app {
    font-size: 13.5px;
    margin: 0;
}
.table-app thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.table-app tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
}
.table-app tbody tr:last-child td { border-bottom: none; }
.table-app tbody tr:hover td { background: #f8fafc; }

/* Miniaturas en historial */
.thumb-preview {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}
.thumb-preview:hover { transform: scale(2.5); z-index: 10; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ============================================================================
   9. BADGES Y ESTADOS
   ============================================================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.badge-status.badge-lg { padding: 6px 14px; font-size: 12px; }

.badge-success   { background: rgba(25,135,84,0.1);  color: #198754; }
.badge-secondary { background: rgba(108,117,125,0.1); color: #6c757d; }
.badge-warning   { background: rgba(255,193,7,0.15);  color: #856404; }
.badge-info      { background: rgba(13,202,240,0.12); color: #0a6783; }
.badge-danger    { background: rgba(220,53,69,0.1);   color: #dc3545; }

/* Status dot en avatar */
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}
.status-dot-success   { background: #198754; }
.status-dot-secondary { background: #6c757d; }
.status-dot-warning   { background: #ffc107; }
.status-dot-info      { background: #0dcaf0; }
.status-dot-danger    { background: #dc3545; }

/* Stat pills (en listado de cuentas) */
.stat-pill {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.stat-pill-success   { background: rgba(25,135,84,0.08);  color: #198754; }
.stat-pill-secondary { background: rgba(108,117,125,0.08); color: #6c757d; }
.stat-pill-warning   { background: rgba(255,193,7,0.12);  color: #856404; }

/* ============================================================================
   10. FORMULARIOS Y UPLOAD
   ============================================================================ */

/* Input wrapper (login) */
.input-wrapper { position: relative; }
.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 16px;
}
.input-wrapper .form-control { padding-left: 40px; }
.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: var(--transition-base);
}
.btn-toggle-password:hover { color: var(--text-primary); }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: #f8fafc;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--brand-primary);
    background: rgba(18,140,126,0.04);
}
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.upload-icon {
    font-size: 36px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}
.upload-text { color: var(--text-secondary); margin-bottom: 10px; font-size: 14px; }
.upload-hint { color: var(--text-muted); font-size: 12px; margin-top: 8px; margin-bottom: 0; }

.upload-preview { position: relative; }
.preview-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.preview-video {
    width: 100%;
    max-height: 240px;
    border-radius: 6px;
    display: block;
}
.btn-remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-base);
}
.btn-remove-file:hover { background: rgba(220,53,69,0.8); }

/* Char counter */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--text-muted);
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Emoji textarea */
.emoji-input {
    font-size: 15px;
    resize: vertical;
    padding-bottom: 28px;
}

/* Color presets */
.color-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}
.color-btn:hover,
.color-btn.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--brand-primary);
    transform: scale(1.1);
}

/* ============================================================================
   11. BOTONES
   ============================================================================ */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-base);
    font-size: 13.5px;
}
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover { background: var(--cubix-green-darker); border-color: var(--cubix-green-darker); }

.btn-group-sm > .btn { border-radius: 6px !important; }

/* ============================================================================
   12. MÓDULO DE CUENTAS (SaaS Futuristic Dark Theme)
   ============================================================================ */

/* Accounts Header */
.accounts-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.accounts-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.accounts-header-icon {
    font-size: 24px;
    color: #38bdf8;
}
.accounts-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}
.accounts-page-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}
.btn-new-account-main {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
    transition: all 0.2s ease;
}
.btn-new-account-main:hover {
    color: #ffffff;
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

/* 4 KPI Cards */
.account-kpi-card {
    background: #111728;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}
.account-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.account-kpi-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.badge-kpi-cyan {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}
.badge-kpi-red {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
}
.badge-kpi-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}
.badge-kpi-teal {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.2);
}
.account-kpi-info {
    display: flex;
    flex-direction: column;
}
.account-kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}
.limit-slash-total {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}
.account-kpi-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 2px;
}
.account-kpi-sublabel {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}
.text-emerald {
    color: #22c55e !important;
}

/* Plan Alert Banner */
.accounts-plan-alert {
    background: rgba(30, 58, 138, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bae6fd;
    font-size: 13.5px;
    backdrop-filter: blur(8px);
}
.plan-alert-icon {
    color: #38bdf8;
    font-size: 18px;
    flex-shrink: 0;
}
.plan-alert-text {
    font-weight: 500;
}

/* Accounts Filter Bar */
.accounts-filter-bar {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.accounts-search-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 12px;
    flex: 1 1 220px;
    max-width: 280px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.accounts-search-wrapper:focus-within {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.search-bar-icon {
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}
.accounts-search-field {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12.5px;
    width: 100%;
}
.accounts-search-field::placeholder {
    color: #64748b;
}

.accounts-dropdown-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-select-container {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.filter-select-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}
.filter-dropdown-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-clear-accounts-filter {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-clear-accounts-filter:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Modern Accounts Table */
.accounts-modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.accounts-modern-table thead th {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}
.sort-arrow-icon {
    font-size: 10px;
    margin-left: 2px;
    color: #64748b;
}
.accounts-modern-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #f1f5f9;
    white-space: nowrap;
}
.accounts-modern-table tbody tr:last-child td {
    border-bottom: none;
}
.accounts-modern-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.account-cell-content {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.account-avatar-teal {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0d9488, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.35);
}
.avatar-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #111728;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}
.avatar-online-dot.offline {
    background: #64748b;
    box-shadow: none;
}

.account-names-block {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.account-main-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.account-sub-name {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
    white-space: nowrap;
}

.account-phone-block {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 12.5px;
    white-space: nowrap;
}
.phone-number-text {
    white-space: nowrap;
    font-size: 12.5px;
    color: #f1f5f9;
}
.phone-icon-subtle {
    color: #64748b;
    font-size: 12px;
    flex-shrink: 0;
}
.btn-copy-phone {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}
.btn-copy-phone:hover {
    color: #38bdf8;
}

.account-session-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
}
.cubix-session-pill {
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #c084fc;
    font-size: 11.5px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    font-family: monospace;
    white-space: nowrap;
}
.cubix-version-text {
    display: block;
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
    font-family: monospace;
    white-space: nowrap;
}

.account-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
}
.account-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.status-online {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}
.status-offline {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}
.status-qr {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.account-status-sub {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
}

.account-tags-block {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.account-tag-pill {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.btn-add-tag-small {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.btn-add-tag-small:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.account-activity-block {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}
.activity-relative-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
}
.activity-green-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    flex-shrink: 0;
}
.activity-exact-date {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
}

.account-actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.btn-action-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.btn-action-delete {
    color: #f87171;
}
.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.accounts-table-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.accounts-count-info {
    font-size: 12.5px;
    color: #64748b;
}
.accounts-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pagination-arrow-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}
.pagination-num-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}
.pagination-num-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Bottom Promo Banner */
.accounts-bottom-banner {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(55, 48, 163, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 18px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.promo-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.promo-star-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #c084fc;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
    flex-shrink: 0;
}
.promo-text-content {
    line-height: 1.25;
}
.promo-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}
.promo-banner-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.btn-promo-plans {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-promo-plans:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

/* Modal Dark */
.modal-content-dark {
    background: #111728;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

/* ============================================================================
   12B. CREAR CUENTA (SaaS Dark Theme)
   ============================================================================ */

.create-account-page-wrapper {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 2rem;
}

/* Header */
.create-acc-header-box {
    margin-bottom: 1.5rem;
}
.btn-back-accounts {
    min-height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-back-accounts:hover {
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Plan Alert with Progress Bar */
.create-acc-plan-alert {
    background: linear-gradient(100deg, rgba(37, 99, 235, 0.13), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--card-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
}
.plan-alert-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.plan-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}
.plan-alert-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #bae6fd;
}
.plan-alert-detail {
    font-size: 0.75rem;
    color: #94a3b8;
}
.plan-alert-detail strong {
    color: #f1f5f9;
}
.plan-usage-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.plan-usage-bar {
    flex: 1;
    height: 6px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 6px;
    overflow: hidden;
    min-width: 80px;
}
.plan-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 6px;
    transition: width 0.5s ease;
}
.plan-usage-pct {
    font-size: 0.725rem;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

/* Main Form Card */
.create-acc-main-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.create-acc-card-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.012);
}
.text-cyan {
    color: #38bdf8 !important;
}
.create-acc-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}
.create-acc-card-badge {
    background: rgba(124, 58, 237, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.create-acc-card-body {
    padding: 1.65rem 1.5rem;
}

/* Form Labels */
.create-acc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.text-slate-dim {
    color: #64748b !important;
    font-size: 0.8rem;
}
.create-acc-auto-badge {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.3);
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}
.create-acc-optional-badge {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    margin-left: 4px;
}

/* Form Inputs */
.create-acc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.create-acc-input-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}
.create-acc-input-icon.textarea-icon {
    top: 14px;
    align-self: flex-start;
}
.create-acc-input,
.create-acc-select,
.create-acc-textarea {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: var(--border-radius);
    padding: 0.72rem 0.9rem;
    font-size: 13.5px;
    color: #f1f5f9;
    outline: none;
    transition: all 0.2s ease;
}
.create-acc-input.with-icon,
.create-acc-select.with-icon,
.create-acc-textarea.with-icon {
    padding-left: 2.3rem;
}
.create-acc-input:focus,
.create-acc-select:focus,
.create-acc-textarea:focus {
    border-color: var(--brand-primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.create-acc-input::placeholder,
.create-acc-textarea::placeholder {
    color: #64748b;
}
.readonly-dark {
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(51, 65, 85, 0.4) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* Select Dark Styling */
.create-acc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.85rem;
    padding-right: 2.2rem;
    cursor: pointer;
}
.create-acc-select option {
    background: #0f172a;
    color: #f8fafc;
}

/* Textarea */
.create-acc-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Hint text */
.create-acc-hint {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
    padding-left: 2px;
}

/* Info Box */
.create-acc-info-box {
    background: rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
}
.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.85rem;
}
.info-box-icon {
    color: #38bdf8;
    font-size: 1.1rem;
}
.info-box-title {
    font-size: 0.85rem;
    color: #bae6fd;
}
.info-box-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.info-box-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    counter-increment: step-counter;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.2s ease;
}
.info-box-steps li:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(56, 189, 248, 0.25);
}
.info-box-steps li::before {
    content: counter(step-counter);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.step-icon {
    color: #38bdf8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Action Buttons */
.create-acc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-cancel-dark {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 12px;
    padding: 0.7rem 1.25rem;
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.btn-cancel-dark:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #ffffff;
    text-decoration: none;
}
.btn-submit-dark {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-submit-dark:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    color: #ffffff;
}
.btn-submit-dark:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .create-account-page-wrapper {
        max-width: 100%;
    }
    .create-acc-header-box .btn-back-accounts {
        width: 100%;
        justify-content: center;
    }
    .create-acc-actions {
        flex-direction: column;
    }
    .btn-cancel-dark,
    .btn-submit-dark {
        width: 100%;
        justify-content: center;
    }
    .plan-usage-bar-wrapper {
        width: 100%;
    }
    .create-acc-card-header,
    .create-acc-card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================================================
   12C. CAMBIAR CONTRASEÑA
   ============================================================================ */
.password-page-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 2rem;
}

.password-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.password-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.password-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #38bdf8;
    font-size: 1.15rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}
.password-page-title {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.password-page-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13.5px;
}
.password-back-button,
.password-cancel-button {
    min-height: 42px;
    padding: 0.65rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-base);
}
.password-back-button:hover,
.password-cancel-button:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.password-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}
.password-main-card,
.password-security-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}
.password-main-card {
    overflow: hidden;
}
.password-card-header {
    min-height: 78px;
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.012);
}
.password-card-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.password-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.password-card-title {
    margin: 0 0 2px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}
.password-card-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 11.5px;
}
.password-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}
.password-card-body {
    padding: 1.6rem 1.5rem 1.5rem;
}
.password-field-group {
    margin-bottom: 1.25rem;
}
.password-field-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
}
.password-required {
    color: #fb7185;
}
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: var(--transition-base);
}
.password-input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 42px;
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 12px;
    outline: none;
    font: inherit;
    font-size: 13.5px;
    transition: var(--transition-base);
}
.password-input::placeholder {
    color: var(--text-muted);
}
.password-input:focus {
    background: rgba(30, 41, 59, 0.88);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}
.password-input-wrapper:focus-within .password-input-icon {
    color: var(--brand-primary);
}
.password-visibility-toggle {
    position: absolute;
    right: 9px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}
.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}
.password-section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.4rem 0 1.15rem;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.password-section-divider::before,
.password-section-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--card-border);
}

.password-strength {
    margin-top: 0.55rem;
}
.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}
.password-strength-bars span {
    height: 3px;
    background: rgba(100, 116, 139, 0.28);
    border-radius: 3px;
    transition: var(--transition-base);
}
.password-strength[data-score="1"] .password-strength-bars span:nth-child(-n+1) { background: #f43f5e; }
.password-strength[data-score="2"] .password-strength-bars span:nth-child(-n+2) { background: #f59e0b; }
.password-strength[data-score="3"] .password-strength-bars span:nth-child(-n+3) { background: #38bdf8; }
.password-strength[data-score="4"] .password-strength-bars span:nth-child(-n+4) { background: #22c55e; }
.password-strength-label,
.password-match-message {
    min-height: 18px;
    color: var(--text-muted);
    font-size: 10.5px;
}
.password-match-message {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 4px;
}
.password-match-message.is-valid { color: #34d399; }
.password-match-message.is-invalid { color: #fb7185; }

.password-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.35rem;
}
.password-submit-button {
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.32);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}
.password-submit-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}
.password-submit-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}
.password-button-content,
.password-button-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.password-security-card {
    position: relative;
    padding: 1.6rem 1.4rem 1.35rem;
    overflow: hidden;
}
.password-security-card::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    filter: blur(10px);
    pointer-events: none;
}
.password-security-illustration {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 20px;
    font-size: 31px;
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.12);
}
.password-security-glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.28);
}
.password-security-title {
    position: relative;
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}
.password-security-copy {
    position: relative;
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}
.password-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 13px;
}
.password-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11.5px;
    transition: var(--transition-base);
}
.password-requirement i {
    font-size: 12px;
}
.password-requirement.is-complete {
    color: #34d399;
}
.password-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 1rem;
    padding: 0.75rem 0.8rem;
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 11px;
    font-size: 10.5px;
    line-height: 1.5;
}
.password-security-note i {
    color: #38bdf8;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .password-layout-grid {
        grid-template-columns: 1fr;
    }
    .password-security-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
    }
    .password-security-illustration {
        grid-row: 1 / 4;
    }
    .password-requirements-list,
    .password-security-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .password-page-header,
    .password-card-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .password-back-button,
    .password-actions,
    .password-cancel-button,
    .password-submit-button {
        width: 100%;
    }
    .password-actions {
        flex-direction: column-reverse;
    }
    .password-card-body,
    .password-card-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .password-page-title {
        font-size: 21px;
    }
    .password-security-card {
        display: block;
    }
}

/* ============================================================================
   13. MÓDULO DE ESTADOS (SaaS Futuristic Dark Theme)
   ============================================================================ */

/* Status Header */
.status-header-wrapper {
    margin-bottom: 24px;
}
.status-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}
.status-page-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

/* Form Section Labels */
.status-section-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

/* Account Custom Select */
.account-select-custom-wrapper {
    position: relative;
}
.status-account-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 16px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.status-account-select:focus {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}
.status-account-select option {
    background: #111728;
    color: #ffffff;
    padding: 10px;
}

/* 5 Status Type Selector Cards */
.status-type-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.status-type-card-item {
    cursor: pointer;
    margin: 0;
}
.status-type-card-item .type-radio {
    display: none;
}
.status-type-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    position: relative;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
}
.status-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.status-type-card.active,
.status-type-card-item .type-radio:checked + .status-type-card {
    background: rgba(124, 58, 237, 0.08);
    border: 1.5px solid #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}
.status-type-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #2563eb;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.8);
}
.status-type-card.active .status-type-check-badge,
.status-type-card-item .type-radio:checked + .status-type-card .status-type-check-badge {
    display: flex;
}
.status-type-icon-box {
    font-size: 20px;
    color: #cbd5e1;
    line-height: 1;
}
.status-type-card.active .status-type-icon-box {
    color: #ffffff;
}
.status-type-card-title {
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}
.status-type-card.active .status-type-card-title {
    color: #ffffff;
    font-weight: 600;
}

/* Custom Textarea */
.status-textarea-wrapper {
    position: relative;
}
.status-custom-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 14px 16px 32px;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}
.status-custom-textarea:focus {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}
.status-custom-textarea::placeholder {
    color: #64748b;
}
.status-char-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    pointer-events: none;
}

/* Upload Dropzones */
.upload-zone-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.upload-zone-modern:hover,
.upload-zone-modern.drag-over {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.04);
}
.upload-zone-icon {
    font-size: 28px;
    color: #38bdf8;
    margin-bottom: 6px;
    display: inline-block;
}
.upload-zone-text {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 4px;
}
.upload-browse-btn {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: underline;
}
.upload-zone-hint {
    font-size: 11.5px;
    color: #64748b;
}
.upload-zone-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.upload-zone-preview img,
.upload-zone-preview video {
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.btn-remove-media {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Sub-panel card (Personalización y Programación) */
.sub-panel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
}
.sublabel-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.color-swatches-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.color-swatch-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.color-swatch-circle:hover {
    transform: scale(1.15);
}
.color-swatch-circle.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #38bdf8;
    transform: scale(1.15);
}
.status-font-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    outline: none;
    cursor: pointer;
}
.status-font-select option {
    background: #111728;
    color: #ffffff;
}

/* Switch & Schedule */
.custom-switch-glow .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.custom-switch-glow .form-check-input:checked {
    background-color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.schedule-input-wrapper {
    position: relative;
}
.schedule-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}
.status-schedule-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 12px 8px 34px;
    outline: none;
}
.status-schedule-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bottom Action Buttons */
.status-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}
.btn-status-preview-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 22px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-status-preview-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-status-publish-submit {
    flex: 1;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    padding: 11px 24px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
    transition: all 0.2s ease;
}
.btn-status-publish-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

/* ============================================================================
   RIGHT COLUMN: REALISTIC PHONE MOCKUP PREVIEW
   ============================================================================ */

.preview-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.preview-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.badge-realtime {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-realtime-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

/* Phone Wrapper & Device Frame */
.status-phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    filter: drop-shadow(0 0 45px rgba(124, 58, 237, 0.3));
}
.status-phone-device {
    width: 280px;
    height: 540px;
    background: #000000;
    border: 4px solid #27272a;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island */
.phone-dynamic-island {
    height: 32px;
    padding: 6px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    flex-shrink: 0;
}
.phone-camera-pill {
    width: 68px;
    height: 16px;
    background: #000000;
    border-radius: 12px;
}
.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

/* Mensajería Status Header Inside Phone */
.phone-channel-status-header {
    padding: 6px 14px 8px;
    z-index: 10;
    flex-shrink: 0;
}
.phone-story-progress-bar {
    width: 100%;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.phone-story-progress-fill {
    width: 65%;
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
}
.phone-channel-account-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-channel-avatar {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.phone-channel-account-names {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.phone-channel-name {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.phone-channel-time {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.7);
}
.phone-channel-menu-btn {
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

/* Screen Body */
.phone-channel-screen-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.phone-live-text-container {
    padding: 24px;
    text-align: center;
    width: 100%;
}
.phone-live-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.phone-live-media-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-live-media-container img,
.phone-live-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phone-live-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    padding: 10px 14px;
    text-align: center;
}

/* Phone Status Footer Inside Phone */
.phone-channel-status-footer {
    padding: 8px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 10;
    flex-shrink: 0;
}
.phone-footer-caret {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}
.phone-footer-responder {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
}
.phone-home-indicator {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    margin-top: 8px;
}

/* Bottom Info Alert Box */
.phone-preview-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-box-icon {
    color: #64748b;
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}
.info-box-text {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ============================================================================
   14. DASHBOARD (SaaS Futuristic Dark Theme)
   ============================================================================ */

/* Hero Welcome Banner */
.dashboard-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 6px;
    position: relative;
}
.hero-text-content {
    max-width: 60%;
}
.hero-greeting {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.hero-name-accent {
    color: #38bdf8;
    font-weight: 700;
}
.hero-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}
.hero-graphic-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.hero-3d-phone {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(56, 189, 248, 0.25));
    animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* ============================================================================
   KPI Cards (4 Columns)
   ============================================================================ */
.dashboard-kpi-card {
    background: #111728;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 20px 22px;
    height: 100%;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.dashboard-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.kpi-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.kpi-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.badge-purple {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
.badge-blue {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}
.badge-teal {
    background: rgba(45, 212, 191, 0.14);
    color: #2dd4bf;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.25);
}
.badge-violet {
    background: rgba(139, 92, 246, 0.14);
    color: #a78bfa;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.kpi-meta {
    flex: 1;
    min-width: 0;
}
.kpi-title {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}
.kpi-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}
.kpi-trend {
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}
.kpi-trend.positive { color: #22c55e; }
.trend-sub {
    color: #64748b;
    font-weight: 400;
    font-size: 10.5px;
    margin-left: 2px;
}
.kpi-status-info {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}

.kpi-sparkline {
    width: 65px;
    height: 35px;
    margin-left: auto;
    flex-shrink: 0;
}
.sparkline-svg {
    width: 100%;
    height: 100%;
}
.spark-purple { color: #a855f7; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7)); }
.spark-blue   { color: #38bdf8; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7)); }
.spark-teal   { color: #2dd4bf; filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.7)); }
.spark-violet { color: #c084fc; filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7)); }

/* ============================================================================
   Dashboard Panel Cards (Middle & Bottom Sections)
   ============================================================================ */
.dashboard-panel-card {
    background: #111728;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.panel-card-header {
    padding: 18px 22px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.panel-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}
.panel-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
}
.header-action-link {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.header-action-link:hover { color: #93c5fd; }

.panel-card-body {
    padding: 18px 22px;
    flex: 1;
}

.chart-container-spline {
    position: relative;
    height: 210px;
    width: 100%;
}

/* Donut Chart Widget */
.donut-chart-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.donut-center-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.donut-total-count {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.donut-total-sub {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}
.donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}
.legend-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-sent { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.dot-scheduled { background: #0284c7; box-shadow: 0 0 6px #0284c7; }
.dot-failed { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.legend-name { color: #cbd5e1; font-weight: 500; }
.legend-val-pct { color: #94a3b8; font-size: 12px; font-weight: 600; }

/* Quick Actions List */
.quick-action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.quick-action-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}
.action-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
}
.bg-purple-neon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}
.bg-blue-neon {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}
.bg-teal-neon {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.35);
}
.bg-violet-neon {
    background: linear-gradient(135deg, #c084fc, #8b5cf6);
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.35);
}
.action-info {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.action-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: block;
}
.action-desc {
    font-size: 11px;
    color: #64748b;
}
.action-arrow {
    color: #64748b;
    font-size: 13px;
    margin-left: auto;
}

/* ============================================================================
   Custom Dashboard Table (Publicaciones Recientes)
   ============================================================================ */
.dashboard-custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dashboard-custom-table thead th {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dashboard-custom-table tbody td {
    padding: 14px 22px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #f1f5f9;
}
.dashboard-custom-table tbody tr:last-child td {
    border-bottom: none;
}
.dashboard-custom-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.post-preview-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-thumb-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #182245;
    font-size: 16px;
}
.bg-thumb-green {
    background: rgba(34, 197, 94, 0.12);
}
.bg-thumb-orange {
    background: rgba(249, 115, 22, 0.12);
}
.bg-thumb-blue {
    background: rgba(56, 189, 248, 0.12);
}
.post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-title-text {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
}
.pill-txt {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.pill-img {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.pill-vid {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.account-name-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}
.post-date-cell {
    font-size: 12px;
    color: #64748b;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.badge-sent {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-scheduled {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}
.badge-err {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ============================================================================
   Próximas Publicaciones Widget
   ============================================================================ */
.upcoming-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}
.upcoming-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.date-badge-box {
    background: #182245;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.date-badge-num {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.date-badge-month {
    font-size: 9.5px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    margin-top: 1px;
}
.upcoming-meta {
    flex: 1;
    min-width: 0;
}
.upcoming-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upcoming-item-account {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}
.upcoming-status-box {
    flex-shrink: 0;
}
.upcoming-time {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 3px;
}

.panel-card-footer {
    padding: 12px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.panel-footer-link {
    color: #38bdf8;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.panel-footer-link:hover {
    color: #93c5fd;
    gap: 9px;
}

/* ============================================================================
   15. AUTH LAYOUT (Login Background & Card Theme)
   ============================================================================ */
.auth-layout {
    min-height: 100vh;
    background-color: #060814;
    background-image: url('../img/auth-bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Contenedor central */
.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    margin: auto;
}

/* Alertas Flash integradas con estilo Glassmorphic */
.auth-flash-wrapper {
    margin-bottom: 18px;
}
.auth-flash-wrapper .alert {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    font-size: 13.5px;
    padding: 12px 16px;
    border-width: 1px;
}
.auth-flash-wrapper .alert-danger {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.3);
}
.auth-flash-wrapper .alert-success {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.5);
    color: #a7f3d0;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}
.auth-flash-wrapper .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Tarjeta Glassmorphic Principal */
.auth-card {
    background: rgba(10, 15, 32, 0.55);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-radius: 28px;
    padding: 40px 34px 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        -10px 0 45px -8px rgba(168, 85, 247, 0.22),
        10px 0 45px -8px rgba(56, 189, 248, 0.22),
        0 25px 65px rgba(0, 0, 0, 0.75),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Destello superior de cristal */
.auth-card-flare {
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(192, 132, 252, 0.8) 25%, #ffffff 50%, rgba(56, 189, 248, 0.8) 75%, transparent 100%);
    box-shadow: 0 0 18px 2px rgba(56, 189, 248, 0.85);
}

/* Header & Insignia de Logo */
.auth-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.25) 0%, rgba(30, 27, 75, 0.88) 100%);
    border: 1.5px solid rgba(129, 140, 248, 0.85);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffffff;
    box-shadow: 
        0 0 30px rgba(56, 189, 248, 0.55),
        0 0 12px rgba(129, 140, 248, 0.8),
        inset 0 0 18px rgba(124, 58, 237, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auth-logo-badge:hover {
    transform: scale(1.04);
    box-shadow: 
        0 0 38px rgba(56, 189, 248, 0.72),
        0 0 16px rgba(129, 140, 248, 0.95),
        inset 0 0 22px rgba(124, 58, 237, 0.45);
}
.auth-logo-badge .bi-chat-dots-fill {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
}

.auth-title {
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.4px;
}
.auth-title-accent {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.auth-subtitle {
    color: rgba(203, 213, 225, 0.7);
    font-size: 13.5px;
    margin: 0;
    font-weight: 400;
}

/* Campos de entrada */
.auth-form {
    margin-top: 24px;
}
.auth-input-group {
    margin-bottom: 16px;
}
.auth-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.auth-input-wrapper:focus-within {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.78);
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    font-size: 17px;
    color: rgba(226, 232, 240, 0.55);
    pointer-events: none;
    transition: color 0.25s ease;
}
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.auth-input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 46px 0 46px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
}
.auth-input::placeholder {
    color: rgba(226, 232, 240, 0.45);
    font-size: 14px;
}
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(15, 23, 42, 0.85) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    padding: 6px;
    color: rgba(226, 232, 240, 0.55);
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.auth-password-toggle:hover {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Opciones: Recordarme & Olvidaste contraseña */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 2px 24px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.auth-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    outline: none;
}
.auth-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}
.auth-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.auth-remember-text {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 400;
    transition: color 0.2s;
}
.auth-remember-label:hover .auth-remember-text {
    color: #ffffff;
}

.auth-forgot-link {
    font-size: 13px;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}
.auth-forgot-link:hover {
    color: #93c5fd;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Botón de acceso principal */
.auth-btn-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #1d68ff 0%, #3b82f6 28%, #7c3aed 72%, #9333ea 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 4px 25px rgba(59, 130, 246, 0.45), 
        0 8px 32px rgba(124, 58, 237, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.auth-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 32px rgba(59, 130, 246, 0.65), 
        0 12px 38px rgba(124, 58, 237, 0.55);
    filter: brightness(1.08);
}
.auth-btn-submit:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}
.auth-btn-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}
.auth-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.auth-btn-arrow {
    font-size: 16px;
    transition: transform 0.25s ease;
}
.auth-btn-submit:hover .auth-btn-arrow {
    transform: translateX(4px);
}
.auth-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge de seguridad */
.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: rgba(203, 213, 225, 0.65);
    font-size: 12.5px;
}
.auth-security-badge .bi-shield-check {
    color: #2dd4bf;
    font-size: 15px;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.6));
}

/* ============================================================================
   16. UTILIDADES
   ============================================================================ */
.tiny { font-size: 11px !important; }
.object-fit-cover { object-fit: cover; }
.spin { animation: spin 1s linear infinite; }

/* Tooltip wrappers */
[data-bs-toggle="tooltip"] { cursor: help; }

/* ============================================================================
   17. ANIMACIONES
   ============================================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
}
@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -20px) scale(1.05); }
    66%      { transform: translate(-10px, 15px) scale(0.95); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================================
   18. RESPONSIVE
   ============================================================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .topbar {
        padding: 0 18px;
    }
    .topbar-search-wrapper {
        width: 180px;
    }
    .status-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-header { flex-direction: column; }
    .page-header-actions { width: 100%; }
}

@media (max-width: 768px) {
    .topbar-search-wrapper {
        display: none;
    }
    .btn-topbar-publish span:not(.publish-pulse-icon) {
        display: none;
    }
    .btn-topbar-publish .bi-chevron-down {
        display: none;
    }
    .btn-topbar-publish {
        padding: 8px 12px;
    }
    .topbar-left, .topbar-right {
        gap: 8px;
    }
}

@media (max-width: 575.98px) {
    .page-content { padding: 16px 12px; }
    .topbar { padding: 0 12px; }
    .auth-card { padding: 28px 20px; }
    .kpi-value { font-size: 22px; }
    .status-type-grid { grid-template-columns: repeat(2, 1fr); }
    .phone-mockup { width: 160px; }
}

@media (max-width: 400px) {
    .status-type-grid { grid-template-columns: 1fr; }
}
