/* MagicGaze — «Личная обсерватория», правый сайдбар.
   Подключается после style.css. Все правила ограничены правым сайдбаром. */

.sidebar-right {
    --obs-night: #100b13;
    --obs-indigo: #1a1320;
    --obs-plum: #e6a2e4;
    --obs-gold: #edc840;
    --obs-sky: #78c9db;
    --obs-mint: #5dcb9a;
    --obs-silver: #c7bfb5;
    --obs-text: #f0edf5;
    --obs-muted: #aaa7ba;
    width: min(410px, 100vw);
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
    color: var(--obs-text);
    background:
        radial-gradient(circle at 86% 7%, rgba(166, 125, 93, .065), transparent 28%),
        radial-gradient(circle at 8% 44%, rgba(116, 82, 128, .05), transparent 32%),
        linear-gradient(180deg, #100b13 0%, #100b13 48%, #0e0a12 100%);
    border-left-color: rgba(199, 191, 181, .12);
    scrollbar-color: rgba(230, 162, 228, .38) rgba(16, 11, 19, .72);
}

.sidebar-right::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(240, 237, 245, .65) 0 1px, transparent 1.4px),
        radial-gradient(circle at 72% 32%, rgba(120, 201, 219, .5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 38% 72%, rgba(230, 162, 228, .45) 0 1px, transparent 1.5px),
        radial-gradient(circle at 88% 84%, rgba(237, 200, 64, .4) 0 1px, transparent 1.4px);
    background-size: 173px 197px, 239px 223px, 211px 251px, 283px 269px;
}

.sidebar-right > * { position: relative; z-index: 1; }
.sidebar-right .lc { gap: 17px; }
.sidebar-right .lc button,
.sidebar-right .lc a,
.sidebar-right summary { -webkit-tap-highlight-color: transparent; }
.sidebar-right button:focus-visible,
.sidebar-right a:focus-visible,
.sidebar-right summary:focus-visible {
    outline: 2px solid var(--obs-gold);
    outline-offset: 3px;
}

.sidebar-right .sidebar-close-left {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 8;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--obs-muted);
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease;
}
.sidebar-right .sidebar-close-left:hover {
    color: var(--obs-text);
    background: rgba(240, 237, 245, .06);
}

.sidebar-right .lc-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--obs-silver);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Гостевой вход */
.sidebar-right .lc-guest { padding-top: 58px; }
.sidebar-right .lc-guest-sky {
    position: relative;
    height: 180px;
    margin: 0 -20px 26px;
    overflow: hidden;
    border-bottom: 0;
    background:
        radial-gradient(circle at 50% 56%, rgba(166, 125, 93, .09), transparent 34%),
        radial-gradient(circle at 20% 10%, rgba(116, 82, 128, .07), transparent 42%);
}
.sidebar-right .lc-guest-moon {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 86px;
    height: 86px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #f4f0df, #a9bacb 58%, #65758f);
    box-shadow: 0 0 54px rgba(120, 201, 219, .24);
}
.sidebar-right .lc-guest-moon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--obs-night);
    transform: translateX(-31%);
}
.sidebar-right .lc-guest-orbit {
    position: absolute;
    left: 50%;
    top: 76px;
    border: 1px solid rgba(199, 191, 181, .16);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}
.sidebar-right .lc-guest-orbit-one { width: 210px; height: 84px; }
.sidebar-right .lc-guest-orbit-two { width: 280px; height: 122px; opacity: .55; }
.sidebar-right .lc-guest-star { position: absolute; color: var(--obs-gold); font-size: 15px; }
.sidebar-right .lc-guest-star-one { left: 24%; top: 38px; }
.sidebar-right .lc-guest-star-two { right: 22%; bottom: 35px; color: var(--obs-sky); }
.sidebar-right .lc-guest .sidebar-heading {
    margin: 9px 0 10px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    letter-spacing: .4px;
}
.sidebar-right .lc-guest .sidebar-subtitle {
    max-width: 330px;
    margin-bottom: 24px;
    color: var(--obs-muted);
    font-size: 13px;
    line-height: 1.65;
}
.sidebar-right .lc-guest-forgot { margin-top: 12px; text-align: right; }
.sidebar-right .lc-guest-forgot a { color: var(--obs-plum); font-size: 13px; text-decoration: none; }
.sidebar-right .lc-guest-forgot a:hover { text-decoration: underline; }
.sidebar-right .lc-guest .btn-primary { min-height: 46px; }

