* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #0f0;
    overflow-x: hidden;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px),
        radial-gradient(circle at 50% 50%, rgba(0, 50, 0, 0.1) 0%, transparent 50%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 50%, 
        rgba(0, 255, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.1) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 255, 0, 0.1) 6px
    );
    animation: glitchAnim 0.3s infinite;
}

@keyframes glitchAnim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 50px 0;
    border-bottom: 3px solid #0f0;
    margin-bottom: 40px;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 50, 0, 0.3) 0%, transparent 100%);
}

.header::before,
.header::after {
    content: '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓';
    display: block;
    color: #0f0;
    opacity: 0.3;
    font-size: 10px;
    letter-spacing: 2px;
}

.glitch {
    font-size: 52px;
    font-weight: bold;
    color: #0f0;
    letter-spacing: 10px;
    margin: 25px 0;
    position: relative;
    text-shadow: 
        0 0 10px #0f0,
        0 0 20px #0f0,
        0 0 30px #0f0,
        0 0 40px #0f0,
        0 0 50px #0f0;
    animation: glowPulse 2s infinite, textGlitch 5s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px #0f0,
            0 0 20px #0f0,
            0 0 30px #0f0,
            0 0 40px #0f0;
    }
    50% {
        text-shadow: 
            0 0 20px #0f0,
            0 0 30px #0f0,
            0 0 40px #0f0,
            0 0 50px #0f0,
            0 0 60px #0f0,
            0 0 70px #0f0;
    }
}

@keyframes textGlitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, -2px); }
    94% { transform: translate(2px, 2px); }
    95% { transform: translate(0); }
}

.subtitle {
    color: #0a0;
    margin-top: 15px;
    font-size: 18px;
    letter-spacing: 4px;
}

.status-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
}

.status-item {
    color: #0a0;
}

.status-online, .status-secure {
    color: #0f0;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
}

.main-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-tab {
    padding: 20px 45px;
    background: #000;
    border: 3px solid #0f0;
    color: #0f0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.tab-icon {
    font-size: 24px;
    margin-right: 10px;
}

.main-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.4), transparent);
    transition: left 0.6s;
}

.main-tab:hover::before {
    left: 100%;
}

.main-tab:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 40px #0f0;
    transform: translateY(-5px) scale(1.05);
}

.main-tab.active {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 50px #0f0, inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.section {
    background: rgba(0, 20, 0, 0.95);
    border: 3px solid #0f0;
    padding: 45px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.7),
        inset 0 0 40px rgba(0, 255, 0, 0.1);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #0f0, transparent, #0f0, transparent, #0f0);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { filter: blur(20px) hue-rotate(0deg); }
    100% { filter: blur(20px) hue-rotate(360deg); }
}

.section-title {
    font-size: 28px;
    color: #0f0;
    margin-bottom: 30px;
    border-bottom: 2px solid #0f0;
    padding-bottom: 15px;
    text-shadow: 0 0 15px #0f0;
}

.title-icon {
    color: #0f0;
    margin-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.mode-tab {
    padding: 18px;
    background: #001a00;
    border: 2px solid #0f0;
    color: #0f0;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.mode-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.mode-desc {
    font-size: 12px;
    color: #0a0;
}

.mode-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.7s, height 0.7s;
}

.mode-tab:hover::before {
    width: 500px;
    height: 500px;
}

.mode-tab:hover {
    background: #003300;
    box-shadow: 0 0 25px #0f0;
    transform: translateY(-4px) scale(1.03);
    border-color: #0ff;
}

.mode-tab.active {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 35px #0f0;
    font-weight: bold;
}

.mode-tab.active .mode-desc {
    color: #000;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 12px;
    color: #0f0;
    font-size: 18px;
    text-shadow: 0 0 8px #0f0;
}

select, input[type="range"] {
    width: 100%;
    padding: 16px;
    background: #001a00;
    border: 2px solid #0f0;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="range"] {
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #0f0;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px #0f0;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #0f0;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px #0f0;
}

select:focus, input:focus {
    outline: none;
    box-shadow: 0 0 25px #0f0;
    background: #002200;
}

.btn {
    padding: 20px 60px;
    background: #0f0;
    color: #000;
    border: 3px solid #0f0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glitch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: #0c0;
    box-shadow: 
        0 0 50px #0f0,
        inset 0 0 25px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.btn:hover .btn-glitch {
    animation: btnGlitch 0.3s infinite;
}

@keyframes btnGlitch {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%); }
    50% { opacity: 0.5; transform: translate(-48%, -52%); }
}

.btn:active {
    transform: scale(0.98);
}

.btn-copy {
    margin-top: 15px;
}

.result {
    margin-top: 35px;
    padding: 30px;
    background: #001a00;
    border: 3px solid #0f0;
    display: none;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
}

.result.show {
    display: block;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: 20px;
    color: #0f0;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #0f0;
}

.output {
    font-size: 24px;
    color: #0f0;
    word-break: break-all;
    margin-bottom: 20px;
    padding: 20px;
    background: #000;
    border: 2px solid #0f0;
    text-shadow: 0 0 12px #0f0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.password-strength {
    margin: 15px 0;
    padding: 15px;
    background: #000;
    border: 2px solid #0f0;
    font-size: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.footer {
    text-align: center;
    padding: 40px;
    color: #0a0;
    border-top: 3px solid #0f0;
    margin-top: 60px;
    background: linear-gradient(0deg, rgba(0, 50, 0, 0.3) 0%, transparent 100%);
}

.footer-text {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.footer-warning {
    font-size: 14px;
    color: #0a0;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 32px;
    }
    
    .main-tabs {
        flex-direction: column;
    }
    
    .mode-tabs {
        grid-template-columns: 1fr;
    }
}
