:root {
    --bo-bg: #061019;
    --bo-bg-soft: #0a1722;
    --bo-panel: rgba(14, 28, 40, .9);
    --bo-panel-strong: #10202e;
    --bo-line: rgba(166, 195, 216, .14);
    --bo-line-strong: rgba(166, 195, 216, .25);
    --bo-text: #f3f8fb;
    --bo-muted: #96aebe;
    --bo-lime: #b7ff00;
    --bo-cyan: #4ce8ff;
    --bo-violet: #a78bfa;
    --bo-pink: #fb7185;
    --bo-orange: #ffb84d;
    --bo-blue: #60a5fa;
    --bo-danger: #ff637d;
    --bo-success: #44dc98;
    --bo-warning: #ffbf4b;
    --bo-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    --bo-radius-xl: 30px;
    --bo-radius-lg: 22px;
    --bo-radius-md: 16px;
    --bo-sidebar: 286px;
}

* { box-sizing: border-box; }

.bo-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 8%, rgba(76, 232, 255, .08), transparent 28rem),
        radial-gradient(circle at 30% 70%, rgba(183, 255, 0, .055), transparent 34rem),
        var(--bo-bg);
    color: var(--bo-text);
    font: 500 15px/1.55 Manrope, system-ui, sans-serif;
}

.bo-body a { color: inherit; text-decoration: none; }
.bo-body button, .bo-body input, .bo-body select, .bo-body textarea { font: inherit; }
.bo-body button, .bo-body a { -webkit-tap-highlight-color: transparent; }

.bo-shell { min-height: 100vh; padding-left: var(--bo-sidebar); }

.bo-sidebar {
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    width: var(--bo-sidebar);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow: hidden;
    background: rgba(5, 14, 22, .96);
    border-right: 1px solid var(--bo-line);
    backdrop-filter: blur(22px);
}

.bo-brand { padding: 0 7px 20px; border-bottom: 1px solid var(--bo-line); }
.bo-brand > a { display: flex; align-items: center; gap: 13px; }
.bo-brand-mark, .bo-mobile-brand > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    color: #071019;
    background: var(--bo-lime);
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(183, 255, 0, .18);
}
.bo-brand strong { display: block; font: 700 19px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.bo-brand small { display: block; margin-top: 3px; color: var(--bo-muted); font-size: 11px; letter-spacing: .04em; }
.bo-sidebar-close { display: none; }

.bo-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    margin: 18px 0 8px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-md);
}
.bo-avatar, .bo-mini-avatar, .bo-detail-avatar {
    display: grid;
    place-items: center;
    color: #071019;
    background: linear-gradient(135deg, var(--bo-lime), var(--bo-cyan));
    font-weight: 800;
    border-radius: 13px;
}
.bo-avatar { width: 40px; height: 40px; }
.bo-profile > span:nth-child(2) { min-width: 0; }
.bo-profile strong, .bo-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-profile strong { font-size: 13px; }
.bo-profile small { color: var(--bo-muted); font-size: 11px; }
.bo-profile em {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    color: var(--rank);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.bo-nav { flex: 1; overflow: auto; padding: 9px 2px 16px; scrollbar-width: thin; }
.bo-nav p {
    margin: 10px 12px 8px;
    color: #6f899a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.bo-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 3px 0;
    padding: 0 12px;
    color: #aac0ce;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    transition: .18s ease;
}
.bo-nav a > i { color: #7791a2; text-align: center; }
.bo-nav a > b {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 21px;
    padding: 0 6px;
    color: #071019;
    background: var(--bo-lime);
    border-radius: 999px;
    font-size: 10px;
}
.bo-nav a:hover { color: var(--bo-text); background: rgba(255,255,255,.04); }
.bo-nav a.is-active {
    color: var(--bo-text);
    background: linear-gradient(90deg, rgba(183,255,0,.13), rgba(76,232,255,.04));
    border-color: rgba(183,255,0,.17);
}
.bo-nav a.is-active::before {
    content: "";
    position: absolute;
    left: -3px;
    width: 3px;
    height: 22px;
    background: var(--bo-lime);
    border-radius: 999px;
    box-shadow: 0 0 18px var(--bo-lime);
}
.bo-nav a.is-active > i { color: var(--bo-lime); }

.bo-sidebar-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--bo-line);
}
.bo-sidebar-bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 37px;
    color: var(--bo-muted);
    background: rgba(255,255,255,.035);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
}
.bo-sidebar-bottom a.is-danger { grid-column: 1/-1; color: #ff9bac; }

.bo-mobile-bar, .bo-backdrop { display: none; }
.bo-main { width: min(1680px, 100%); margin: 0 auto; padding: 28px clamp(24px, 3vw, 52px) 60px; }

.bo-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 26px;
}
.bo-page-header h1, .bo-hero h2, .bo-section-heading h2, .bo-panel h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -.045em;
}
.bo-page-header h1 { font-size: clamp(29px, 3vw, 46px); line-height: 1.05; }
.bo-page-header > div:first-child > p:last-child { max-width: 760px; margin: 8px 0 0; color: var(--bo-muted); }
.bo-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    color: var(--bo-lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.bo-header-actions, .bo-hero-actions, .bo-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.bo-status-pill, .bo-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    color: #a9bdc9;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--bo-line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.bo-status-pill > i, .bo-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--bo-success);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(68,220,152,.11), 0 0 16px rgba(68,220,152,.4);
}