/* Небесная сцена */
.sidebar-right .lc-sky {
    position: relative;
    min-height: 390px;
    margin: 0 -20px;
    padding: 20px 20px 18px;
    overflow: hidden;
    border-bottom: 0;
    background:
        radial-gradient(ellipse at 84% 24%, rgba(166, 125, 93, .075), transparent 38%),
        radial-gradient(ellipse at 5% 42%, rgba(116, 82, 128, .055), transparent 40%),
        linear-gradient(180deg, #100b13, #100b13);
}
.sidebar-right .lc-sky::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16, 11, 19, .16), transparent 60%),
        linear-gradient(0deg, #100b13 0%, rgba(16, 11, 19, 0) 18%);
}
.sidebar-right .lc-sky > * { position: relative; z-index: 2; }
.sidebar-right .lc-sky-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: var(--obs-silver);
    pointer-events: none;
}
.sidebar-right .lc-sky-title { min-height: 24px; margin-left: 38px; }

.sidebar-right .lc-moon-scene {
    position: absolute;
    right: -30px;
    top: 22px;
    z-index: 1;
    width: 240px;
    height: 240px;
    pointer-events: none;
}
.sidebar-right .lc-moon {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .98;
    filter: drop-shadow(0 0 18px rgba(208, 176, 116, .14));
    -webkit-mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, .9) 38%, rgba(0, 0, 0, .4) 48%, transparent 65%);
    mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, .9) 38%, rgba(0, 0, 0, .4) 48%, transparent 65%);
    user-select: none;
}

