:root {
    --primary: #9570eb;
    --primary-dark: #6b59a793;
    --primary-light: #a780d331;
    --primary-lighter: #905bdace;
    --primary-bg: #1a1625;
    --secondary-bg: #231c34;
    --card-bg: rgba(35, 28, 52, 0.7);
    --card-bg-hover: rgba(43, 34, 63, 0.8);
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --border: #6b59a793;
    --border-hover: rgba(107, 70, 193, 0.4);
    --success: #48bb78;
    --success-dark: #2f855a;
    --success-light: rgba(72, 187, 120, 0.2);
    --warning: #ecc94b;
    --warning-dark: #d69e2e;
    --warning-light: rgba(236, 201, 75, 0.2);
    --error: #f56565;
    --error-dark: #c53030;
    --error-light: rgba(245, 101, 101, 0.2);
    --info: #34acbe;
    --info-dark: #20cae065;
    --info-light: rgba(26, 208, 236, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 0 15px rgba(107, 70, 193, 0.3);
    --shadow-success: 0 0 15px rgba(72, 187, 120, 0.3);
    --shadow-warning: 0 0 15px rgba(236, 201, 75, 0.3);
    --shadow-error: 0 0 15px rgba(245, 101, 101, 0.3);
    --shadow-info: 0 0 15px rgba(66, 153, 225, 0.3);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

.app-container {
    margin: 50px 100px;
    padding: 48px;   
    border: 2px solid var(--primary);
    border-radius: 18px;
    box-shadow: 0 0 30px #650bcc;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    position: relative;
    z-index: 2;
}

.particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Clase para mostrar la app cuando el login sea exitoso */
.app-visible {
    display: block;
    opacity: 1;
}

/* Contenedor Header */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-header::after {
    content: '';
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary), 
        transparent);
    filter: blur(1px);
}

/* Contenedor titulo, parrafo, icono */
.app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 1000;
    font-size: 50px;
    background: linear-gradient(to right,#9373dd);
    background-clip: text;
    color: transparent;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 0 20px #650bcc;
    margin-top: 10px;
}

.app-title p {
    font-size: 16px;
    opacity: 1;
    margin: 20px 20px;
    color: var(--info);
    font-weight: 500;
    letter-spacing: 0.5px;
    
}

.app-title p a {
    color: var(--info);
    text-decoration: none; /* quita el subrayado */
}

.app-title p a:hover {
    color: #69e5eb;
    text-shadow: 0 0 8px rgba(0, 241, 254, 0.798);
}

.app-logo-icon {
    display: flex;
    font-size: 29px;
    color: #9373dd;
    border-radius: 8px;
}

.app-header::after {
    background: linear-gradient(to right, transparent, var(--info), transparent);
    margin-top: 40px;
    margin-bottom: 45px;
}

/* Main Content */
.app-content {
    display: flex;
    flex-direction: column;
}

.counters {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si no caben */
    justify-content: center; /* CENTRA los contenedores horizontalmente */
    background: #640cc915;
    border-radius: 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px #650bcc;
    transition: all var(--transition-normal);
    padding: 27px;
    gap: 23px;    
}

.counter {
    width: 163px;
    height: 170px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid #652fa27e;
    box-shadow: 0 0 5px #650bcc;
    transition: all var(--transition-normal);   
}

.counter:hover {
    background: #640cc915;
    box-shadow: 0 0 10px #650bcc;
    border: 2px solid var(--primary);
}

/* Colores en borde superior para cada contador  */
.counter.approved {
    border-top: 3px solid var(--success);
}

.counter.rejected {
    border-top: 3px solid var(--error);
}

.counter.errors {
    border-top: 3px solid var(--warning);
}

.counter.tested {
    border-top: 3px solid var(--info);
}

.counter.total {
    border-top: 3px solid var(--primary);
}

/* Icono dentro de cada contador */
.counter-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: transform var(--transition-normal);
}

.counter.approved .counter-icon {
    background: var(--success-light);
    color: var(--success);
    box-shadow: 0 0 10px var(--success-light);
}

