:root {
    --fzhf-bg: #07111f;
    --fzhf-bg-2: #0b1d33;
    --fzhf-surface: rgba(10, 24, 42, .96);
    --fzhf-border: rgba(255, 255, 255, .12);
    --fzhf-text: #f6f8fb;
    --fzhf-muted: #aebbd0;
    --fzhf-accent: #f4b740;
    --fzhf-accent-2: #47d6ff;
    --fzhf-max: 1180px;
}

.fzhf-shell,
.fzhf-site-footer,
.fzhf-shell *,
.fzhf-site-footer * {
    box-sizing: border-box;
}

.fzhf-shell {
    position: sticky;
    top: 0;
    z-index: 999999;
    width: 100%;
    color: var(--fzhf-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-bar .fzhf-shell {
    top: 32px;
}

.fzhf-risk-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 34px;
    padding: 7px 18px;
    background: linear-gradient(90deg, #0b1628 0%, #102946 55%, #0b1628 100%);
    color: #dbe7f7;
    border-bottom: 1px solid var(--fzhf-border);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.fzhf-risk-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fzhf-accent);
    box-shadow: 0 0 0 4px rgba(244, 183, 64, .14);
    flex: 0 0 auto;
}

.fzhf-site-header {
    background: linear-gradient(135deg, rgba(7, 17, 31, .98), rgba(11, 29, 51, .98));
    border-bottom: 1px solid var(--fzhf-border);
    box-shadow: 0 18px 44px rgba(2, 8, 18, .28);
    backdrop-filter: blur(16px);
}

.fzhf-header-inner {
    max-width: var(--fzhf-max);
    margin: 0 auto;
    min-height: 78px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.fzhf-brand,
.fzhf-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--fzhf-text);
    text-decoration: none !important;
    min-width: 0;
}

.fzhf-brand:hover,
.fzhf-footer-logo:hover {
    color: var(--fzhf-text);
    text-decoration: none !important;
}

.fzhf-brand-mark,
.fzhf-footer-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(71, 214, 255, .26), transparent 36%),
        linear-gradient(135deg, #142c4d, #081426);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 12px 28px rgba(0,0,0,.24);
    color: var(--fzhf-accent);
    font-weight: 950;
    letter-spacing: -.04em;
    flex: 0 0 auto;
    line-height: 1;
}

.fzhf-brand-mark span,
.fzhf-footer-mark {
    font-size: 18px;
}

.fzhf-brand-copy,
.fzhf-footer-logo span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.fzhf-brand-copy strong,
.fzhf-footer-logo strong {
    font-size: 21px;
    letter-spacing: -.04em;
    color: var(--fzhf-text);
}

.fzhf-brand-copy small,
.fzhf-footer-logo small {
    margin-top: 5px;
    max-width: 360px;
    color: var(--fzhf-muted);
    font-size: 12px;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fzhf-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.fzhf-desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    color: #d9e4f4;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.fzhf-desktop-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateY(-1px);
}

.fzhf-mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.fzhf-mobile-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.fzhf-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.fzhf-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.fzhf-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.fzhf-mobile-panel {
    max-width: var(--fzhf-max);
    margin: 0 auto;
    padding: 4px 22px 18px;
    background: transparent;
}

.fzhf-mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #eef5ff;
    font-weight: 800;
    text-decoration: none !important;
}

.fzhf-site-footer {
    margin-top: 48px;
    background:
        radial-gradient(circle at 20% 0%, rgba(71, 214, 255, .10), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(244, 183, 64, .10), transparent 32%),
        linear-gradient(135deg, var(--fzhf-bg), var(--fzhf-bg-2));
    color: var(--fzhf-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border-top: 1px solid rgba(255,255,255,.11);
}

.fzhf-footer-top {
    max-width: var(--fzhf-max);
    margin: 0 auto;
    padding: 56px 22px 36px;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.9fr);
    gap: 44px;
}

.fzhf-footer-brand p {
    max-width: 560px;
    margin: 22px 0 0;
    color: #c3cfe1;
    font-size: 14px;
    line-height: 1.75;
}

.fzhf-footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.fzhf-footer-group h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fzhf-footer-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fzhf-footer-group li {
    margin: 0 0 11px;
    padding: 0;
}

.fzhf-footer-group a {
    color: #b9c7dc;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.35;
    transition: color .18s ease, padding-left .18s ease;
}

.fzhf-footer-group a:hover {
    color: #fff;
    padding-left: 3px;
}

.fzhf-footer-bottom {
    max-width: var(--fzhf-max);
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #a9b7ca;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .fzhf-brand-copy small {
        max-width: 260px;
    }
    .fzhf-desktop-nav a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 920px) {
    .admin-bar .fzhf-shell {
        top: 46px;
    }
    .fzhf-header-inner {
        min-height: 72px;
        padding: 0 16px;
    }
    .fzhf-brand-copy small {
        max-width: 210px;
    }
    .fzhf-desktop-nav {
        display: none;
    }
    .fzhf-mobile-toggle {
        display: inline-block;
        flex: 0 0 auto;
    }
    .fzhf-footer-top {
        grid-template-columns: 1fr;
    }
    .fzhf-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fzhf-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .fzhf-risk-bar {
        font-size: 12px;
        padding: 8px 12px;
    }
    .fzhf-brand-mark,
    .fzhf-footer-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .fzhf-brand-copy strong {
        font-size: 18px;
    }
    .fzhf-brand-copy small {
        max-width: 190px;
        font-size: 11px;
    }
    .fzhf-footer-links {
        grid-template-columns: 1fr;
    }
    .fzhf-footer-top {
        padding-top: 42px;
    }
}

[data-fzhf-theme-hidden="1"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