.sidebar-right .lc-user-btn {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.sidebar-right .lc-sky-user {
    width: min(228px, 64%);
    min-height: 58px;
    margin-top: 35px;
    padding: 5px 0;
    gap: 11px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.sidebar-right .lc-sky-user:hover { background: transparent; border: 0; }
.sidebar-right .lc-sky-user:hover .lc-username { color: var(--obs-plum); }
.sidebar-right .lc-avatar-ring {
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    isolation: isolate;
    border: 1px solid rgba(222, 187, 119, .68);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 30%, rgba(237, 200, 164, .2), transparent 22%),
        radial-gradient(circle at 68% 70%, rgba(124, 84, 137, .32), transparent 38%),
        linear-gradient(145deg, #2c1c32, #15101d 62%, #261728);
    box-shadow:
        inset 0 0 0 3px #100b13,
        inset 0 0 0 4px rgba(222, 187, 119, .22),
        0 0 22px rgba(166, 125, 93, .13);
}
.sidebar-right .lc-avatar-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    border: 1px dotted rgba(222, 187, 119, .36);
    border-radius: 50%;
}
.sidebar-right .lc-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: 50%;
    opacity: .48;
    background:
        radial-gradient(circle at 29% 36%, rgba(237, 214, 174, .2) 0 2px, transparent 2.5px),
        radial-gradient(circle at 67% 28%, rgba(237, 214, 174, .15) 0 3px, transparent 3.5px),
        radial-gradient(circle at 64% 71%, rgba(5, 3, 8, .38) 0 5px, transparent 5.5px),
        radial-gradient(circle at 32% 72%, rgba(5, 3, 8, .3) 0 3px, transparent 3.5px);
}
.sidebar-right .lc-avatar-orbit {
    position: absolute;
    left: -5px;
    top: 20px;
    z-index: 3;
    width: 66px;
    height: 19px;
    border: 1px solid rgba(222, 187, 119, .58);
    border-radius: 50%;
    transform: rotate(-19deg);
    pointer-events: none;
}
.sidebar-right .lc-avatar-star {
    position: absolute;
    right: -3px;
    top: 8px;
    z-index: 4;
    color: #edc840;
    font-size: 10px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(237, 200, 64, .65);
    transform: rotate(12deg);
}
.sidebar-right .lc-avatar {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f3dfae;
    background: transparent;
    box-shadow: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(237, 200, 64, .25);
}
.sidebar-right .lc-sky-user:hover .lc-avatar-ring {
    border-color: rgba(237, 200, 64, .9);
    box-shadow: inset 0 0 0 3px #100b13, inset 0 0 0 4px rgba(222, 187, 119, .3), 0 0 25px rgba(237, 200, 64, .16);
}
.sidebar-right .lc-user-info { display: block; min-width: 0; }
.sidebar-right .lc-username {
    display: block;
    overflow: hidden;
    color: var(--obs-text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}
.sidebar-right .lc-email {
    display: block;
    max-width: 145px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--obs-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-right .lc-user-chevron { color: var(--obs-silver); }

.sidebar-right .lc-greeting { max-width: 230px; margin-top: 18px; }
.sidebar-right .lc-moon-meta {
    margin-bottom: 7px;
    color: var(--obs-sky);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sidebar-right .lc-greeting h3 {
    color: var(--obs-text);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}
.sidebar-right .lc-greeting h3 span {
    color: var(--obs-plum);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.sidebar-right .lc-greeting p {
    margin-top: 8px;
    color: #c4c2cf;
    font-size: 12.5px;
    line-height: 1.6;
}

.sidebar-right .lc-balance {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(199, 191, 181, .16);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.sidebar-right .lc-balance-icon { color: var(--obs-plum); }
.sidebar-right .lc-balance-num {
    color: var(--obs-text);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 29px;
    font-variant-numeric: tabular-nums;
}
.sidebar-right .lc-balance-label {
    margin-top: 3px;
    color: var(--obs-muted);
    font-size: 9px;
    letter-spacing: 1.1px;
}
.sidebar-right .lc-btn-topup {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(230, 162, 228, .45);
    border-radius: 12px;
    color: var(--obs-text);
    background: rgba(230, 162, 228, .1);
    box-shadow: none;
    animation: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.sidebar-right .lc-btn-topup:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 162, 228, .75);
    background: rgba(230, 162, 228, .18);
}

/* Панель профиля */
.sidebar-right .lc-profile-panel {
    max-height: 0;
    margin-top: -8px;
    overflow: hidden;
    transition: max-height .28s ease, margin .28s ease;
}
.sidebar-right .lc-profile-panel.open { max-height: 250px; margin-top: -4px; }
.sidebar-right .lc-profile-inner {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(199, 191, 181, .13);
    border-radius: 0;
    background: transparent;
}
.sidebar-right .lc-profile-row { color: var(--obs-muted); }
.sidebar-right .lc-profile-row b { color: var(--obs-text); }
.sidebar-right .lc-profile-link {
    min-height: 44px;
    color: var(--obs-silver);
    background: rgba(199, 191, 181, .045);
    border-color: rgba(199, 191, 181, .14);
}
.sidebar-right .lc-profile-link:hover { color: var(--obs-text); background: rgba(230, 162, 228, .1); }

/* Портал дня: гравюрные небесные врата */
.sidebar-right .lc-timer {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 176px;
    padding: 22px 18px;
    overflow: hidden;
    color: var(--obs-text);
    text-align: left;
    border: 1px solid rgba(199, 171, 132, .2);
    border-radius: 18px;
    background: #100b13;
    box-shadow: inset 0 0 32px rgba(8, 4, 12, .3);
    cursor: default;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sidebar-right .lc-timer:disabled { opacity: 1; }
.sidebar-right .lc-portal-scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.sidebar-right .lc-portal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    opacity: .5;
    filter: saturate(.8) brightness(.78);
    transform: scale(1.02);
    transition: opacity .3s ease, filter .3s ease, transform .35s ease;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.38) 28%, #000 61%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.38) 28%, #000 61%, #000 100%);
}
.sidebar-right .lc-portal-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16,11,19,.98) 0%, rgba(16,11,19,.9) 37%, rgba(16,11,19,.24) 72%, rgba(16,11,19,.06) 100%),
        linear-gradient(0deg, rgba(16,11,19,.72), transparent 58%);
}
.sidebar-right .lc-timer.is-free {
    border-color: rgba(222, 187, 119, .48);
    box-shadow: inset 0 0 32px rgba(91, 50, 100, .1), 0 8px 26px rgba(5, 3, 8, .18);
    cursor: pointer;
}
.sidebar-right .lc-timer.is-free .lc-portal-image {
    opacity: .94;
    filter: saturate(1.04) brightness(1.04);
}
.sidebar-right .lc-timer.is-free:hover {
    transform: translateY(-2px);
    border-color: rgba(237, 200, 64, .72);
    box-shadow: 0 11px 30px rgba(5, 3, 8, .32), 0 0 24px rgba(166, 125, 93, .08);
}
.sidebar-right .lc-timer.is-free:hover .lc-portal-image {
    opacity: 1;
    filter: saturate(1.08) brightness(1.12);
    transform: scale(1.045);
}
.sidebar-right .lc-portal-copy {
    position: relative;
    z-index: 2;
    display: block;
    width: 64%;
    min-width: 0;
    flex: 0 0 64%;
}
.sidebar-right .lc-timer-head {
    display: block;
    color: #c7a98a;
    font-size: 9px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.sidebar-right .lc-timer-value {
    margin: 8px 0 6px;
    color: var(--obs-text);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1.25;
    text-shadow: 0 2px 12px #100b13;
    font-variant-numeric: tabular-nums;
}
.sidebar-right .lc-timer-value.lc-timer-free {
    max-width: 205px;
    color: #f1d28d !important;
    font-size: 19px !important;
    letter-spacing: .2px;
}
.sidebar-right .lc-timer-note {
    display: block;
    max-width: 205px;
    color: #b7adbb;
    font-size: 11px;
    line-height: 1.5;
    text-shadow: 0 1px 8px #100b13;
}
.sidebar-right .lc-portal-arrow {
    position: absolute;
    right: 15px;
    bottom: 14px;
    z-index: 2;
    color: #c7a98a;
    opacity: .45;
}
.sidebar-right .lc-timer.is-free .lc-portal-arrow { color: #edc840; opacity: .9; }

/* Созвездие стрика */
.sidebar-right .lc-streak {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px 0 15px;
    color: var(--obs-text);
    text-align: left;
    border: 0;
    border-top: 1px solid rgba(237, 200, 64, .17);
    border-bottom: 1px solid rgba(237, 200, 64, .17);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease;
}
.sidebar-right .lc-streak:hover {
    border-color: rgba(237, 200, 64, .35);
    background: rgba(237, 200, 64, .035);
    box-shadow: none;
}
.sidebar-right .lc-streak-head { display: flex; align-items: center; gap: 12px; }
.sidebar-right .lc-streak-sigil {
    width: 34px;
    flex: 0 0 34px;
    color: var(--obs-gold);
    font-size: 26px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 15px rgba(237, 200, 64, .3);
}
.sidebar-right .lc-streak-heading { display: block; min-width: 0; }
.sidebar-right .lc-streak-label {
    display: block;
    margin-bottom: 3px;
    color: var(--obs-muted);
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.sidebar-right .lc-streak-title { display: block; color: var(--obs-text); font-size: 14px; }
.sidebar-right .lc-streak-title b { color: var(--obs-gold); font-size: 21px; font-weight: 600; }
.sidebar-right .lc-streak-status { display: block; margin-top: 9px; color: var(--obs-muted); font-size: 11.5px; }
.sidebar-right .lc-streak-status.done { color: #91e3ba; }
.sidebar-right .lc-streak-flames {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 14px;
    padding: 0 5px;
}
.sidebar-right .lc-streak-flame {
    position: relative;
    flex: 1;
    height: 31px;
    color: rgba(199, 191, 181, .17);
    background: currentColor;
    opacity: 1;
    filter: none;
    -webkit-mask-image: url('/static/images/witch-silhouette.png');
    mask-image: url('/static/images/witch-silhouette.png');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 34px 31px;
    mask-size: 34px 31px;
    transition: color .25s ease, transform .25s ease, filter .25s ease;
}
.sidebar-right .lc-streak-flame:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(-50% + 13px);
    right: calc(50% + 13px);
    height: 1px;
    background: rgba(199, 191, 181, .14);
}
.sidebar-right .lc-streak-flame.lit {
    color: var(--obs-gold);
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(237, 200, 64, .5));
    text-shadow: none;
    transform: scale(1.06);
}
.sidebar-right .lc-streak-flame.lit::before { background: rgba(237, 200, 64, .48); }
.sidebar-right .lc-streak-flame.reward-star { -webkit-mask-size: 39px 34px; mask-size: 39px 34px; }
.sidebar-right .lc-streak-progress { display: block; margin-top: 8px; color: #d8bd68; font-size: 11px; }
.sidebar-right .lc-streak.reward { border-color: rgba(237, 200, 64, .4); background: rgba(237, 200, 64, .035); }

/* Дары и уведомления */
.sidebar-right .lc-gift,
.sidebar-right .lc-coupon {
    min-height: 46px;
    gap: 10px;
    margin: 0;
    padding: 11px 13px;
    color: #ead9ef;
    text-align: left;
    border: 1px solid rgba(230, 162, 228, .32);
    border-radius: 12px;
    background: rgba(230, 162, 228, .065);
}
.sidebar-right .lc-gift svg,
.sidebar-right .lc-coupon svg { flex: 0 0 auto; color: var(--obs-plum); }
.sidebar-right .lc-coupon { border-color: rgba(237, 200, 64, .3); background: rgba(237, 200, 64, .05); }
.sidebar-right .lc-coupon svg { color: var(--obs-gold); }
.sidebar-right .lc-notify { gap: 0; }
.sidebar-right .lc-notify-item {
    min-height: 44px;
    padding: 10px 2px;
    color: #c8c5d3;
    border: 0;
    border-bottom: 1px solid rgba(120, 201, 219, .12);
    border-radius: 0;
    background: transparent;
}
.sidebar-right .lc-notify-item:hover { color: var(--obs-text); background: transparent; border-color: rgba(120, 201, 219, .35); }

/* Заголовки и история */
.sidebar-right .lc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    color: var(--obs-silver);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
}
.sidebar-right .lc-section-title::after { content: ''; height: 1px; flex: 1; background: rgba(199, 191, 181, .14); }
.sidebar-right .lc-history { gap: 0; }
.sidebar-right .lc-history-item {
    min-height: 68px;
    gap: 12px;
    padding: 8px 0;
    color: var(--obs-text);
    border: 0;
    border-bottom: 1px solid rgba(199, 191, 181, .1);
    border-radius: 0;
    background: transparent;
    transition: transform .2s ease, background-color .2s ease;
}
.sidebar-right .lc-history-item:hover {
    transform: translateX(-3px);
    border-color: rgba(230, 162, 228, .3);
    background: rgba(230, 162, 228, .025);
    box-shadow: none;
}
.sidebar-right .lc-h-thumb {
    position: relative;
    width: 34px;
    height: 50px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--obs-plum);
    border: 1px solid rgba(199, 191, 181, .18);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(230, 162, 228, .1), rgba(120, 201, 219, .05));
    transform: rotate(-2deg);
    transition: transform .2s ease;
}
.sidebar-right .lc-history-item:hover .lc-h-thumb { transform: rotate(0); }
.sidebar-right .lc-h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-right .lc-history-item .lc-h-name { color: #dcd8e4; font-size: 12.5px; line-height: 1.4; }
.sidebar-right .lc-history-item .lc-h-date { color: #92909f; font-size: 10px; font-variant-numeric: tabular-nums; }
.sidebar-right .lc-history-empty { padding: 18px 0; color: var(--obs-muted); text-align: left; }

/* Знамение */
.sidebar-right .lc-promo {
    position: relative;
    display: block;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(199, 191, 181, .17);
    border-radius: 17px;
    background: var(--obs-indigo);
}
.sidebar-right .lc-promo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    opacity: .68;
    transition: transform .28s ease, opacity .28s ease;
}
.sidebar-right .lc-promo:hover .lc-promo-image { transform: scale(1.025); opacity: .78; }
.sidebar-right .lc-promo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 24, .06) 10%, rgba(8, 10, 24, .88) 67%, rgba(8, 10, 24, .97));
}
.sidebar-right .lc-promo-content { position: relative; z-index: 2; padding: 70px 17px 16px; }
.sidebar-right .lc-promo-kicker {
    margin-bottom: 8px;
    color: #d6d0c7;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sidebar-right .lc-promo-text {
    color: var(--obs-text);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 14px;
    line-height: 1.55;
    text-shadow: 0 2px 12px rgba(8, 10, 24, .9);
}
.sidebar-right .lc-promo-btn {
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 0;
    color: var(--obs-plum);
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    letter-spacing: .6px;
    transition: color .2s ease, transform .2s ease;
}
.sidebar-right .lc-promo-btn:hover { color: var(--obs-text); background: transparent; box-shadow: none; transform: translateX(3px); }