.counter.rejected .counter-icon {
    background: var(--error-light);
    color: var(--error);
    box-shadow: 0 0 10px var(--error-light);
}

.counter.errors .counter-icon {
    background: var(--warning-light);
    color: var(--warning);
    box-shadow: 0 0 10px var(--warning-light);
}

.counter.tested .counter-icon {
    background: var(--info-light);
    color: var(--info);
    box-shadow: 0 0 10px var(--info-light);
}

.counter.total .counter-icon {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-light);
}

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

.counter-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6.4px;
    font-weight: 500;
}

.counter-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.counter.approved .counter-value {
    color: var(--success);
}

.counter.rejected .counter-value {
    color: var(--error);
}

.counter.errors .counter-value {
    color: var(--warning);
}

.counter.tested .counter-value {
    color: var(--info);
}

.counter.total .counter-value {
    color: var(--primary);
}


/* Definición del Rayo Plateado */
@keyframes rayo-plateado {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-container {
    width: 100%;
    height: 45px;
    /* Fondo oscuro con el rayo plateado pasando sutilmente */
    background: linear-gradient(90deg, 
        rgba(100, 12, 201, 0.1) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(100, 12, 201, 0.1) 100%);
    background-size: 200% 100%;
    animation: rayo-plateado 3s infinite linear;
    margin: 40px 0;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px #650bcc;

}

.progress-bar {
    height: 100%;
    /* La barra tiene su propio rayo plateado más brillante */
    background: linear-gradient(90deg, 
        #22c55e 0%, 
        #ffffff 50%, 
        #22c55e 100%);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
    animation: rayo-plateado 2s infinite linear; /* El rayo en la barra va más rápido */
}

/* Cuando está procesando, el rayo pasa sobre el color naranja */
.progress-bar.processing {
    background: linear-gradient(90deg, 
        #f59e0b 0%, 
        #fff3d0 50%, 
        #f59e0b 100%);
    background-size: 200% 100%;
    animation: rayo-plateado 1.5s infinite linear;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--info);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.5px;
    z-index: 10;
    font-style: italic;
}

.progress-counter {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    border: 1px solid var(--border);
    z-index: 10;
    background: rgba(79, 56, 138, 0.089);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Control Panel */
.control-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: #640cc915;;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 10px #650bcc;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    transition: all var(--transition-normal);
}

.card:hover {
    background: #640cc915;;
    box-shadow: 0 0 10px #650bcc;
    border: 2px solid var(--primary);
}


.card-header {
    display: flex;
    align-items: center;

}

.card-icon {
    width: 36px;
    height: 36px;
    background: rgba(107, 70, 193, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--shadow-primary);
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.05);
}

.card-icon i {
    font-size: 1.125rem;
    color: var(--primary);
}

.card-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 8px;

}

