/* ==========================================================================
   1. VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --bg-deep: #0e0e0f;
    /* Fondo base */
    --gray-sidebar: #161617;
    /* Gris Sidebar */
    --gray-card: #1c1c1e;
    /* Gris de las Boxes */
    --gray-border: #2c2c2e;
    /* Bordes sutiles */
    --text-apple: #f5f5f7;
    --text-dim: #86868b;
    --accent: #0071e3;
    /* Azul Apple */
    --accent-hover: #0077ed;
    --error: #ff453a;
    --success: #28a745;
    /* Verde Éxito */
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-deep) !important;
    color: var(--text-apple) !important;
    line-height: 1.5;
    min-height: 100vh;
}

/* ==========================================================================
   2. COMPONENTES COMUNES (Botones e Inputs)
   ========================================================================== */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary,
.btn-save {
    background-color: var(--accent) !important;
    color: white;
}

.btn-primary:hover,
.btn-save:hover {
    background-color: var(--accent-hover) !important;
}

.btn-danger {
    background-color: var(--error) !important;
    color: white;
}

.btn-success {
    background-color: var(--success) !important;
    color: white;
}

.btn-dark {
    background: var(--gray-card);
    color: white;
    border: 1px solid var(--gray-border);
}

.form-label-sm {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

.form-control-mac {
    width: 100%;
    background: var(--bg-deep) !important;
    border: 1px solid var(--gray-border) !important;
    color: #66666b !important;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-mac:focus {
    background: var(--bg-deep);
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(64, 102, 141, 0.15) !important;
    outline: none;
}

.form-control-mac[readonly] {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-dim) !important;
    border-style: dashed !important;
    cursor: not-allowed;
}

/* ==========================================================================
   3. INDEX (Página de Inicio / Landing)
   ========================================================================== */
.hero-box {
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.input-os {
    background-color: var(--bg-deep) !important;
    border: 1px solid var(--gray-border) !important;
    color: white !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

/* Efecto al hacer clic (Focus) */
.input-os:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15) !important;
}

/* Color del texto de sugerencia (Placeholder) */
.input-os::placeholder {
    color: var(--text-dim) !important;
    opacity: 0.6;
}

/* --- Componentes del Dashboard OS --- */

/* Widget base oscuro */
.card-os-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 24px;
}

/* Widget destacado con color de acento */
.card-os-accent {
    background: var(--accent);
    border-radius: 16px;
    padding: 24px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Etiqueta de estatus */
.status-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #00ff15;
    background: rgba(0, 255, 21, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 21, 0.2);
}

/* Estilo de la tabla OS */
.table-os {
    color: white !important;
    margin-bottom: 0;
}

.table-os thead th {
    font-size: 0.75rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--gray-border);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-os tbody td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-os tr:last-child td {
    border-bottom: none;
}

/* Animación opcional para el monitor de recursos */
.text-success-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#cpu-load,
#ram-usage,
#latency-val {
    transition: all 0.5s ease;
}

/* Opcional: un efecto de pulso suave al contenedor de Sincronizado */
.status-tag {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 21, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 21, 0);
    }
}

/* ==========================================================================
   4. LOGIN Y REGISTRO (Contenedores Centrados)
   ========================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0e0e0f 0%, #1c1c1e 100%);
}

.login-card,
.register-card {
    width: 100%;
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.login-card {
    max-width: 400px;
    padding: 30px;
}

.register-card {
    max-width: 550px;
    padding: 40px;
}

/* Contenedor principal del grupo */
.phone-input-group {
    display: flex;
    align-items: stretch;
    /* Estira el prefijo y el input a la misma altura */
    background: var(--bg-deep);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
    /* Mantiene los bordes redondeados */
}

/* Cuadro del +52 */
.phone-prefix {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid var(--gray-border);
    user-select: none;
}

/* El input dentro del grupo */
.phone-input {
    border: none !important;
    /* Quitamos el borde individual */
    background: transparent !important;
    border-radius: 0 !important;
    flex: 1;
    height: 100%;
    /* Toma la altura del contenedor padre */
}

/* Efecto Focus para que brille todo el cuadro */
.phone-input-group:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15) !important;
}

