@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Orbitron:wght@700;900&display=swap');

:root {
    --primary-cyan: #00d9ff;
    --primary-purple: #9d4edd;
    --primary-pink: #ff006e;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(15, 15, 30, 0.9);
    --border-color: rgba(0, 217, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('LOGO.png') no-repeat center center;
    background-size: 60%;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.space-background {
    display: none;
}

.stars, .stars2, .stars3 {
    display: none;
}

#particles {
    display: none;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.access-denied-box {
    background: rgba(15, 15, 30, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.3);
    animation: slideUp 0.8s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-icon {
    margin-bottom: 30px;
    display: inline-block;
}

.logo-icon img {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

.message {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.info {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Beta Code Input Section - DNA Scanner Style */
.beta-code-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.scanner-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.scanner-ring,
.scanner-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
}

.scanner-ring {
    width: 180px;
    height: 180px;
    border-style: dashed;
    animation: rotateScan 8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.scanner-ring-2 {
    width: 140px;
    height: 140px;
    border-color: var(--primary-purple);
    animation: rotateScan 6s linear infinite reverse;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

@keyframes rotateScan {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scanner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.5);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.scanner-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--primary-cyan);
    letter-spacing: 1px;
    text-align: center;
    z-index: 1;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.code-terminal {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.terminal-prompt {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.terminal-cursor {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-output {
    min-height: 20px;
    color: var(--primary-cyan);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-output.error {
    color: #ff0066;
}

.terminal-output.success {
    color: #00ff00;
}

.scan-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(157, 78, 221, 0.2));
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.scan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    transition: left 0.6s;
}

.scan-btn:hover::before {
    left: 100%;
}

.scan-btn:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(157, 78, 221, 0.3));
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.scan-btn:active {
    transform: translateY(0);
}

.scan-btn.scanning {
    pointer-events: none;
    animation: scanPulse 1.5s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.8);
    }
}

.scan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-icon svg {
    animation: rotateSlow 3s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer p {
    color: #888;
    font-size: 0.95rem;
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: 
        0 0 5px var(--primary-cyan),
        0 0 10px var(--primary-cyan),
        0 0 20px var(--primary-cyan);
}

@media (max-width: 768px) {
    .access-denied-box {
        padding: 40px 30px;
    }

    .title {
        font-size: 2rem;
    }

    .lock-icon {
        font-size: 4rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
