:root {
    color-scheme: dark;
    --bos-bg: #07111d;
    --bos-bg-soft: #0d1a2d;
    --bos-surface: rgba(12, 21, 38, .82);
    --bos-surface-hover: rgba(18, 31, 56, .92);
    --bos-border: rgba(255, 255, 255, .08);
    --bos-border-hover: rgba(45, 212, 255, .28);
    --bos-text: #f8fafc;
    --bos-muted: #b8c5d6;
    --bos-primary: #2dd4ff;
    --bos-primary-hover: #6ce4ff;
    --bos-secondary: #d6ff68;
    --bos-focus: #d6ff68;
    --bos-radius-sm: 12px;
    --bos-radius-md: 20px;
    --bos-radius-lg: 28px;
    --bos-container: 1320px;
    --bos-z-header: 1050;
    --bos-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    --bos-shadow-hover: 0 22px 60px rgba(0, 0, 0, .45);
    --bos-transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    accent-color: var(--bos-primary);
    scrollbar-width: thin;
    scrollbar-color: #23456d var(--bos-bg);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
    font-synthesis: none;
}

body {
    margin: 0;
}

body.bos-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #10284b 0%, #07111d 40%, #050b14 100%);
    color: var(--bos-text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: anywhere;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

[hidden] {
    display: none !important;
}

* {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(45, 212, 255, .30);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99999;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    outline: 3px solid var(--bos-focus);
    outline-offset: 3px;
}

.bos-header {
    position: sticky;
    top: 0;
    z-index: var(--bos-z-header);
    isolation: isolate;
    padding: max(.9rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .8rem max(1rem, env(safe-area-inset-left));
    background: transparent;
    transition: var(--bos-transition);
}

.bos-navbar {
    background: none;
    padding: 0;
}

.bos-navbar > .container-xxl {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: var(--bos-container);
    margin-inline: auto;
    padding: .9rem 1.25rem;
    border: 1px solid var(--bos-border);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(15, 25, 45, .92), rgba(10, 18, 34, .78));
    box-shadow: var(--bos-shadow);
    overflow: hidden;
    contain: paint;
}

@supports ((backdrop-filter: blur(22px)) or (-webkit-backdrop-filter: blur(22px))) {
    .bos-navbar > .container-xxl {
        background: linear-gradient(180deg, rgba(15, 25, 45, .82), rgba(10, 18, 34, .72));
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
    }
}

.bos-navbar > .container-xxl::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(45, 212, 255, .08), transparent 35%, rgba(214, 255, 104, .04));
}

.bos-header.scrolled .container-xxl {
    padding: .75rem 1.1rem;
    box-shadow: var(--bos-shadow-hover);
}

.bos-header.scrolled .bos-logo {
    width: 52px;
    height: 52px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    user-select: none;
    transition: var(--bos-transition);
}

.navbar-brand:hover {
    transform: translate3d(0, -1px, 0);
}

.bos-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 14px rgba(45, 212, 255, .22));
    transition: var(--bos-transition);
}

.navbar-brand:hover .bos-logo {
    filter: drop-shadow(0 0 20px rgba(45, 212, 255, .45));
    transform: scale(1.06);
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--bos-text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-subtitle {
    margin: .15rem 0 0;
    overflow: hidden;
    color: var(--bos-muted);
    font-size: .82rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bos-navbar .navbar-nav {
    align-items: center;
}

.bos-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 48px;
    padding: .82rem 1.05rem !important;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--bos-text);
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--bos-transition);
}

.bos-nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(45, 212, 255, .12), rgba(214, 255, 104, .06));
    opacity: 0;
    transition: opacity .25s ease;
}

.bos-nav-link:hover {
    border-color: var(--bos-border-hover);
    color: #fff;
    transform: translate3d(0, -2px, 0);
}

.bos-nav-link:hover::before {
    opacity: 1;
}

.bos-nav-link.active {
    border-color: rgba(45, 212, 255, .30);
    background: linear-gradient(135deg, rgba(45, 212, 255, .18), rgba(214, 255, 104, .08));
    box-shadow: inset 0 0 0 1px rgba(45, 212, 255, .10), 0 0 18px rgba(45, 212, 255, .10);
    color: #fff;
}

.bos-nav-link.active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 6px;
    left: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--bos-primary);
}

.bos-nav-link:focus-visible {
    border-color: var(--bos-focus);
    box-shadow: 0 0 0 3px rgba(214, 255, 104, .20), 0 0 0 6px rgba(214, 255, 104, .08);
    color: #fff;
    outline: none;
}