.bo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.bo-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bo-btn-primary { color: #071019 !important; background: var(--bo-lime); box-shadow: 0 12px 30px rgba(183,255,0,.13); }
.bo-btn-secondary { color: var(--bo-text); background: rgba(255,255,255,.045); border-color: var(--bo-line-strong); }
.bo-btn-glass { color: var(--bo-text); background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.bo-btn-danger { color: #fff; background: rgba(255,99,125,.16); border-color: rgba(255,99,125,.32); }
.bo-btn-block { width: 100%; margin-top: 12px; }

.bo-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    min-height: 310px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: clamp(30px, 5vw, 60px);
    background:
        linear-gradient(115deg, rgba(183,255,0,.11), transparent 42%),
        linear-gradient(145deg, #122638, #0b1824 72%);
    border: 1px solid rgba(183,255,0,.18);
    border-radius: var(--bo-radius-xl);
    box-shadow: var(--bo-shadow);
}
.bo-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -70% 25%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(76,232,255,.12), transparent 64%);
    pointer-events: none;
}
.bo-hero-copy { position: relative; z-index: 2; align-self: center; }
.bo-rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 19px;
    padding: 7px 10px;
    color: var(--rank);
    background: color-mix(in srgb, var(--rank) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--rank) 28%, transparent);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.bo-hero h2 { max-width: 620px; font-size: clamp(36px, 5vw, 68px); line-height: .98; }
.bo-hero-copy > p { max-width: 660px; margin: 18px 0 25px; color: #b6c7d1; font-size: clamp(14px, 1.5vw, 17px); }

.bo-hero-orbit { position: relative; display: grid; place-items: center; min-height: 220px; }
.bo-hero-orbit::before, .bo-hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(183,255,0,.15);
    border-radius: 50%;
}
.bo-hero-orbit::before { width: 250px; height: 250px; }
.bo-hero-orbit::after { width: 166px; height: 166px; border-color: rgba(76,232,255,.16); }
.bo-orbit-core {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: #061019;
    background: linear-gradient(135deg, var(--bo-lime), var(--bo-cyan));
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(76,232,255,.18);
    font-size: 34px;
    transform: rotate(-8deg);
}
.bo-orbit-node {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--bo-text);
    background: #142a3b;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.bo-orbit-node.one { transform: translate(112px,-64px); }
.bo-orbit-node.two { transform: translate(-118px,-45px); }
.bo-orbit-node.three { transform: translate(36px,120px); }

