* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.hidden {
    display: none !important;
}

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    animation: scanDown 3s linear infinite;
    z-index: 10;
    box-shadow: 0 0 20px #00f2ff, 0 0 40px #00f2ff;
}

@keyframes scanDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.shield-container {
    text-align: center;
}

.shield {
    width: 120px;
    height: 140px;
    margin: 0 auto 20px;
    animation: shieldPulse 2s ease-in-out infinite;
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px #00f2ff);
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.verify-text {
    color: #00f2ff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #00f2ff;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2ff, #0066ff);
    border-radius: 4px;
    transition: width 0.1s;
    box-shadow: 0 0 10px #00f2ff;
}

.loading-percent {
    color: #00f2ff;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Captcha Screen */
.captcha-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.captcha-box {
    background: #1a1a2e;
    border: 2px solid #00f2ff;
    border-radius: 10px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #00f2ff;
    font-size: 1.1rem;
}

.captcha-icon {
    font-size: 1.5rem;
}

.captcha-content {
    padding: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 28px;
    width: 28px;
    background-color: #0a0a1a;
    border: 2px solid #00f2ff;
    border-radius: 5px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-container:hover .checkmark {
    background-color: rgba(0, 242, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #00f2ff;
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "✓";
    color: #0a0a1a;
    font-weight: bold;
    font-size: 18px;
}

.checkbox-text {
    color: #fff;
}

.captcha-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    color: #666;
    font-size: 0.85rem;
    text-align: right;
}

.captcha-loading {
    margin-top: 30px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 242, 255, 0.2);
    border-top: 4px solid #00f2ff;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typing Screen */
.typing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    filter: blur(10px);
    z-index: -1;
}

.typing-container {
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid #00f2ff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a2e, #2a2a4e);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 15px;
    color: #888;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 25px;
    min-height: 200px;
}

.typed-text {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cursor {
    color: #00f2ff;
    animation: blink 0.7s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.continue-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(90deg, #00f2ff, #0066ff);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.8);
}

/* Dashboard */
.dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.dashboard-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00f2ff, #0066ff, transparent);
    animation: scanDown 4s linear infinite;
    z-index: 100;
    box-shadow: 0 0 30px #00f2ff;
}

/* Earth Background */
.earth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 400px 60px, #fff, transparent),
        radial-gradient(2px 2px at 500px 200px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 600px 100px, #fff, transparent),
        radial-gradient(2px 2px at 700px 250px, rgba(255,255,255,0.9), transparent);
    background-size: 800px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.earth {
    position: absolute;
    bottom: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
}

.earth-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #1a4d7c, #0a2540 50%, #051525 100%);
    box-shadow: 
        inset -50px -30px 100px rgba(0, 0, 0, 0.8),
        inset 30px 30px 60px rgba(0, 150, 255, 0.2);
    animation: rotateEarth 60s linear infinite;
    overflow: hidden;
}

.earth-sphere::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 80px 40px at 20% 30%, rgba(34, 139, 34, 0.6), transparent),
        radial-gradient(ellipse 120px 60px at 60% 40%, rgba(34, 139, 34, 0.5), transparent),
        radial-gradient(ellipse 60px 30px at 80% 60%, rgba(34, 139, 34, 0.4), transparent),
        radial-gradient(ellipse 100px 50px at 30% 70%, rgba(34, 139, 34, 0.5), transparent);
    animation: rotateEarth 60s linear infinite;
}

@keyframes rotateEarth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.earth-atmosphere {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 45%, rgba(0, 150, 255, 0.1) 50%, rgba(0, 150, 255, 0.2) 55%, transparent 60%);
    box-shadow: 
        0 0 60px rgba(0, 150, 255, 0.4),
        0 0 120px rgba(0, 150, 255, 0.2);
    animation: atmosphereGlow 4s ease-in-out infinite;
}

@keyframes atmosphereGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.city-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:
        radial-gradient(2px 2px at 25% 35%, #ffff00, transparent),
        radial-gradient(3px 3px at 30% 40%, #ffaa00, transparent),
        radial-gradient(2px 2px at 55% 45%, #ffff00, transparent),
        radial-gradient(2px 2px at 60% 50%, #ffaa00, transparent),
        radial-gradient(3px 3px at 70% 35%, #ffff00, transparent),
        radial-gradient(2px 2px at 75% 55%, #ffaa00, transparent),
        radial-gradient(2px 2px at 35% 60%, #ffff00, transparent),
        radial-gradient(3px 3px at 45% 65%, #ffaa00, transparent);
    animation: rotateEarth 60s linear infinite, cityFlicker 2s ease-in-out infinite;
}

@keyframes cityFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.earth-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.3) 0%, transparent 50%);
}

/* Sidebar */
.sidebar {
    width: 350px;
    min-width: 350px;
    background: rgba(10, 10, 26, 0.95);
    border-right: 2px solid rgba(0, 242, 255, 0.3);
    z-index: 10;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.2), transparent);
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.menu-icon {
    color: #00f2ff;
    font-size: 1.5rem;
}

.sidebar-header h2 {
    color: #00f2ff;
    font-size: 1.5rem;
    text-shadow: 0 0 20px #00f2ff;
    letter-spacing: 3px;
}

.sidebar-content {
    padding: 20px;
}

.protect-section h3 {
    color: #00f2ff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.protect-item {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.protect-item:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateX(5px);
}

.protect-item.highlight {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.protect-item.highlight:hover {
    background: rgba(255, 100, 100, 0.15);
}

.protect-item h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.protect-item p {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.protect-item ul {
    list-style: none;
    padding-left: 15px;
}

.protect-item li {
    color: #888;
    font-size: 0.8rem;
    padding: 3px 0;
    position: relative;
}

.protect-item li::before {
    content: "→";
    color: #00f2ff;
    position: absolute;
    left: -15px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    z-index: 10;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(5px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #00f2ff;
    font-size: 2rem;
    text-shadow: 0 0 30px #00f2ff;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-value.online, .stat-value.active {
    color: #27ca40;
    text-shadow: 0 0 10px #27ca40;
}

.stat-value.low {
    color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff;
}

.security-panel {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.security-panel h2 {
    color: #00f2ff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.activity-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
}

.log-item {
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    gap: 15px;
}

.log-item .time {
    color: #666;
    min-width: 70px;
}

.log-item.success .message { color: #27ca40; }
.log-item.info .message { color: #00f2ff; }
.log-item.warning .message { color: #ffbd2e; }

.info-banner {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 242, 255, 0.1));
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
}

.info-banner h3 {
    color: #00f2ff;
    margin-bottom: 15px;
}

.info-banner p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -350px;
        top: 0;
        height: 100%;
        transition: left 0.3s;
        z-index: 100;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 15px;
    }

    .dashboard-header h1 {
        font-size: 1.3rem;
    }

    .earth {
        width: 400px;
        height: 400px;
        bottom: -150px;
        right: -150px;
    }

    .typing-container {
        width: 95%;
    }

    .terminal-body {
        padding: 15px;
    }

    .typed-text {
        font-size: 0.95rem;
    }
}
