* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 50%, #000000 100%);
    color: #fff;
}

/* Звёздное небо */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: var(--min-opacity);
        transform: scale(0.8);
    }
    50% { 
        opacity: var(--max-opacity);
        transform: scale(1.2);
    }
}

/* Метеориты */
.meteor {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #fff, transparent);
    border-radius: 50%;
    animation: meteor var(--meteor-duration) linear forwards;
    opacity: 0;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
}

@keyframes meteor {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--meteor-x), var(--meteor-y)) rotate(45deg);
        opacity: 0;
    }
}

/* Основной контейнер */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-outline:hover {
    background: #2c3e50;
    color: #fff;
}

.btn-login {
    background: transparent;
    border: 2px solid #00ff55;
    color: #00ff55;
    animation: loginPulse 2s ease-in-out infinite;
}

@keyframes loginPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 85, 0.4),
                    inset 0 0 5px rgba(0, 255, 85, 0.1);
        border-color: #00ff55;
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 85, 0.8),
                    0 0 50px rgba(0, 255, 85, 0.4),
                    inset 0 0 10px rgba(0, 255, 85, 0.2);
        border-color: #33ff77;
    }
}

.btn-login:hover {
    background: rgba(0, 255, 85, 0.2);
    color: #33ff77;
    box-shadow: 0 0 30px rgba(0, 255, 85, 0.6),
                0 0 60px rgba(0, 255, 85, 0.3);
}

.btn-register {
    background: transparent;
    border: 2px solid #0088ff;
    color: #0088ff;
    animation: registerPulse 2s ease-in-out infinite 1s;
}

@keyframes registerPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 136, 255, 0.4),
                    inset 0 0 5px rgba(0, 136, 255, 0.1);
        border-color: #0088ff;
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 136, 255, 0.8),
                    0 0 50px rgba(0, 136, 255, 0.4),
                    inset 0 0 10px rgba(0, 136, 255, 0.2);
        border-color: #33aaff;
    }
}

.btn-register:hover {
    background: rgba(0, 136, 255, 0.2);
    color: #33aaff;
    box-shadow: 0 0 30px rgba(0, 136, 255, 0.6),
                0 0 60px rgba(0, 136, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.4);
}

/* Поисковая секция */
.search-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0 10px;
}

.search-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.search-box {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-top: 8px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: #2c3e50;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(44, 62, 80, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Переключатели поисковых систем */
.search-engines {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.engine-btn {
    padding: 5px 10px;
    border: 2px solid #2c3e50;
    border-radius: 15px;
    background: rgba(44, 62, 80, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.engine-btn:hover {
    border-color: #34495e;
    background: rgba(44, 62, 80, 0.5);
}

.engine-btn.active {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.6),
                0 0 30px rgba(100, 200, 255, 0.4),
                0 0 45px rgba(100, 200, 255, 0.2);
    animation: enginePulse 3s ease-in-out infinite;
}

@keyframes enginePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(100, 200, 255, 0.6),
                    0 0 30px rgba(100, 200, 255, 0.4),
                    0 0 45px rgba(100, 200, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(100, 200, 255, 0.8),
                    0 0 50px rgba(100, 200, 255, 0.5),
                    0 0 75px rgba(100, 200, 255, 0.3);
    }
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 45, 0.95));
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #2c3e50;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #34495e;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.modal-close:hover {
    color: #fff;
}

.modal-switch {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.modal-switch a {
    color: #5dade2;
    text-decoration: none;
    cursor: pointer;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .search-title {
        font-size: 22px;
    }

    .engine-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(45deg, #2c3e50, #34495e);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.notification.success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

/* Футер */
.corp-footer {
    text-align: center;
    padding: 15px 20px;
    color: #a5f3fc;
    font-size: 12px;
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.1);
    text-shadow: 0 0 8px rgba(165, 243, 252, 0.9),
                 0 0 15px rgba(165, 243, 252, 0.6),
                 0 0 20px rgba(165, 243, 252, 0.4);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2),
                inset 0 0 5px rgba(102, 126, 234, 0.05);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 100;
    animation: footerPulse 3s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.2),
                    inset 0 0 5px rgba(102, 126, 234, 0.05);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4),
                    inset 0 0 10px rgba(102, 126, 234, 0.1);
    }
}

@media (max-width: 480px) {
    .corp-footer {
        font-size: 10px;
        padding: 12px 15px;
        bottom: 15px;
    }
}

