* {
    box-sizing: border-box;
}

.astrion-shell {
    min-height: 100vh;
    display: flex;
    background: #03070d;
}

.astrion-main {
    width: 100%;
    min-height: 100vh;
    margin-left: 270px;
    padding: 24px;
}

.astrion-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    height: 100vh;
    padding: 0 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 123, 0, 0.10), transparent 26%),
        linear-gradient(180deg, #07111b 0%, #02070d 100%);
    border-right: 1px solid rgba(255, 123, 0, 0.14);
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    z-index: 50;
}

.astrion-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 0 18px 18px 0;
    pointer-events: none;
}

.sidebar-logo {
    position: absolute;
    top: 22px;
    left: 14px;
    right: 14px;
    height: 132px;
    text-align: center;
}

.astrion-planet {
    width: 76px;
    height: 54px;
    margin: 0 auto 5px;
    position: relative;
}

.astrion-planet::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 3px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 7px solid #ff6f18;
    box-shadow: 0 0 18px rgba(255, 111, 24, 0.45);
}

.astrion-planet::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    width: 60px;
    height: 18px;
    border-top: 5px solid #ff6f18;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.astrion-word {
    color: #f7f7f7;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-shadow: 0 2px 0 rgba(255,255,255,0.12);
}

.astrion-sub {
    margin-top: 8px;
    color: #ff7b00;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.sidebar-menu {
    position: absolute;
    top: 165px;
    left: 14px;
    right: 14px;
    bottom: 106px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 12px 0;
}

.sidebar-menu::after {
    content: "";
    display: block;
    height: 12px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 123, 0, 0.45);
    border-radius: 999px;
}

.sidebar-group-title {
    margin: 22px 14px 10px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.sidebar-group-title::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-group-title:first-of-type::after {
    display: none;
}

.sidebar-item {
    height: 41px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    margin-bottom: 5px;
    color: rgba(220, 225, 232, 0.78);
    text-decoration: none;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: 0.2s ease;
}

.sidebar-item:hover,
.sidebar-item.active {
    color: #fff;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 123, 0, 0.13), transparent 34%),
        linear-gradient(90deg, rgba(255, 123, 0, 0.19), rgba(255, 123, 0, 0.035));
    border-color: rgba(255, 123, 0, 0.52);
    box-shadow:
        inset 0 0 0 1px rgba(255, 123, 0, 0.05),
        0 0 20px rgba(255, 123, 0, 0.10);
}

.sidebar-item-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: currentColor;
}

.sidebar-item-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-item-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.sidebar-arrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
    line-height: 1;
}

.sidebar-user-card {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(20, 33, 51, 0.98), rgba(13, 24, 39, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    z-index: 10;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.07);
    border: 1px solid rgba(255, 123, 0, 0.72);
    box-shadow: inset 0 0 18px rgba(255, 123, 0, 0.09);
    color: #ff7b00;
    font-size: 25px;
    font-weight: 900;
    flex: 0 0 auto;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-info strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    position: relative;
    display: block;
    margin-top: 6px;
    padding-left: 13px;
    color: #28f079;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.sidebar-user-info span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #20f278;
    box-shadow: 0 0 10px rgba(32, 242, 120, 0.7);
}

.sidebar-logout {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 19px;
    line-height: 1;
    transform: rotate(45deg);
}

.sidebar-logout:hover {
    color: #ff7b00;
}

@media (max-width: 1050px) {
    .astrion-shell {
        display: block;
    }

    .astrion-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 22px 14px 18px;
        border-radius: 0;
    }

    .sidebar-logo {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
        padding-bottom: 24px;
    }

    .sidebar-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        max-height: none;
        padding-bottom: 0;
    }

    .sidebar-user-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 20px;
    }

    .astrion-main {
        margin-left: 0;
        padding: 18px;
    }
}