@media (max-width: 576px) {
    .register-card {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   5. PANEL DE CONTROL (Estructura App Shell y Perfil)
   ========================================================================== */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-shell {
        flex-direction: row;
    }
}

.sidebar {
    width: 100%;
    background: var(--gray-sidebar);
    padding: 20px;
    border-bottom: 1px solid var(--gray-border);
}

@media (min-width: 768px) {
    .sidebar {
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
        border-bottom: none;
        border-right: 1px solid var(--gray-border);
    }
}

.brand {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

a.nav-link {
    color: var(--text-dim) !important;
    ;
    text-decoration: none;
    padding: 12px !important;
    border-radius: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gray-card);
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 40px;
    }
}

.card {
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    padding: 30px;
    border-radius: 20px;
}

/* ==========================================================================
   6. UTILIDADES Y ALERTAS
   ========================================================================== */
.error-text {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

.alert-success-mac {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.custom-stat-box {
    background-color: var(--gray-card) !important;
    border: 1px solid var(--gray-border) !important;
    padding: 25px !important;
    border-radius: 20px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-stat-box h3 {
    color: white !important;
    margin: 0;
}

/* ==========================================================================
   7. Funciones Contacto.HTML
   ========================================================================== */
.contact-header {
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--gray-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.info-block {
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: var(--accent);
    background: rgba(0, 113, 227, 0.05);
}

select.form-control-mac {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control-mac {
    resize: none;
    min-height: 120px;
}

/* ==========================================================================
   8. informacion HTML
   ========================================================================== */

/* --- Estilos para la página de Información --- */
.bg-dark-soft {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.bg-dark-soft:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.italic {
    font-style: italic;
}

blockquote {
    line-height: 1.6;
}

/* Efecto para el Score de Performance */
.display-4 {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 113, 227, 0.3);
}

/* ==========================================================================
   9. Suscripciones HTML
   ========================================================================== */

/* --- Estilos de Suscripciones (Pricing Cards) --- */

.card-pricing {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

/* Plan Destacado (Anual) */
.card-pricing.featured {
    border-color: var(--accent);
    background: rgba(0, 113, 227, 0.05);
    transform: scale(1.05);
    /* Ligeramente más grande */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-name {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: white;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
}

.period {
    font-size: 1rem;
    color: var(--text-dim);
}

.savings {
    display: block;
    color: #00ff15;
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    flex-grow: 1;
}

.plan-features li {
    color: white;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li i {
    width: 25px;
    color: #00ff15;
}

.plan-features li.disabled {
    color: var(--text-dim);
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: var(--error);
}

.pricing-footer {
    margin-top: auto;
}


/* ==========================================================================
   10. Reportes HTML
   ========================================================================== */

.no-padding {
    padding: 0 !important;
    overflow: hidden;
}

/* Forzamos transparencia absoluta en la tabla y sus componentes */
.table-os-history,
.table-os-history> :not(caption)>*>*,
.table-os-history thead th,
.table-os-history tbody td {
    background-color: transparent !important;
    /* Mata cualquier fondo blanco de Bootstrap */
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.table-os-history thead th {
    background: rgba(255, 255, 255, 0.03) !important;
    /* Un toque sutil para el encabezado */
    color: var(--text-dim) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
}

.table-os-history tbody tr {
    transition: background-color 0.3s ease;
}

.table-os-history tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    /* Efecto hover elegante */
}

.table-os-history tbody td {
    padding: 20px;
}

.domain-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Botones de acción minimalistas */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon.text-danger:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Estilo del Select y Buscador */
.form-select option {
    background: #1a1a1a;
    color: white;
}

.input-group-text,
.form-control,
.form-select {
    background-color: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white;
    box-shadow: none;
    border-color: var(--accent) !important;
}

/* Botón de Auditoría Verde Vibrante */
.btn-scan-main {
    background-color: #28a745 !important;
    /* Verde esmeralda vibrante */
    color: #000 !important;
    /* Texto negro para máximo contraste */
    font-weight: 700 !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 209, 102, 0.2);
    /* Resplandor sutil */
}

.btn-scan-main:hover {
    background-color: #00ff7b !important;
    /* Brillo extra al pasar el mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 209, 102, 0.4);
}

.btn-scan-main i {
    margin-right: 8px;
}

/* ==========================================================================
   11. Analizar HTML
   ========================================================================== */

/* Alertas Estilo OS */
.alert-os-success {
    background: rgba(0, 209, 102, 0.1);
    border: 1px solid rgba(0, 209, 102, 0.2);
    color: #00d166;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.alert-os-danger {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.animate__fadeIn {
    animation: fadeIn 0.5s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solo limitamos el ancho y centramos horizontalmente */
.v-container {
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px !important;
    /* Controla la distancia desde el tope */
    padding: 20px;
    width: 100%;
}

/* Aseguramos que el contenido principal no intente centrar verticalmente */
.main-content {
    display: block !important;
    /* Evita que flexbox lo mande al centro/abajo */
}

/* Mantenemos tus estilos de la terminal y loader */
.loader-ai {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 113, 227, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.terminal-box {
    background: #000 !important;
    border: 1px solid var(--gray-border);
    min-height: 160px;
    font-family: 'Fira Code', monospace;
}

/* Contenedor del Loader */
.loading-overlay {
    text-align: center;
    padding: 40px 20px;
    background: var(--gray-card);
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    margin-top: 20px;
}

/* Animación de Spinner IA */
.loader-ai {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 113, 227, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Caja de Consola / Terminal Corregida */
.terminal-box {
    background: #000000 !important;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 25px 40px 25px 25px;
    /* Más espacio a la derecha */
    margin-top: 25px;

    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #ffffff;

    letter-spacing: 0.5px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 280px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.terminal-line {
    display: none;
    white-space: nowrap;
    overflow: hidden;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 10px;
    width: 0;
}

/* Cuando JS añade .active-typing */
.terminal-line.active-typing {
    display: block !important;
    width: 0;
    border-right: 2px solid #ffffff;
    animation: typing-effect 1.5s linear forwards, blink-cursor 0.5s step-end infinite;
}

/* Cuando JS añade .finished */
.terminal-line.finished {
    display: block !important;
    width: 100% !important;
    max-width: max-content;
    border-right: none !important;
}

@keyframes typing-effect {
    from {
        width: 0;
    }

    to {
        width: 100%;
        max-width: max-content;
    }
}

@keyframes blink-cursor {
    50% {
        border-color: transparent;
    }
}

/* Texto de pasos de la IA */
.step-text {
    color: var(--text-apple);
    font-weight: 500;
    margin-top: 15px;
    display: block;
}

/* Switch de Comparación Estilo iOS */
.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.form-check-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Ajustes de espaciado para inputs secundarios */
#seccion-comparativa {
    border-top: 1px solid var(--gray-border);
    padding-top: 20px;
    margin-top: 20px;
}

/* ==========================================================================
   12. MÓDULOS INDEPENDIENTES DE RECUPERACIÓN (FORGOT & RESET)
   ========================================================================== */

/* Contenedor Maestro para centrado absoluto */
.access-recovery-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-deep) 0%, #1c1c1e 100%);
}

/* Tarjeta de recuperación */
.recovery-card-pro {
    width: 100%;
    max-width: 420px;
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

/* Títulos y textos descriptivos */
.recovery-title {
    color: var(--text-apple);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.recovery-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Bloque informativo de código enviado */
.recovery-info-box {
    background: rgba(0, 113, 227, 0.05);
    border: 1px dashed rgba(0, 113, 227, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.recovery-info-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.recovery-info-box strong {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Input especial para el código OTP */
.otp-input-mac {
    letter-spacing: 12px !important;
    text-align: center !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
}

/* Enlaces de retorno */
.recovery-footer-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.recovery-footer-link:hover {
    color: var(--text-apple);
}

.recovery-footer-link i {
    font-size: 0.75rem;
    margin-right: 5px;
}

/* ==========================================================================
   12. MÓDULO membresia
   ========================================================================== */

.card-os-widget {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.hover-white:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.membership-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #38bdf8;
    font-size: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.feature-item i {
    color: #38bdf8;
    font-size: 0.9rem;
}

/*----------------------------*/

/* Estructura Principal */
.app-shell {
    display: flex;
    min-height: 100vh;
    background-color: #212529;
    /* Coincide con bg-dark */
}

.main-content {
    flex: 1;
}

/* Buscador Estilo Dark */
.search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box .form-control:focus {
    background-color: #2c3034 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: white;
}

/* Ajustes de Tabla */
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.card.bg-secondary {
    background-color: #2c3034 !important;
    /* Un gris ligeramente más claro que el fondo total */
}

/* Estilos para los Inputs del Formulario y Modal */
.form-control {
    border-radius: 6px;
}

input.form-control.bg-secondary:focus {
    background-color: #343a40 !important;
    color: white;
}

/* Modal Customization */
.modal-content {
    border: 1px solid #495057;
}

.border-secondary {
    border-color: #495057 !important;
}

#addAdminEmail::placeholder,
#searchUser::placeholder,
#addAdminUsername::placeholder {
    color: white !important;
    opacity: 0.8;
    /* Un poco de transparencia para que se vea profesional */
}

/* Soporte para navegadores antiguos (Chrome, Firefox, Safari) */
#addAdminEmail::-webkit-input-placeholder,
#searchUser::-webkit-input-placeholder {
    color: white !important;
}

#addAdminEmail:-ms-input-placeholder,
#searchUser:-ms-input-placeholder {
    color: white !important;
}

/*imputs modal admins */

/* Inputs con mejor visibilidad */
.custom-input {
    background-color: #2b2b2b !important;
    /* Un gris un poco más claro que el fondo */
    border: 1px solid #444 !important;
    color: #ffffff !important;
    padding: 10px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.custom-input:focus {
    background-color: #333 !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Color de los placeholders por si los usas */
.custom-input::placeholder {
    color: #777 !important;
}

/* Efecto al pasar el ratón por el botón de guardar */
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    transition: all 0.2s;
}

/* ==========================================================================
   SUCCESS PAGE (Reutilizando componentes globales)
   ========================================================================== */

/* Contenedor de centrado (reutiliza lógica de login) */
.success-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-deep) 0%, #1c1c1e 100%);
}

/* Tarjeta de éxito (basada en tu .hero-box y .recovery-card-pro) */
.success-card {
    width: 100%;
    max-width: 480px;
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Círculo de icono con tu variable --success */
.success-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Caja de detalles (basada en tu .info-block de contacto) */
.success-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--gray-border);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.success-details .detail-row {
    display: flex;
    flex-direction: column;
    /* Cambiamos a columna para que el ID tenga su propio espacio */
    align-items: flex-start;
    margin-bottom: 12px;
}

.success-details label {
    color: var(--text-dim);
}

.success-details span {
    color: var(--text-apple);
    font-family: 'JetBrains Mono', monospace;
    /* Usando tu fuente de terminal */
    font-weight: 600;
}

/* Reutilización de tus botones */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Para el ID de sesión usa tu estilo de badge o el de terminal */
.session-id {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    /* Importante para el control de ancho */
    max-width: 100%;
    /* No deja que pase del padre */
    word-break: break-all;
    /* Rompe el texto largo en varias líneas */
    font-size: 0.8rem;
    /* Un poco más pequeño ayuda a la estética */
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Estilos Pago.html
   ========================================================================== */

/* Estilo de la Tarjeta de Crédito Visual */
.credit-card-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    color: white;
    height: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.credit-card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 5px;
    margin-bottom: 25px;
}

.card-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    opacity: 0.8;
}

.card-number {
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-family: 'Courier New', Courier, monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
}

.detail-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    display: block;
}

.detail-item p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tabla Personalizada */
.custom-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent !important;
}

.custom-table thead th {
    border: none;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 15px;
}

.custom-table tbody tr {
    background-color: rgba(255, 255, 255, 0.03) !important;
    transition: transform 0.2s;
}

.custom-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border: none;
}

.custom-table tbody tr:first-child td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-table tbody tr:last-child td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.custom-table tbody tr:hover {
    transform: scale(1.01);
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Animación de carga para botones */
.btn-save {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    color: white;
}