/* Голографическая планета */
.hologram-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hologram-planet {
    position: relative;
    width: 600px;
    height: 600px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Земля - реалистичная текстура */
.earth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background-image: url('https://raw.githubusercontent.com/thewhiteh4t/seeker/master/template/nearyou/css/worldmap.jpg');
    background-size: 600px 200px;
    background-repeat: repeat-x;
    animation: earthRotate 120s linear infinite;
    box-shadow:
        inset 35px -35px 80px rgba(0, 0, 0, 0.9),
        inset -35px 35px 80px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(74, 144, 226, 0.4),
        0 0 70px rgba(74, 144, 226, 0.2),
        0 0 105px rgba(74, 144, 226, 0.1),
        0 0 140px rgba(74, 144, 226, 0.05);
    filter: brightness(1.15) saturate(1.05) drop-shadow(0 0 14px rgba(0, 0, 0, 0.5));
    z-index: 10; /* Земля перед Луной */
}

.earth::before {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background-image:
        radial-gradient(ellipse at 18% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(ellipse at 42% 40%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(ellipse at 65% 35%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(ellipse at 78% 55%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(ellipse at 35% 70%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 68%),
        radial-gradient(ellipse at 58% 78%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 75%);
    opacity: 0.32;
    filter: blur(1.6px) contrast(0.95);
    mix-blend-mode: soft-light;
    animation: cloudDrift 180s linear infinite;
    pointer-events: none;
}

.earth::after {
    content: '';
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background-image:
        radial-gradient(ellipse at 25% 35%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(ellipse at 55% 30%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse at 40% 75%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.22;
    filter: blur(2.4px) contrast(0.95);
    mix-blend-mode: soft-light;
    animation: cloudDrift2 240s linear infinite;
    pointer-events: none;
}

@keyframes cloudDrift {
    0% {
        transform: translateX(0) rotate(0deg) scale(1.2);
    }
    50% {
        transform: translateX(-6%) rotate(1.2deg) scale(1.22);
    }
    100% {
        transform: translateX(-12%) rotate(2.4deg) scale(1.2);
    }
}

@keyframes cloudDrift2 {
    0% {
        transform: translateX(0) rotate(0deg) scale(1.18);
    }
    50% {
        transform: translateX(4%) rotate(-1deg) scale(1.2);
    }
    100% {
        transform: translateX(8%) rotate(-2deg) scale(1.18);
    }
}

@keyframes earthRotate {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 390px 0;
    }
}

/* Метеориты-информеры */
#meteorContainer {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 60px;
    margin: 8px auto;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.meteor-informer {
    position: absolute;
    top: 50%;
    left: -200px;
    transform: translate(-50%, -50%) scale(0.3);
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.6);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #fff;
    box-shadow: 
        0 0 15px rgba(100, 200, 255, 0.6),
        0 0 30px rgba(100, 200, 255, 0.3);
    animation: meteorDepth 80s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
}

.meteor-informer:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
        0 0 25px rgba(100, 200, 255, 0.8),
        0 0 50px rgba(100, 200, 255, 0.5);
}

.meteor-label {
    font-weight: bold;
    color: rgba(100, 200, 255, 0.9);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.meteor-value {
    font-weight: bold;
    white-space: nowrap;
}

.meteor-value.up {
    color: #00ff88;
}

.meteor-value.down {
    color: #ff3366;
}

@keyframes meteorDepth {
    0% {
        left: -200px;
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    10% {
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    15% {
        opacity: 0.5;
    }
    20% {
        left: 700px;
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    100% {
        left: 700px;
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
}

/* Задержка для каждого метеорита */
#meteor-weather { animation-delay: 0s; }
#meteor-usd { animation-delay: 10s; }
#meteor-eur { animation-delay: 20s; }
#meteor-btc { animation-delay: 30s; }
#meteor-eth { animation-delay: 40s; }
#meteor-xmr { animation-delay: 50s; }
#meteor-ltc { animation-delay: 60s; }
#meteor-doge { animation-delay: 70s; }

@keyframes earthGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(74, 144, 226, 0.3),
            0 0 20px rgba(74, 144, 226, 0.15),
            0 0 30px rgba(74, 144, 226, 0.08),
            inset -25px -25px 50px rgba(0, 0, 0, 0.7),
            inset 15px 15px 40px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(74, 144, 226, 0.35),
            0 0 25px rgba(74, 144, 226, 0.18),
            0 0 35px rgba(74, 144, 226, 0.1),
            inset -25px -25px 50px rgba(0, 0, 0, 0.7),
            inset 15px 15px 40px rgba(255, 255, 255, 0.25);
    }
}

.hologram-label {
    font-size: 10px;
    color: rgba(74, 144, 217, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(74, 144, 217, 0.5);
    animation: labelFlicker 3s ease-in-out infinite;
}

@keyframes labelFlicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
    52% { opacity: 0.8; }
    54% { opacity: 1; }
}

/* ============================================
   Dashboard - Личный кабинет
   ============================================ */

/* Боковое меню (Sidebar) */
.sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.98), rgba(30, 30, 45, 0.98));
    border-right: 1px solid rgba(102, 126, 234, 0.3);
    z-index: 1000;
    transition: left 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
}

.sidebar-left {
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-right {
    width: 120px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.sidebar-right canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #00f7ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5),
                 0 0 20px rgba(0, 247, 255, 0.3);
    animation: menuTitlePulse 2s ease-in-out infinite;
}

@keyframes menuTitlePulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 247, 255, 0.5),
                     0 0 20px rgba(0, 247, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 247, 255, 0.8),
                     0 0 30px rgba(0, 247, 255, 0.5),
                     0 0 40px rgba(0, 247, 255, 0.3);
    }
}

.sidebar-close {
    background: transparent;
    border: 2px solid #ff0033;
    color: #ff0033;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 0, 51, 0.5),
                inset 0 0 5px rgba(255, 0, 51, 0.1);
    animation: closeBtnPulse 2s ease-in-out infinite;
}

@keyframes closeBtnPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 0, 51, 0.5),
                    inset 0 0 5px rgba(255, 0, 51, 0.1);
        border-color: #ff0033;
        color: #ff0033;
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 51, 0.8),
                    0 0 25px rgba(255, 0, 51, 0.4),
                    inset 0 0 8px rgba(255, 0, 51, 0.15);
        border-color: #ff3355;
        color: #ff3355;
    }
}

