/* gates.css - Estilos globales para todos los gates - VERSIÓN MEJORADA */
:root {
    --neon-green: #00ff9f;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-red: #ff0033;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;       
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --blood-red: #8b0000;
    --matrix-green: #00ff41;
    
    /* ===== VARIABLES DE ESPACIADO Y TAMAÑOS ===== */
    --panel-min-height: 760px;
    --card-preview-height: 320px;
    --results-container-height: 300px;
    --margin-small: 10px; 
    --margin-medium: 15px;
    --margin-large: 35px;
    --gap-small: 10px;
    --gap-medium: 15px;
    --gap-large: 20px;    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: var(--margin-medium);
}

/* === EFECTO MATRIX BACKGROUND MEJORADO === */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    background: linear-gradient(45deg, #000000, #0a0a0a);
}

.matrix-bg canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    opacity: 0.8;
    filter: hue-rotate(120deg) saturate(1.2);
}

/* === BOTONES DE NAVEGACIÓN MEJORADOS === */
.nav-buttons {
    position: fixed;
    top: var(--margin-medium);
    left: var(--margin-medium);
    z-index: 1000;
    display: flex;
    gap: var(--gap-small);
}

.nav-btn {
    padding: 12px 20px;
    background: rgba(0, 255, 159, 0.2);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(0, 255, 159, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.6);
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.nav-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.nav-btn.cancel {
    background: rgba(255, 0, 51, 0.2);
    border-color: var(--neon-red);
    color: var(--neon-red);
    align-items: center;
    justify-content: center;
}

.nav-btn.cancel:hover {
    background: rgba(255, 0, 51, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.6);
}

/* === ESTRUCTURA PRINCIPAL === */
.app-title {
    text-align: center;
    margin-bottom: var(--margin-large);
    padding: var(--margin-medium);
    position: relative;
}

.app-title h1 {
    font-size: 2.5rem;
    margin-bottom: var(--gap-small);
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
    letter-spacing: 3px;
    position: relative;
}

.app-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    border-radius: 2px;
}

.app-title p {
    font-size: 1.2rem;
    color: var(--neon-blue);
    opacity: 0.9;
    margin-top: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--margin-large);
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* === PANELS MEJORADOS === */
.panel {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: var(--margin-large);
    box-shadow: 
        0 0 40px rgba(0, 255, 159, 0.3),
        inset 0 0 20px rgba(0, 255, 159, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s;
    border: 1px solid var(--neon-green);
    position: relative;
    overflow: hidden;
    min-height: var(--panel-min-height);
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 159, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundShift 8s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%;
    }
}

.panel:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 50px rgba(0, 255, 159, 0.5),
        inset 0 0 30px rgba(0, 255, 159, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--margin-large);
    padding-bottom: var(--margin-small);
    position: relative;
    z-index: 1;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        var(--neon-blue), 
        var(--neon-green), 
        transparent
    );
    border-radius: 1px;
}

.panel-title {
    font-size: 1.8rem;
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-green);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--gap-small);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-blue);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px var(--neon-green);
}

@keyframes pulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* === BOTONES PRINCIPALES MEJORADOS === */
.btn {
    padding: 15px 30px;
    background: rgba(0, 255, 159, 0.15);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(0, 255, 159, 0.25);
    box-shadow: 
        0 0 25px rgba(0, 255, 159, 0.6),
        inset 0 0 15px rgba(0, 255, 159, 0.1);
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.25);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.6),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}

/* === CONTENEDORES DE RESULTADOS MEJORADOS === */
.results-container {
    flex: 1;
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 15px;
    padding: var(--margin-medium);
    overflow-y: auto;
    height: var(--results-container-height);
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--margin-large);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Estado vacío mejorado para resultados */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 159, 0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
    display: block;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    font-weight: 600;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contenedor de tarjetas generadas */
.tarjetas-container {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 15px;
    padding: var(--margin-large);
    margin-bottom: var(--margin-large);
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.2);
    border: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: var(--card-preview-height);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(15px);
}

.tarjetas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-blue), 
        var(--neon-green), 
        var(--neon-blue), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scrollbars mejorados */
.tarjetas-container::-webkit-scrollbar,
.results-container::-webkit-scrollbar {
    width: 10px;
}

.tarjetas-container::-webkit-scrollbar-track,
.results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.tarjetas-container::-webkit-scrollbar-thumb,
.results-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-green), var(--neon-blue));
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.tarjetas-container::-webkit-scrollbar-thumb:hover,
.results-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-green));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* === TARJETAS ITEM MEJORADOS === */
.tarjeta-item {
    background: rgba(0, 255, 159, 0.1);
    border-left: 5px solid var(--neon-green);
    padding: 15px;
    margin-bottom: var(--gap-small);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.tarjeta-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.1), transparent);
    transition: left 0.5s ease;
}