.indext-list, input, .gateway-select-input {
    width: 100%;
    background-color: rgba(26, 22, 37, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 16px;
    transition: all var(--transition-normal);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.indext-list {
    height: 180px;
    resize: vertical;
    line-height: 1.5;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px #650bcc;
    margin-top: 5px;
}

.indext-list:focus, input:focus, .gateway-select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-body .gateway-select-input {
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px #650bcc;
}

/* Buttons */
.btn-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.indices-actions {
    display: flex;
    justify-content: center;
    
}

.indices-actions .btn-group {
    display: flex;
    flex-wrap: wrap; 
    gap: 0.5rem;
    border-radius: 10px;
}

/* Estilo base para los botones */
.tab-content.active .btn-resolution {
    background-color: rgba(78, 167, 205, 0.535);
    color: white;            
    border: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (Hover) */
.tab-content.active .btn-resolution:hover {
    background-color: rgba(78, 167, 205, 0.742); /* Cambia a fucsia al pasar el mouse */
    box-shadow: 0 0 10px rgba(78, 167, 205, 0.742);  /* Efecto neón */
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 9px 22px;
    position: relative;
    transition: all 0.3s ease;
} 

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 122, 234, 0.4);
}

.btn:active {
  border: none; /* Quita el borde cuando se presiona */
  transform: scale(0.95); /* Se encoge un poco al tocarlo y vuelve a su tamaño al soltar */
}

/* startBtn */
.btn-success {
    background: linear-gradient(45deg, #28a745, #34ce57);
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.25);
    
}

/* pauseBtn */
.btn-warning {
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
}

/* stopBtn */
.btn-danger {
    box-shadow: 0 3px 10px rgba(220, 53, 70, 0.25);
}

/* clearBtn */
.btn-info {
    background: linear-gradient(45deg, #17a2b8, #20c9e0);
    box-shadow: 0 3px 10px rgba(34, 173, 185, 0.25);
}

/* generateBtn */
.btn-generate {
    background: linear-gradient(45deg, #6f32e0, #7445e2);
    box-shadow: 0 3px 10px rgba(107, 70, 193, 0.25);
    border: none;   
    color: white;
}
/* validarBtn */
.btn-validate {
    width: 130px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    border: none;  
    background: linear-gradient(45deg, #6f32e0, #7445e2);
    box-shadow: 0 3px 10px rgba(107, 70, 193, 0.25);
    color: white;
}

.btn-validate:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(159, 122, 234, 0.4);
}

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

/* Efecto visual rápido para móviles al tocar */
.btn-validate:active {
    transform: scale(0.95); /* Se encoge un poco al tocarlo y vuelve a su tamaño al soltar */
}

.btn-resolution {
    background-color: rgba(160, 174, 192, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(160, 174, 192, 0.2);
}

.btn-resolution:hover {
    background-color: rgba(160, 174, 192, 0.2);
    color: var(--text-primary);
    border-color: rgba(160, 174, 192, 0.3);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
}

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

/* Modal */
.modal-header {
    justify-content: center;
}

.modal-footer  {
    flex-wrap: nowrap;
    justify-content: center;
    color: white;
}

/* Swal2 */
.confirm-popup {
    width: min(90%, 270px);
    background-color: #1a0b2ade;
    border-radius: 18px;
    color: #FFF;
    border: 3px solid var(--primary);              
    padding: 20px;
}

.swal2-icon.swal2-question.swal2-icon-show {
    border-color: var(--primary);
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0;
}

.confirm-title {
    font-size: 24px;
    font-weight: 600;
    align-items: center;
}

.confirm-text {
    margin: 0;
}

/* Botones */

.swal2-actions {
    display: flex;
    gap: 8px;
    justify-content: center; /* Centra los botones */
}   

.swal2-actions button {
    min-width: 100px;
    border: none;
    height: 40px;
}
    
.btn-confirm {
    background: #2f855a;
    color: #fff;
    border-radius: 10px;
}

.btn-cancel {
    background: #c53030;
    color: #fff;
    border-radius: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
}

.tabs::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary-light), 
        transparent);
    filter: blur(0.5px);
}

.tab {
    padding: 0.75rem 1.5rem;
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: none;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: none;
    border-radius: 2px 2px 0 0;
    z-index: 1;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;          
}

.results-section {
    border-radius: 12px;
    background: #640cc915;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: linear-gradient(to right,#7445e2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.results-table th {
    text-align: center;
    padding: 1rem 1.25rem;
    background-color: rgba(26, 22, 37, 0.4);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.results-table th:first-child {
    border-top-left-radius: 12px;
}

.results-table th:last-child {
    border-top-right-radius: 12px;

}

.results-table th:last-child,
.results-table td:last-child {
    text-align: center;
}

.results-table td:last-child {
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.results-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background-color var(--transition-fast);
}

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

.results-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.results-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.results-table tr:hover td {
    background-color: rgba(107, 70, 193, 0.05);
}

.action-icons {
    display: flex;
    gap: 10px;
}

.action-icon {
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    transition: transform var(--transition-fast);
}

.action-icon:hover i {
    transform: scale(1.1);
}

.copy-icon {
    background-color: var(--info-light);
    color: var(--info);
}

.copy-icon:hover {
    background-color: rgba(66, 153, 225, 0.3);
}

.delete-icon {
    background-color: var(--error-light);
    color: var(--error);
}

.delete-icon:hover {
    background-color: rgba(245, 101, 101, 0.3);
}

.empty-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Regla horizontal decorativa */
.horizontal-rule {
    width: 100%;
    border: none;
    height: 4px;
    margin: 30px 0;
    background: linear-gradient(to right, transparent, var(--info), transparent);
    box-shadow: 0 0 20px var(--info);
    filter: blur(1px);
}

/* Footer */
.app-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
}

.app-footer p {
    margin: 35px 0 0;
    color: white;
}

.app-footer a {
    color: var(--info);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.app-footer a:hover {
    color: #69e5eb;
    text-shadow: 0 0 8px rgba(0, 241, 254, 0.798);
}

/* Efecto de pulso para el botón de iniciar */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(255, 255, 255); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

#cookie-input-1, 
#cookie-input-2, 
#cookie-input-3, 
#cookie-input-4 {
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px #650bcc;
}

#approvedTable th, #approvedTable td,
#rejectedTable th, #rejectedTable td,
#errorTable th, #errorTable td {
    text-align: center;
}