.bo-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}
.bo-stat-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    min-height: 105px;
    padding: 18px;
    background: var(--bo-panel);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
}
.bo-stat-grid article > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--bo-lime);
    background: rgba(183,255,0,.1);
    border-radius: 14px;
}
.bo-stat-grid article > span.is-cyan { color: var(--bo-cyan); background: rgba(76,232,255,.1); }
.bo-stat-grid article > span.is-violet { color: var(--bo-violet); background: rgba(167,139,250,.1); }
.bo-stat-grid article > span.is-blue { color: var(--bo-blue); background: rgba(96,165,250,.1); }
.bo-stat-grid strong { display: block; font: 700 27px/1 "Space Grotesk",sans-serif; }
.bo-stat-grid p { margin: 5px 0 0; color: var(--bo-muted); font-size: 11px; }
.bo-stat-grid small, .bo-stat-grid a { grid-column: 1/-1; color: #7893a4; font-size: 10px; font-weight: 700; }
.bo-stat-grid a { color: var(--bo-lime); }

.bo-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.bo-section-heading.compact { align-items: center; }
.bo-section-heading h2 { font-size: clamp(24px,3vw,34px); }
.bo-section-heading > span { color: var(--bo-muted); font-size: 11px; }

.bo-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-bottom: 34px; }
.bo-module-card {
    --tone: var(--bo-lime);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 190px;
    overflow: hidden;
    padding: 22px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 7%, #0f202e), #0c1924);
    border: 1px solid color-mix(in srgb, var(--tone) 20%, var(--bo-line));
    border-radius: var(--bo-radius-lg);
    transition: transform .2s ease, border-color .2s ease;
}
.bo-module-card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, color-mix(in srgb,var(--tone) 14%,transparent), transparent 68%);
}
.bo-module-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--tone) 42%,transparent); }
.bo-module-card.is-cyan { --tone: var(--bo-cyan); }
.bo-module-card.is-violet { --tone: var(--bo-violet); }
.bo-module-card.is-pink { --tone: var(--bo-pink); }
.bo-module-card.is-orange { --tone: var(--bo-orange); }
.bo-module-card.is-blue { --tone: var(--bo-blue); }
.bo-module-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--tone); background: color-mix(in srgb,var(--tone) 11%,transparent); border-radius: 15px; }
.bo-module-card small { color: var(--tone); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bo-module-card h3 { margin: 8px 0; font: 700 20px/1.12 "Space Grotesk",sans-serif; }
.bo-module-card p { margin: 0; color: var(--bo-muted); font-size: 12px; }
.bo-module-card > i:last-child { position: absolute; top: 22px; right: 22px; color: color-mix(in srgb,var(--tone) 70%,#fff); }

.bo-split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.bo-panel {
    padding: 22px;
    background: var(--bo-panel);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
}
.bo-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.bo-panel-head h2 { font-size: 22px; }
.bo-panel-head > a { color: var(--bo-lime); font-size: 11px; font-weight: 800; }

.bo-user-mini-list { display: grid; }
.bo-user-mini-list > a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    border-top: 1px solid var(--bo-line);
}
.bo-user-mini-list > a:first-child { border-top: 0; }
.bo-mini-avatar { width: 37px; height: 37px; font-size: 12px; }
.bo-user-mini-list strong, .bo-user-mini-list small { display: block; }
.bo-user-mini-list strong { font-size: 12px; }
.bo-user-mini-list small { color: var(--bo-muted); font-size: 10px; }
.bo-user-mini-list em { color: var(--bo-muted); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.bo-user-mini-list em.is-danger { color: var(--bo-danger); }

.bo-checklist { display: grid; }
.bo-checklist > a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    border-top: 1px solid var(--bo-line);
}
.bo-checklist > a > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--bo-lime); background: rgba(183,255,0,.08); border-radius: 11px; }
.bo-checklist strong, .bo-checklist small { display: block; }
.bo-checklist strong { font-size: 12px; }
.bo-checklist small { color: var(--bo-muted); font-size: 10px; }
.bo-checklist > a > i { color: #688394; font-size: 10px; }

.bo-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 15px;
    color: #bfeacb;
    background: rgba(68,220,152,.1);
    border: 1px solid rgba(68,220,152,.25);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}
.bo-alert.is-danger { color: #ffc0cb; background: rgba(255,99,125,.1); border-color: rgba(255,99,125,.25); }

.bo-access-shell { display: grid; place-items: center; min-height: 100vh; padding: 22px; }
.bo-access-card {
    width: min(510px,100%);
    padding: clamp(28px,5vw,48px);
    text-align: center;
    background: linear-gradient(145deg,rgba(18,38,56,.96),rgba(8,19,28,.98));
    border: 1px solid rgba(183,255,0,.2);
    border-radius: var(--bo-radius-xl);
    box-shadow: var(--bo-shadow);
}
.bo-access-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 23px; color: #061019; background: var(--bo-lime); border-radius: 22px; font-size: 25px; }
.bo-access-card h1 { margin: 0; font: 700 clamp(30px,6vw,48px)/1 "Space Grotesk",sans-serif; letter-spacing: -.05em; }
.bo-access-card > p:not(.bo-eyebrow) { margin: 17px 0 25px; color: var(--bo-muted); }
.bo-access-card .bo-eyebrow { justify-content: center; }
.bo-text-link { display: inline-block; margin-top: 20px; color: var(--bo-cyan) !important; font-size: 11px; font-weight: 800; }

.bo-form { display: grid; gap: 15px; text-align: left; }
.bo-form label { display: grid; gap: 7px; color: #b8cad4; font-size: 11px; font-weight: 800; }
.bo-form input, .bo-form select, .bo-form textarea, .bo-filter-bar input, .bo-filter-bar select, .bo-inline-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--bo-text);
    background: rgba(3,11,17,.65);
    border: 1px solid var(--bo-line-strong);
    border-radius: 12px;
    outline: none;
}
.bo-form textarea { resize: vertical; }
.bo-form input:focus, .bo-form select:focus, .bo-form textarea:focus, .bo-filter-bar input:focus, .bo-filter-bar select:focus { border-color: rgba(183,255,0,.65); box-shadow: 0 0 0 3px rgba(183,255,0,.07); }
.bo-form input[type="color"] { padding: 5px; }
.bo-form-grid { display: grid; gap: 12px; }
.bo-form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bo-form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }

