:root {
    --librya-sidebar-line: rgba(112, 236, 255, 0.16);
    --librya-sidebar-line-strong: rgba(144, 243, 255, 0.28);
    --librya-sidebar-panel-top: rgba(8, 22, 42, 0.98);
    --librya-sidebar-panel-mid: rgba(5, 15, 29, 0.98);
    --librya-sidebar-panel-bottom: rgba(3, 9, 18, 0.99);
    --librya-sidebar-text: rgba(222, 249, 255, 0.80);
    --librya-sidebar-muted: rgba(177, 244, 255, 0.52);
    --librya-sidebar-strong: rgba(241, 253, 255, 0.94);
}

.librya-app-body {
    background:
        radial-gradient(circle at 50% 0%, rgba(80, 220, 255, 0.08), transparent 28%),
        radial-gradient(circle at 14% 18%, rgba(60, 160, 220, 0.05), transparent 22%),
        linear-gradient(180deg, #020814, #030915 58%, #030711) !important;
}

.librya-app-main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(2, 8, 20, 0.74), rgba(3, 10, 20, 0.84)) !important;
}

.librya-app-main::before,
.librya-app-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.librya-app-main::before {
    position: fixed;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(2, 8, 20, 0.14), rgba(2, 8, 20, 0.24)),
        url('/images/mondo.png') center center / cover no-repeat;
    background-attachment: fixed;
    opacity: 0.98;
    transform: none;
}

.librya-app-main::after {
    z-index: -1;
    background:
        radial-gradient(circle at 50% 18%, rgba(92, 228, 255, 0.08), transparent 24%),
        radial-gradient(circle at 50% 88%, rgba(75, 180, 255, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(2, 8, 20, 0.08), rgba(3, 10, 20, 0.18));
}

.librya-app-main > * {
    position: relative;
    z-index: 1;
}

[data-flux-sidebar].librya-app-sidebar {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(98, 229, 255, 0.34) rgba(4, 13, 24, 0.88);
    scrollbar-gutter: stable;
    padding-bottom: 12px;
    border-right-color: var(--librya-sidebar-line) !important;
    background:
        radial-gradient(circle at top, rgba(74, 213, 255, 0.08), transparent 28%),
        linear-gradient(180deg, var(--librya-sidebar-panel-top), var(--librya-sidebar-panel-mid) 44%, var(--librya-sidebar-panel-bottom)) !important;
    box-shadow:
        inset -1px 0 0 rgba(144, 243, 255, 0.06),
        0 0 24px rgba(24, 169, 212, 0.06);
}

[data-flux-sidebar].librya-app-sidebar::-webkit-scrollbar {
    width: 10px;
}

[data-flux-sidebar].librya-app-sidebar::-webkit-scrollbar-track {
    background: rgba(4, 13, 24, 0.86);
    border-left: 1px solid rgba(112, 236, 255, 0.08);
}

[data-flux-sidebar].librya-app-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid rgba(4, 13, 24, 0.92);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(86, 234, 255, 0.46), rgba(27, 111, 159, 0.72));
    box-shadow: 0 0 12px rgba(89, 220, 255, 0.12);
}

[data-flux-sidebar].librya-app-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(123, 240, 255, 0.56), rgba(33, 126, 181, 0.82));
}

[data-flux-sidebar].librya-app-sidebar::before,
[data-flux-sidebar].librya-app-sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

[data-flux-sidebar].librya-app-sidebar::before {
    background:
        linear-gradient(rgba(97, 222, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 222, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.28;
    mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.25));
}

[data-flux-sidebar].librya-app-sidebar::after {
    left: 18px;
    right: 18px;
    top: 16px;
    bottom: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(144, 243, 255, 0.42), transparent);
}

.librya-app-sidebar [data-flux-sidebar-header] {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(112, 236, 255, 0.10);
}

.librya-app-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-width: 0;
}

.librya-app-brand-link {
    min-width: 0;
    flex: 1 1 auto;
}

