* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c1b33 0%, #1a3658 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0c8e0;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 40, 70, 0.8);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3498db;
}

.user-name {
    font-size: 1.1rem;
    color: #fff;
}

.logout-btn {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.privileges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.privilege-card {
    background: rgba(20, 40, 70, 0.8);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 580px;
    overflow: hidden;
}

.privilege-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.privilege-card.legend {
    border-top: 4px solid #e74c3c;
}

.privilege-card.diamond {
    border-top: 4px solid #3498db;
}

.privilege-card.crystal {
    border-top: 4px solid #9b59b6;
}

.privilege-card.silver {
    border-top: 4px solid #bdc3c7;
}

.privilege-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privilege-name {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.privilege-name.legend {
    color: #e74c3c;
}

.privilege-name.diamond {
    color: #3498db;
}

.privilege-name.crystal {
    color: #9b59b6;
}

.privilege-name.silver {
    color: #bdc3c7;
}

.privilege-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #c0d8f0;
    text-align: center;
    flex-grow: 0;
}

.privilege-price {
    font-size: 1.4rem;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.price-legend {
    color: #e74c3c;
}

.price-diamond {
    color: #3498db;
}

.price-crystal {
    color: #9b59b6;
}

.price-silver {
    color: #bdc3c7;
}

.privilege-features-container {
    flex-grow: 1;
    overflow-y: auto;
    margin: 10px 0;
    padding-right: 5px;
}

.privilege-features-container::-webkit-scrollbar {
    width: 6px;
}

.privilege-features-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.privilege-features-container::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.6);
    border-radius: 3px;
}

.privilege-features-container::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

.privilege-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.privilege-features li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #c0d8f0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.privilege-features li:before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
}

.legend-feature:before {
    color: #e74c3c;
}

.diamond-feature:before {
    color: #3498db;
}

.crystal-feature:before {
    color: #9b59b6;
}

.silver-feature:before {
    color: #bdc3c7;
}

.get-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
}