.tarjeta-item:hover::before {
    left: 100%;
}

.tarjeta-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 255, 159, 0.15);
    border-left-color: var(--neon-blue);
}

/* === CONTROLES Y FORMULARIOS MEJORADOS === */
.controls {
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
    position: relative;
    z-index: 1;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 10px;
    background: rgba(0, 255, 159, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 159, 0.2);
    transition: all 0.3s;
}

.checkbox-container:hover {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--neon-green);
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--neon-green);
    transform: scale(1.1);
}

.text-area {
    flex: 1;
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 12px;
    padding: var(--margin-medium);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: none;
    background: rgba(0, 0, 0, 0.4);
    line-height: 1.5;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.text-area:focus {
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 159, 0.5),
        inset 0 0 10px rgba(0, 255, 159, 0.1);
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

/* === GENERADOR DE TARJETAS MEJORADO === */
.card-preview {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 20px;
    padding: var(--margin-large);
    margin-bottom: var(--margin-large);
    box-shadow: 0 0 35px rgba(0, 255, 159, 0.25);
    border: 1px solid var(--neon-green);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: var(--card-preview-height);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
}

.card-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        var(--neon-blue), 
        var(--neon-green), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.card-chip {
    width: 55px;
    height: 45px;
    background: linear-gradient(135deg, var(--neon-green), #00cc7f);
    border-radius: 10px;
    margin-bottom: var(--margin-large);
    position: relative;
    box-shadow: 
        0 0 15px var(--neon-green),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.card-number {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: var(--margin-large);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px var(--neon-green);
    color: var(--neon-green);
    font-weight: 600;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--margin-medium);
}

.card-holder {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-expiry {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-type {
    position: absolute;
    top: var(--margin-large);
    right: var(--margin-large);
    font-size: 1.8rem;
    opacity: 0.9;
    text-shadow: 0 0 10px currentColor;
}

.card-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--margin-small);
    margin-top: var(--margin-medium);
    position: relative;
    z-index: 2;
}

.card-input-row {
    display: flex;
    gap: var(--margin-small);
    position: relative;
    z-index: 2;
}

.card-input-field {
    flex: 1;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.card-input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.card-input-field:focus {
    border-color: var(--neon-green);
    box-shadow: 
        0 0 15px rgba(0, 255, 159, 0.5),
        inset 0 0 10px rgba(0, 255, 159, 0.1);
    background: rgba(0, 0, 0, 0.7);
}

.card-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff9f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    position: relative;
    z-index: 3;
}

/* === CONTROLES DEL GENERADOR MEJORADOS === */
.generator-section {
    position: relative;
    margin-top: var(--margin-medium);
    margin-bottom: var(--margin-medium);
    min-height: 70px;
}

.generator-controls.original {
    display: flex;
    gap: var(--gap-medium);
    align-items: center;
    width: 100%;
}

.generator-controls.post {
    display: none;
    gap: var(--gap-medium);
    width: 100%;
    align-items: center;
}

.generator-controls .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 55px;
    padding: 14px 22px;
}

.quantity-input {
    width: 130px;
    text-align: center;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.quantity-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.5);
}

.generate-btn {
    flex: 1;
}

