/* === VARIABLES GLOBALES (heredadas del index) === */
:root {
    --neon-green: #00ff9f;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-red: #ff0033;
    --neon-yellow: #ffff00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --blood-red: #8b0000;
    
    /* Variables de espaciado (como en gates) */
    --margin-small: 10px;
    --margin-medium: 15px;
    --margin-large: 25px;
    --gap-small: 10px;
    --gap-medium: 15px;
}

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* === EFECTO MATRIX (SOLO 0s Y 1s - COMO EN INDEX) === */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    background: #000000;
}

.matrix-bg canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    opacity: 0.8;
}

/* === BOTONES DE NAVEGACIÓN (COMO EN GATES) === */
.nav-buttons {
    position: fixed;
    top: var(--margin-medium);
    left: var(--margin-medium);
    z-index: 1000;
}

.nav-btn {
    padding: 12px 20px;
    background: rgba(0, 255, 159, 0.15);
    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.25);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.6);
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.nav-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* === TÍTULO PRINCIPAL (COMO EN GATES) === */
.app-title {
    text-align: center;
    margin: 10px auto 20px auto;
    padding: 10px;
    max-width: 1000px;
    position: relative;
}

.app-title h1 {
    font-size: 2rem;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
    letter-spacing: 3px;
    position: relative;
    margin-bottom: 5px;
}

.app-title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.app-title p {
    font-size: 1.1rem;
    color: var(--neon-blue);
    opacity: 0.9;
}

/* === CONTENEDOR PRINCIPAL (COMO EN GATES) === */
.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;
    }
}

/* === PANELES (COMO EN GATES) === */
.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: 650px;
}

.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(-5px);
    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: 20px;
    padding-bottom: 10px;
    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
    );
}

.panel-title {
    font-size: 1.5rem;
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* === CONFIGURACIÓN (ESTILOS DE INPUTS COMO EN GATES) === */
.config-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.config-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-green);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.config-select, .config-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 159, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    outline: none;
}

.config-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='%2300ff9f'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.config-select:hover, .config-input:hover {
    border-color: var(--neon-green);
}

.config-select:focus, .config-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.config-helper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.config-helper i {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

/* === CHECKBOX (COMO EN GATES) === */
.config-checkbox {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 255, 159, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 159, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--neon-green);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    color: #000;
    font-weight: bold;
}

.checkbox-text {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-text i {
    color: var(--neon-green);
}

/* === OPCIONES AVANZADAS === */
.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.advanced-toggle:hover {
    color: var(--neon-green);
    background: rgba(0, 255, 159, 0.05);
}

.advanced-toggle i {
    transition: transform 0.3s;
}

.advanced-toggle.active i {
    transform: rotate(90deg);
}

.advanced-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.advanced-content.active {
    max-height: 200px;
    margin-bottom: 20px;
}

/* === BOTÓN DE GENERAR (COMO EN GATES) === */
.generate-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin: 20px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    border: 2px solid transparent;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 255, 159, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
    border-color: white;
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.generate-btn:hover .btn-glow {
    left: 100%;
}

/* === ESTADO === */
.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 159, 0.3);
    margin-top: 5px;
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === PANEL DE CARGA (COMO EN GATES) === */
.loading-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid var(--neon-green);
    margin-bottom: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 159, 0.1);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-steps {
    width: 100%;
    max-width: 300px;
}

.step {
    padding: 8px;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    padding-left: 25px;
}

.step::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.step.active {
    color: var(--neon-green);
}

.step.active::before {
    content: '◉';
    color: var(--neon-green);
    animation: pulse 1s infinite;
}

.step.completed {
    color: var(--success-color, #28a745);
}

.step.completed::before {
    content: '✓';
    color: var(--success-color, #28a745);
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width 0.3s;
}

/* === PANEL DE RESULTADO === */
.result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-green);
    font-weight: bold;
    padding: 10px;
    background: rgba(0, 255, 159, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--neon-green);
}

.cookie-display {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 159, 0.3);
}

.cookie-label {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 159, 0.2);
    line-height: 1.5;
}

/* === INFORMACIÓN DE CUENTA === */
.account-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 159, 0.2);
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row.full {
    flex-direction: column;
    gap: 5px;
    border-bottom: none;
}

.info-label {
    min-width: 100px;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    color: var(--neon-green);
    font-weight: 600;
    word-break: break-all;
}

/* === ACCIONES DEL RESULTADO === */
.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.copy-btn {
    background: rgba(0, 255, 159, 0.2);
    color: var(--neon-green);
    border-color: var(--neon-green);
}

.copy-btn:hover {
    background: rgba(0, 255, 159, 0.3);
    transform: translateY(-2px);
}

.save-btn {
    background: rgba(0, 255, 255, 0.2);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.save-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.new-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.new-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* === HISTORIAL (COMO EN GATES) === */
.history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 159, 0.3);
}

.history-header i {
    color: var(--neon-green);
}

.history-header h3 {
    flex: 1;
    color: var(--text-primary);
    font-size: 1rem;
}

.clear-history {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.clear-history:hover {
    color: var(--neon-red);
    transform: scale(1.1);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 159, 0.03);
    border: 1px solid rgba(0, 255, 159, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.history-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;
}

.history-item:hover::before {
    left: 100%;
}

.history-item:hover {
    background: rgba(0, 255, 159, 0.1);
    transform: translateX(5px);
    border-color: var(--neon-green);
}

.history-item i {
    color: var(--neon-green);
    font-size: 1.1rem;
}

.history-item .country {
    font-weight: bold;
    color: var(--neon-blue);
    min-width: 40px;
}

.history-item .email {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.history-item .time {
    color: var(--text-muted, #666);
    font-size: 0.75rem;
}

.history-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 20px;
    font-style: italic;
}

/* === MODAL (COMO EN GATES) === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-container {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid var(--neon-green);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 255, 159, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0, 255, 159, 0.2), rgba(0, 255, 255, 0.2));
    border-bottom: 2px solid rgba(0, 255, 159, 0.3);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-green);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--neon-red);
    transform: rotate(90deg);
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 159, 0.2);
}

.btn-copy-modal, .btn-close-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.btn-copy-modal {
    background: rgba(0, 255, 159, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.btn-copy-modal:hover {
    background: rgba(0, 255, 159, 0.3);
    transform: translateY(-2px);
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === NOTIFICACIONES === */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: rgba(20, 20, 20, 0.98);
    border-left: 4px solid var(--neon-green);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 159, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success { border-color: #28a745; }
.notification.error { border-color: var(--neon-red); }
.notification.warning { border-color: var(--neon-yellow); }
.notification.info { border-color: var(--neon-blue); }

.notification-icon {
    font-size: 1.3rem;
}

.notification.success .notification-icon { color: #28a745; }
.notification.error .notification-icon { color: var(--neon-red); }
.notification.warning .notification-icon { color: var(--neon-yellow); }
.notification.info .notification-icon { color: var(--neon-blue); }

.notification-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 3px;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* === SCROLLBARS === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* === GLITCH TEXT === */
.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); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .app-title h1 {
        font-size: 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .modal-container {
        max-width: 95%;
    }
}