.btn-legend {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.btn-diamond {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.btn-crystal {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.btn-silver {
    background: linear-gradient(90deg, #bdc3c7, #95a5a6);
}

.get-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.get-btn:active {
    transform: translateY(1px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0c1b33;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.modal h2 {
    margin-bottom: 15px;
    text-align: center;
    color: #3498db;
}

.modal p {
    margin-bottom: 15px;
    color: #c0d8f0;
    text-align: center;
}

.duration-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.duration-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #c0d8f0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 130px;
    text-align: center;
}

.duration-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.duration-btn.active {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    color: #3498db;
    font-weight: bold;
}

.balance-info {
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3498db;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #c0d8f0;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.success-message {
    display: none;
    text-align: center;
    padding: 15px;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.error-message {
    display: none;
    text-align: center;
    padding: 15px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.loading {
    display: none;
    text-align: center;
    margin: 15px 0;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snow-flake {
    position: absolute;
    top: -10px;
    color: white;
    user-select: none;
    pointer-events: none;
}

/* Стили для навбара */
        .nav_bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: rgba(13, 17, 23, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #1a2a3a;
            z-index: 1000;
        }
        
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background: transparent;
            z-index: 1001;
        }
        
        .navbar_menu_left {
            display: flex;
            align-items: center;
            gap: 30px;
        }
        
        .nav_sitename {
            color: #60a5d6;
            font-size: 24px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .navigation_nemu {
            display: flex;
            gap: 20px;
        }
        
        .dropdown {
            position: relative;
        }
        
        .dropbtn {
            background: transparent;
            border: none;
            color: #60a5d6;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            text-transform: uppercase;
            font-weight: 600;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .dropbtn:hover {
            color: #ffffff;
        }
        
        .dropbtn svg {
            width: 12px;
            height: 12px;
            fill: currentColor;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            background: #1a2a3a;
            min-width: 200px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.3);
            z-index: 1002;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
        }
        
        .dropdown-content a {
            color: #60a5d6;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: background 0.3s ease;
            font-size: 14px;
            border-bottom: 1px solid #2a3a4a;
        }
        
        .dropdown-content a:hover {
            background: #2a3a4a;
            color: #ffffff;
        }
        
        .navbar_usermenu {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .authorization_button {
            background: #1a2a3a;
            color: #60a5d6;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        
        .authorization_button:hover {
            background: #2a3a4a;
            color: #ffffff;
            transform: translateY(-2px);
        }
        
        .authorization_button svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        
        /* Мобильное меню */
        .header_burger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }
        
        .header_burger span {
            width: 25px;
            height: 3px;
            background: #60a5d6;
            transition: 0.3s;
        }
        
        /* Стили для основного контента */
        :root {
            --custom-text-color: #60a5d6;
            --custom-hover-color: #ffffff;
            --button-color: #1a2a3a;
        }
        
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: #0d1117;
            color: #ffffff;
            font-family: Arial, sans-serif;
        }
        
        .container {
            flex: 1;
            padding-top: 80px;
        }
        
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Стили для привилегий */
        .privileges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .privilege-card {
            background: #1a2a3a;
            border-radius: 12px;
            padding: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #2a3a4a;
        }
        
        .privilege-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .privilege-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .privilege-name {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .privilege-name.legend { color: #ffd700; }
        .privilege-name.diamond { color: #b9f2ff; }
        .privilege-name.crystal { color: #ff6b6b; }
        
        .privilege-description {
            color: #a0c8e0;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        .privilege-price {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        
        .price-legend { color: #ffd700; }
        .price-diamond { color: #b9f2ff; }
        .price-crystal { color: #ff6b6b; }
        
        .privilege-features-container {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 25px;
        }
        
        .privilege-features {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .privilege-features li {
            padding: 8px 0;
            border-bottom: 1px solid #2a3a4a;
            color: #ffffff;
        }
        
        .legend-feature { color: #ffd700; }
        .diamond-feature { color: #b9f2ff; }
        .crystal-feature { color: #ff6b6b; }
        
        .get-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-legend {
            background: linear-gradient(45deg, #ffd700, #ffed4e);
            color: #000;
        }
        
        .btn-diamond {
            background: linear-gradient(45deg, #b9f2ff, #e1f7ff);
            color: #000;
        }
        
        .btn-crystal {
            background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
            color: #fff;
        }
        
        .get-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        /* Стили для футера */
        footer {
            background-color: #0d1117;
            padding: 32px 0;
            margin-top: auto;
            width: 100%;
            border-top: 1px solid #1a2a3a;
        }
        
        .footer-content {
            max-width: 1440px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }
        
        .footer-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }
        
        .footer-links a {
            color: var(--custom-text-color);
            text-transform: uppercase;
            font-size: 12px;
            font-weight: 700;
            transition: .3s;
            text-decoration: none;
        }
        
        .footer-links a:hover {
            color: var(--custom-hover-color);
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .social_but {
            display: flex;
            height: 40px;
            width: 40px;
            background: var(--button-color);
            border-radius: 6px;
            justify-content: center;
            align-items: center;
            transition: .3s;
        }
        
        .social_but:hover {
            background: #2a3a4a;
            transform: translateY(-2px);
        }
        
        .social-icon {
            width: 20px;
            height: 20px;
            transition: all 0.3s ease;
            fill: var(--custom-text-color);
        }
        
        .social_but:hover .social-icon {
            fill: var(--custom-hover-color);
        }
        




@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #a0c8e0;
    padding: 15px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .privileges-grid {
        grid-template-columns: 1fr;
    }
    
    .duration-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .duration-btn {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .privilege-card {
        height: 550px;
    }
     .navbar {
                padding: 0 15px;
            }
            
            .navigation_nemu {
                display: none;
            }
            
            .header_burger {
                display: flex;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 15px;
            }
            
            .container {
                padding-top: 70px;
            }
            
            .privileges-grid {
                grid-template-columns: 1fr;
            }
}