/* === ESTADÍSTICAS MEJORADAS === */
.stats-bar {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.6);
    padding: var(--gap-small) var(--margin-small);
    border-radius: 12px;
    margin-bottom: var(--margin-small);
    border: 1px solid rgba(0, 255, 159, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        transparent
    );
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 8px 5px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    background: rgba(0, 255, 159, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 10px currentColor;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESULT ITEMS MEJORADOS === */
.result-item {
    padding: var(--margin-small);
    margin-bottom: var(--gap-small);
    border-radius: 12px;
    border: 1px solid;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.6;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.approved {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.declined {
    background: rgba(255, 0, 51, 0.1);
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.error {
    background: rgba(255, 255, 0, 0.1);
    border-color: #ffff00;
    color: #ffff00;
}

/* === COOKIE CONTAINER MEJORADO === */
.cookie-container {
    display: flex;
    flex-direction: column;
    gap: var(--margin-small);
    margin-top: var(--margin-small);
    position: relative;
    z-index: 2;
}

.cookie-input {
    padding: var(--margin-small) var(--margin-medium);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    width: 100%;
    height: 60px;
    backdrop-filter: blur(5px);
}

.cookie-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cookie-input:focus {
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 159, 0.5),
        inset 0 0 10px rgba(0, 255, 159, 0.1);
    background: rgba(0, 0, 0, 0.7);
}

#checkBtn {
    margin-top: 20px !important;
}

/* === CLASES DE VISIBILIDAD === */
.oculto {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.visible {
    display: flex !important;
    height: var(--card-preview-height) !important;
    margin-bottom: var(--margin-large) !important;
    padding: var(--margin-large) !important;
    border: 1px solid var(--neon-green) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjetas-container.visible {
    border: 1px solid var(--neon-blue) !important;
}

/* === FILTROS ACTIVOS MEJORADOS === */
.filtro-activo {
    background: rgba(0, 255, 159, 0.2) !important;
    border-radius: 8px;
    border: 1px solid var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.3) !important;
}

.filtro-activo .stat-value {
    text-shadow: 0 0 15px currentColor;
}

.filtro-activo .stat-label {
    color: var(--neon-green);
}

/* === MEJORAS RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        gap: var(--margin-medium);
    }
    
    .panel {
        padding: var(--margin-medium);
        border-radius: 15px;
    }
    
    .app-title h1 {
        font-size: 2rem;
    }
    
    .card-preview,
    .tarjetas-container {
        height: 280px;
    }
    
    .generator-controls.original,
    .generator-controls.post {
        flex-direction: column;
        gap: var(--gap-small);
    }
    
    .generator-controls .btn {
        width: 100%;
    }
    
    .quantity-input {
        width: 100%;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: var(--gap-small);
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }
}

/* === EFECTOS DE TEXTO GLITCH MEJORADOS === */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    animation: glitch-2 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(1px, 1px); }
    60% { transform: translate(-2px, -1px); }
    80% { transform: translate(-1px, 1px); }
}

/* Agrega esto al final de tu gates.css */

/* === REDUCCIÓN DE ESPACIOS PARA GATE AMAZON === */

/* Reducir espacio entre "Detener al encontrar una live" y los botones */
.controls[style*="margin-top: 20px"] {
    margin-top: 8px !important;
}

/* Reducir espacio entre botones de generar tarjetas y panel de configuración */
.generator-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    min-height: 50px;
}

/* Reducir espacio entre panel de configuración y controles */
.card-preview {
    margin-bottom: 15px !important;
}

/* Reducir espacio entre controles y cookie container */
.cookie-container {
    margin-top: 8px !important;
}

/* Ajustar altura mínima del panel para que quepa en pantalla */
.panel {
    min-height: 680px !important; /* Reducir de 760px */
}

/* Reducir padding interno del panel si es necesario */
.panel {
    padding: 20px 25px !important; /* Reducir de 35px */
}

/* Ajustar altura de contenedores específicos */
.card-preview,
.tarjetas-container {
    height: 325px !important; /* Reducir de 320px */
}

.results-container {
    height: 250px !important; /* Reducir de 300px */
}

/* Reducir márgenes entre elementos del generador */
.card-inputs {
    margin-top: 10px !important; /* Reducir de 20px */
}

.card-input-row {
    gap: 8px !important; /* Reducir de 15px */
}

/* Ajustar espacios en el panel derecho */
.stats-bar {
    margin-bottom: 10px !important; /* Reducir de 15px */
}

/* Reducir espacio entre título de la app y paneles */
.app-title {
    margin-bottom: 20px !important; /* Reducir de 35px */
}

/* Ajustar grid gap entre paneles */
.container {
    gap: 20px !important; /* Reducir de 35px */
}

/* Reducir márgenes internos de elementos específicos */
.panel-header {
    margin-bottom: 15px !important; /* Reducir de 25px */
}

.controls {
    gap: 12px !important; /* Reducir de 15px */
}

/* Ajustes específicos para el textarea de pegar tarjetas */
#pegarTarjetas {
    margin-bottom: 15px !important;
}

/* Reducir espacio entre botones del generador */
.generator-controls.original,
.generator-controls.post {
    gap: 10px !important; /* Reducir de 15px */
}

/* Ajustar altura de botones para menos espacio vertical */
.generator-controls .btn {
    min-height: 45px !important; /* Reducir de 55px */
    padding: 10px 18px !important;
}

/* Reducir espacio del checkbox container */
.checkbox-container {
    padding: 6px 10px !important; /* Reducir de 10px */
    margin-bottom: 5px !important;
}

/* Ajustes responsive para pantallas más pequeñas */
@media (max-width: 768px) {
    .panel {
        min-height: 600px !important;
        padding: 15px 20px !important;
    }
    
    .card-preview,
    .tarjetas-container {
        height: 250px !important;
    }
    
    .results-container {
        height: 200px !important;
    }
}

/* Asegurar que todo quepa sin scroll vertical en monitores estándar */
@media (min-height: 800px) {
    .panel {
        min-height: 720px !important;
    }
}