/* Дополнительные услуги */
.sidebar-right .lc-services-details { border-top: 1px solid rgba(199, 191, 181, .12); border-bottom: 1px solid rgba(199, 191, 181, .12); }
.sidebar-right .lc-services-details summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--obs-silver);
    font-size: 10px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.sidebar-right .lc-services-details summary::-webkit-details-marker { display: none; }
.sidebar-right .lc-services-details summary svg { transition: transform .2s ease; }
.sidebar-right .lc-services-details[open] summary svg { transform: rotate(180deg); }
.sidebar-right .lc-services { gap: 10px; padding: 2px 0 14px; }
.sidebar-right .lc-service {
    position: relative;
    min-height: 128px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(199, 191, 181, .15);
    border-radius: 12px;
    background: var(--obs-indigo);
    text-align: left;
}
.sidebar-right .lc-service > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
    transition: transform .25s ease, opacity .25s ease;
}
.sidebar-right .lc-service-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(8, 10, 24, .94) 82%); }
.sidebar-right .lc-service-content { position: absolute; inset: auto 11px 11px; z-index: 2; display: block; }
.sidebar-right .lc-service-name { display: block; color: var(--obs-text); font-size: 11.5px; line-height: 1.35; }
.sidebar-right .lc-service-price {
    display: inline-block;
    margin-top: 7px;
    padding: 0;
    color: var(--obs-sky);
    background: transparent;
    font-size: 10px;
}
.sidebar-right .lc-service:hover { border-color: rgba(230, 162, 228, .45); background: var(--obs-indigo); box-shadow: none; transform: translateY(-2px); }
.sidebar-right .lc-service:hover > img { transform: scale(1.04); opacity: .72; }