/* ==========================================================================
TABLAS Y RESULTADOS (ESCRITORIO)
   ========================================================================== */
.table {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.table thead th, 
.table tbody td {
    text-align: center;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.05);
}

.mono {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
}

.copy-icon:hover { color: var(--primary); transform: scale(1.2); }
.delete-icon:hover { color: var(--danger); transform: scale(1.2); }

/* ==========================================================================
DISEÑO MÓVIL (TARJETAS) - RESPONSIVE
   ========================================================================== */

/* Contenedor que inyectará el JS */
#approvedResultsContainer, 
#rejectedResultsContainer {
    width: 100%;
    display: block;
}

/* Estilos de las tarjetas en Móviles */
.mobile-result-card {
    display: flex;
    flex-direction: column;
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 5px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.approved-card { border-left-color: var(--success); }
.rejected-card { border-left-color: var(--danger); }

.card-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.data-label { color: var(--text-muted); }
.data-value { color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
MODAL DEL AUTENTICACIÓN
========================================================================== */

/* Fondo base para TODOS los modales (transparente por defecto) */
.modal-backdrop.show {
    background-color: transparent;
    backdrop-filter: blur(1px);
    opacity: 1;
}

/* Fondo sólido FORZADO para el Modal de Autenticación */
/* Usamos una regla que no dependa del orden de los elementos */
body.auth-modal-active .modal-backdrop.show {
    background-color: #15222c !important;
    backdrop-filter: none !important;
    opacity: 1;
}

/* Quita la sombra por defecto de Bootstrap */
.modal-content {
    box-shadow: none; 
}

/* Diseño de la tarjeta */
.auth-glass-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(20, 30, 45, 0.98));
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 45px 45px 38px 45px;
    width: 100%;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

/* Línea neón superior verde */
.auth-glass-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
}

/* Estilos de Texto e Inputs */
.login-title { 
    color: #ffffff; 
    font-size: 26px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 22px;
}

.auth-link {
    color: #4facfe;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(79, 172, 254, 0.4);
}

.auth-link:hover {
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
    border-bottom: 1px solid #00f2fe;
}

.login-subtitle {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.594); 
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    outline: none;
}

.form-input:focus {
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    border-color: #00f2fe;
}

.form-label { 
    color: white;
    font-weight: 500; 
    font-size: 14px;
    margin-top: 6PX;
    margin-bottom: 8px;
    display: block; 
}

.btn-auth-primary {
    width: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 14px;
}

.btn-auth-primary:hover { filter: brightness(1.2); transform: translateY(-1px); }


.btn-auth-success {
    width: 100%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    color: white;
    border: none; 
    padding: 12px; 
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 14px;
}

.btn-auth-success:hover { filter: brightness(1.2); transform: translateY(-1px); }