.librya-app-brand-copy {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.librya-app-brand-name {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(224, 251, 255, 0.82);
}

.librya-app-brand-locales {
    position: relative;
    flex: 0 0 auto;
}

.librya-app-brand-locales summary {
    list-style: none;
}

.librya-app-brand-locales summary::-webkit-details-marker {
    display: none;
}

.librya-app-brand-locales-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(112, 236, 255, 0.18);
    border-radius: 0.8rem;
    background:
        linear-gradient(180deg, rgba(10, 30, 58, 0.84), rgba(4, 12, 24, 0.44));
    color: rgba(229, 252, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(89, 220, 255, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.librya-app-brand-locales-toggle:hover,
.librya-app-brand-locales[open] .librya-app-brand-locales-toggle {
    transform: translateY(-1px);
    border-color: rgba(144, 243, 255, 0.28);
    color: rgba(246, 254, 255, 0.98);
    box-shadow: 0 0 14px rgba(89, 220, 255, 0.08), inset 0 0 10px rgba(89, 220, 255, 0.06);
}

.librya-app-brand-locales-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 12;
    display: grid;
    gap: 0.3rem;
    min-width: 88px;
    padding: 0.45rem;
    border: 1px solid rgba(112, 236, 255, 0.16);
    border-radius: 0.95rem;
    background:
        linear-gradient(180deg, rgba(8, 24, 48, 0.96), rgba(4, 12, 24, 0.98));
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(89, 220, 255, 0.08);
}

.librya-app-brand-locale-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: rgba(222, 249, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.librya-app-brand-locale-link:hover,
.librya-app-brand-locale-link.is-active {
    border-color: rgba(144, 243, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(12, 36, 68, 0.8), rgba(5, 14, 28, 0.32));
    color: rgba(245, 254, 255, 0.96);
}

.librya-app-sidebar [data-flux-sidebar-group] > div:first-child div,
.librya-app-sidebar [data-flux-sidebar-group] > button {
    color: var(--librya-sidebar-muted) !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.librya-app-sidebar [data-flux-sidebar-item] {
    border: 1px solid transparent !important;
    background:
        linear-gradient(180deg, rgba(8, 24, 48, 0.44), rgba(4, 12, 24, 0.14)) !important;
    color: var(--librya-sidebar-text) !important;
    box-shadow: inset 0 0 10px rgba(89, 220, 255, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.librya-app-sidebar [data-flux-sidebar-item] [data-content],
.librya-app-sidebar [data-flux-sidebar-item] svg,
.librya-app-sidebar [data-flux-sidebar-item] span {
    color: inherit !important;
}

.librya-app-sidebar [data-flux-sidebar-item] {
    position: relative;
}

.librya-chat-unread-badge {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.38rem;
    border: 1px solid rgba(133, 243, 255, 0.30);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 88, 140, 0.96), rgba(7, 36, 66, 0.96));
    color: rgba(247, 254, 255, 0.96) !important;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow:
        0 0 12px rgba(89, 220, 255, 0.18),
        inset 0 0 8px rgba(178, 245, 255, 0.10);
    pointer-events: none;
}

.librya-chat-unread-badge[hidden] {
    display: none;
}

.librya-app-sidebar .librya-chat-sidebar-item {
    position: relative;
    padding-right: 2.9rem !important;
}

.librya-app-sidebar [data-flux-sidebar-item]:hover,
.librya-app-sidebar [data-flux-sidebar-group] > button:hover {
    border-color: rgba(137, 241, 255, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(10, 32, 62, 0.68), rgba(5, 14, 28, 0.28)) !important;
    color: var(--librya-sidebar-strong) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(89, 220, 255, 0.08), inset 0 0 10px rgba(89, 220, 255, 0.04);
}

.librya-app-sidebar [data-flux-sidebar-item][data-current] {
    border-color: var(--librya-sidebar-line-strong) !important;
    background:
        linear-gradient(180deg, rgba(13, 41, 76, 0.82), rgba(6, 18, 34, 0.42)) !important;
    color: var(--librya-sidebar-strong) !important;
    box-shadow:
        0 0 18px rgba(89, 220, 255, 0.12),
        inset 0 0 10px rgba(89, 220, 255, 0.06);
}

.librya-app-sidebar [data-flux-sidebar-group] > button {
    border: 1px solid transparent !important;
    background: rgba(8, 24, 48, 0.10) !important;
}

.librya-app-sidebar [data-flux-sidebar-group] > button svg {
    color: inherit !important;
}

.librya-app-sidebar-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(112, 236, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(4, 12, 24, 0.18), rgba(4, 12, 24, 0.92) 32%, rgba(4, 12, 24, 0.98));
    backdrop-filter: blur(12px);
}

.librya-app-sidebar-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.librya-app-sidebar-email {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: rgba(222, 249, 255, 0.72);
}

.librya-app-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--librya-sidebar-line);
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, rgba(8, 24, 48, 0.64), rgba(4, 12, 24, 0.22)) !important;
    color: rgba(154, 255, 230, 0.84) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.librya-app-sidebar-logout:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
    border-color: rgba(96, 255, 193, 0.24);
    box-shadow: 0 0 14px rgba(96, 255, 193, 0.08), inset 0 0 10px rgba(96, 255, 193, 0.04);
}

.librya-app-sidebar-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--librya-sidebar-line);
    border-radius: 0.8rem;
    background:
        linear-gradient(180deg, rgba(8, 24, 48, 0.68), rgba(4, 12, 24, 0.26)) !important;
    box-shadow: inset 0 0 10px rgba(89, 220, 255, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.librya-app-sidebar-logout-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 255, 193, 0.26);
    box-shadow: 0 0 14px rgba(96, 255, 193, 0.08), inset 0 0 10px rgba(96, 255, 193, 0.04);
}

.librya-app-sidebar-logout-icon img {
    display: block;
}

.librya-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background:
        linear-gradient(180deg, rgba(8, 24, 48, 0.96), rgba(4, 12, 24, 0.98)) !important;
    border-bottom-color: rgba(112, 236, 255, 0.12) !important;
    backdrop-filter: blur(14px);
}

@media (max-width: 1023px) {
    .librya-app-brand {
        align-items: flex-start;
    }

    .librya-app-brand-locales-toggle {
        min-width: 56px;
        min-height: 32px;
        padding-inline: 0.7rem;
    }

    [data-flux-sidebar].librya-app-sidebar {
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    }
}