/* Нижние действия */
.sidebar-right .lc-footer { padding-top: 14px; border-top-color: rgba(199, 191, 181, .12); }
.sidebar-right .lc-footer-link { min-height: 44px; color: var(--obs-muted); border-color: rgba(199, 191, 181, .13); }
.sidebar-right .lc-footer-link:hover { color: var(--obs-text); background: rgba(230, 162, 228, .06); }
.sidebar-right .btn-logout { min-height: 44px; margin-top: 0; }

/* Появление только при открытии; без анимации контент виден сразу. */
.sidebar-right.mg-observatory-open .lc-sky,
.sidebar-right.mg-observatory-open .lc-timer,
.sidebar-right.mg-observatory-open .lc-streak,
.sidebar-right.mg-observatory-open .lc-history-section,
.sidebar-right.mg-observatory-open .lc-promo {
    animation: obsEnter .28s ease-out both;
}
.sidebar-right.mg-observatory-open .lc-timer { animation-delay: 35ms; }
.sidebar-right.mg-observatory-open .lc-streak { animation-delay: 65ms; }
.sidebar-right.mg-observatory-open .lc-history-section { animation-delay: 95ms; }
.sidebar-right.mg-observatory-open .lc-promo { animation-delay: 125ms; }

@keyframes obsEnter {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes obsOrbit { to { transform: rotate(360deg); } }
@keyframes obsHalo { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 480px) {
    .sidebar-right { width: 100%; padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
    .sidebar-right .lc-sky { margin-right: calc(-1 * max(18px, env(safe-area-inset-right))); margin-left: calc(-1 * max(18px, env(safe-area-inset-left))); padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
    .sidebar-right .lc-guest-sky { margin-right: calc(-1 * max(18px, env(safe-area-inset-right))); margin-left: calc(-1 * max(18px, env(safe-area-inset-left))); }
}

@media (max-width: 350px) {
    .sidebar-right { padding-right: 15px; padding-left: 15px; }
    .sidebar-right .lc-sky { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; }
    .sidebar-right .lc-moon-scene { right: -28px; top: 8px; width: 220px; height: 220px; transform: none; }
    .sidebar-right .lc-sky-user { width: 65%; }
    .sidebar-right .lc-email { max-width: 105px; }
    .sidebar-right .lc-greeting { max-width: 190px; }
    .sidebar-right .lc-greeting h3 { font-size: 16px; }
    .sidebar-right .lc-balance { gap: 8px; }
    .sidebar-right .lc-balance-label { font-size: 8px; letter-spacing: .6px; }
    .sidebar-right .lc-btn-topup { padding: 9px 11px; font-size: 12px; }
    .sidebar-right .lc-timer { min-height: 164px; padding: 19px 14px; }
    .sidebar-right .lc-portal-copy { width: 68%; flex-basis: 68%; }
    .sidebar-right .lc-portal-image { object-position: 61% center; }
    .sidebar-right .lc-timer-value.lc-timer-free { font-size: 17px !important; }
    .sidebar-right .lc-services { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none) {
    .sidebar-right .lc-promo:hover .lc-promo-image,
    .sidebar-right .lc-service:hover > img { transform: none; }
}

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