.bos-nav-icon {
    display: flex;
    width: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform .25s ease, color .25s ease;
}

.bos-nav-link:hover .bos-nav-icon,
.bos-nav-link:focus-visible .bos-nav-icon {
    transform: scale(1.12);
}

.bos-nav-text {
    display: inline-flex;
    align-items: center;
}

.bos-navbar .navbar-toggler {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    transition: var(--bos-transition);
}

.bos-navbar .navbar-toggler:hover {
    border-color: var(--bos-border-hover);
    background: rgba(255, 255, 255, .10);
    transform: translate3d(0, -1px, 0);
}

.bos-navbar .navbar-toggler:focus-visible {
    border-color: var(--bos-focus);
    box-shadow: 0 0 0 3px rgba(214, 255, 104, .20), 0 0 0 6px rgba(214, 255, 104, .08);
    outline: none;
}

.bos-navbar .navbar-toggler i {
    font-size: 1.55rem;
    pointer-events: none;
}

.bos-navbar .navbar-toggler[aria-expanded="true"] {
    border-color: rgba(45, 212, 255, .30);
    background: linear-gradient(135deg, rgba(45, 212, 255, .18), rgba(214, 255, 104, .08));
}

.bos-mobile-menu {
    width: min(360px, 100vw);
    max-width: 100%;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(9, 18, 34, .98), rgba(6, 12, 24, .98));
    color: var(--bos-text);
}

@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
    .bos-mobile-menu {
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
    }
}

.bos-mobile-menu .offcanvas-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bos-mobile-menu .offcanvas-body {
    padding: 1rem;
}

.bos-mobile-menu .btn-close {
    opacity: .9;
    transition: opacity .25s ease;
}

.bos-mobile-menu .btn-close:hover {
    opacity: 1;
}

.bos-mobile-menu .btn-close:focus-visible {
    outline: 3px solid var(--bos-focus);
    outline-offset: 3px;
}

.mobile-nav-link {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--bos-text);
    transition: var(--bos-transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    border-color: var(--bos-border-hover);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.mobile-nav-link.active {
    border-color: rgba(45, 212, 255, .28);
    background: linear-gradient(135deg, rgba(45, 212, 255, .18), rgba(214, 255, 104, .08));
}

.mobile-nav-icon {
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: var(--bos-primary);
    font-size: 1.1rem;
    transition: var(--bos-transition);
}

.mobile-nav-link:hover .mobile-nav-icon,
.mobile-nav-link:focus-visible .mobile-nav-icon {
    background: rgba(45, 212, 255, .15);
    transform: scale(1.08);
}

.bos-navbar a:focus-visible,
.bos-navbar button:focus-visible {
    outline: 3px solid var(--bos-focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(214, 255, 104, .15);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bos-bg);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #23456d;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bos-primary);
}

@media (min-width: 1200px) {
    .bos-navbar .navbar-toggler,
    .bos-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .bos-navbar .navbar-nav.d-xl-flex {
        display: none !important;
    }

    .brand-subtitle {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .bos-header {
        padding: max(.65rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) .65rem max(.75rem, env(safe-area-inset-left));
    }

    .bos-navbar > .container-xxl {
        padding: .8rem 1rem;
        border-radius: 22px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .bos-logo {
        width: 52px;
        height: 52px;
    }
}

@media (hover: hover) {
    .bos-nav-link:hover .bos-nav-icon,
    .mobile-nav-link:hover .mobile-nav-icon {
        transform: scale(1.08);
    }
}

@media (pointer: coarse) {
    .bos-nav-link,
    .mobile-nav-link,
    .bos-navbar .navbar-toggler {
        min-height: 52px;
    }
}

@media (max-height: 500px) {
    .bos-mobile-menu {
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: more) {
    .bos-nav-link,
    .mobile-nav-link,
    .bos-navbar .navbar-toggler {
        border-color: currentColor;
    }

    .bos-nav-link.active::after {
        background: currentColor;
    }
}

@media (forced-colors: active) {
    .bos-navbar > .container-xxl,
    .bos-nav-link,
    .mobile-nav-link,
    .bos-navbar .navbar-toggler {
        border: 1px solid ButtonText;
    }

    .bos-nav-link:focus-visible,
    .mobile-nav-link:focus-visible,
    .bos-navbar .navbar-toggler:focus-visible,
    .skip-link:focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 3px;
        box-shadow: none;
    }
}

@media print {
    .bos-header {
        display: none !important;
    }
}
