html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #050816;
}

body {
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.site-nav-link {
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-nav-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}

.site-nav-link--logout {
    border-color: rgba(248,113,113,0.7);
    color: #fecaca;
}

.site-nav-link--logout:hover {
    background: rgba(248,113,113,0.2);
}

.site-user {
    opacity: 0.9;
    font-size: 0.8rem;
}

.page-main {
    flex: 1 1 auto;
    min-height: 0;
}

.site-footer {
    margin-top: auto;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1rem;
    opacity: 0.8;
}

.app-wrapper {
    min-height: calc(100vh - 96px);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(148,163,184,0.6);
    border-radius: 999px;
}