@media (max-height: 800px) {
    .panel {
        min-height: 650px !important;
    }
    
    .card-preview,
    .tarjetas-container {
        height: 260px !important;
    }
}







/* Modificar en la sección de .app-title */
.app-title {
    text-align: center;
    margin-bottom: 10px !important; /* Reducir drásticamente de 35px */
    padding: 0px !important; /* Reducir de 20px */
}

.app-title h1 {
    font-size: 2.2rem; /* Reducir ligeramente */
    margin-bottom: 5px !important; /* Reducir de 10px */
}

.app-title p {
    font-size: 1rem; /* Reducir tamaño */
    margin-top: 8px !important; /* Reducir de 20px */
}

/* Modificar en .card-preview para subir todo el contenido */
.card-preview {
    padding: 15px 20px !important; /* Reducir padding superior/inferior */
    margin-bottom: 15px !important;
    height: 250px !important; /* Reducir altura */
}

/* Subir el chip y número */
.card-chip {
    margin-bottom: 10px !important; /* Reducir de 25px */
}

.card-number {
    font-size: 1.7rem; /* Reducir tamaño */
    margin-bottom: 15px !important; /* Reducir de 25px */
}

/* Reducir espacio entre número y detalles */
.card-details {
    margin-bottom: 10px !important; /* Reducir de 20px */
}

/* Posicionar el emoji de tarjeta más arriba */
.card-type {
    top: 15px !important; /* Subir de 35px */
    right: 15px !important; /* Ajustar derecha */
}

/* Reducir margen superior de los inputs */
.card-inputs {
    margin-top: 0 !important; /* Eliminar margen superior */
}

/* Reducir aún más la altura mínima del panel */
.panel {
    min-height: 620px !important; /* Reducir de 680px */
}

/* Ajustar altura del contenedor de resultados */
.results-container {
    height: 220px !important; /* Reducir de 250px */
}

/* Reducir altura del textarea */
#pegarTarjetas {
    height: 200px !important; /* Reducir altura */
    margin-bottom: 10px !important;
}

.card-chip {
    display: none !important;
}

/* === ESTILOS PARA ALERTA PERSONALIZADA === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ESTILOS PARA TÍTULO DE FILTRO === */
.result-item.filtro-titulo {
    background: rgba(0, 255, 159, 0.1) !important;
    border: 1px solid var(--neon-green) !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
    color: var(--neon-green) !important;
}

.result-item.filtro-titulo:hover {
    transform: none !important;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.3) !important;
}

/* === MEJORAS VISUALES PARA RESULTADOS EN TIEMPO REAL === */
.result-item[class*="PROCESANDO"] {
    animation: pulseItem 2s infinite;
    border-style: dashed !important;
}

@keyframes pulseItem {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === ESTILOS PARA ESTADO "PROCESANDO" === */
.result-item.procesando {
    background: rgba(0, 150, 255, 0.1) !important;
    border: 1px dashed rgba(0, 150, 255, 0.6) !important;
    color: #0096ff !important;
    animation: procesandoPulse 1.5s infinite !important;
    position: relative;
    overflow: hidden;
}

.result-item.procesando::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.2), transparent);
    animation: procesandoShimmer 2s infinite;
}

@keyframes procesandoPulse {
    0%, 100% { 
        opacity: 0.9;
        box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
    }
}

@keyframes procesandoShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* === ESTILO PARA INFORMACIÓN (no aprobado ni error) === */
.result-item.info {
    background: rgba(0, 150, 255, 0.1) !important;
    border: 1px solid rgba(0, 150, 255, 0.6) !important;
    color: #0096ff !important;
}

/* === MEJORAS PARA FILTROS === */
.stat-item[onclick*="approved"] .stat-label {
    color: var(--neon-green) !important;
}

.stat-item[onclick*="declined"] .stat-label {
    color: var(--neon-red) !important;
}

.stat-item[onclick*="error"] .stat-label {
    color: #ffff00 !important;
}

/* En gates.css, agrega esto: */
.result-item.procesando {
    background: rgba(0, 150, 255, 0.15) !important;
    border: 1px solid rgba(0, 150, 255, 0.6) !important;
    color: #0096ff !important;
    animation: pulse 1.5s infinite;
}

/* Estilos para estado procesando en todos los filtros */
.result-item.procesando {
    background: linear-gradient(90deg, rgba(0, 150, 255, 0.15) 0%, rgba(0, 150, 255, 0.25) 100%);
    border-left: 3px solid #0096ff;
    color: #0096ff;
}

/* Asegurar que los estados procesando sean visibles en todos los filtros */
.filtro-titulo + .result-item.procesando {
    margin-top: 10px;
}

/* Mantener consistencia visual */
.result-item.procesando strong {
    color: #0096ff;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
}