.bo-user-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.bo-user-stats article {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 11px;
    padding: 17px;
    background: var(--bo-panel);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-md);
}
.bo-user-stats article > span { grid-row: span 2; display: grid; place-items: center; width: 39px; height: 39px; color: var(--bo-lime); background: rgba(183,255,0,.09); border-radius: 12px; }
.bo-user-stats strong { font: 700 24px/1 "Space Grotesk",sans-serif; }
.bo-user-stats small { color: var(--bo-muted); font-size: 10px; }

.bo-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px,1fr) 190px 190px auto auto;
    gap: 9px;
    margin-bottom: 13px;
    padding: 13px;
    background: rgba(13,27,39,.78);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-md);
}
.bo-search { position: relative; }
.bo-search > i { position: absolute; z-index: 2; top: 15px; left: 14px; color: #6f8998; }
.bo-search input { padding-left: 40px; }

.bo-users-layout { display: grid; grid-template-columns: minmax(580px,1.35fr) minmax(350px,.65fr); gap: 13px; align-items: start; }
.bo-user-table-wrap, .bo-user-detail {
    overflow: hidden;
    background: var(--bo-panel);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
}
.bo-table-head, .bo-user-table > a {
    display: grid;
    grid-template-columns: minmax(230px,1.2fr) minmax(130px,.7fr) minmax(145px,.7fr) 110px;
    align-items: center;
    gap: 14px;
}
.bo-table-head {
    min-height: 47px;
    padding: 0 16px;
    color: #6e8797;
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid var(--bo-line);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bo-user-table { max-height: 760px; overflow: auto; scrollbar-width: thin; }
.bo-user-table > a { min-height: 77px; padding: 11px 16px; border-bottom: 1px solid var(--bo-line); transition: background .15s ease; }
.bo-user-table > a:hover, .bo-user-table > a.is-selected { background: rgba(183,255,0,.045); }
.bo-user-table > a.is-selected { box-shadow: inset 3px 0 var(--bo-lime); }
.bo-user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bo-user-cell > i { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; color: #071019; background: linear-gradient(135deg,var(--bo-lime),var(--bo-cyan)); border-radius: 12px; font-style: normal; font-weight: 800; }
.bo-user-table strong, .bo-user-table small { display: block; }
.bo-user-table strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bo-user-table small { margin-top: 4px; color: var(--bo-muted); font-size: 9px; }
.bo-user-table em, .bo-table-rank { color: var(--bo-muted); font-size: 10px; font-style: normal; font-weight: 800; }
.bo-table-rank { display: inline-flex; align-items: center; gap: 6px; color: var(--rank); }
.bo-state { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; color: var(--bo-success); background: rgba(68,220,152,.08); border: 1px solid rgba(68,220,152,.16); border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bo-state.is-danger { color: var(--bo-danger); background: rgba(255,99,125,.08); border-color: rgba(255,99,125,.18); }
.bo-state.is-warning { color: var(--bo-warning); background: rgba(255,191,75,.08); border-color: rgba(255,191,75,.18); }

.bo-user-detail { position: sticky; top: 20px; }
.bo-user-detail-hero { position: relative; display: flex; align-items: center; gap: 13px; padding: 22px; background: linear-gradient(135deg,rgba(183,255,0,.09),rgba(76,232,255,.035)); border-bottom: 1px solid var(--bo-line); }
.bo-detail-avatar { width: 56px; height: 56px; flex: 0 0 auto; font-size: 20px; }
.bo-user-detail-hero > div { min-width: 0; flex: 1; }
.bo-user-detail-hero small, .bo-user-detail-hero p { color: var(--bo-muted); font-size: 9px; }
.bo-user-detail-hero h2 { overflow: hidden; margin: 3px 0; font: 700 20px/1.1 "Space Grotesk",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.bo-user-detail-hero p { margin: 0; }
.bo-user-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 7px 21px; }
.bo-user-facts > div { padding: 12px 0; border-bottom: 1px solid var(--bo-line); }
.bo-user-facts dt { color: var(--bo-muted); font-size: 9px; }
.bo-user-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; }
.bo-user-facts dd i { color: var(--bo-success); }
.bo-security-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 13px 20px; }
.bo-security-strip > div { display: flex; align-items: center; gap: 8px; padding: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--bo-line); border-radius: 11px; }
.bo-security-strip i { color: var(--bo-cyan); }
.bo-security-strip strong, .bo-security-strip small { display: block; }
.bo-security-strip strong { font-size: 10px; }
.bo-security-strip small { color: var(--bo-muted); font-size: 8px; }
.bo-detail-section { padding: 15px 20px; border-top: 1px solid var(--bo-line); }
.bo-detail-section h3 { margin: 0 0 11px; font: 700 13px "Space Grotesk",sans-serif; }
.bo-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bo-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bo-action-grid form button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 58px;
    padding: 10px;
    color: var(--bo-text);
    text-align: left;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    cursor: pointer;
}
.bo-action-grid form button > i { color: var(--bo-cyan); }
.bo-action-grid form button.is-danger > i { color: var(--bo-danger); }
.bo-action-grid form button.is-success > i { color: var(--bo-success); }
.bo-action-grid strong, .bo-action-grid small { display: block; }
.bo-action-grid strong { font-size: 9px; }
.bo-action-grid small { color: var(--bo-muted); font-size: 8px; }
.bo-timeline article { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 0 0 13px; }
.bo-timeline article > i { width: 8px; height: 8px; margin-top: 5px; background: var(--bo-lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(183,255,0,.08); }
.bo-timeline strong, .bo-timeline small { display: block; }
.bo-timeline strong { font-size: 9px; }
.bo-timeline small { color: var(--bo-muted); font-size: 8px; }

.bo-rank-layout { display: grid; grid-template-columns: minmax(520px,1.05fr) minmax(420px,.95fr); gap: 14px; align-items: start; }
.bo-rank-list { display: grid; gap: 9px; }
.bo-rank-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    min-height: 128px;
    padding: 18px;
    background: linear-gradient(120deg,color-mix(in srgb,var(--rank) 7%,var(--bo-panel)),var(--bo-panel));
    border: 1px solid color-mix(in srgb,var(--rank) 20%,var(--bo-line));
    border-radius: var(--bo-radius-lg);
}
.bo-rank-card.is-disabled { opacity: .54; filter: grayscale(.45); }
.bo-rank-card-icon, .bo-rank-preview { display: grid; place-items: center; width: 48px; height: 48px; color: var(--rank); background: color-mix(in srgb,var(--rank) 10%,transparent); border: 1px solid color-mix(in srgb,var(--rank) 22%,transparent); border-radius: 15px; }
.bo-rank-card small { color: var(--rank); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bo-rank-card h3 { margin: 4px 0; font: 700 18px "Space Grotesk",sans-serif; }
.bo-rank-card p { margin: 0; color: var(--bo-muted); font-size: 10px; }
.bo-rank-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.bo-rank-meta span { display: inline-flex; align-items: center; gap: 5px; color: #819cab; font-size: 8px; font-weight: 700; }
.bo-icon-btn {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 0;
    color: var(--bo-text);
    background: rgba(255,255,255,.045);
    border: 1px solid var(--bo-line);
    border-radius: 12px;
    cursor: pointer;
}
.bo-rank-editor { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; scrollbar-width: thin; }
.bo-toggle { grid-template-columns: auto auto 1fr !important; align-items: center; align-self: end; min-height: 44px; }
.bo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bo-toggle span { position: relative; width: 40px; height: 23px; background: #263946; border-radius: 999px; transition: .2s; }
.bo-toggle span::after { content:""; position:absolute; top:4px; left:4px; width:15px; height:15px; background:#77909f; border-radius:50%; transition:.2s; }
.bo-toggle input:checked + span { background: rgba(183,255,0,.24); }
.bo-toggle input:checked + span::after { left:21px; background: var(--bo-lime); }
.bo-permissions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 14px; border: 1px solid var(--bo-line); border-radius: 14px; }
.bo-permissions legend { padding: 0 7px; color: var(--bo-text); font: 700 13px "Space Grotesk",sans-serif; }
.bo-permissions h3 { grid-column: 1/-1; margin: 10px 0 2px; color: var(--bo-lime); font-size: 9px; text-transform: uppercase; }
.bo-permissions label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; padding: 8px; background: rgba(255,255,255,.025); border-radius: 9px; cursor: pointer; }
.bo-permissions label input { width: 15px; min-height: 15px; margin-top: 2px; accent-color: var(--bo-lime); }
.bo-permissions strong, .bo-permissions small { display: block; }
.bo-permissions strong { font-size: 9px; }
.bo-permissions small { color: var(--bo-muted); font-size: 7px; }
.bo-empty { padding: 28px; color: var(--bo-muted); text-align: center; font-size: 11px; }
.bo-empty i, .bo-empty strong, .bo-empty span { display: block; }
.bo-empty i { margin-bottom: 9px; color: var(--bo-lime); font-size: 26px; }

/* Bot Discord */
.bo-bot-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 30px;
    min-height: 230px;
    margin-bottom: 18px;
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 20%,rgba(88,101,242,.3),transparent 20rem),
        linear-gradient(135deg,rgba(88,101,242,.14),rgba(14,28,40,.96) 52%,rgba(76,232,255,.08));
    border: 1px solid rgba(120,130,255,.28);
    border-radius: 26px;
}
.bo-bot-hero h2 { margin: 16px 0 8px; font: 700 clamp(36px,5vw,62px)/.95 "Space Grotesk",sans-serif; }
.bo-bot-hero p { max-width: 760px; color: var(--bo-muted); font-size: 13px; line-height: 1.7; }
.bo-bot-signal { position: relative; display: grid; place-items: center; width: 145px; height: 145px; color: #fff; background: #5865f2; border-radius: 38px; box-shadow: 0 20px 70px rgba(88,101,242,.34); font-size: 56px; }
.bo-bot-signal span, .bo-bot-signal::before { content:""; position:absolute; inset:-17px; border:1px solid rgba(125,136,255,.38); border-radius:48px; }
.bo-bot-signal::before { inset:-34px; opacity:.45; }
.bo-bot-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.bo-config-state { padding: 7px 10px; color: var(--bo-muted); background: rgba(255,255,255,.04); border:1px solid var(--bo-line); border-radius:999px; font-size:9px; font-weight:800; text-transform:uppercase; }
.bo-config-state.is-on { color:var(--bo-lime); background:rgba(183,255,0,.08); border-color:rgba(183,255,0,.2); }
.bo-bot-layout .bo-form-grid { align-items:end; }
.bo-bot-layout .bo-btn { align-self:end; min-height:44px; }
.bo-bot-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:18px; padding-top:14px; border-top:1px solid var(--bo-line); }
.bo-bot-metrics span { padding:10px; color:var(--bo-muted); background:rgba(255,255,255,.025); border-radius:11px; font-size:8px; }
.bo-bot-metrics strong { display:block; margin-bottom:3px; color:var(--bo-text); font:700 18px "Space Grotesk",sans-serif; }
.bo-inline-note { margin-top:15px; padding:11px 13px; color:var(--bo-muted); background:rgba(76,232,255,.04); border:1px solid rgba(76,232,255,.12); border-radius:12px; font-size:9px; }
.bo-inline-note i { margin-right:7px; color:var(--bo-cyan); }
.bo-small-action { padding:8px 10px; color:var(--bo-muted); background:rgba(255,255,255,.04); border:1px solid var(--bo-line); border-radius:10px; cursor:pointer; font-size:9px; font-weight:800; }
.bo-bot-log { display:grid; gap:7px; }
.bo-bot-log > article { display:grid; grid-template-columns:auto 1fr; gap:11px; padding:12px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.04); border-radius:12px; }
.bo-bot-log > article > span { display:grid; place-items:center; width:34px; height:34px; color:var(--bo-danger); background:rgba(255,99,125,.09); border-radius:10px; }
.bo-bot-log strong, .bo-bot-log p, .bo-bot-log small { display:block; }
.bo-bot-log strong { font-size:10px; }
.bo-bot-log p { margin:3px 0; color:var(--bo-muted); font-size:9px; line-height:1.5; }
.bo-bot-log small { color:#667e8e; font-size:8px; }
.bo-setup-list { display:grid; gap:8px; }
.bo-setup-list > div { display:grid; grid-template-columns:auto 1fr; gap:11px; align-items:center; padding:11px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.04); border-radius:12px; }
.bo-setup-list > div > i { display:grid; place-items:center; width:34px; height:34px; color:var(--bo-orange); background:rgba(255,184,77,.09); border-radius:10px; }
.bo-setup-list > div.is-ready > i { color:var(--bo-lime); background:rgba(183,255,0,.08); }
.bo-setup-list strong, .bo-setup-list small { display:block; }
.bo-setup-list strong { font-size:10px; }
.bo-setup-list small { margin-top:2px; color:var(--bo-muted); font-size:8px; line-height:1.45; }
.bo-bot-file-state { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:14px; padding-top:14px; border-top:1px solid var(--bo-line); }
.bo-bot-file-state span { padding:10px; background:rgba(255,255,255,.025); border-radius:10px; }
.bo-bot-file-state small, .bo-bot-file-state strong { display:block; }
.bo-bot-file-state small { color:var(--bo-muted); font-size:7px; text-transform:uppercase; }
.bo-bot-file-state strong { margin-top:3px; font-size:9px; }