.btn-auth-info {
    width: 100%;
    background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%);
    box-shadow: 0 4px 15px rgb(114, 20, 80, 0.3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-auth-info:hover { filter: brightness(1.2); transform: translateY(-1px); }


.footer-links {
    text-align: center;
    justify-content: center;
}

.footer-links a { 
    color: #4facfe;
    text-decoration: none; 
    font-weight: bold;
    font-size: 12px; 
    margin: 0 10px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(79, 172, 254, 0.4);
}

.footer-links a:hover {
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
    border-bottom: 1px solid #00f2fe;
}

/* =======================
Responsive
======================= */

@media (max-width: 768px) {
    .control-panel {
        grid-template-columns: 1fr;
    }

    .app-container {
        margin: 16px 8px;
        padding: 20px 16px 35px;
        border-radius: 14px;
    }

    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-header::after {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .app-title h1 {
        padding: 15px 15px 1px 15px;
        margin: 1px;
        font-size: 35px;
        font-weight: 800;
        box-shadow: none;
    }

    .app-title p {
        margin: 10px 14px 14px 14px;
    }

    .app-footer {
        font-size: 12px;
    }

    .progress-container {
        margin: 30px 0;
    }

    .counter {
        width: 121px;
        height: 162px;
        padding: 24px;
        gap: 16px;
    }

    .counter:hover, 
    .counter:active, 
    .counter:focus {
        /* Fondo original de la carta */
        background: transparent; 
        
        /* Sombra original */
        box-shadow: 0 0 5px #650bcc;
        
        /* Resetea bordes laterales e inferior para que no se pongan gruesos o cambien de color */
        border-right: 1px solid #652fa27e;
        border-left: 1px solid #652fa27e;
        border-bottom: 1px solid #652fa27e;
        
        /* No toca el border-top aquí */     
        transform: none;
    }

    .counter-value {
        font-size: 1.6rem;
    }

    .counter-icon {
        width: 42px;
        height: 42px;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn {
        flex: 1 1 100%;
        font-size: 0.8rem;
    }

    .btn-validate {
        font-size: 0.8rem;;
    }

    .indices-actions .btn-group .btn {
        min-width: 0;
    }

    .btn:hover {
        transform: none; /* Desactiva el hover en móviles para evitar conflictos con el toque */
    }    

    /* Efecto visual rápido para móviles al tocar */
    .btn:active {
        transform: scale(0.95); /* Se encoge un poco al tocarlo y vuelve a su tamaño al soltar */
    }

    .modal-footer  {
        padding: 12px 74px;
    }

    .table-actions .btn {
        flex: 1;
        width: 100%;
    }        

    .gateway-form {
        flex-direction: column;
    }

    .tab {
        flex: 1 1 33.33%;
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
        text-align: center;
    }

    .tabs {
        flex-wrap: wrap;        
    }

    .results-table th {
        padding: 0.875rem 1rem;       
    }

    .results-table td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .results-table td:last-child {
        min-width: 120px;
        text-align: center;
    }

    .results-table th,
    .results-table td {
        white-space: nowrap;
    }

    .indices-actions .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .indices-actions .btn {
        flex: 1 1 45%;
        min-width: 120px;
    }

    /* Swal2 */

    .btn-confirm {
        background: #2f855a;
        color: #fff;
        border-radius: 10px;
        padding: 8px 20px;
    }

    .btn-cancel {
        background: #c53030;
        color: #fff;
        border-radius: 10px;
        padding: 8px 20px;
    }

    .indext-list {
        font-size: 12px;
    }

    /* Diseño de la tarjeta */
    .auth-glass-container {
        margin: 0px 15px;
    }

    #cookie-input-1::placeholder, 
    #cookie-input-2::placeholder, 
    #cookie-input-3::placeholder , 
    #cookie-input-4::placeholder {
        font-size: 12px;
    }

    /* Ocultar la tabla en móvil si existe */
    .results-table {
        display: none;
    }

}

@media (min-width: 769px) {
    /* Ocultar las tarjetas en escritorio */
    .mobile-result-card {
        display: none;
    }
}