.sidebar-close:hover {
    background: rgba(255, 0, 51, 0.2);
    border-color: #ff3355;
    color: #ff5566;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.7),
                0 0 35px rgba(255, 0, 51, 0.3);
}

.sidebar-nav {
    padding: 15px 10px;
}

/* Матрица-разделитель */
.matrix-divider {
    height: 5mm;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 70, 0.3);
    border-bottom: 1px solid rgba(0, 255, 70, 0.3);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.matrix-code {
    position: absolute;
    white-space: nowrap;
    display: flex;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: matrixScroll 30s linear infinite;
}

.matrix-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #00ff46;
    text-shadow: 0 0 5px rgba(0, 255, 70, 0.8);
    padding-right: 50px;
}

@keyframes matrixScroll {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}

/* Затемнение фона */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
}

.dashboard-header .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: 2px solid #00ff55;
    border-radius: 6px;
    cursor: pointer;
    padding: 3px;
    z-index: 100;
    box-shadow: 0 0 8px rgba(0, 255, 85, 0.4),
                inset 0 0 5px rgba(0, 255, 85, 0.1);
    transition: all 0.3s ease;
}

.dashboard-header .menu-btn:hover {
    border-color: #33ff77;
    box-shadow: 0 0 15px rgba(0, 255, 85, 0.6),
                0 0 25px rgba(0, 255, 85, 0.3),
                inset 0 0 8px rgba(0, 255, 85, 0.15);
}

.dashboard-header .menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.dashboard-header .menu-btn:hover span {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
                0 0 15px rgba(102, 126, 234, 0.4);
}

.dashboard-header .menu-btn:active span {
    height: 4px;
}

.dashboard-header .logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header .username {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    text-shadow: 0 0 10px rgba(165, 243, 252, 0.8),
                 0 0 20px rgba(165, 243, 252, 0.5);
}

.dashboard-header .btn-outline {
    background: transparent;
    border: 2px solid #99001a;
    color: #40e0d0;
    box-shadow: 0 0 5px rgba(153, 0, 26, 0.4),
                inset 0 0 5px rgba(153, 0, 26, 0.1);
    animation: cherryPulse 3s ease-in-out infinite;
}

.dashboard-header .btn-outline:hover {
    border-color: #cc0022;
    background: rgba(153, 0, 26, 0.2);
    box-shadow: 0 0 15px rgba(153, 0, 26, 0.6),
                0 0 30px rgba(153, 0, 26, 0.3);
}

@keyframes cherryPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(153, 0, 26, 0.4),
                    inset 0 0 5px rgba(153, 0, 26, 0.1);
        border-color: #99001a;
    }
    50% {
        box-shadow: 0 0 12px rgba(153, 0, 26, 0.6),
                    0 0 20px rgba(153, 0, 26, 0.3),
                    inset 0 0 8px rgba(153, 0, 26, 0.15);
        border-color: #cc0022;
    }
}

/* Адаптив для dashboard */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 15px;
    }

    .dashboard-header .logo {
        font-size: 20px;
    }

    .dashboard-header .username {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .hologram-planet {
        width: 450px;
        height: 450px;
    }

    .earth {
        width: 160px;
        height: 160px;
    }

    .hologram-label {
        font-size: 9px;
    }
}
