header {
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 600;
    font-size: 14px;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-stats .online {
    font-weight: 700;
    font-size: 14px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 4px;
}

.container {
    max-width: 1250px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    flex-grow: 1;
    box-sizing: border-box;
}

.layout {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    width: 100%;
}

aside {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.copyright {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ip-info {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: rgba(255,255,255,0.5);
    align-items: center;
}

.mir-logo {
    font-size: 10px;
    font-weight: 900;
    background: transparent;
    color: #00CBFF;
    border: 2px solid #00CBFF;
    padding: 2px 8px;
    border-radius: 4px;
}

.footer-links, .footer-payments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-payments h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.payment-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 340px;
}

.pay-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    user-select: none;
}

.pay-badge i {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.pay-badge:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pay-badge:hover i {
    color: var(--primary);
}

.mir-text {
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
}

#auth-section a:hover,
#btn-auth-icon:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
    opacity: 0.8;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
    }
    aside {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        position: relative;
    }
    .header-stats {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .ip-btn {
        width: 100%;
        min-width: unset;
    }
    .layout {
        flex-direction: column;
        gap: 20px;
    }
    .container {
        padding: 0 15px;
        margin: 15px auto;
        width: 100%;
        overflow-x: hidden;
    }
    .footer-container {
        flex-direction: column;
    }
    .payment-badges {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        max-width: 100%;
    }
}