* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0b0f14;
    color: #f5f7fa;
    font-family: Arial, Helvetica, sans-serif;
}

.site-main {
    width: 100%;
    flex: 1;
}

.site-header {
    width: 100%;
    background: #10151c;
    border-bottom: 1px solid #202833;
}

.header-container {
    width: 100%;
    max-width: 1450px;
    min-height: 70px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #ffffff;
    text-decoration: none;
}

.header-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(139, 92, 246, 0.16);
    color: #8b5cf6;
    font-size: 17px;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.header-brand-text strong {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
}

.header-brand-text span {
    margin-top: 2px;
    color: #7f8b9b;
    font-size: 11px;
    line-height: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 24px;
}

.header-nav a {
    height: 40px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 7px;
    color: #929dab;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-nav a i {
    font-size: 12px;
}

.header-nav a:hover {
    color: #d9dee5;
    background: #171d25;
}

.header-nav a.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.header-admin {
    margin-left: auto;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-left: 1px solid #252c35;
    color: #929dab;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.header-admin:hover {
    color: #8b5cf6;
}

@media (max-width: 800px) {
    .header-container {
        min-height: 64px;
        padding: 0 12px;
    }
    .header-brand-text {
        min-width: auto;
    }
    .header-brand-text span {
        display: none;
    }
    .header-nav {
        margin-left: auto;
        gap: 0;
    }
    .header-nav a {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
    .header-nav a span {
        display: none;
    }
    .header-admin {
        width: 40px;
        padding: 0;
        justify-content: center;
        border-left: 0;
    }
    .header-admin span {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-brand-text strong {
        display: none;
    }
    .header-logo {
        width: 34px;
        height: 34px;
    }
}