/* Wszystkie logi systemu */
.bo-log-controls { margin:18px 0; padding:14px; }
.bo-log-controls .bo-filter-bar { margin:0; grid-template-columns:minmax(260px,1fr) repeat(3,minmax(130px,.35fr)) auto; }
.bo-log-list { display:grid; gap:8px; }
.bo-log-list > article { display:grid; grid-template-columns:auto minmax(0,1fr); gap:13px; padding:14px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.05); border-left:3px solid var(--bo-cyan); border-radius:13px; }
.bo-log-list > article.is-warning { border-left-color:var(--bo-orange); }
.bo-log-list > article.is-error { border-left-color:var(--bo-danger); }
.bo-log-list > article.is-notice { border-left-color:var(--bo-violet); }
.bo-log-icon { display:grid; place-items:center; width:37px; height:37px; color:var(--bo-cyan); background:rgba(76,232,255,.08); border-radius:11px; }
.is-warning .bo-log-icon { color:var(--bo-orange); background:rgba(255,184,77,.08); }
.is-error .bo-log-icon { color:var(--bo-danger); background:rgba(255,99,125,.08); }
.is-notice .bo-log-icon { color:var(--bo-violet); background:rgba(167,139,250,.08); }
.bo-log-main { min-width:0; }
.bo-log-main > div { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:7px; }
.bo-log-main > div > span, .bo-log-main code { padding:4px 7px; border-radius:7px; font-size:7px; font-weight:800; text-transform:uppercase; }
.bo-log-level { color:var(--bo-cyan); background:rgba(76,232,255,.08); }
.bo-log-category { color:var(--bo-muted); background:rgba(255,255,255,.045); }
.bo-log-main code { color:#b7c9d5; background:#07111a; text-transform:none; }
.bo-log-main > strong { display:block; font-size:11px; line-height:1.45; }
.bo-log-main > p { display:flex; flex-wrap:wrap; gap:9px 16px; margin-top:7px; color:var(--bo-muted); font-size:8px; }
.bo-log-main > p span { overflow-wrap:anywhere; }
.bo-log-main > p i { margin-right:5px; color:#607b8c; }
.bo-log-main details { margin-top:9px; }
.bo-log-main summary { color:var(--bo-cyan); cursor:pointer; font-size:8px; font-weight:800; }
.bo-log-main pre { max-height:280px; overflow:auto; margin-top:8px; padding:12px; color:#b7c9d5; background:#050c12; border:1px solid var(--bo-line); border-radius:10px; font:8px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.bo-danger-zone { margin-top:18px; border-color:rgba(255,99,125,.18); }
.bo-danger-zone > p { margin:-4px 0 16px; color:var(--bo-muted); font-size:10px; line-height:1.6; }
.bo-btn-danger { color:#fff; background:linear-gradient(135deg,#ff637d,#d94460); }

/* Portal przeniesiony ze Strony testowej: wspólny branding zaplecza. */
.bo-portal-body {
    background:
        radial-gradient(circle at 90% 0, rgba(76,232,255,.07), transparent 35rem),
        #061019 !important;
}
.bo-portal-body .site-header {
    background: rgba(5,14,22,.94) !important;
    border-bottom-color: var(--bo-line) !important;
    backdrop-filter: blur(22px);
}
.bo-portal-body .admin-brand-mark { background: var(--bo-lime) !important; box-shadow: 0 10px 28px rgba(183,255,0,.16); }
.bo-portal-body .admin-hero, .bo-portal-body .profile-card {
    border-color: var(--bo-line) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.bo-portal-body .admin-hero {
    background: linear-gradient(135deg,rgba(183,255,0,.1),rgba(11,24,36,.98) 52%,rgba(76,232,255,.06)) !important;
}
.bo-portal-body .btn-primary { background: var(--bo-lime) !important; color: #061019 !important; }

/* Rozbudowany panel mapy: nowa skóra bez naruszania jego formularzy i PHP. */
.bo-map-body {
    --accent: var(--bo-lime);
    --panel: rgba(14,28,40,.93);
    --line: var(--bo-line);
    --text: var(--bo-text);
    --muted: var(--bo-muted);
    background:
        radial-gradient(circle at 95% 0,rgba(76,232,255,.07),transparent 32rem),
        #061019 !important;
}
.bo-map-body .sidebar {
    background: rgba(5,14,22,.97) !important;
    border-right: 1px solid var(--bo-line) !important;
    box-shadow: none !important;
}
.bo-map-body .main { max-width: 1680px !important; }
.bo-map-body .hero, .bo-map-body .card, .bo-map-body .profile-card, .bo-map-body .stat-card {
    background: rgba(14,28,40,.9) !important;
    border-color: var(--bo-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.16) !important;
}
.bo-map-body .hero { background: linear-gradient(135deg,rgba(183,255,0,.1),rgba(14,28,40,.94),rgba(76,232,255,.05)) !important; }
.bo-map-body .nav a.active, .bo-map-body .nav a:hover { background: rgba(183,255,0,.1) !important; border-color: rgba(183,255,0,.18) !important; }
.bo-map-body .btn-primary { background: var(--bo-lime) !important; color: #061019 !important; }

@media (max-width: 1240px) {
    .bo-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bo-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bo-users-layout { grid-template-columns: minmax(500px,1.15fr) minmax(320px,.85fr); }
    .bo-table-head, .bo-user-table > a { grid-template-columns: minmax(210px,1.2fr) minmax(120px,.7fr) 120px; }
    .bo-table-head > span:nth-child(3), .bo-user-table > a > span:nth-child(3) { display: none; }
}

@media (max-width: 980px) {
    .bo-shell { padding: 70px 0 0; }
    .bo-mobile-bar {
        position: fixed;
        z-index: 70;
        inset: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 62px;
        padding: 0 14px;
        background: rgba(5,14,22,.94);
        border-bottom: 1px solid var(--bo-line);
        backdrop-filter: blur(20px);
    }
    .bo-mobile-brand { display: flex; align-items: center; gap: 9px; font: 700 15px "Space Grotesk",sans-serif; }
    .bo-mobile-brand > span { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
    .bo-sidebar { width: min(310px,88vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 24px 0 70px rgba(0,0,0,.42); }
    .bo-nav-open .bo-sidebar { transform: translateX(0); }
    .bo-sidebar-close { position: absolute; top: 24px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--bo-muted); background: rgba(255,255,255,.04); border: 1px solid var(--bo-line); border-radius: 10px; }
    .bo-backdrop { position: fixed; z-index: 75; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(0,0,0,.58); border: 0; transition: .2s; }
    .bo-nav-open .bo-backdrop { visibility: visible; opacity: 1; }
    .bo-main { padding: 20px 16px 45px; }
    .bo-page-header { align-items: stretch; flex-direction: column; }
    .bo-hero { grid-template-columns: 1fr; }
    .bo-hero-orbit { display: none; }
    .bo-split-grid { grid-template-columns: 1fr; }
    .bo-users-layout { grid-template-columns: 1fr; }
    .bo-user-detail { position: static; }
    .bo-rank-layout { grid-template-columns: 1fr; }
    .bo-rank-editor { position: static; max-height: none; }
    .bo-user-table { max-height: none; }
    .bo-bot-layout { grid-template-columns: 1fr; }
    .bo-log-controls .bo-filter-bar { grid-template-columns:1fr 1fr; }
    .bo-log-controls .bo-search { grid-column:1/-1; }
}

@media (max-width: 680px) {
    .bo-main { padding-inline: 11px; }
    .bo-page-header { margin-bottom: 17px; }
    .bo-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .bo-header-actions .bo-status-pill { grid-column: 1/-1; }
    .bo-header-actions .bo-btn { width: 100%; }
    .bo-hero { min-height: 0; padding: 26px 20px; border-radius: 22px; }
    .bo-hero h2 { font-size: 38px; }
    .bo-hero-actions { display: grid; grid-template-columns: 1fr; }
    .bo-stat-grid, .bo-user-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bo-stat-grid article { min-height: 94px; padding: 13px; }
    .bo-stat-grid strong { font-size: 23px; }
    .bo-module-grid { grid-template-columns: 1fr; }
    .bo-module-card { min-height: 160px; padding: 18px; }
    .bo-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .bo-panel { padding: 17px; }
    .bo-filter-bar { grid-template-columns: 1fr 1fr; }
    .bo-filter-bar .bo-search { grid-column: 1/-1; }
    .bo-filter-bar .bo-btn { width: 100%; }
    .bo-table-head { display: none; }
    .bo-user-table > a { grid-template-columns: 1fr auto; gap: 8px; min-height: 86px; padding: 13px; }
    .bo-user-table > a > span:nth-child(3) { display: none; }
    .bo-user-table > a > span:nth-child(2) { align-self: end; grid-column: 1; }
    .bo-user-table > a > span:nth-child(4) { grid-column: 2; grid-row: 1/3; }
    .bo-user-detail-hero { padding: 18px; }
    .bo-user-facts { grid-template-columns: 1fr; }
    .bo-security-strip { grid-template-columns: 1fr; }
    .bo-action-grid { grid-template-columns: 1fr; }
    .bo-form-grid.two, .bo-form-grid.three { grid-template-columns: 1fr; }
    .bo-permissions { grid-template-columns: 1fr; }
    .bo-rank-card { grid-template-columns: auto 1fr; }
    .bo-rank-card > .bo-icon-btn { grid-column: 1/-1; width: 100%; }
    .bo-access-card { padding: 28px 20px; }
    .bo-bot-hero { grid-template-columns:1fr; min-height:0; padding:25px 20px; }
    .bo-bot-signal { display:none; }
    .bo-bot-metrics { grid-template-columns:1fr 1fr; }
    .bo-bot-file-state { grid-template-columns:1fr; }
    .bo-log-controls .bo-filter-bar { grid-template-columns:1fr; }
    .bo-log-controls .bo-search { grid-column:auto; }
    .bo-log-list > article { grid-template-columns:1fr; padding:12px; }
    .bo-log-main > p { display:grid; gap:5px; }
}

@media (max-width: 420px) {
    .bo-stat-grid, .bo-user-stats { grid-template-columns: 1fr; }
    .bo-header-actions, .bo-filter-bar { grid-template-columns: 1fr; }
    .bo-filter-bar .bo-search { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
