:root {
    --site-bg: #0f172a;
    --site-panel: rgba(15, 23, 42, 0.88);
    --site-card: rgba(30, 41, 59, 0.55);
    --site-blue: #3b82f6;
    --site-text: #ffffff;
    --site-muted: #94a3b8;
    --site-border: rgba(255, 255, 255, 0.1);
}

/* Ensure a single site-wide font (Inter) is loaded and used everywhere */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

html,
body {
    height: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

main {
    flex: 1 0 auto;
}

main.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.site-header,
.site-header *,
.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 18px 0;
    background: var(--site-panel);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-text);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.site-logo__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--site-blue);
    color: #fff;
    font-size: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Mobile nav toggle: hide nav by default on small screens, open with .site-nav--open */
.site-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--site-border);
    color: var(--site-text);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 820px) {
    .site-nav-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; }
    .site-nav--open { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
    .site-header__inner { align-items: flex-start; }
    .site-actions { width: 100%; display: flex; gap: 8px; justify-content: space-between; }
    .site-nav a { padding: 10px 12px; width: 100%; display: inline-flex; }
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--site-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--site-text);
    background: rgba(59, 130, 246, 0.16);
    border-bottom: 0;
}

.site-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--site-blue);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
}

.site-footer {
    margin-top: auto;
    padding: 44px 0;
    background: rgba(9, 13, 20, 0.55);
    border-top: 1px solid var(--site-border);
    color: var(--site-muted);
    text-align: left;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__brand {
    margin-bottom: 6px;
    color: var(--site-text);
    font-size: 20px;
    font-weight: 800;
}

.site-footer__copy {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.site-footer__links a {
    color: var(--site-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.site-footer__links a:hover {
    color: var(--site-text);
}

@media (max-width: 820px) {
    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-account {
        width: 100%;
    }
}
