/* Soft liquid block shapes. Loaded after styles.css on purpose. */

:root {
    --soft-sheet-radius: 30px 24px 32px 24px;
    --soft-card-radius: 24px 20px 26px 20px;
    --soft-inner-radius: 18px 16px 20px 16px;
    --soft-glass-border: rgba(255, 255, 255, .16);
    --soft-glass-border-strong: rgba(255, 255, 255, .24);
    --soft-glass-bg:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 28%),
        radial-gradient(circle at 96% 88%, rgba(199, 125, 255, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .026)),
        rgba(12, 10, 28, .72);
    --soft-card-shadow:
        0 18px 46px rgba(0, 0, 0, .28),
        0 0 28px rgba(159, 124, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .22),
        inset 0 -18px 34px rgba(70, 28, 140, .055);
}

.profile-wall-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-wall-action {
    position: relative;
    min-height: 38px;
    min-width: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(248, 246, 255, .86);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .045);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 12px 28px rgba(0, 0, 0, .16);
    cursor: pointer;
    font-weight: 950;
    overflow: visible;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.profile-wall-action strong {
    font-size: 13px;
}

.profile-wall-action span {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    font-size: 16px;
}

.profile-wall-action:hover,
.profile-wall-action.active {
    border-color: rgba(199, 125, 255, .34);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .20), transparent 30%),
        linear-gradient(145deg, rgba(199, 125, 255, .15), rgba(85, 241, 255, .045)),
        rgba(255, 255, 255, .055);
}

.profile-wall-like.liked {
    border-color: rgba(255, 96, 174, .42);
    color: #ff9ed0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 0 24px rgba(255, 77, 163, .18),
        0 12px 28px rgba(0, 0, 0, .16);
}

.profile-wall-like.is-liking .profile-wall-like-icon {
    animation: wall-like-pop .52s cubic-bezier(.2, 1.45, .32, 1);
}

.profile-wall-like.is-liking::after {
    content: "♥";
    position: absolute;
    left: 18px;
    top: 2px;
    color: #ff74bb;
    font-size: 18px;
    text-shadow: 0 0 18px rgba(255, 77, 163, .72);
    pointer-events: none;
    animation: wall-like-float .62s ease-out forwards;
}

@keyframes wall-like-pop {
    0% {
        transform: scale(.78);
    }

    48% {
        transform: scale(1.42) rotate(-8deg);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wall-like-float {
    0% {
        transform: translate3d(0, 0, 0) scale(.75);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translate3d(2px, -30px, 0) scale(1.35);
        opacity: 0;
    }
}

.profile-wall-comments {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 20px 16px 22px 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .095), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(12, 8, 28, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    animation: wall-comments-open .2s ease-out;
}

@keyframes wall-comments-open {
    from {
        transform: translateY(-4px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-wall-comment-list {
    display: grid;
    gap: 10px;
}

.profile-wall-comments-empty {
    margin: 0;
    color: rgba(207, 210, 240, .66);
    font-size: 13px;
}

.profile-wall-comment {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px 14px 18px 14px;
    background: rgba(255, 255, 255, .045);
}

.profile-wall-comment.is-reply {
    margin-left: 18px;
    border-color: rgba(199, 125, 255, .17);
    background: rgba(199, 125, 255, .055);
}

.profile-wall-comment.is-reply::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 18px;
    width: 10px;
    height: 16px;
    border-left: 1px solid rgba(199, 125, 255, .28);
    border-bottom: 1px solid rgba(199, 125, 255, .28);
    border-radius: 0 0 0 8px;
}

.profile-wall-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.profile-wall-comment-author .profile-wall-author-link,
.profile-wall-comment-author {
    min-width: 0;
}

.profile-wall-comment-author .mini-avatar {
    width: 30px;
    height: 30px;
}

.profile-wall-comment-author strong {
    font-size: 12px;
}

.profile-wall-comment-author small,
.profile-wall-comment-head > small {
    color: rgba(207, 210, 240, .62);
    font-size: 10px;
}

.profile-wall-comment p {
    margin: 8px 0 0;
    color: rgba(248, 246, 255, .92);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-wall-comment-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 7px;
}

.profile-wall-comment-tools button,
.profile-wall-reply-preview button {
    border: 0;
    background: transparent;
    color: rgba(199, 125, 255, .92);
    cursor: pointer;
    font-size: 11px;
    font-weight: 950;
}

.profile-wall-comment-tools button[data-wall-comment-delete] {
    color: #ff8faf;
}

.profile-wall-comment-replies {
    display: grid;
    gap: 8px;
    margin-top: 9px;
}

.profile-wall-comment-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.profile-wall-comment-compact {
    display: none;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    color: rgba(238, 240, 255, .58);
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .08), transparent 30%),
        rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.profile-wall-comment-form.is-collapsed {
    gap: 0;
    margin-top: 9px;
}

.profile-wall-comment-form.is-collapsed .profile-wall-comment-compact {
    display: flex;
}

.profile-wall-comment-form.is-collapsed .profile-wall-reply-preview,
.profile-wall-comment-form.is-collapsed .profile-wall-comment-text,
.profile-wall-comment-form.is-collapsed .profile-wall-comment-footer {
    display: none !important;
}

.profile-wall-reply-preview {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(199, 125, 255, .22);
    border-radius: 999px;
    background: rgba(199, 125, 255, .09);
    color: rgba(248, 246, 255, .82);
    font-size: 12px;
}

.profile-wall-comment-text {
    width: 100%;
    min-height: 62px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    color: #fff;
    background: rgba(8, 6, 22, .42);
    outline: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    touch-action: manipulation;
}

.profile-wall-comment-text:focus {
    border-color: rgba(199, 125, 255, .48);
    box-shadow: 0 0 0 3px rgba(199, 125, 255, .11);
}

.profile-wall-comment-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-top: -2px;
}

.profile-wall-comment-footer span {
    display: none !important;
}

.profile-wall-comment-send {
    width: auto !important;
    min-height: 36px !important;
    padding-inline: 14px !important;
    border-radius: 999px !important;
}

@media (max-width: 620px) {
    .profile-wall-actions {
        gap: 7px;
    }

    .profile-wall-action {
        min-width: 68px;
    }

    .profile-wall-comments {
        padding: 10px;
        border-radius: 18px 15px 20px 15px;
    }

    .profile-wall-comment.is-reply {
        margin-left: 10px;
    }

    .profile-wall-comment-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-wall-comment-send {
        width: 100% !important;
    }
}

.profile-wall-actions {
    align-items: center;
    gap: 16px;
}

.profile-wall-action {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(248, 246, 255, .66);
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1;
}

.profile-wall-action:hover,
.profile-wall-action.active {
    border-color: transparent !important;
    color: rgba(248, 246, 255, .92);
    background: transparent !important;
}

.profile-wall-action span {
    min-width: auto;
    font-size: 19px;
}

.profile-wall-action strong {
    font-size: 13px;
}

.profile-wall-like.liked {
    border-color: transparent !important;
    color: #ff7fc0;
    box-shadow: none !important;
}

.profile-wall-comment-toggle.active {
    color: #cda7ff;
}

.profile-wall-comment {
    max-width: 100%;
    box-sizing: border-box;
}

.profile-wall-comment.is-reply {
    margin-left: 0 !important;
    padding-left: 14px;
}

.profile-wall-comment.is-reply::before {
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(199, 125, 255, .68), rgba(85, 241, 255, .28));
}

.profile-wall-comment-replies {
    gap: 0;
    margin-top: 0;
}

.profile-wall-comment-replied {
    display: inline-flex;
    margin-top: 8px;
    color: rgba(199, 125, 255, .78);
    font-size: 11px;
    font-weight: 900;
}

#profileWallMount {
    position: relative;
    z-index: 0;
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    margin: 6px auto 0;
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

body.profile-wall-active .app-shell {
    padding-bottom: 8px !important;
}

.tabs {
    z-index: 1000 !important;
}

.profile-wall {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.profile-wall-post-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: 7px !important;
}

.profile-wall-post-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    color: rgba(222, 224, 255, .68);
    font-size: 11px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.profile-wall-post-meta span {
    color: inherit !important;
    font-size: 11px;
    line-height: 1;
}

.profile-wall-post-meta small {
    display: none !important;
}

.profile-wall-delete {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    padding: 0;
    line-height: 1;
}

.profile-wall-comment-like {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(248, 246, 255, .62) !important;
}

.profile-wall-comment-like strong {
    font-size: 11px;
}

.profile-wall-comment-like span {
    font-size: 14px;
}

.profile-wall-comment-like.liked {
    color: #ff7fc0 !important;
}

.profile-wall-comment-like.is-liking .profile-wall-comment-like-icon {
    animation: wall-like-pop .42s cubic-bezier(.2, 1.35, .32, 1);
}

.topup-panel,
.quest-panel,
.casino-panel,
.inventory-panel,
.pet-panel,
.profile-panel,
.profile-flow-panel,
.profile-pro-panel,
.user-detail,
#publicProfileDetail.profile-panel,
.home-news-card,
.rewards-panel,
.result-panel,
.roulette-panel {
    border-color: var(--soft-glass-border) !important;
    border-radius: var(--soft-sheet-radius) !important;
    background: var(--soft-glass-bg) !important;
    box-shadow: var(--soft-card-shadow) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.home-hero {
    border-color: rgba(255, 255, 255, .18) !important;
    border-radius: 36px 26px 38px 28px !important;
    background:
        radial-gradient(circle at 20% 6%, rgba(255, 255, 255, .16), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(255, 78, 184, .20), transparent 30%),
        radial-gradient(circle at 68% 104%, rgba(85, 241, 255, .13), transparent 30%),
        linear-gradient(125deg, rgba(125, 109, 255, .27), rgba(255, 78, 184, .105) 44%, rgba(67, 230, 255, .08)),
        rgba(12, 13, 28, .88) !important;
    box-shadow:
        0 28px 78px rgba(0, 0, 0, .38),
        0 0 44px rgba(159, 124, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

.case-card,
.inventory-item,
.inventory-empty,
.quest-card,
.quest-reward,
.topup-package,
.profile-card-block,
.profile-stage,
.profile-pet-card,
.profile-social-section,
.profile-friends-page,
.profile-friend-results,
.public-actions,
.no-pet-card,
.pet-quests,
.pet-quest,
.pet-logs,
.pet-log-item,
.blackjack-table,
.blackjack-felt,
.casino-hero,
.casino-bet-row,
.roulette-selected-row,
.case-detail-head,
.welcome-panel {
    border-color: var(--soft-glass-border) !important;
    border-radius: var(--soft-card-radius) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .10), transparent 30%),
        radial-gradient(circle at 94% 96%, rgba(85, 241, 255, .055), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .036) !important;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 -14px 28px rgba(70, 28, 140, .04) !important;
}

.home-stats article,
.showcase-card,
.profile-metrics article,
.profile-metric-button,
.friend-item,
.user-row,
.request-item,
.profile-person-card,
.user-card,
.friend-card,
.request-card,
.profile-frame-option,
.profile-city-option,
.profile-badge-toggle,
.profile-privacy-row,
.profile-private-toggle,
.profile-wall-compose,
.profile-wall-post,
.profile-wall-empty,
.profile-wall-media-frame,
.profile-wall-preview,
.profile-wall-text,
.topup-empty {
    border-color: rgba(255, 255, 255, .135) !important;
    border-radius: var(--soft-inner-radius) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .095), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .020)),
        rgba(255, 255, 255, .030) !important;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.profile-wall {
    border-color: rgba(255, 255, 255, .17) !important;
    border-radius: 28px 22px 30px 22px !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, .13), transparent 30%),
        radial-gradient(circle at 92% 90%, rgba(255, 78, 184, .08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(10, 8, 24, .70) !important;
    box-shadow:
        0 20px 54px rgba(0, 0, 0, .30),
        0 0 30px rgba(159, 124, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

.home-news-section .home-news-card {
    min-height: 178px;
}

.roulette-table {
    border-radius: 22px 18px 24px 18px !important;
}

.blackjack-card,
.playing-card,
.card {
    border-radius: 16px !important;
}

.section-heading {
    padding-inline: 2px;
}

.balance {
    min-width: 178px;
    border-color: rgba(255, 255, 255, .20) !important;
    border-radius: 22px 18px 24px 18px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .20), transparent 30%),
        radial-gradient(circle at 95% 92%, rgba(255, 209, 71, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
        rgba(13, 12, 30, .72) !important;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, .26),
        0 0 24px rgba(255, 209, 71, .08),
        inset 0 1px 0 rgba(255, 255, 255, .28) !important;
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.balance-add-button {
    border-radius: 14px !important;
}

.balance strong {
    display: inline-block;
    min-width: max-content;
    font-variant-numeric: tabular-nums;
    transform-origin: 50% 70%;
}

.balance strong.number-counting {
    animation: number-count-in 2.25s cubic-bezier(.18, .82, .24, 1) both;
    text-shadow:
        0 0 14px rgba(255, 216, 92, .24),
        0 0 28px rgba(123, 92, 255, .18);
}

@keyframes number-count-in {
    0% {
        opacity: .68;
        transform: translateY(5px) scale(.92);
        filter: brightness(1.25);
    }

    58% {
        opacity: 1;
        transform: translateY(-1px) scale(1.045);
        filter: brightness(1.12);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

.profile-settings-panel,
.profile-settings-content,
.profile-settings-menu,
.profile-settings-tile,
.profile-frame-option,
.profile-city-option,
.profile-badge-toggle,
.profile-privacy-row,
.profile-private-toggle,
.profile-settings-empty {
    border-color: rgba(255, 255, 255, .15) !important;
    border-radius: 20px 17px 22px 17px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .11), transparent 30%),
        radial-gradient(circle at 96% 92%, rgba(199, 125, 255, .10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(12, 10, 28, .58) !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .20),
        inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.profile-settings-toolbar {
    min-width: 0;
}

.profile-settings-toolbar .ghost-button {
    margin-bottom: 0;
}

.profile-privacy-row select {
    max-width: 100%;
    border-radius: 14px !important;
}

.profile-city-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 8px auto 0;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(242, 238, 255, .88);
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.profile-city-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.profile-city-section-label {
    grid-column: 1 / -1;
    margin-top: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.profile-city-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .135);
    border-radius: var(--soft-inner-radius);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .095), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .020)),
        rgba(255, 255, 255, .030);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.profile-city-option strong,
.profile-city-option small {
    display: block;
}

.profile-city-option strong {
    color: #fff;
    font-size: 13px;
}

.profile-city-option small {
    margin-top: 3px;
    color: rgba(222, 224, 255, .66);
    font-size: 11px;
}

.profile-city-option i {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffeab1;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.profile-city-option.active {
    border-color: rgba(255, 215, 92, .36) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 215, 92, .14), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
        rgba(12, 10, 28, .64) !important;
}

@media (max-width: 480px) {
    .profile-city-list {
        grid-template-columns: 1fr;
    }
}

.home-stats {
    gap: 12px;
}

.case-list,
.inventory-list,
.quest-list,
.topup-grid,
.profile-person-list,
.user-list {
    gap: 12px;
}

.quest-reward-list {
    grid-template-columns: minmax(0, 1fr) !important;
}

.quest-reward {
    width: 100%;
}

.casino-panel,
.casino-panel * {
    min-width: 0;
    box-sizing: border-box;
}

.casino-mode-switch {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    overflow: hidden;
}

.casino-mode {
    min-width: 0 !important;
    width: 100%;
    padding-inline: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.casino-game {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.casino-hero {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
}

.roulette-wheel-wrap {
    --wheel-size: min(292px, calc(100vw - 72px));
    width: var(--wheel-size);
    max-width: 100%;
    margin-inline: auto;
}

.casino-roulette-wheel {
    width: 100%;
    max-width: var(--wheel-size);
}

.casino-copy {
    min-width: 0;
}

.casino-copy h3,
.casino-copy p {
    overflow-wrap: anywhere;
}

.casino-bet-row {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 22px 18px 24px 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .09), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .032);
}

.casino-bet-row label {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.casino-bet-row input {
    width: 100%;
    max-width: 100%;
    border-radius: 16px !important;
}

.casino-chip-row {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px;
}

.casino-chip-row button {
    min-width: 0;
    width: 100%;
    padding-inline: 4px;
}

.roulette-table-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 0 0 10px;
    scrollbar-color: rgba(255, 255, 255, .34) rgba(255, 255, 255, .08);
    scrollbar-width: thin;
}

.roulette-table-shell::-webkit-scrollbar {
    height: 8px;
}

.roulette-table-shell::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.roulette-table-shell::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .42), rgba(196, 94, 255, .58));
}

.roulette-table-shell::after {
    content: "листай ->";
    position: absolute;
    z-index: 5;
    right: 8px;
    bottom: 18px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .58);
    background: rgba(16, 11, 35, .26);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: table-scroll-hint 1.8s ease-in-out infinite;
}

@keyframes table-scroll-hint {
    0%,
    100% {
        transform: translateX(0);
        opacity: .34;
    }

    50% {
        transform: translateX(3px);
        opacity: .62;
    }
}

.roulette-table {
    min-width: 690px !important;
    width: max(690px, 100%);
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 209, 71, .08), transparent 28%),
        linear-gradient(135deg, rgba(5, 61, 43, .88), rgba(6, 34, 28, .94)) !important;
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, .035),
        inset 0 0 42px rgba(0, 0, 0, .38) !important;
}

.roulette-selected-row {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.roulette-selected-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roulette-spin-button {
    width: 100% !important;
    max-width: 100%;
    margin-inline: 0;
}

.blackjack-table {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
}

.blackjack-felt {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 209, 71, .10), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(17, 149, 100, .48), rgba(6, 65, 45, .92) 58%, #05271d 100%) !important;
    box-shadow:
        inset 0 0 0 7px rgba(255, 255, 255, .035),
        inset 0 0 60px rgba(0, 0, 0, .42),
        0 20px 42px rgba(0, 0, 0, .26) !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.blackjack-felt:not(.is-active):active {
    transform: scale(.992);
}

.blackjack-felt.is-active {
    cursor: default;
}

.result-panel {
    display: grid;
    gap: 12px;
}

.result-panel .code-box {
    margin-top: 0;
}

.result-panel .secondary-button,
.result-panel .primary-button {
    width: 100%;
    min-height: 48px;
    margin-top: 0 !important;
}

@media (max-width: 720px) {
    .casino-hero {
        grid-template-columns: 1fr !important;
    }

    .blackjack-table {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 620px) {
    :root {
        --soft-sheet-radius: 24px 20px 26px 20px;
        --soft-card-radius: 20px 17px 22px 17px;
        --soft-inner-radius: 16px 14px 18px 14px;
    }

    .home-hero {
        border-radius: 28px 22px 30px 22px !important;
    }

    .home-news-section .home-news-card {
        min-height: 150px;
    }

    .balance {
        min-width: 154px;
    }

    .casino-panel {
        padding: 12px !important;
    }

    #profileWallMount {
        width: calc(100vw - 4px);
        max-width: calc(100vw - 4px);
        margin-top: 4px;
    }

    .casino-mode-switch {
        gap: 6px;
        padding: 5px;
    }

    .casino-mode {
        min-height: 42px;
        font-size: 13px;
    }

    .casino-chip-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .roulette-selected-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .roulette-selected-row span {
        white-space: normal;
    }
}

.tab,
.profile-metric-button,
#profileFriendRequestsButton {
    position: relative;
}

.ui-badge {
    position: absolute;
    z-index: 8;
    top: -3px;
    right: 4px;
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .42), transparent 32%),
        linear-gradient(135deg, #ff416d, #d90038);
    box-shadow:
        0 0 16px rgba(255, 55, 98, .38),
        0 6px 16px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .34);
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.ui-badge.hidden {
    display: none !important;
}

.ui-badge.metric {
    top: -4px;
    right: 0;
}

.ui-badge.request {
    top: -10px;
    right: -10px;
}

.profile-wall-more {
    position: relative;
    flex: 0 0 auto;
}

.profile-wall-more summary {
    display: inline-grid;
    width: 32px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(248, 246, 255, .74);
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
    list-style: none;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.profile-wall-more summary::-webkit-details-marker {
    display: none;
}

.profile-wall-more summary:hover,
.profile-wall-more[open] summary {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
}

.profile-wall-more-menu {
    position: absolute;
    z-index: 40;
    right: 0;
    top: calc(100% + 7px);
    display: grid;
    min-width: 148px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 17px 14px 18px 14px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .16), transparent 32%),
        linear-gradient(145deg, rgba(38, 28, 68, .96), rgba(13, 11, 29, .94));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .36),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.profile-wall-more-menu button,
.profile-wall-comment-tools .profile-wall-more-menu button {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    border: 0 !important;
    border-radius: 12px !important;
    color: rgba(248, 246, 255, .9) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.profile-wall-more-menu button:hover {
    background: rgba(255, 255, 255, .08) !important;
}

.profile-wall-more-menu [data-wall-delete],
.profile-wall-more-menu [data-wall-comment-delete] {
    color: #ff9aae !important;
}

.profile-wall-action {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(248, 246, 255, .66) !important;
}

.profile-wall-action:hover,
.profile-wall-action.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .045) !important;
}

.profile-wall-action strong {
    min-width: 8px;
    color: currentColor;
}

.profile-wall-comment-icon,
.profile-wall-repost-icon {
    width: 19px;
    height: 19px;
    background: currentColor;
}

.profile-wall-comment-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.8 8.8 0 0 1-4-.9L3 20l1.2-4A8.2 8.2 0 0 1 3 11.5 8.5 8.5 0 0 1 12 3a8.5 8.5 0 0 1 9 8.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.8 8.8 0 0 1-4-.9L3 20l1.2-4A8.2 8.2 0 0 1 3 11.5 8.5 8.5 0 0 1 12 3a8.5 8.5 0 0 1 9 8.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-wall-repost-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-wall-repost.active,
.profile-wall-repost.active:hover {
    color: #7ee8ff !important;
}

.profile-wall-repost-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 8px;
    padding: 9px 10px;
    border: 1px solid rgba(126, 232, 255, .16);
    border-radius: 16px 13px 17px 13px;
    color: rgba(238, 240, 255, .74);
    background:
        radial-gradient(circle at 10% 0%, rgba(126, 232, 255, .12), transparent 32%),
        rgba(255, 255, 255, .035);
    font-size: 12px;
    font-weight: 780;
}

.profile-wall-repost-note button {
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 950;
    text-decoration: underline;
    text-decoration-color: rgba(126, 232, 255, .42);
    text-underline-offset: 3px;
}

.profile-wall-repost-note small {
    flex-basis: 100%;
    min-width: 0;
    color: rgba(222, 224, 255, .58);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-wall-repost-card {
    display: grid;
    gap: 10px;
    margin: 8px 0 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .135);
    border-radius: 19px 15px 21px 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .11), transparent 34%),
        radial-gradient(circle at 96% 100%, rgba(126, 232, 255, .09), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .028);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .15),
        0 10px 24px rgba(0, 0, 0, .16);
}

.profile-wall-repost-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.profile-wall-repost-card-head small {
    flex: 0 0 auto;
    color: rgba(222, 224, 255, .55);
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
}

.profile-wall-repost-text,
.profile-wall-repost-missing {
    margin: 0;
    color: rgba(248, 246, 255, .91);
    font-size: 14px;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

.profile-wall-repost-missing {
    color: rgba(222, 224, 255, .58);
    font-style: italic;
}

.profile-wall-repost-media-frame {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px 13px 18px 14px;
    background: rgba(255, 255, 255, .035);
}

.profile-wall-repost-media-frame img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.ui-badge {
    display: none !important;
}

.profile-wall-repost-note {
    margin: 8px 0 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(222, 224, 255, .58);
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 850;
}

.profile-wall-repost-note::before {
    content: "↻";
    color: rgba(126, 232, 255, .82);
    font-size: 13px;
    font-weight: 950;
}

.profile-wall-repost-note button {
    color: rgba(248, 246, 255, .86);
    text-decoration-color: rgba(126, 232, 255, .28);
}

.profile-wall-repost-inline {
    position: relative;
    display: grid;
    gap: 9px;
    margin: 4px 0 13px 10px;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(126, 232, 255, .18);
    border-left: 3px solid rgba(126, 232, 255, .58);
    border-radius: 18px 15px 20px 15px;
    background:
        radial-gradient(circle at 9% 0%, rgba(126, 232, 255, .15), transparent 32%),
        radial-gradient(circle at 98% 96%, rgba(199, 125, 255, .08), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .066), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .034) !important;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .15),
        inset 10px 0 18px rgba(126, 232, 255, .035) !important;
}

.profile-wall-repost-inline::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(126, 232, 255, .95), rgba(199, 125, 255, .52));
    box-shadow: 0 0 14px rgba(126, 232, 255, .34);
    pointer-events: none;
}

.profile-wall-repost-post-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
}

.profile-wall-repost-post-head > small {
    color: rgba(222, 224, 255, .58);
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
}

.profile-wall-repost-text,
.profile-wall-repost-missing {
    margin: 0;
}

.profile-wall-repost-media-frame {
    border-radius: var(--soft-inner-radius);
}

.profile-wall-comment-repost {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: rgba(248, 246, 255, .62) !important;
}

.profile-wall-comment-repost strong {
    font-size: 11px;
}

.profile-wall-comment-repost .profile-wall-repost-icon {
    width: 15px;
    height: 15px;
}

.profile-wall-comment-repost.active,
.profile-wall-comment-repost.active:hover {
    color: #7ee8ff !important;
}

.profile-wall-repost-note.is-comment-repost::before {
    content: "↳";
    color: rgba(255, 207, 112, .88);
}

.profile-wall-repost-inline.is-comment-repost {
    border-color: rgba(255, 207, 112, .22);
    border-left-color: rgba(255, 207, 112, .68);
    background:
        radial-gradient(circle at 9% 0%, rgba(255, 207, 112, .15), transparent 32%),
        radial-gradient(circle at 98% 96%, rgba(199, 125, 255, .07), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .064), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .032) !important;
}

.profile-wall-repost-inline.is-comment-repost::before {
    background: linear-gradient(180deg, rgba(255, 207, 112, .95), rgba(255, 127, 189, .48));
    box-shadow: 0 0 14px rgba(255, 207, 112, .28);
}

.profile-wall-repost-kind {
    display: none !important;
    width: max-content;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid rgba(255, 207, 112, .24);
    border-radius: 999px;
    color: rgba(255, 231, 176, .92);
    background: rgba(255, 207, 112, .08);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-wall-post.is-focused {
    animation: wall-focus-pulse 1.8s ease-out 1;
}

.profile-wall,
.profile-wall-list,
.profile-wall-post {
    overflow: visible !important;
}

.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(.982);
    filter: blur(8px);
    transition:
        opacity .64s cubic-bezier(.2, .8, .2, 1),
        transform .74s cubic-bezier(.18, .82, .22, 1),
        filter .60s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.profile-wall-more {
    z-index: 70;
}

.profile-wall-more[open] {
    z-index: 90;
}

.profile-wall-more-menu {
    z-index: 100;
}

.profile-wall-post.is-pinned {
    border-color: rgba(255, 207, 112, .28) !important;
    box-shadow:
        0 0 24px rgba(255, 207, 112, .08),
        0 10px 26px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.profile-wall-post.is-pinned::before {
    background: linear-gradient(180deg, rgba(255, 207, 112, .96), rgba(199, 125, 255, .66)) !important;
    box-shadow: 0 0 16px rgba(255, 207, 112, .22) !important;
}

.profile-wall-pin-mark {
    display: inline;
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 236, 191, .82);
    background: transparent;
    box-shadow: none;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

@keyframes wall-focus-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(126, 232, 255, .38),
            0 10px 26px rgba(0, 0, 0, .18),
            inset 0 1px 0 rgba(255, 255, 255, .16);
    }

    55% {
        box-shadow:
            0 0 0 7px rgba(126, 232, 255, .10),
            0 18px 42px rgba(0, 0, 0, .24),
            inset 0 1px 0 rgba(255, 255, 255, .18);
    }

    100% {
        box-shadow:
            0 10px 26px rgba(0, 0, 0, .18),
            inset 0 1px 0 rgba(255, 255, 255, .16);
    }
}

.home-social-section,
.home-feed-section {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--soft-sheet-radius);
    background:
        radial-gradient(circle at 12% 0%, rgba(126, 232, 255, .10), transparent 30%),
        radial-gradient(circle at 95% 12%, rgba(199, 125, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(11, 10, 27, .66);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    overflow: hidden;
}

.home-social-section.hidden,
.home-feed-section.hidden {
    display: none !important;
}

.home-social-section::before,
.home-feed-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .055) 42%, transparent 68%),
        radial-gradient(circle at 26% 12%, rgba(255, 255, 255, .08), transparent 22%);
    opacity: .62;
}

.home-social-section > *,
.home-feed-section > * {
    position: relative;
    z-index: 1;
}

.home-social-list,
.home-feed-list {
    display: grid;
    gap: 10px;
}

.home-social-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-person-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--soft-inner-radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(126, 232, 255, .12), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .035);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .13),
        0 10px 24px rgba(0, 0, 0, .14);
}

.home-person-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.home-person-main .mini-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .16),
        0 8px 18px rgba(0, 0, 0, .22);
}

.home-person-main strong,
.home-person-main small,
.home-person-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-person-main strong {
    color: rgba(255, 255, 255, .96);
    font-size: 13px;
    font-weight: 950;
}

.home-person-main small {
    margin-top: 2px;
    color: rgba(226, 223, 255, .62);
    font-size: 11px;
    font-weight: 760;
}

.home-person-main em {
    margin-top: 3px;
    color: rgba(126, 232, 255, .78);
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.home-person-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.home-person-actions button,
.home-feed-kicker button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background:
        radial-gradient(circle at 25% 0%, rgba(255, 255, 255, .16), transparent 34%),
        linear-gradient(145deg, rgba(199, 125, 255, .16), rgba(126, 232, 255, .045)),
        rgba(255, 255, 255, .055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 10px 22px rgba(0, 0, 0, .14);
    cursor: pointer;
    font-size: 11px;
    font-weight: 950;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-person-actions button:hover,
.home-feed-kicker button:hover {
    border-color: rgba(126, 232, 255, .35);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 18px rgba(126, 232, 255, .12),
        0 12px 24px rgba(0, 0, 0, .16);
}

.home-feed-item,
.home-feed-empty {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--soft-card-radius);
    background:
        radial-gradient(circle at 8% 0%, rgba(126, 232, 255, .10), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255, 207, 112, .08), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .035);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .13),
        0 14px 30px rgba(0, 0, 0, .17);
    overflow: hidden;
}

.home-feed-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(126, 232, 255, .92), rgba(199, 125, 255, .62));
    box-shadow: 0 0 18px rgba(126, 232, 255, .2);
}

.home-feed-item.comment::before {
    background: linear-gradient(180deg, rgba(255, 207, 112, .95), rgba(255, 127, 189, .58));
    box-shadow: 0 0 18px rgba(255, 207, 112, .18);
}

.home-feed-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(226, 223, 255, .62);
    font-size: 11px;
    font-weight: 850;
}

.home-feed-kicker span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(126, 232, 255, .82);
}

.home-feed-kicker em {
    flex: 1 0 auto;
    color: rgba(226, 223, 255, .48);
    font-style: normal;
}

.home-feed-kicker button {
    min-height: 27px;
    padding: 0 10px;
}

.home-feed-author .profile-wall-author {
    min-width: 0;
}

.home-feed-text,
.home-feed-answer p,
.home-feed-empty p {
    margin: 0;
    color: rgba(248, 246, 255, .86);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.home-feed-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--soft-inner-radius);
    background: rgba(255, 255, 255, .045);
}

.home-feed-media img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.home-feed-original,
.home-feed-answer {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: var(--soft-inner-radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
        rgba(255, 255, 255, .028);
}

.home-feed-answer {
    margin-left: 16px;
    border-left-color: rgba(255, 207, 112, .34);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 207, 112, .10), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
        rgba(255, 255, 255, .028);
}

.home-feed-empty strong {
    color: rgba(255, 255, 255, .94);
    font-size: 14px;
    font-weight: 950;
}

.home-feed-empty.inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    overflow: visible;
}

.home-feed-empty.inline::before,
.home-feed-empty.inline::after {
    display: none !important;
}

.home-feed-empty.inline strong,
.home-feed-empty.inline p {
    margin: 0;
}

.home-feed-empty.inline strong {
    color: rgba(248, 246, 255, .76);
}

.home-feed-empty.inline p {
    flex-basis: 100%;
    color: rgba(226, 223, 255, .48);
    font-size: 12px;
}

@media (max-width: 520px) {
    .home-social-section,
    .home-feed-section {
        padding: 13px;
    }

    .home-social-list.compact {
        grid-template-columns: 1fr;
    }

    .home-person-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-person-actions {
        justify-content: stretch;
    }

    .home-person-actions button {
        flex: 1 1 0;
    }

    .home-feed-kicker {
        flex-wrap: wrap;
    }

    .home-feed-kicker span {
        flex: 1 1 100%;
    }

    .home-feed-kicker em {
        flex: 1 1 auto;
    }

    .home-feed-answer {
        margin-left: 8px;
    }
}

.home-feed-section {
    width: calc(100% + 22px);
    margin-left: -11px;
    margin-right: -11px;
    padding: 15px 10px 18px;
    overflow: visible;
}

.home-feed-section::before {
    border-radius: inherit;
}

.home-feed-section .home-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.home-feed-section .home-section-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-feed-section .home-section-title .eyebrow,
.home-feed-section .home-section-title p:not(.eyebrow) {
    display: none;
}

.home-feed-section .home-section-title h3 {
    margin: 0;
}

.home-feed-list {
    gap: 14px;
}

.home-feed-wall.profile-wall {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-feed-wall.profile-wall::before,
.home-feed-wall.profile-wall::after {
    display: none;
}

.home-feed-storyline {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 0 10px 0 28px;
    color: rgba(226, 223, 255, .58);
    font-size: 12px;
    font-weight: 850;
}

.home-feed-storyline span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(250, 248, 255, .88);
}

.home-feed-storyline .home-feed-story-link {
    display: inline;
    min-height: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    color: rgba(126, 232, 255, .96);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 950;
    text-decoration: underline;
    text-decoration-color: rgba(126, 232, 255, .38);
    text-underline-offset: 3px;
    cursor: pointer;
}

.home-feed-storyline .home-feed-story-link:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, .72);
}

.home-feed-storyline em {
    flex: 0 0 auto;
    color: rgba(226, 223, 255, .44);
    font-size: 11px;
    font-style: normal;
    font-weight: 780;
}

.home-feed-storyline em::before {
    content: "•";
    margin-right: 7px;
    color: rgba(126, 232, 255, .64);
}

.home-feed-wall .profile-wall-list {
    gap: 0;
}

.home-feed-wall .profile-wall-post {
    border-radius: var(--soft-card-radius);
}

.home-feed-wall .profile-wall-comments {
    margin-top: 10px;
}

.home-feed-wall .profile-wall-empty {
    display: none;
}

@media (max-width: 520px) {
    .home-feed-section {
        width: calc(100% + 18px);
        margin-left: -9px;
        margin-right: -9px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .home-feed-storyline {
        padding: 0 8px 0 22px;
        flex-wrap: wrap;
    }

    .home-feed-storyline span {
        flex: 1 1 100%;
    }

    .home-feed-storyline em::before {
        margin-right: 6px;
    }
}

body.region-locked {
    overflow: hidden;
}

body.account-banned {
    overflow: hidden;
}

body.account-banned .app-shell {
    display: none;
}

.region-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 30px 18px;
    background:
        radial-gradient(circle at 18% 8%, rgba(126, 232, 255, .18), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(199, 125, 255, .22), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(255, 207, 112, .10), transparent 34%),
        rgba(5, 4, 15, .82);
    backdrop-filter: blur(18px) saturate(1.2);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.region-gate.hidden {
    display: none !important;
}

.ban-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 91, 137, .22), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(199, 125, 255, .22), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(255, 207, 112, .12), transparent 36%),
        rgba(6, 4, 16, .9);
    backdrop-filter: blur(20px) saturate(1.2);
}

.ban-gate.hidden {
    display: none !important;
}

.ban-gate-card {
    position: relative;
    width: min(430px, calc(100% - 16px));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--soft-sheet-radius);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 91, 137, .16), transparent 34%),
        radial-gradient(circle at 100% 14%, rgba(255, 207, 112, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .026)),
        rgba(14, 10, 30, .92);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .54),
        0 0 44px rgba(255, 91, 137, .13),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    text-align: left;
    overflow: hidden;
}

.ban-gate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(116deg, transparent 0%, rgba(255, 255, 255, .08) 42%, transparent 68%),
        radial-gradient(circle at 26% 8%, rgba(255, 255, 255, .10), transparent 23%);
}

.ban-gate-card > * {
    position: relative;
    z-index: 1;
}

.ban-gate-card h2 {
    margin: 0;
    color: rgba(255, 255, 255, .98);
    font-size: 28px;
    line-height: 1.04;
}

.ban-gate-card p:not(.eyebrow) {
    margin: 14px 0 0;
    color: rgba(235, 232, 255, .78);
    font-size: 14px;
    line-height: 1.55;
}

.ban-gate-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.region-gate-card {
    position: relative;
    width: min(430px, calc(100% - 16px));
    min-height: min(620px, calc(100svh - 86px));
    max-height: calc(100svh - 58px);
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--soft-sheet-radius);
    background:
        radial-gradient(circle at 12% 0%, rgba(126, 232, 255, .13), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(199, 125, 255, .16), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .028)),
        rgba(13, 11, 31, .88);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .46),
        0 0 48px rgba(126, 232, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.region-gate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .07) 42%, transparent 68%),
        radial-gradient(circle at 28% 8%, rgba(255, 255, 255, .08), transparent 24%);
}

.region-gate-card > * {
    position: relative;
    z-index: 1;
}

.region-gate-card h2 {
    margin: 0;
    color: rgba(255, 255, 255, .98);
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: 0;
}

.region-gate-card p:not(.eyebrow) {
    margin: 12px 0 0;
    color: rgba(232, 230, 255, .74);
    font-size: 13px;
    line-height: 1.5;
}

.region-gate-note {
    padding: 10px 12px;
    border: 1px solid rgba(255, 207, 112, .18);
    border-radius: var(--soft-inner-radius);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 207, 112, .12), transparent 38%),
        rgba(255, 207, 112, .045);
    color: rgba(255, 236, 191, .88) !important;
    font-weight: 760;
}

.region-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.region-options button {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--soft-inner-radius);
    color: rgba(250, 248, 255, .86);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .13), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 12px 26px rgba(0, 0, 0, .16);
    cursor: pointer;
    font-weight: 950;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.region-options button:hover,
.region-options button.active {
    border-color: rgba(126, 232, 255, .42);
    background:
        radial-gradient(circle at 20% 0%, rgba(126, 232, 255, .20), transparent 34%),
        linear-gradient(145deg, rgba(199, 125, 255, .16), rgba(126, 232, 255, .065)),
        rgba(255, 255, 255, .055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 24px rgba(126, 232, 255, .14),
        0 14px 30px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}

.region-start-button {
    width: 100%;
    margin-top: 16px;
    flex: 0 0 auto;
}

.region-start-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.25);
}

@media (max-width: 420px) {
    .region-gate {
        padding: 22px 10px;
    }

    .region-gate-card {
        width: min(390px, calc(100% - 10px));
        min-height: min(590px, calc(100svh - 64px));
        max-height: calc(100svh - 36px);
        padding: 18px;
    }

    .region-options {
        grid-template-columns: 1fr;
    }
}

.profile-theme-list {
    display: grid;
    gap: 12px;
}

.profile-theme-option {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--soft-card-radius);
    color: rgba(250, 248, 255, .9);
    text-align: left;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .045);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 14px 30px rgba(0, 0, 0, .16);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.profile-theme-option:hover,
.profile-theme-option.active {
    border-color: rgba(126, 232, 255, .42);
    background:
        radial-gradient(circle at 18% 0%, rgba(126, 232, 255, .18), transparent 34%),
        linear-gradient(145deg, rgba(199, 125, 255, .16), rgba(126, 232, 255, .06)),
        rgba(255, 255, 255, .055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 26px rgba(126, 232, 255, .14),
        0 16px 32px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}

.profile-theme-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 24% 12%, rgba(255, 255, 255, .28), transparent 40%),
        rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 23px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.profile-theme-option strong {
    display: block;
    color: inherit;
    font-size: 15px;
    font-weight: 950;
}

.profile-theme-option small {
    display: block;
    margin-top: 3px;
    color: rgba(238, 232, 255, .66);
    font-size: 12px;
    line-height: 1.35;
}

.profile-theme-option i {
    color: rgba(126, 232, 255, .9);
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

body.theme-light {
    --bg: #f4f7ff;
    --panel: rgba(255, 255, 255, .78);
    --panel-2: rgba(241, 244, 255, .86);
    --text: #171a2b;
    --muted: #69708d;
    --line: rgba(77, 88, 133, .16);
    --accent: #7c55ff;
    --accent-2: #477dff;
    --hot: #ff4fa3;
    --cyan: #0ba9c9;
    --glow: 0 18px 42px rgba(93, 112, 190, .13);
    --soft-glass-border: rgba(89, 100, 152, .16);
    --soft-glass-border-strong: rgba(89, 100, 152, .24);
    --soft-glass-bg:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .82), transparent 30%),
        radial-gradient(circle at 94% 90%, rgba(126, 87, 255, .10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 248, 255, .58)),
        rgba(255, 255, 255, .70);
    --soft-card-shadow:
        0 18px 46px rgba(82, 92, 146, .16),
        0 0 30px rgba(126, 87, 255, .07),
        inset 0 1px 0 rgba(255, 255, 255, .94),
        inset 0 -18px 34px rgba(126, 87, 255, .035);
    background:
        radial-gradient(circle at 12% -4%, rgba(124, 85, 255, .17), transparent 28%),
        radial-gradient(circle at 92% 5%, rgba(11, 169, 201, .13), transparent 25%),
        radial-gradient(circle at 48% 103%, rgba(255, 79, 163, .10), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7ff 52%, #edf2ff 100%);
    color: var(--text);
    color-scheme: light;
}

body.theme-light :is(
    .balance,
    .tabs,
    .tab,
    .home-hero,
    .home-stat,
    .home-news-card,
    .home-friend-requests,
    .home-recommended,
    .home-feed-section,
    .home-social-section,
    .profile-card,
    .profile-main-grid,
    .profile-card-block,
    .profile-settings-drawer,
    .profile-settings-tile,
    .profile-theme-option,
    .profile-city-option,
    .profile-frame-option,
    .profile-badge-toggle,
    .profile-privacy-row,
    .profile-private-toggle,
    .profile-friends-drawer,
    .profile-friend-row,
    .profile-wall,
    .profile-wall-compose-shell,
    .profile-wall-compose,
    .profile-wall-post,
    .profile-wall-comment,
    .profile-wall-repost-card,
    .case-card,
    .case-detail-hero,
    .roulette-panel,
    .result-panel,
    .rewards-panel,
    .reward-row,
    .inventory-item,
    .inventory-card,
    .quest-item,
    .quest-reward-card,
    .pet-panel,
    .pet-stat,
    .pet-action-menu,
    .pet-log-item,
    .casino-panel,
    .casino-card,
    .casino-mode-panel,
    .topup-package,
    .topup-panel,
    .region-gate-card
) {
    border-color: rgba(77, 88, 133, .14);
    color: #171a2b;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .90), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(247, 249, 255, .56)),
        rgba(255, 255, 255, .70);
    box-shadow:
        0 18px 44px rgba(82, 92, 146, .14),
        inset 0 1px 0 rgba(255, 255, 255, .94);
}

body.theme-light :is(.profile-wall, .home-feed-section, .home-social-section, .profile-card) {
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 85, 255, .08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 247, 255, .62)),
        rgba(255, 255, 255, .78);
}

body.theme-light :is(h1, h2, h3, strong, .profile-name, .profile-wall-author strong, .home-news-card h3, .quest-item-title, .case-card h3) {
    color: #15182a;
}

body.theme-light :is(p, small, .profile-muted, .muted, .profile-wall-date, .profile-wall-text, .profile-wall-comment-text, .home-news-card p, .home-feed-intro, .pet-log-item, .quest-item small) {
    color: rgba(44, 50, 80, .68);
}

body.theme-light .eyebrow,
body.theme-light :is(.profile-wall-action, .profile-wall-comment-action, .profile-wall-menu-button, .profile-wall-repost-button) {
    color: #6d47e8;
}

body.theme-light .tab {
    color: rgba(42, 48, 77, .66);
}

body.theme-light .tab.active {
    color: #14172a;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, .92), transparent 36%),
        linear-gradient(145deg, rgba(124, 85, 255, .16), rgba(11, 169, 201, .08)),
        rgba(255, 255, 255, .72);
}

body.theme-light .balance-add-button,
body.theme-light :is(.primary-button, .open-button, .region-start-button) {
    color: #fff;
    background: linear-gradient(135deg, #7557ff, #0aa6c7 54%, #ff5aa8);
    box-shadow: 0 12px 26px rgba(91, 93, 198, .24);
}

body.theme-light :is(.secondary-button, .ghost-button, .profile-settings-button, .profile-metric-button, .casino-mode, .casino-chip-row button, .profile-wall-photo-button) {
    border-color: rgba(77, 88, 133, .14);
    color: #222842;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .78), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(239, 244, 255, .58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 12px 28px rgba(83, 94, 150, .12);
}

body.theme-light :is(.secondary-button:hover, .ghost-button:hover, .profile-settings-button:hover, .casino-mode.active, .casino-chip-row button.active) {
    border-color: rgba(124, 85, 255, .28);
    color: #4d35c9;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .92), transparent 32%),
        linear-gradient(145deg, rgba(124, 85, 255, .14), rgba(11, 169, 201, .08)),
        rgba(255, 255, 255, .76);
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
    border-color: rgba(77, 88, 133, .18);
    color: #171a2b;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: rgba(44, 50, 80, .46);
}

body.theme-light .profile-theme-option.active,
body.theme-light :is(.profile-city-option.active, .profile-frame-option.active, .profile-badge-toggle.enabled) {
    border-color: rgba(124, 85, 255, .30);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .96), transparent 32%),
        linear-gradient(145deg, rgba(124, 85, 255, .15), rgba(11, 169, 201, .07)),
        rgba(255, 255, 255, .82);
}

body.theme-light .profile-theme-icon {
    color: #5a3de0;
    background:
        radial-gradient(circle at 24% 12%, rgba(255, 255, 255, .92), transparent 40%),
        linear-gradient(145deg, rgba(124, 85, 255, .16), rgba(11, 169, 201, .08));
}

body.theme-light .profile-theme-option small {
    color: rgba(44, 50, 80, .62);
}

body.theme-light .profile-theme-option i {
    color: #5a3de0;
}

body.theme-light .roulette-table-wrap,
body.theme-light .roulette-table,
body.theme-light .blackjack-felt {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 18px 38px rgba(36, 58, 94, .16);
}

body.theme-light .profile-wall-menu {
    border-color: rgba(77, 88, 133, .14);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 36px rgba(72, 82, 130, .18);
}

body.theme-light .profile-wall-menu button {
    color: #20263f;
}

body.theme-light .region-gate {
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 85, 255, .14), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(11, 169, 201, .12), transparent 28%),
        rgba(244, 247, 255, .74);
}

body.theme-light .region-gate-note {
    border-color: rgba(201, 142, 35, .20);
    color: rgba(105, 76, 17, .86) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 207, 112, .28), transparent 38%),
        rgba(255, 238, 186, .48);
}

/* Polished light theme. This block intentionally overrides the older dark glass layer. */
body.theme-light {
    --light-ink: #171a2c;
    --light-ink-soft: rgba(35, 42, 76, .72);
    --light-muted: rgba(67, 76, 120, .62);
    --light-border: rgba(86, 96, 152, .18);
    --light-border-strong: rgba(112, 91, 226, .28);
    --light-card:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .96), transparent 34%),
        radial-gradient(circle at 94% 92%, rgba(101, 211, 255, .13), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(239, 244, 255, .66)),
        rgba(255, 255, 255, .78);
    --light-card-warm:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .98), transparent 34%),
        radial-gradient(circle at 92% 96%, rgba(255, 90, 168, .12), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(245, 240, 255, .66)),
        rgba(255, 255, 255, .78);
    --light-card-cool:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, .98), transparent 34%),
        radial-gradient(circle at 92% 92%, rgba(30, 190, 219, .14), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(236, 247, 255, .66)),
        rgba(255, 255, 255, .78);
    --light-shadow:
        0 20px 54px rgba(72, 83, 138, .16),
        0 0 30px rgba(124, 85, 255, .065),
        inset 0 1px 0 rgba(255, 255, 255, .96);
    --light-shadow-soft:
        0 12px 30px rgba(72, 83, 138, .11),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    background:
        radial-gradient(circle at 9% -4%, rgba(123, 92, 255, .20), transparent 30%),
        radial-gradient(circle at 92% 4%, rgba(22, 184, 217, .18), transparent 28%),
        radial-gradient(circle at 78% 70%, rgba(255, 91, 168, .12), transparent 34%),
        linear-gradient(180deg, #fbfcff 0%, #f2f6ff 48%, #eaf0ff 100%) !important;
    color: var(--light-ink) !important;
}

body.theme-light .app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(117, 92, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 92, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 88%);
    pointer-events: none;
}

body.theme-light :is(
    .topup-panel,
    .quest-panel,
    .casino-panel,
    .inventory-panel,
    .pet-panel,
    .profile-panel,
    .profile-flow-panel,
    .profile-pro-panel,
    .user-detail,
    #publicProfileDetail.profile-panel,
    .home-news-card,
    .home-social-section,
    .home-feed-section,
    .rewards-panel,
    .result-panel,
    .roulette-panel
) {
    border-color: var(--light-border) !important;
    background: var(--light-card) !important;
    box-shadow: var(--light-shadow) !important;
    color: var(--light-ink) !important;
}

body.theme-light .home-hero {
    border-color: rgba(112, 91, 226, .24) !important;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 255, 255, .96), transparent 26%),
        radial-gradient(circle at 80% 16%, rgba(116, 91, 255, .24), transparent 32%),
        radial-gradient(circle at 78% 92%, rgba(38, 201, 224, .18), transparent 34%),
        linear-gradient(128deg, rgba(255, 255, 255, .92), rgba(241, 235, 255, .78) 46%, rgba(230, 248, 255, .78)),
        #f7f8ff !important;
    box-shadow:
        0 28px 74px rgba(72, 83, 138, .18),
        0 0 42px rgba(124, 85, 255, .11),
        inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

body.theme-light .home-hero::before {
    background:
        linear-gradient(90deg, rgba(100, 86, 180, .09) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(100, 86, 180, .07) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, .72), transparent 16%),
        radial-gradient(circle at 82% 70%, rgba(124, 85, 255, .10), transparent 22%) !important;
    background-size: 44px 44px, 44px 44px, auto, auto !important;
    opacity: .58 !important;
}

body.theme-light .home-lead {
    color: var(--light-ink-soft) !important;
}

body.theme-light :is(.showcase-card, .home-stats article) {
    border-color: rgba(112, 91, 226, .16) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .96), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(236, 242, 255, .58)),
        rgba(255, 255, 255, .74) !important;
    box-shadow: var(--light-shadow-soft) !important;
    color: var(--light-ink) !important;
}

body.theme-light .showcase-card {
    border-color: rgba(124, 85, 255, .22) !important;
}

body.theme-light .showcase-chip {
    border-color: rgba(255, 255, 255, .88) !important;
    background: linear-gradient(135deg, #ffe083, #7b5cff 58%, #24c8df) !important;
    box-shadow:
        0 18px 36px rgba(124, 85, 255, .22),
        0 0 26px rgba(255, 208, 91, .20) !important;
}

body.theme-light :is(
    .case-card,
    .inventory-item,
    .inventory-empty,
    .quest-card,
    .quest-reward,
    .quest-reward-card,
    .topup-package,
    .profile-card-block,
    .profile-stage,
    .profile-pet-card,
    .profile-social-section,
    .profile-friends-page,
    .profile-friend-results,
    .public-actions,
    .no-pet-card,
    .pet-quests,
    .pet-quest,
    .pet-logs,
    .pet-log-item,
    .blackjack-table,
    .blackjack-felt,
    .casino-hero,
    .casino-bet-row,
    .roulette-selected-row,
    .case-detail-head,
    .welcome-panel,
    .home-news-item,
    .home-person-card,
    .home-feed-item,
    .home-feed-empty,
    .home-feed-wall
) {
    border-color: var(--light-border) !important;
    background: var(--light-card) !important;
    box-shadow: var(--light-shadow-soft) !important;
    color: var(--light-ink) !important;
}

body.theme-light :is(.profile-cover, .profile-pro-cover) {
    border-color: rgba(112, 91, 226, .18) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .82), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(255, 91, 168, .14), transparent 30%),
        radial-gradient(circle at 76% 100%, rgba(32, 199, 223, .15), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(239, 241, 255, .72)),
        rgba(255, 255, 255, .72) !important;
    box-shadow:
        0 20px 48px rgba(72, 83, 138, .13),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.theme-light .profile-cover-glow {
    background:
        radial-gradient(circle at 22% 20%, rgba(124, 85, 255, .22), transparent 28%),
        radial-gradient(circle at 78% 32%, rgba(36, 200, 223, .18), transparent 30%),
        radial-gradient(circle at 58% 90%, rgba(255, 91, 168, .13), transparent 30%) !important;
    opacity: .95 !important;
}

body.theme-light .profile-special-badge {
    border-color: rgba(255, 190, 72, .34) !important;
    background:
        linear-gradient(135deg, rgba(255, 221, 127, .35), rgba(255, 255, 255, .70)),
        rgba(255, 255, 255, .66) !important;
    box-shadow: 0 10px 24px rgba(210, 150, 36, .13) !important;
}

body.theme-light :is(
    .profile-metrics article,
    .profile-metric-button,
    .friend-item,
    .user-row,
    .request-item,
    .profile-person-card,
    .user-card,
    .friend-card,
    .request-card,
    .profile-frame-option,
    .profile-city-option,
    .profile-badge-toggle,
    .profile-privacy-row,
    .profile-private-toggle,
    .profile-settings-tile,
    .profile-theme-option,
    .profile-wall-compose,
    .profile-wall-empty,
    .profile-wall-media-frame,
    .profile-wall-preview,
    .profile-wall-text,
    .topup-empty
) {
    border-color: rgba(86, 96, 152, .16) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .94), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(241, 245, 255, .58)),
        rgba(255, 255, 255, .72) !important;
    box-shadow: var(--light-shadow-soft) !important;
    color: var(--light-ink) !important;
}

body.theme-light .profile-wall {
    border-color: rgba(112, 91, 226, .20) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .92), transparent 32%),
        radial-gradient(circle at 96% 20%, rgba(124, 85, 255, .13), transparent 34%),
        radial-gradient(circle at 72% 100%, rgba(36, 200, 223, .13), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(239, 244, 255, .66)),
        rgba(255, 255, 255, .78) !important;
    box-shadow:
        0 24px 62px rgba(72, 83, 138, .17),
        0 0 34px rgba(124, 85, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .98) !important;
    color: var(--light-ink) !important;
}

body.theme-light .profile-wall::before {
    background:
        radial-gradient(circle at 18% 0%, rgba(124, 85, 255, .11), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(36, 200, 223, .10), transparent 28%) !important;
    opacity: 1 !important;
}

body.theme-light .profile-wall::after {
    background:
        linear-gradient(90deg, rgba(124, 85, 255, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(124, 85, 255, .045) 1px, transparent 1px) !important;
    background-size: 34px 34px !important;
    opacity: .52 !important;
}

body.theme-light .profile-wall-post {
    border-color: rgba(112, 91, 226, .16) !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .98), transparent 28%),
        radial-gradient(circle at 98% 84%, rgba(255, 91, 168, .08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(247, 249, 255, .68)),
        rgba(255, 255, 255, .78) !important;
    box-shadow:
        0 16px 36px rgba(72, 83, 138, .13),
        inset 0 1px 0 rgba(255, 255, 255, .98) !important;
    color: var(--light-ink) !important;
}

body.theme-light .profile-wall-post:nth-child(3n + 2) {
    background: var(--light-card-cool) !important;
}

body.theme-light .profile-wall-post:nth-child(3n + 3) {
    background: var(--light-card-warm) !important;
}

body.theme-light :is(.profile-wall-compose, .profile-wall-comment, .profile-wall-repost-inline, .profile-wall-repost-card) {
    border-color: rgba(86, 96, 152, .15) !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, .96), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .80), rgba(241, 245, 255, .58)),
        rgba(255, 255, 255, .72) !important;
    box-shadow: 0 12px 28px rgba(72, 83, 138, .10), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
    color: var(--light-ink) !important;
}

body.theme-light :is(.profile-wall-text, textarea.profile-wall-text) {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(242, 246, 255, .66)),
        rgba(255, 255, 255, .78) !important;
    color: var(--light-ink) !important;
}

body.theme-light :is(
    .profile-wall-head p,
    .profile-wall-count,
    .profile-wall-author small,
    .profile-wall-post-meta,
    .profile-wall-post-meta small,
    .profile-wall-post-line span,
    .profile-wall-repost-note,
    .profile-wall-repost-text,
    .home-section-title p,
    .home-feed-kicker,
    .home-feed-text,
    .profile-muted,
    .profile-city-line,
    .pet-log-item,
    .inventory-item-copy p
) {
    color: var(--light-muted) !important;
}

body.theme-light :is(
    h1,
    h2,
    h3,
    .home-hero h2,
    .profile-cover-text h2,
    .profile-name,
    .profile-wall-head h3,
    .profile-wall-author strong,
    .profile-wall-post-text,
    .profile-wall-comment-text,
    .profile-wall-repost-post-head strong,
    .case-card h3,
    .inventory-item-copy h3
) {
    color: var(--light-ink) !important;
}

body.theme-light .eyebrow {
    color: #6f4dff !important;
    text-shadow: 0 0 18px rgba(124, 85, 255, .12);
}

body.theme-light .balance {
    border-color: rgba(255, 188, 55, .26) !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .96), transparent 30%),
        radial-gradient(circle at 96% 92%, rgba(255, 205, 80, .24), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 246, 215, .62)),
        rgba(255, 255, 255, .74) !important;
    box-shadow:
        0 16px 36px rgba(164, 124, 36, .14),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light .tabs {
    border-color: rgba(86, 96, 152, .18) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .86), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(235, 242, 255, .58)),
        rgba(255, 255, 255, .74) !important;
    box-shadow:
        0 18px 46px rgba(72, 83, 138, .18),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body.theme-light .tab {
    color: rgba(38, 45, 78, .68) !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-light .tab.active {
    color: #16192c !important;
    background:
        radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .95), transparent 34%),
        linear-gradient(145deg, rgba(124, 85, 255, .16), rgba(36, 200, 223, .10)),
        rgba(255, 255, 255, .70) !important;
    box-shadow:
        0 10px 24px rgba(91, 96, 165, .14),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.theme-light :is(.primary-button, .open-button, .region-start-button, .profile-wall-send) {
    color: #fff !important;
    background: linear-gradient(135deg, #7256ff, #13b6d3 56%, #ff5aa8) !important;
    box-shadow:
        0 14px 30px rgba(96, 93, 199, .24),
        inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

body.theme-light :is(
    .secondary-button,
    .ghost-button,
    .ghost-button.inline,
    .profile-settings-button,
    .profile-metric-button,
    .profile-wall-photo-button,
    .profile-wall-preview button,
    .home-news-meta button,
    .profile-wall-more summary,
    .profile-wall-action,
    .profile-wall-comment-action
) {
    border-color: rgba(86, 96, 152, .16) !important;
    color: #202642 !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .90), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(240, 244, 255, .58)),
        rgba(255, 255, 255, .72) !important;
    box-shadow:
        0 10px 24px rgba(72, 83, 138, .11),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body.theme-light :is(.secondary-button:hover, .ghost-button:hover, .profile-settings-button:hover, .profile-metric-button:hover, .profile-wall-action:hover, .profile-wall-action.active) {
    border-color: rgba(112, 91, 226, .28) !important;
    color: #5b3ee6 !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .96), transparent 32%),
        linear-gradient(145deg, rgba(124, 85, 255, .15), rgba(36, 200, 223, .08)),
        rgba(255, 255, 255, .80) !important;
}

body.theme-light :is(input, textarea, select) {
    border-color: rgba(86, 96, 152, .18) !important;
    color: var(--light-ink) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(242, 246, 255, .68)),
        rgba(255, 255, 255, .78) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

body.theme-light :is(input, textarea)::placeholder {
    color: rgba(55, 65, 105, .46) !important;
}

body.theme-light .profile-wall-more-menu {
    border-color: rgba(86, 96, 152, .16) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .98), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 247, 255, .78)),
        rgba(255, 255, 255, .94) !important;
    box-shadow: 0 18px 42px rgba(72, 83, 138, .20) !important;
}

body.theme-light .profile-wall-more-menu button {
    color: #202642 !important;
}

body.theme-light :is(.blackjack-felt, .roulette-table) {
    border-color: rgba(39, 96, 74, .22) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .24),
        0 18px 38px rgba(36, 58, 94, .16) !important;
}

body.theme-light .region-gate-card {
    border-color: rgba(112, 91, 226, .20) !important;
    background: var(--light-card) !important;
    box-shadow: var(--light-shadow) !important;
}

/* Light theme v2: brighter glass, neon-blue identity, less flat white. */
body.theme-light {
    --light-neon: #00b8ff;
    --light-neon-2: #00e1ff;
    --light-indigo: #6557ff;
    --light-rose: #ff5dac;
    --light-gold: #ffc94f;
    --light-blue-line: rgba(0, 184, 255, .28);
    --light-neon-shadow:
        0 18px 44px rgba(0, 145, 255, .13),
        0 0 34px rgba(0, 225, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .96);
    background:
        linear-gradient(132deg, rgba(0, 184, 255, .18) 0%, rgba(0, 184, 255, 0) 28%),
        linear-gradient(48deg, rgba(101, 87, 255, .14) 0%, rgba(101, 87, 255, 0) 34%),
        linear-gradient(165deg, rgba(255, 93, 172, .10) 0%, rgba(255, 93, 172, 0) 38%),
        linear-gradient(180deg, #fbfdff 0%, #eef7ff 45%, #eef2ff 100%) !important;
}

body.theme-light .app-shell::before {
    background-image:
        linear-gradient(118deg, transparent 0 17%, rgba(0, 184, 255, .10) 17% 17.7%, transparent 17.7% 100%),
        linear-gradient(118deg, transparent 0 45%, rgba(101, 87, 255, .08) 45% 45.6%, transparent 45.6% 100%),
        linear-gradient(rgba(0, 145, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 87, 255, .045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
    opacity: .95;
}

body.theme-light :is(
    .topup-panel,
    .quest-panel,
    .casino-panel,
    .inventory-panel,
    .pet-panel,
    .profile-panel,
    .profile-flow-panel,
    .profile-pro-panel,
    .user-detail,
    #publicProfileDetail.profile-panel,
    .home-news-card,
    .home-social-section,
    .home-feed-section,
    .rewards-panel,
    .result-panel,
    .roulette-panel,
    .profile-wall
) {
    border-color: rgba(0, 184, 255, .22) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(233, 245, 255, .70) 46%, rgba(244, 239, 255, .68)),
        rgba(255, 255, 255, .76) !important;
    box-shadow: var(--light-neon-shadow) !important;
}

body.theme-light .home-hero {
    border-color: rgba(0, 184, 255, .30) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .24), transparent 38%),
        linear-gradient(140deg, rgba(255, 255, 255, .96) 0%, rgba(225, 247, 255, .84) 42%, rgba(239, 235, 255, .86) 100%),
        repeating-linear-gradient(135deg, rgba(0, 184, 255, .055) 0 1px, transparent 1px 18px),
        #f7fbff !important;
    box-shadow:
        0 30px 78px rgba(0, 120, 255, .16),
        0 0 46px rgba(0, 225, 255, .13),
        inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

body.theme-light .home-hero h2 {
    background: linear-gradient(112deg, #11162e, #115dff 46%, #00a6d7 72%, #6a4cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.theme-light .home-lead {
    color: rgba(26, 38, 82, .74) !important;
}

body.theme-light :is(.home-news-card, .home-social-section, .home-feed-section, .profile-card-block, .profile-stage, .profile-pet-card) {
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .13) 0 4px, transparent 4px),
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(236, 248, 255, .66)),
        rgba(255, 255, 255, .76) !important;
}

body.theme-light .home-stats article {
    border-color: rgba(0, 184, 255, .20) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(234, 247, 255, .68)),
        linear-gradient(90deg, rgba(0, 184, 255, .16), transparent 55%) !important;
    box-shadow:
        0 12px 30px rgba(0, 120, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light .home-stats article:nth-child(2) {
    border-color: rgba(101, 87, 255, .22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(241, 238, 255, .70)),
        linear-gradient(90deg, rgba(101, 87, 255, .15), transparent 55%) !important;
}

body.theme-light .home-stats article:nth-child(3) {
    border-color: rgba(255, 93, 172, .22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 239, 248, .68)),
        linear-gradient(90deg, rgba(255, 93, 172, .13), transparent 55%) !important;
}

body.theme-light .home-stats article:nth-child(4) {
    border-color: rgba(255, 201, 79, .26) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 247, 220, .70)),
        linear-gradient(90deg, rgba(255, 201, 79, .18), transparent 55%) !important;
}

body.theme-light :is(.home-stats strong, .balance strong, .profile-rating-value, #profileRatingValue) {
    color: #0b57d0 !important;
    text-shadow: 0 0 20px rgba(0, 184, 255, .14);
}

body.theme-light .profile-cover {
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .20), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(232, 247, 255, .76) 42%, rgba(242, 236, 255, .76)),
        repeating-linear-gradient(135deg, rgba(0, 184, 255, .045) 0 1px, transparent 1px 16px) !important;
}

body.theme-light .profile-avatar {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .84),
        0 0 0 7px rgba(0, 184, 255, .18),
        0 16px 34px rgba(0, 120, 255, .16) !important;
}

body.theme-light .profile-settings-button {
    border-color: rgba(0, 184, 255, .24) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(229, 247, 255, .70)),
        rgba(255, 255, 255, .76) !important;
}

body.theme-light .profile-wall {
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .16), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(233, 247, 255, .70) 42%, rgba(244, 239, 255, .70)),
        repeating-linear-gradient(135deg, rgba(0, 184, 255, .045) 0 1px, transparent 1px 18px),
        rgba(255, 255, 255, .78) !important;
}

body.theme-light .profile-wall-head {
    border-bottom: 1px solid rgba(0, 184, 255, .14);
    padding-bottom: 12px;
}

body.theme-light .profile-wall-head h3 {
    background: linear-gradient(112deg, #17203d, #006dff 54%, #00a9d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.theme-light .profile-wall-post {
    border-color: rgba(0, 184, 255, .18) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .11) 0 5px, transparent 5px),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(239, 249, 255, .72)),
        rgba(255, 255, 255, .82) !important;
    box-shadow:
        0 16px 38px rgba(0, 120, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

body.theme-light .profile-wall-post:nth-child(3n + 2) {
    border-color: rgba(101, 87, 255, .20) !important;
    background:
        linear-gradient(90deg, rgba(101, 87, 255, .11) 0 5px, transparent 5px),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(244, 241, 255, .72)),
        rgba(255, 255, 255, .82) !important;
}

body.theme-light .profile-wall-post:nth-child(3n + 3) {
    border-color: rgba(255, 93, 172, .18) !important;
    background:
        linear-gradient(90deg, rgba(255, 93, 172, .10) 0 5px, transparent 5px),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 241, 248, .72)),
        rgba(255, 255, 255, .82) !important;
}

body.theme-light :is(.profile-wall-comment, .profile-wall-repost-inline, .profile-wall-repost-card) {
    border-color: rgba(0, 184, 255, .15) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(235, 248, 255, .64)),
        rgba(255, 255, 255, .74) !important;
}

body.theme-light :is(.profile-wall-action, .profile-wall-comment-action) {
    color: #095dd8 !important;
}

body.theme-light .profile-wall-like.liked,
body.theme-light .profile-wall-comment-like.liked {
    color: #ff3f9c !important;
    filter: drop-shadow(0 0 12px rgba(255, 63, 156, .20));
}

body.theme-light :is(.primary-button, .open-button, .region-start-button, .profile-wall-send, .balance-add-button) {
    background:
        linear-gradient(135deg, #005dff 0%, #00c8ff 48%, #7b5cff 100%) !important;
    box-shadow:
        0 15px 34px rgba(0, 137, 255, .24),
        0 0 26px rgba(0, 225, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .34) !important;
}

body.theme-light :is(.secondary-button, .ghost-button, .profile-metric-button, .profile-settings-tile, .profile-theme-option, .profile-city-option, .profile-frame-option) {
    border-color: rgba(0, 184, 255, .18) !important;
}

body.theme-light :is(.secondary-button:hover, .ghost-button:hover, .profile-metric-button:hover, .profile-settings-tile:hover, .profile-theme-option:hover, .profile-theme-option.active) {
    border-color: rgba(0, 184, 255, .34) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(224, 247, 255, .72)),
        rgba(255, 255, 255, .80) !important;
    box-shadow:
        0 14px 32px rgba(0, 137, 255, .13),
        0 0 22px rgba(0, 225, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light .tabs {
    border-color: rgba(0, 184, 255, .20) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .11), transparent 46%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(231, 246, 255, .66)),
        rgba(255, 255, 255, .78) !important;
}

body.theme-light .tab.active {
    background:
        linear-gradient(135deg, rgba(0, 184, 255, .18), rgba(101, 87, 255, .12)),
        rgba(255, 255, 255, .78) !important;
    box-shadow:
        0 11px 24px rgba(0, 137, 255, .14),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light .eyebrow {
    background: linear-gradient(90deg, #005dff, #00aee8 58%, #6557ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.theme-light :is(.home-section-title h3, .section-heading h2, .profile-settings-toolbar strong) {
    color: #17203d !important;
    text-shadow: 0 0 20px rgba(0, 184, 255, .10);
}

/* Light theme v3: detail pass and dedicated pet scene. */
body.theme-light .topbar {
    position: relative;
}

body.theme-light .topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 255, .24), rgba(101, 87, 255, .18), transparent);
    pointer-events: none;
}

body.theme-light .section-heading {
    position: relative;
    padding: 8px 2px 2px;
}

body.theme-light .section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 74px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--light-neon), var(--light-indigo), transparent);
    box-shadow: 0 0 18px rgba(0, 184, 255, .20);
}

body.theme-light .home-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 5vw, 56px);
    bottom: clamp(16px, 4vw, 34px);
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .92), transparent 18%),
        conic-gradient(from 210deg, rgba(0, 184, 255, .26), rgba(101, 87, 255, .18), rgba(255, 93, 172, .16), rgba(0, 184, 255, .26));
    filter: blur(.2px);
    opacity: .32;
    pointer-events: none;
}

body.theme-light :is(.home-news-card, .home-social-section, .home-feed-section, .profile-panel, .pet-panel, .inventory-panel, .quest-panel, .casino-panel)::before {
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .18), transparent 36%),
        radial-gradient(circle at 92% 0%, rgba(101, 87, 255, .12), transparent 26%) !important;
}

body.theme-light .home-news-item,
body.theme-light .home-person-card,
body.theme-light .home-feed-item {
    position: relative;
    overflow: hidden;
}

body.theme-light :is(.home-news-item, .home-person-card, .home-feed-item)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .44), transparent 26%),
        linear-gradient(90deg, rgba(0, 184, 255, .06), transparent 44%);
    opacity: .72;
    pointer-events: none;
}

body.theme-light :is(.home-news-item > *, .home-person-card > *, .home-feed-item > *) {
    position: relative;
    z-index: 1;
}

body.theme-light .mini-avatar,
body.theme-light .profile-wall-author .mini-avatar {
    border-color: rgba(255, 255, 255, .88) !important;
    box-shadow:
        0 0 0 3px rgba(0, 184, 255, .16),
        0 10px 22px rgba(0, 120, 255, .14) !important;
}

body.theme-light .profile-wall-post-meta {
    align-items: center;
}

body.theme-light .profile-wall-post-meta small,
body.theme-light .home-news-meta {
    padding: 4px 8px;
    border: 1px solid rgba(0, 184, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .54);
}

body.theme-light .profile-wall-compose {
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .10), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(234, 248, 255, .68)),
        rgba(255, 255, 255, .78) !important;
}

body.theme-light .profile-wall-compose-icon {
    background: linear-gradient(135deg, rgba(0, 184, 255, .22), rgba(101, 87, 255, .14)) !important;
    color: #075bd8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 18px rgba(0, 137, 255, .12);
}

body.theme-light .pet-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .96), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(0, 184, 255, .18), transparent 28%),
        radial-gradient(circle at 20% 100%, rgba(255, 201, 79, .13), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(235, 247, 255, .70) 48%, rgba(245, 239, 255, .70)),
        rgba(255, 255, 255, .78) !important;
}

body.theme-light .pet-panel::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 28px 22px 30px 22px;
    border: 1px solid rgba(0, 184, 255, .12);
    pointer-events: none;
    opacity: .65;
}

body.theme-light .pet-info {
    position: relative;
    z-index: 1;
    padding: 12px 14px 2px;
}

body.theme-light .pet-title-row {
    align-items: flex-start;
}

body.theme-light .pet-info h2 {
    background: linear-gradient(112deg, #151b35, #005dff 52%, #00a8d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.theme-light .pet-info p:not(.eyebrow) {
    color: rgba(38, 50, 88, .68) !important;
}

body.theme-light .rename-pet-button,
body.theme-light .icon-button {
    border-color: rgba(0, 184, 255, .18) !important;
    background:
        radial-gradient(circle at 28% 10%, rgba(255, 255, 255, .92), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(224, 247, 255, .64)) !important;
    color: #0b64df !important;
    box-shadow: 0 10px 22px rgba(0, 137, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.theme-light .pet-stage {
    --pet-sky: rgba(0, 184, 255, .16);
    min-height: 278px;
    border-color: rgba(0, 184, 255, .24) !important;
    border-radius: 30px 24px 32px 24px !important;
    background:
        radial-gradient(ellipse at 50% 86%, rgba(29, 185, 162, .20), transparent 28%),
        radial-gradient(circle at 50% 38%, var(--aura-core), transparent 28%),
        radial-gradient(circle at 50% 40%, var(--aura-mid), transparent 50%),
        radial-gradient(circle at 50% 42%, rgba(0, 225, 255, .12), transparent 62%),
        linear-gradient(180deg, rgba(220, 249, 255, .90) 0%, rgba(246, 251, 255, .82) 48%, rgba(232, 250, 239, .74) 100%),
        repeating-linear-gradient(90deg, rgba(0, 184, 255, .06) 0 1px, transparent 1px 34px) !important;
    box-shadow:
        0 18px 46px rgba(0, 120, 255, .13),
        inset 0 1px 0 rgba(255, 255, 255, .98),
        inset 0 -26px 52px rgba(41, 195, 150, .09) !important;
}

body.theme-light .pet-stage::before {
    inset: auto 18% 28px !important;
    height: 34px !important;
    background:
        radial-gradient(ellipse at center, rgba(54, 74, 120, .20), rgba(54, 74, 120, .02) 64%, transparent 72%) !important;
    filter: blur(7px) !important;
    z-index: 1;
}

body.theme-light .pet-stage::after {
    inset: 14px !important;
    border: 0 !important;
    border-radius: 24px 20px 26px 20px !important;
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, .70) 0 10px, transparent 11px),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .58) 0 14px, transparent 15px),
        linear-gradient(90deg, transparent, rgba(0, 184, 255, .10), transparent),
        repeating-linear-gradient(135deg, rgba(0, 184, 255, .055) 0 1px, transparent 1px 20px) !important;
    color: rgba(0, 116, 210, .12) !important;
    opacity: .85 !important;
    text-shadow: 0 0 18px rgba(0, 184, 255, .18) !important;
    mix-blend-mode: multiply;
}

body.theme-light .pet-stage.is-sleeping {
    background:
        radial-gradient(circle at 50% 38%, rgba(122, 100, 255, .22), transparent 34%),
        radial-gradient(circle at 50% 42%, rgba(0, 184, 255, .12), transparent 58%),
        linear-gradient(180deg, rgba(228, 231, 255, .90), rgba(241, 246, 255, .82) 50%, rgba(233, 243, 255, .76)),
        repeating-linear-gradient(135deg, rgba(101, 87, 255, .055) 0 1px, transparent 1px 20px) !important;
}

body.theme-light .pet-creature {
    filter: drop-shadow(0 18px 24px rgba(0, 116, 210, .12));
}

body.theme-light :is(.pet-image, .pet-svg, .parrot-layer-art, .pig-layer-art, .pig-full-art, .pet-sleep-art, .dragon-layer-art, .rhino-layer-art, .rhino-full-art, .cat-layer-art) {
    filter:
        drop-shadow(0 18px 18px rgba(34, 58, 110, .18))
        drop-shadow(0 0 18px rgba(0, 184, 255, .14)) !important;
}

body.theme-light .sleep-stream span {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .82), transparent 42%),
        rgba(101, 87, 255, .12) !important;
    color: rgba(63, 72, 150, .52) !important;
    box-shadow: 0 0 20px rgba(101, 87, 255, .12);
}

body.theme-light .pet-xp,
body.theme-light .pet-stats,
body.theme-light .pet-actions,
body.theme-light .pet-quests,
body.theme-light .pet-logs {
    position: relative;
    z-index: 1;
}

body.theme-light .pet-xp {
    border-color: rgba(0, 184, 255, .18) !important;
    border-radius: 22px 18px 24px 18px !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .10), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(235, 248, 255, .66)) !important;
    box-shadow: 0 12px 28px rgba(0, 120, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.theme-light .pet-xp-bar,
body.theme-light .stat-bar {
    background:
        linear-gradient(180deg, rgba(212, 224, 245, .72), rgba(245, 248, 255, .88)) !important;
    box-shadow: inset 0 1px 3px rgba(62, 77, 120, .16) !important;
}

body.theme-light .pet-xp-bar i,
body.theme-light .stat-bar i {
    background: linear-gradient(90deg, #005dff, #00c8ff, #7b5cff) !important;
    box-shadow: 0 0 16px rgba(0, 184, 255, .28) !important;
}

body.theme-light .stat-row {
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(0, 184, 255, .12);
    border-radius: 18px 15px 20px 15px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(237, 248, 255, .58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

body.theme-light .stat-row span {
    color: rgba(33, 48, 86, .66) !important;
    font-weight: 850;
}

body.theme-light .stat-row strong {
    color: #0b57d0 !important;
}

body.theme-light .pet-actions .secondary-button {
    border-color: rgba(0, 184, 255, .18) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(229, 247, 255, .66)),
        rgba(255, 255, 255, .76) !important;
}

body.theme-light .pet-actions .secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 184, 255, .32) !important;
    box-shadow:
        0 14px 30px rgba(0, 137, 255, .14),
        0 0 20px rgba(0, 225, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.theme-light .pet-actions.sub-menu .secondary-button strong {
    color: #005dff !important;
}

body.theme-light .pet-log-item,
body.theme-light .pet-quest {
    border-color: rgba(0, 184, 255, .14) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .08), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(240, 248, 255, .62)) !important;
}

body.theme-light .pet-logs h3,
body.theme-light .pet-quests-head h3 {
    color: #162040 !important;
}

body.theme-light .ui-badge {
    background: linear-gradient(135deg, #005dff, #00c8ff) !important;
    box-shadow: 0 0 16px rgba(0, 184, 255, .32) !important;
}

/* Light theme v4: profile pet preview, repost readability and friend rows. */
body.theme-light .profile-pet-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(0, 184, 255, .24) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .14), transparent 38%),
        radial-gradient(circle at 24% 28%, rgba(0, 225, 255, .17), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(101, 87, 255, .13), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(232, 248, 255, .70) 48%, rgba(244, 239, 255, .70)) !important;
}

body.theme-light .profile-pet-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px 20px 26px 20px;
    border: 1px solid rgba(0, 184, 255, .10);
    pointer-events: none;
}

body.theme-light .profile-pet-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(0, 184, 255, .20);
    border-radius: 30px 24px 32px 24px;
    background:
        radial-gradient(ellipse at 50% 84%, rgba(45, 198, 156, .18), transparent 28%),
        radial-gradient(circle at 50% 38%, rgba(0, 184, 255, .20), transparent 33%),
        radial-gradient(circle at 50% 44%, rgba(101, 87, 255, .10), transparent 56%),
        linear-gradient(180deg, rgba(220, 249, 255, .92) 0%, rgba(248, 252, 255, .86) 52%, rgba(234, 250, 240, .76) 100%) !important;
    box-shadow:
        0 18px 42px rgba(0, 120, 255, .12),
        inset 0 1px 0 rgba(255, 255, 255, .98),
        inset 0 -24px 48px rgba(41, 195, 150, .08) !important;
}

body.theme-light .profile-pet-visual::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: -1;
    border-radius: 24px 20px 26px 20px;
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, .70) 0 10px, transparent 11px),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .58) 0 14px, transparent 15px),
        repeating-linear-gradient(135deg, rgba(0, 184, 255, .055) 0 1px, transparent 1px 20px);
    opacity: .9;
    pointer-events: none;
}

body.theme-light .profile-pet-visual::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 28px;
    z-index: -1;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(54, 74, 120, .18), rgba(54, 74, 120, .02) 64%, transparent 72%);
    filter: blur(7px);
    pointer-events: none;
}

body.theme-light .profile-pet-card .profile-stage-copy {
    position: relative;
    z-index: 1;
}

body.theme-light .profile-pet-card .profile-stage-copy h3 {
    background: linear-gradient(112deg, #151b35, #005dff 52%, #00a8d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.theme-light .profile-pet-card .profile-stage-copy p {
    color: rgba(32, 44, 82, .76) !important;
}

body.theme-light .profile-wall-repost-text {
    color: #15182a !important;
    font-weight: 760;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .58);
}

body.theme-light .profile-wall-repost-inline .profile-wall-post-text,
body.theme-light .profile-wall-repost-inline .profile-wall-comment-text {
    color: #15182a !important;
    font-weight: 760;
}

body.theme-light .profile-wall-repost-note {
    color: rgba(27, 38, 78, .82) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .10), transparent 44%),
        rgba(255, 255, 255, .64) !important;
}

body.theme-light .profile-wall-repost-note button {
    color: #005dff !important;
    text-decoration-color: rgba(0, 184, 255, .45) !important;
}

body.theme-light .profile-wall-repost-note small,
body.theme-light .profile-wall-repost-post-head > small {
    color: rgba(44, 56, 96, .62) !important;
}

body.theme-light .profile-wall-repost-missing {
    color: rgba(44, 56, 96, .58) !important;
}

body.theme-light .profile-person-row {
    border-color: rgba(0, 184, 255, .18) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .08), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(235, 248, 255, .64)),
        rgba(255, 255, 255, .76) !important;
    box-shadow:
        0 10px 24px rgba(0, 120, 255, .09),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body.theme-light .profile-person-row.active {
    border-color: rgba(0, 184, 255, .34) !important;
    background:
        linear-gradient(90deg, rgba(0, 184, 255, .14), transparent 46%),
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(226, 247, 255, .70)) !important;
}

body.theme-light .profile-person-open {
    color: #15182a !important;
}

body.theme-light .profile-person-open strong {
    color: #15182a !important;
    font-weight: 950;
}

body.theme-light .profile-person-open small {
    color: rgba(42, 52, 91, .68) !important;
}

body.theme-light .profile-person-actions :is(button, .friend-status-pill, .ghost-button, .secondary-button) {
    border-color: rgba(0, 184, 255, .20) !important;
    color: #075bd8 !important;
    background:
        radial-gradient(circle at 28% 8%, rgba(255, 255, 255, .92), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(224, 247, 255, .66)) !important;
    box-shadow: 0 8px 18px rgba(0, 137, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

.home-feed-refresh-button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(126, 232, 255, .92) !important;
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 14px rgba(126, 232, 255, .24);
}

.home-feed-refresh-button:disabled {
    opacity: .58;
    cursor: wait;
}

.home-feed-old-button {
    width: auto !important;
    min-width: 168px;
    margin-top: 12px !important;
    padding: 0 16px !important;
}

body.theme-light .home-feed-refresh-button,
body.theme-light .home-feed-old-button {
    color: #075bd8 !important;
}

body.theme-light .home-feed-refresh-button {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 12px rgba(0, 137, 255, .18);
}

body.theme-light .home-feed-old-button {
    border-color: rgba(0, 184, 255, .24) !important;
    background:
        radial-gradient(circle at 28% 8%, rgba(255, 255, 255, .92), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(224, 247, 255, .68)) !important;
    box-shadow:
        0 10px 22px rgba(0, 137, 255, .13),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

/* Feed and wall polish pass. */
.home-feed-section .home-section-title {
    justify-content: space-between;
    gap: 10px;
}

.home-feed-section .home-section-title > div {
    flex: 1 1 auto;
}

.home-feed-refresh-button {
    flex: 0 0 auto;
    margin-left: auto !important;
}

.home-feed-storyline {
    margin-top: 2px;
    transform: translateY(1px);
}

.home-feed-wall.profile-wall,
.profile-wall-list,
.profile-wall-post,
.profile-wall-comment {
    position: relative;
}

.home-feed-wall.has-open-menu,
.profile-wall-post.has-open-menu,
.profile-wall-comment.has-open-menu {
    z-index: 260 !important;
}

.profile-wall-post-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 7px !important;
}

.profile-wall-post-head > .profile-wall-author {
    grid-column: auto;
    max-width: 100%;
}

.profile-wall-post-head > .profile-wall-author :is(.profile-wall-author-link, span:last-child) {
    min-width: 0;
}

.profile-wall-post-head > .profile-wall-author :is(strong, small) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-wall-post-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    text-align: left;
}

.profile-wall-post-meta > span,
.profile-wall-repost-post-head > small {
    grid-column: auto;
    min-width: 0;
    overflow: hidden;
    color: rgba(222, 224, 255, .58) !important;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-wall-post-meta > .profile-wall-more,
.profile-wall-post-head > .profile-wall-more {
    grid-column: auto;
    justify-self: end;
}

.profile-wall-more[open] {
    z-index: 320 !important;
}

.profile-wall-more-menu {
    z-index: 340 !important;
}

.profile-friends-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.profile-friends-toolbar .ghost-button,
.profile-friends-toolbar .secondary-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
}

body.theme-light .home-feed-empty.inline {
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-light .home-feed-empty.inline strong {
    color: rgba(32, 42, 78, .72) !important;
}

body.theme-light .home-feed-empty.inline p {
    color: rgba(42, 52, 91, .54) !important;
}

body.theme-light .profile-wall-post-meta > span,
body.theme-light .profile-wall-repost-post-head > small {
    color: rgba(44, 56, 96, .58) !important;
}

/* Support and admin panel. */
.support-panel,
.support-compose,
.support-chat-layout,
.admin-login-card,
.admin-panel,
.admin-search,
.admin-user-detail,
.admin-grid > div,
.admin-feed-row,
.admin-chat-card {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px 20px 26px 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .14), transparent 32%),
        radial-gradient(circle at 94% 94%, rgba(199, 125, 255, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .026)),
        rgba(11, 9, 26, .64);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.support-panel,
.support-compose,
.support-chat-layout,
.admin-login-card,
.admin-panel {
    padding: 14px;
}

.support-history {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.support-history > div,
.support-chat-tabs,
.support-chat-window {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    padding: 12px;
}

.support-history h4,
.admin-grid h4 {
    margin: 0 0 10px;
    color: rgba(247, 243, 255, .94);
    font-size: 13px;
    letter-spacing: 0;
}

.support-row {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    color: inherit;
    text-align: left;
}

.support-row strong,
.admin-feed-row strong,
.admin-chat-card strong {
    display: block;
    color: rgba(255, 255, 255, .95);
    font-size: 13px;
}

.support-row small,
.support-empty,
.admin-feed-row small,
.admin-chat-card small,
.admin-search small,
.admin-user-head small,
.admin-user-row small {
    color: rgba(228, 219, 255, .66);
    font-size: 11px;
}

.support-empty {
    margin: 8px 0 0;
}

.support-compose {
    display: grid;
    gap: 12px;
}

.support-compose label,
.support-chat-input,
.admin-search-row,
.admin-user-actions {
    display: grid;
    gap: 8px;
}

.support-compose label span {
    color: rgba(245, 240, 255, .76);
    font-size: 12px;
    font-weight: 800;
}

.support-compose select,
.support-compose textarea,
.support-chat-input textarea,
.admin-login-card input,
.admin-search-row input,
.admin-user-actions input,
.admin-chat-card textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .94);
    outline: none;
    padding: 12px;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.support-compose textarea,
.support-chat-input textarea,
.admin-chat-card textarea {
    min-height: 96px;
    resize: vertical;
}

.support-chat-layout {
    display: grid;
    grid-template-columns: minmax(120px, .9fr) minmax(0, 1.5fr);
    gap: 12px;
}

.support-chat-tabs {
    display: grid;
    align-content: start;
    gap: 8px;
}

.support-chat-tab {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    color: inherit;
    padding: 11px;
    text-align: left;
}

.support-chat-tab.active,
.support-chat-tab:hover,
.admin-user-row:hover {
    border-color: rgba(186, 113, 255, .38);
    background:
        linear-gradient(135deg, rgba(186, 113, 255, .16), rgba(0, 216, 255, .08)),
        rgba(255, 255, 255, .07);
}

.support-chat-tab.new {
    color: #f4e7ff;
    font-weight: 900;
}

.support-chat-window {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.support-chat-messages {
    display: grid;
    align-content: start;
    gap: 9px;
    max-height: min(360px, 52vh);
    overflow: auto;
    padding-right: 4px;
}

.support-bubble {
    width: min(88%, 520px);
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px 18px 18px 8px;
    background: rgba(255, 255, 255, .07);
}

.support-bubble.admin {
    justify-self: end;
    border-radius: 18px 18px 8px 18px;
    background:
        linear-gradient(135deg, rgba(178, 108, 255, .24), rgba(0, 216, 255, .08)),
        rgba(255, 255, 255, .07);
}

.support-bubble p,
.admin-feed-row p,
.admin-chat-card p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.45;
}

.admin-login-card {
    display: grid;
    gap: 12px;
    text-align: center;
}

.admin-login-card > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(190, 122, 255, .24), rgba(255, 255, 255, .08)),
        rgba(255, 255, 255, .06);
    font-size: 26px;
}

.admin-login-card h3,
.admin-login-card p {
    margin: 0;
}

.admin-panel {
    display: grid;
    gap: 14px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.admin-stat {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 34%),
        rgba(255, 255, 255, .055);
    text-align: center;
}

.admin-stat span {
    display: block;
    font-size: 20px;
}

.admin-stat strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 20px;
}

.admin-stat small {
    color: rgba(228, 219, 255, .68);
}

.admin-search {
    padding: 13px;
}

.admin-search > div:first-child {
    margin-bottom: 10px;
}

.admin-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    color: inherit;
    padding: 10px;
    text-align: left;
}

.admin-user-row.banned {
    border-color: rgba(255, 82, 120, .26);
}

.admin-user-row i {
    color: rgba(255, 255, 255, .72);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.admin-user-detail {
    padding: 13px;
}

.admin-user-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.admin-user-head em {
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    padding: 6px 9px;
}

.admin-user-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.admin-user-facts span {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(248, 245, 255, .86);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
}

.admin-user-actions {
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    align-items: center;
}

.admin-raw {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}

.admin-raw summary {
    cursor: pointer;
    padding: 11px 12px;
    color: rgba(255, 255, 255, .84);
    font-weight: 900;
}

.admin-raw pre {
    max-height: 260px;
    margin: 0;
    overflow: auto;
    padding: 12px;
    color: rgba(230, 222, 255, .84);
    font-size: 11px;
    white-space: pre-wrap;
}

.admin-log {
    margin-top: 12px;
}

.admin-log ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(240, 235, 255, .80);
}

.admin-log li + li {
    margin-top: 5px;
}

.admin-log span {
    margin-right: 6px;
    color: rgba(207, 196, 255, .62);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-grid > div {
    padding: 12px;
    min-width: 0;
}

.admin-feed-row,
.admin-chat-card {
    padding: 11px;
    margin-top: 8px;
}

.admin-chat-card {
    display: grid;
    gap: 9px;
}

.admin-chat-card > button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.danger {
    color: #ff85a5 !important;
}

@media (max-width: 720px) {
    .support-history,
    .support-chat-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-search-row,
    .admin-user-actions {
        grid-template-columns: 1fr;
    }

    .admin-user-actions .inline,
    .admin-row-actions .inline {
        width: 100%;
    }
}

body.theme-light :is(.support-panel, .support-compose, .support-chat-layout, .admin-login-card, .admin-panel, .admin-search, .admin-user-detail, .admin-grid > div, .admin-feed-row, .admin-chat-card) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        radial-gradient(circle at 94% 94%, rgba(101, 87, 255, .10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .68)),
        rgba(255, 255, 255, .82) !important;
    box-shadow:
        0 16px 38px rgba(0, 120, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light :is(.support-history > div, .support-chat-tabs, .support-chat-window, .support-row, .support-chat-tab, .admin-stat, .admin-user-row, .admin-raw, .admin-user-facts span) {
    border-color: rgba(0, 184, 255, .14) !important;
    background: rgba(255, 255, 255, .62) !important;
}

body.theme-light :is(.support-history h4, .admin-grid h4, .support-row strong, .admin-feed-row strong, .admin-chat-card strong, .admin-stat strong, .admin-user-head strong) {
    color: #17203d !important;
}

body.theme-light :is(.support-row small, .support-empty, .admin-feed-row small, .admin-chat-card small, .admin-search small, .admin-user-head small, .admin-user-row small, .admin-stat small) {
    color: rgba(23, 32, 61, .62) !important;
}

body.theme-light :is(.support-compose select, .support-compose textarea, .support-chat-input textarea, .admin-login-card input, .admin-search-row input, .admin-user-actions input, .admin-chat-card textarea) {
    border-color: rgba(0, 184, 255, .18) !important;
    background: rgba(255, 255, 255, .78) !important;
    color: #17203d !important;
}

body.theme-light :is(.support-bubble, .admin-raw pre, .admin-log ul, .admin-chat-card p, .admin-feed-row p, .admin-user-facts span) {
    color: rgba(23, 32, 61, .78) !important;
}

body.theme-light .support-bubble.admin {
    background:
        linear-gradient(135deg, rgba(0, 184, 255, .16), rgba(101, 87, 255, .12)),
        rgba(255, 255, 255, .76) !important;
}

/* Full profile sub-pages for support and admin. */
.profile-standalone-page {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 4px 0 24px;
}

.profile-panel.profile-panel-standalone {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-panel.profile-panel-standalone > :not(.profile-standalone-page) {
    display: none !important;
}

.profile-standalone-page.hidden {
    display: none;
}

.profile-standalone-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px 20px 26px 20px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .026)),
        rgba(12, 10, 28, .66);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.profile-standalone-toolbar h2 {
    margin: 0;
}

.profile-full-content {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.profile-settings-panel,
.profile-friends-page {
    padding-bottom: 18px !important;
}

.admin-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-section-head strong {
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
}

.admin-section-back {
    margin: 0 !important;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .75fr);
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(199, 125, 255, .20), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(85, 241, 255, .12), transparent 34%),
        rgba(255, 255, 255, .045);
}

.admin-hero h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
}

.admin-hero p:not(.eyebrow) {
    color: rgba(232, 224, 255, .72);
    line-height: 1.45;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-section-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title count"
        "icon text count";
    align-items: center;
    gap: 4px 10px;
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px 18px 24px 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)),
        rgba(255, 255, 255, .045);
    color: inherit;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.admin-section-tile span {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(199, 125, 255, .22), rgba(85, 241, 255, .08)),
        rgba(255, 255, 255, .07);
    font-size: 21px;
}

.admin-section-tile strong {
    grid-area: title;
    color: rgba(255, 255, 255, .95);
    font-size: 14px;
}

.admin-section-tile small {
    grid-area: text;
    color: rgba(224, 215, 255, .62);
    font-size: 11px;
    line-height: 1.35;
}

.admin-section-tile em {
    grid-area: count;
    min-width: 34px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-style: normal;
    font-weight: 950;
    text-align: center;
}

.admin-section-page {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.admin-user-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.admin-user-related > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.admin-user-related h4 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.support-chat-tab small {
    display: block;
    margin-top: 3px;
}

@media (max-width: 720px) {
    .profile-standalone-toolbar {
        grid-template-columns: 1fr;
    }

    .profile-standalone-toolbar .ghost-button {
        width: fit-content;
    }

    .admin-hero,
    .admin-section-grid,
    .admin-user-related {
        grid-template-columns: 1fr;
    }
}

body.theme-light :is(.profile-standalone-toolbar, .admin-hero, .admin-section-tile, .admin-user-related > div) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .68)),
        rgba(255, 255, 255, .82) !important;
}

body.theme-light :is(.profile-standalone-toolbar h2, .admin-section-head strong, .admin-hero h3, .admin-section-tile strong, .admin-section-tile em, .admin-user-related h4) {
    color: #17203d !important;
}

body.theme-light :is(.admin-hero p:not(.eyebrow), .admin-section-tile small) {
    color: rgba(23, 32, 61, .62) !important;
}

/* Support/admin full-window polish. */
.support-messenger-page,
.admin-panel {
    width: 100%;
    min-height: calc(100vh - 190px);
    border-radius: 28px 24px 30px 24px;
}

.support-messenger-page {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .13), transparent 32%),
        radial-gradient(circle at 92% 100%, rgba(85, 241, 255, .10), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(10, 8, 24, .70);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .26),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.support-messenger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-messenger-head.chat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.support-messenger-head h3 {
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: 18px;
}

.support-chat-list,
.admin-chat-list {
    display: grid;
    gap: 9px;
}

.support-chat-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
        rgba(255, 255, 255, .045);
    color: inherit;
    text-align: left;
}

.support-chat-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(199, 125, 255, .25), rgba(85, 241, 255, .10)),
        rgba(255, 255, 255, .06);
    font-weight: 900;
}

.support-chat-avatar .avatar-img,
.support-chat-avatar .mini-avatar {
    width: 100%;
    height: 100%;
}

.support-chat-list-item strong {
    display: block;
    color: rgba(255, 255, 255, .94);
    font-size: 14px;
}

.support-chat-list-item small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(226, 217, 255, .64);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-chat-state {
    width: 22px;
    color: rgba(185, 170, 220, .78);
    font-style: normal;
    font-size: 20px;
    text-align: center;
}

.support-chat-state.open {
    color: #58ffb3;
    text-shadow: 0 0 14px rgba(88, 255, 179, .34);
}

.support-chat-state.closed {
    color: rgba(210, 203, 230, .52);
}

.support-chat-open .support-chat-window {
    min-height: calc(100vh - 330px);
}

.support-chat-open .support-chat-messages {
    max-height: none;
    min-height: min(460px, 48vh);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(199, 125, 255, .10), transparent 36%),
        rgba(255, 255, 255, .035);
}

.support-chat-open .support-chat-input {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.support-chat-open .support-chat-input textarea {
    min-height: 48px;
    max-height: 130px;
    border-radius: 18px;
}

.admin-panel {
    padding: 14px;
}

.admin-section-grid {
    grid-template-columns: 1fr;
}

.admin-hero {
    grid-template-columns: 1fr;
}

.admin-list-count {
    color: rgba(225, 216, 255, .70);
    font-size: 12px;
    font-weight: 800;
}

.admin-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-detail-toolbar strong {
    color: rgba(255, 255, 255, .90);
}

.admin-list-group {
    display: grid;
    gap: 9px;
}

.admin-list-group + .admin-list-group {
    margin-top: 10px;
}

.admin-list-group h4 {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.admin-work-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
        rgba(255, 255, 255, .045);
}

.admin-work-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-work-main strong {
    display: block;
    color: rgba(255, 255, 255, .94);
}

.admin-work-main p {
    margin-top: 3px;
    color: rgba(238, 231, 255, .78);
    line-height: 1.4;
}

.admin-work-main small {
    display: block;
    margin-top: 4px;
    color: rgba(224, 215, 255, .60);
}

.admin-work-row .admin-row-actions {
    justify-content: flex-end;
}

.admin-chat-detail .support-messenger-head.chat {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

@media (max-width: 720px) {
    .support-messenger-head,
    .support-messenger-head.chat,
    .admin-chat-detail .support-messenger-head.chat {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .support-messenger-head {
        display: grid;
    }

    .support-messenger-head .inline,
    .support-chat-open .support-chat-input,
    .support-chat-open .support-chat-input .primary-button {
        width: 100%;
    }

    .support-chat-open .support-chat-input {
        grid-template-columns: 1fr;
    }

    .admin-work-row .admin-row-actions {
        justify-content: stretch;
    }
}

body.theme-light :is(.support-messenger-page, .admin-work-row, .support-chat-list-item) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .68)),
        rgba(255, 255, 255, .82) !important;
}

body.theme-light :is(.support-messenger-head h3, .support-chat-list-item strong, .admin-detail-toolbar strong, .admin-list-group h4, .admin-work-main strong) {
    color: #17203d !important;
}

body.theme-light :is(.support-chat-list-item small, .admin-list-count, .admin-work-main small, .admin-work-main p) {
    color: rgba(23, 32, 61, .62) !important;
}

/* Admin panel v2: standalone pages, compact queues, messenger chat. */
.admin-standalone-page,
.admin-user-detail {
    width: 100%;
    min-height: calc(100vh - 188px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px 24px 30px 24px;
    background:
        radial-gradient(circle at 14% 0%, rgba(198, 122, 255, .16), transparent 34%),
        radial-gradient(circle at 94% 92%, rgba(82, 241, 255, .10), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .028)),
        rgba(10, 8, 24, .72);
    box-shadow:
        0 24px 58px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.admin-user-detail {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 14px;
}

.admin-detail-toolbar {
    padding: 2px 2px 4px;
}

.admin-user-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(135deg, rgba(178, 108, 255, .18), rgba(0, 216, 255, .07)),
        rgba(255, 255, 255, .052);
}

.admin-user-avatar {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(199, 125, 255, .32), rgba(85, 241, 255, .12)),
        rgba(255, 255, 255, .08);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: 22px;
    font-weight: 900;
}

.admin-user-avatar img,
.admin-user-avatar span {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-avatar span {
    display: grid;
    place-items: center;
}

.admin-user-hero h3 {
    margin: 1px 0 4px;
    color: rgba(255, 255, 255, .96);
    font-size: 22px;
    line-height: 1.1;
}

.admin-user-hero small {
    color: rgba(228, 219, 255, .66);
}

.admin-user-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.admin-user-metrics article {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .074), rgba(255, 255, 255, .026)),
        rgba(255, 255, 255, .042);
}

.admin-user-metrics span {
    display: block;
    margin-bottom: 4px;
    color: rgba(224, 215, 255, .58);
    font-size: 11px;
    font-weight: 800;
}

.admin-user-metrics strong {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .93);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-section {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .064), rgba(255, 255, 255, .024)),
        rgba(255, 255, 255, .036);
}

.admin-user-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    color: rgba(255, 255, 255, .91);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}

.admin-user-section summary::-webkit-details-marker {
    display: none;
}

.admin-user-section summary::after {
    content: "⌄";
    color: rgba(229, 218, 255, .58);
    font-size: 16px;
    transform: translateY(-1px);
}

.admin-user-section[open] summary::after {
    transform: rotate(180deg);
}

.admin-user-section > :not(summary) {
    margin: 0 12px 12px;
}

.admin-user-actions {
    padding-top: 0;
}

.admin-mini-list,
.admin-user-related.compact {
    display: grid;
    gap: 8px;
}

.admin-user-related.compact {
    grid-template-columns: 1fr;
}

.admin-user-related.compact > div {
    margin: 0;
}

.admin-mini-row {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
}

.admin-mini-row strong {
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
}

.admin-mini-row p {
    margin: 0;
    overflow-wrap: anywhere;
    color: rgba(232, 224, 255, .66);
    font-size: 12px;
    line-height: 1.35;
}

.admin-raw pre {
    max-height: 340px;
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .20);
    color: rgba(245, 241, 255, .80);
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.admin-processed-list {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background: rgba(255, 255, 255, .034);
}

.admin-processed-list summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.admin-processed-list summary::-webkit-details-marker {
    display: none;
}

.admin-processed-list summary span {
    color: rgba(255, 255, 255, .90);
    font-size: 13px;
    font-weight: 900;
}

.admin-processed-list summary em,
.admin-processed-list summary b {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(227, 218, 255, .72);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-processed-list summary em {
    min-width: 30px;
    padding: 6px 8px;
    text-align: center;
}

.admin-processed-list summary b {
    padding: 6px 10px;
}

.admin-processed-list[open] summary b {
    font-size: 0;
}

.admin-processed-list[open] summary b::after {
    content: "Свернуть";
    font-size: 11px;
}

.admin-processed-list > .admin-work-row,
.admin-processed-list > .support-chat-list-item,
.admin-processed-list > .support-empty {
    margin: 0 10px 10px;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-status-stamp {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 150px;
}

.admin-status-stamp strong {
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(88, 255, 179, .20);
    border-radius: 999px;
    background: rgba(88, 255, 179, .08);
    color: #8fffd0;
    font-size: 12px;
    font-weight: 900;
}

.admin-status-stamp small {
    color: rgba(224, 215, 255, .58);
    font-size: 11px;
    text-align: right;
}

.support-chat-list-item.admin.compact {
    min-height: auto;
    padding: 9px 10px;
    border-radius: 17px;
}

.support-chat-list-item.admin.compact .support-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.support-chat-list-item.admin.compact strong {
    font-size: 13px;
}

.support-chat-list-item.admin.compact small {
    margin-top: 2px;
    font-size: 11px;
}

.admin-chat-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-chat-title .support-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
}

.admin-chat-closed-pill,
.support-chat-ended-notice {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(232, 224, 255, .74);
    font-size: 12px;
    font-weight: 900;
}

.admin-chat-closed-pill {
    padding: 9px 12px;
}

.support-chat-ended-notice {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    text-align: center;
}

.admin-chat-detail .support-chat-window {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: calc(100vh - 292px);
}

.admin-chat-detail .support-chat-messages {
    align-content: end;
    min-height: min(520px, 54vh);
    overflow-y: auto;
}

.support-bubble.system {
    justify-self: center;
    width: fit-content;
    max-width: min(92%, 440px);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 215, 92, .16), rgba(255, 255, 255, .06)),
        rgba(255, 255, 255, .055);
    text-align: center;
}

.support-bubble.system p {
    margin: 0;
    color: rgba(255, 243, 200, .92);
    font-size: 12px;
    font-weight: 900;
}

.support-bubble.system small {
    display: none;
}

@media (max-width: 720px) {
    .admin-user-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-actions {
        grid-template-columns: 1fr;
    }

    .admin-status-stamp {
        justify-items: stretch;
        width: 100%;
    }

    .admin-status-stamp small {
        text-align: left;
    }
}

body.theme-light :is(.admin-standalone-page, .admin-user-detail, .admin-user-hero, .admin-user-metrics article, .admin-user-section, .admin-mini-row, .admin-processed-list, .support-chat-ended-notice, .admin-chat-closed-pill) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .68)),
        rgba(255, 255, 255, .82) !important;
    box-shadow: var(--light-shadow-soft, 0 12px 30px rgba(72, 83, 138, .11)) !important;
}

body.theme-light :is(.admin-user-hero h3, .admin-user-metrics strong, .admin-user-section summary, .admin-mini-row strong, .admin-processed-list summary span, .support-bubble.system p) {
    color: #17203d !important;
}

body.theme-light :is(.admin-user-hero small, .admin-user-metrics span, .admin-mini-row p, .admin-processed-list summary em, .admin-processed-list summary b, .admin-status-stamp small, .support-chat-ended-notice, .admin-chat-closed-pill) {
    color: rgba(23, 32, 61, .62) !important;
}

body.theme-light .admin-status-stamp strong {
    border-color: rgba(0, 164, 118, .22) !important;
    background: rgba(0, 164, 118, .08) !important;
    color: #04785d !important;
}

body.theme-light .admin-raw pre {
    background: rgba(255, 255, 255, .74) !important;
    color: rgba(23, 32, 61, .78) !important;
}

/* Admin/user support v3. */
.profile-panel.profile-panel-standalone {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
}

.profile-panel.profile-panel-standalone.profile-pro-panel,
.profile-panel.profile-panel-standalone.profile-flow-panel {
    overflow: visible !important;
}

.profile-panel.profile-panel-standalone::before {
    display: none !important;
}

.profile-panel.profile-panel-standalone #profileSupportPage .profile-standalone-toolbar {
    display: none;
}

.profile-full-content,
.admin-panel,
.admin-section-page,
.admin-standalone-page,
.admin-user-detail,
.support-messenger-page {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.support-chat-home,
.support-user-chat-page {
    min-height: calc(100vh - 168px);
    border-radius: 30px;
}

.support-messenger-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.support-close-page,
.support-new-chat-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .92);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .14);
    font-size: 20px;
    font-weight: 900;
}

.support-new-chat-button {
    color: #1b1530;
    background:
        linear-gradient(135deg, rgba(126, 232, 255, .98), rgba(199, 125, 255, .88)),
        rgba(255, 255, 255, .10);
}

.support-chat-list-item.support.compact {
    min-height: auto;
    padding: 9px 10px;
    border-radius: 18px;
}

.support-chat-list-item.support.compact .support-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.support-user-chat-page .support-chat-window,
.admin-chat-detail .support-chat-window {
    border-radius: 26px;
    background:
        radial-gradient(circle at 16% 0%, rgba(126, 232, 255, .09), transparent 30%),
        radial-gradient(circle at 84% 100%, rgba(199, 125, 255, .11), transparent 34%),
        rgba(255, 255, 255, .035);
}

.support-user-chat-page .support-chat-messages,
.admin-chat-detail .support-chat-messages {
    display: grid;
    align-content: end;
    gap: 8px;
}

.support-user-chat-page .support-bubble.admin {
    justify-self: end;
    border-radius: 18px 18px 8px 18px;
}

.support-user-chat-page .support-bubble.user {
    justify-self: start;
    border-radius: 18px 18px 18px 8px;
}

.support-chat-input {
    position: sticky;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 4;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(18, 14, 40, .92), rgba(18, 14, 40, .74)),
        rgba(18, 14, 40, .86);
    backdrop-filter: blur(18px);
}

.admin-user-detail {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.admin-user-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-user-metrics button,
.admin-user-metrics article {
    border: 1px solid rgba(255, 255, 255, .10);
    color: inherit;
    text-align: left;
}

.admin-user-metrics button {
    min-width: 0;
    padding: 12px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .074), rgba(255, 255, 255, .026)),
        rgba(255, 255, 255, .042);
    cursor: pointer;
}

.admin-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.admin-control-card {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)),
        rgba(255, 255, 255, .042);
    color: rgba(255, 255, 255, .90);
    text-align: left;
    font-weight: 900;
}

.admin-control-card summary {
    padding: 0;
    color: rgba(255, 255, 255, .92);
    cursor: pointer;
    list-style: none;
}

.admin-control-card summary::-webkit-details-marker {
    display: none;
}

.admin-control-card .admin-user-actions {
    margin-top: 10px;
}

.admin-control-card.danger {
    border-color: rgba(255, 82, 120, .24);
    color: #ffc3d0;
}

.admin-log-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
    gap: 8px;
    align-items: end;
}

.admin-log-filter label {
    display: grid;
    gap: 4px;
    color: rgba(224, 215, 255, .66);
    font-size: 11px;
    font-weight: 800;
}

.admin-friend-row,
.admin-chat-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
    color: inherit;
}

.admin-db-grid,
.admin-stats-grid {
    display: grid;
    gap: 10px;
}

.admin-db-section {
    display: grid;
    gap: 7px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
}

.admin-db-section h4 {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.admin-db-section article,
.admin-stats-grid article {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    gap: 8px;
    align-items: start;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.admin-db-section article:first-of-type,
.admin-stats-grid article:first-child {
    border-top: 0;
}

.admin-db-section span,
.admin-stats-grid span {
    color: rgba(224, 215, 255, .58);
    font-size: 11px;
    font-weight: 900;
}

.admin-db-section strong,
.admin-stats-grid strong {
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .support-messenger-head,
    .support-messenger-head.chat {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .support-messenger-head.chat {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .support-messenger-head.chat .secondary-button {
        grid-column: 1 / -1;
    }

    .admin-user-metrics,
    .admin-log-filter {
        grid-template-columns: 1fr;
    }

    .admin-db-section article,
    .admin-stats-grid article {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .support-chat-open .support-chat-input.compact-composer {
        grid-template-columns: minmax(0, 1fr) 44px !important;
    }
}

body.theme-light :is(.support-close-page, .support-chat-input, .admin-control-card, .admin-db-section, .admin-user-metrics button, .admin-db-section article, .admin-stats-grid article) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .68)),
        rgba(255, 255, 255, .82) !important;
    color: #17203d !important;
}

body.theme-light .support-new-chat-button {
    color: #fff !important;
    background: linear-gradient(135deg, #7256ff, #13b6d3 56%, #ff5aa8) !important;
}

body.theme-light :is(.admin-db-section h4, .admin-db-section strong, .admin-stats-grid strong, .admin-control-card summary) {
    color: #17203d !important;
}

body.theme-light :is(.admin-db-section span, .admin-stats-grid span, .admin-log-filter label) {
    color: rgba(23, 32, 61, .62) !important;
}

/* Admin/support chat v4 and analytics. */
.profile-settings-panel,
.profile-settings-content,
.profile-settings-menu {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
}

.profile-full-content,
#profileSupportPage,
#profileAdminPage,
.support-messenger-page,
.admin-panel,
.admin-user-detail {
    padding-bottom: calc(136px + env(safe-area-inset-bottom)) !important;
}

.support-chat-page-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 2px;
}

.support-chat-page-head.admin {
    margin-bottom: 2px;
}

.support-chat-page-head h3 {
    margin: 0;
    color: rgba(255, 255, 255, .95);
    font-size: 19px;
    line-height: 1.1;
}

.support-chat-shell,
.admin-chat-shell {
    display: grid;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-width: 0;
    gap: 10px;
    margin-left: calc(50% - 50vw + 14px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.support-chat-userbar,
.admin-chat-userbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .045);
}

.support-chat-userbar strong,
.admin-chat-userbar h3 {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .94);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-chat-userbar small,
.admin-chat-userbar small {
    color: rgba(224, 215, 255, .62);
    font-size: 11px;
}

.support-chat-open.support-messenger-page,
.admin-chat-detail.support-messenger-page {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
    padding-top: 2px !important;
}

.support-user-chat-page .support-chat-window,
.admin-chat-detail .support-chat-window {
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 304px);
    padding: 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .016)),
        rgba(10, 8, 24, .24) !important;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

.support-user-chat-page .support-chat-messages,
.admin-chat-detail .support-chat-messages {
    max-height: none;
    min-height: min(520px, 56vh);
}

.compact-composer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 6px;
}

.support-chat-input.compact-composer {
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 100% !important;
    margin-top: 6px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.chat-composer-field {
    min-height: 44px !important;
    max-height: 112px;
    line-height: 1.25 !important;
    padding: 12px 14px !important;
    border-radius: 22px !important;
    resize: none !important;
    font-size: 16px !important;
}

.chat-send-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    align-self: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #c77dff;
    font-size: 25px;
    font-weight: 1000;
    text-shadow:
        0 0 12px rgba(199, 125, 255, .55),
        0 0 22px rgba(85, 241, 255, .24);
    box-shadow: none;
    cursor: pointer;
}

.chat-send-icon:active {
    transform: translateY(1px) scale(.96);
}

.admin-chat-finish-bottom {
    justify-self: stretch;
    margin-top: 2px;
}

body.chat-composer-active .topbar,
body.chat-composer-active .tabs,
body.keyboard-open .topbar,
body.keyboard-open .tabs {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(.98);
}

body.keyboard-open .topbar {
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: translateY(-10px) scale(.98);
}

body.keyboard-open .tabs {
    transform: translateY(120%) scale(.98) !important;
}

body.chat-composer-active .support-chat-input.compact-composer {
    bottom: calc(12px + env(safe-area-inset-bottom));
}

body.chat-composer-active .app-shell,
body.keyboard-open .app-shell {
    padding-bottom: 22px !important;
}

body.topbar-scroll-hidden .topbar {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -92px, 0) scale(.982);
}

.topbar {
    max-height: 104px;
    overflow: hidden;
    transform-origin: top center;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform, opacity;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 1.35s linear,
        transform 1.65s cubic-bezier(.22, .61, .36, 1);
}

body.theme-light .topbar {
    position: sticky;
}

.profile-wall-text,
.profile-wall-comment-text {
    font-size: 16px !important;
}

.admin-control-card.warning {
    border-color: rgba(255, 209, 71, .26);
    color: #ffe49a;
}

.admin-control-card.muted {
    display: grid;
    gap: 4px;
    color: rgba(224, 215, 255, .68);
}

.admin-control-card.muted strong {
    color: rgba(255, 255, 255, .84);
}

.admin-control-card.muted small {
    color: rgba(224, 215, 255, .58);
    font-size: 11px;
    line-height: 1.35;
}

.admin-platform-stats {
    display: grid;
    gap: 12px;
}

.admin-platform-hero,
.admin-platform-block,
.admin-platform-metric {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px 20px 26px 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(126, 232, 255, .10), transparent 32%),
        radial-gradient(circle at 92% 96%, rgba(199, 125, 255, .11), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .076), rgba(255, 255, 255, .025)),
        rgba(11, 9, 26, .58);
}

.admin-platform-hero {
    padding: 15px;
}

.admin-platform-hero h3,
.admin-platform-block h4 {
    margin: 0;
    color: rgba(255, 255, 255, .94);
}

.admin-platform-hero p:not(.eyebrow) {
    margin: 6px 0 0;
    color: rgba(224, 215, 255, .66);
    font-size: 12px;
    line-height: 1.45;
}

.admin-platform-grid,
.admin-platform-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-platform-block {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 12px;
}

.admin-platform-metric {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.admin-platform-metric span,
.admin-app-usage-row span,
.admin-distribution-row span {
    color: rgba(224, 215, 255, .60);
    font-size: 11px;
    font-weight: 900;
}

.admin-platform-metric strong,
.admin-app-usage-row strong,
.admin-distribution-row strong {
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 950;
}

.admin-platform-metric small {
    color: rgba(224, 215, 255, .54);
    font-size: 11px;
}

.admin-distribution-row {
    display: grid;
    grid-template-columns: minmax(72px, .8fr) minmax(64px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.admin-distribution-row div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
}

.admin-distribution-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7ee8ff, #c77dff, #ff5aa8);
}

.admin-app-usage-list {
    display: grid;
    gap: 7px;
}

.admin-app-usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.admin-app-usage-row:first-child {
    border-top: 0;
}

@media (max-width: 720px) {
    .admin-platform-grid,
    .admin-platform-split {
        grid-template-columns: 1fr;
    }

    .admin-distribution-row {
        grid-template-columns: minmax(70px, .85fr) minmax(48px, 1fr) auto;
    }
}

body.theme-light :is(.support-chat-shell, .admin-chat-shell, .support-chat-userbar, .admin-chat-userbar, .admin-control-card.muted, .admin-platform-hero, .admin-platform-block, .admin-platform-metric) {
    border-color: rgba(0, 184, 255, .16) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .10), transparent 32%),
        radial-gradient(circle at 92% 94%, rgba(101, 87, 255, .10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(233, 247, 255, .70)),
        rgba(255, 255, 255, .84) !important;
    box-shadow: 0 16px 38px rgba(0, 120, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light :is(.support-chat-shell, .admin-chat-shell) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-light :is(.support-user-chat-page .support-chat-window, .admin-chat-detail .support-chat-window) {
    border-color: rgba(0, 184, 255, .14) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(233, 247, 255, .54)),
        rgba(255, 255, 255, .72) !important;
    box-shadow:
        0 12px 30px rgba(0, 120, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

body.theme-light .support-chat-input.compact-composer {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-light .chat-send-icon {
    background: transparent !important;
    color: #6557ff !important;
    text-shadow:
        0 0 12px rgba(101, 87, 255, .32),
        0 0 20px rgba(0, 184, 255, .18);
}

body.theme-light :is(.support-chat-page-head h3, .support-chat-userbar strong, .admin-chat-userbar h3, .admin-control-card.muted strong, .admin-platform-hero h3, .admin-platform-block h4, .admin-platform-metric strong, .admin-app-usage-row strong, .admin-distribution-row strong) {
    color: #17203d !important;
}

body.theme-light :is(.support-chat-userbar small, .admin-chat-userbar small, .admin-control-card.muted small, .admin-platform-hero p:not(.eyebrow), .admin-platform-metric span, .admin-platform-metric small, .admin-app-usage-row span, .admin-distribution-row span) {
    color: rgba(23, 32, 61, .62) !important;
}

body.theme-light .home-services-section {
    border-color: rgba(0, 99, 255, .15) !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 184, 255, .14), transparent 34%),
        radial-gradient(circle at 96% 86%, rgba(151, 71, 255, .12), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(235, 244, 255, .70)) !important;
    box-shadow:
        0 18px 40px rgba(18, 48, 98, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

body.theme-light .home-service-card {
    border-color: rgba(0, 99, 255, .12) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(239, 247, 255, .72)),
        rgba(255, 255, 255, .72) !important;
    color: #17203d !important;
    box-shadow:
        0 12px 28px rgba(37, 82, 143, .10),
        inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

body.theme-light .home-service-card:not(.disabled):hover {
    border-color: rgba(0, 184, 255, .28) !important;
    box-shadow:
        0 16px 34px rgba(37, 82, 143, .14),
        0 0 28px rgba(0, 184, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.theme-light .home-service-emoji {
    background:
        linear-gradient(145deg, rgba(0, 184, 255, .16), rgba(151, 71, 255, .10)),
        rgba(255, 255, 255, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

body.theme-light .home-service-copy strong {
    color: #17203d !important;
}

body.theme-light .home-service-copy small {
    color: rgba(23, 32, 61, .62) !important;
}

body.theme-light .home-service-card em {
    color: #0b57d0 !important;
}

/* Home leaderboard and services polish. */
.home-leaderboard-section,
.home-services-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 10px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 28px 22px 30px 22px !important;
    background:
        radial-gradient(circle at 9% 0%, rgba(126, 232, 255, .16), transparent 31%),
        radial-gradient(circle at 92% 18%, rgba(199, 125, 255, .16), transparent 35%),
        radial-gradient(circle at 72% 105%, rgba(255, 79, 216, .10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .026)),
        rgba(10, 8, 24, .72) !important;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .25),
        0 0 36px rgba(126, 232, 255, .055),
        inset 0 1px 0 rgba(255, 255, 255, .18) !important;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.home-leaderboard-section::before,
.home-services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, .075) 39%, transparent 62%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .032) 0 1px, transparent 1px 13px);
    opacity: .74;
}

.home-leaderboard-section::after,
.home-services-section::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(126, 232, 255, .55), rgba(199, 125, 255, .45), transparent);
}

.home-section-title.decorated {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-bottom: 0 !important;
}

.home-section-title.decorated > div {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.home-section-title.decorated .eyebrow {
    margin: 0 !important;
    color: #d8b3ff !important;
    font-size: 13px !important;
    letter-spacing: .015em !important;
    text-shadow: 0 0 18px rgba(199, 125, 255, .26);
}

.home-section-title.decorated small {
    overflow: hidden;
    color: rgba(226, 222, 255, .58);
    font-size: 11px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section-mark {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px 12px 16px 12px;
    background:
        radial-gradient(circle at 30% 14%, rgba(255, 255, 255, .30), transparent 32%),
        linear-gradient(145deg, rgba(199, 125, 255, .24), rgba(126, 232, 255, .11)),
        rgba(255, 255, 255, .055);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .20),
        0 0 20px rgba(199, 125, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .20);
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.home-leaderboard-list,
.home-services-list {
    gap: 7px !important;
}

.leaderboard-row {
    grid-template-columns: 27px 36px minmax(0, 1fr) auto !important;
    min-height: 48px !important;
    padding: 7px 9px !important;
    border-color: rgba(255, 255, 255, .105) !important;
    border-radius: 18px 14px 18px 14px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(126, 232, 255, .10), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .040)),
        rgba(18, 14, 36, .58) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12),
        inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.leaderboard-row > * {
    position: relative;
    z-index: 1;
}

.leaderboard-row.tier-gold {
    border-color: rgba(255, 208, 77, .26) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 208, 77, .18), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .125), rgba(255, 255, 255, .042)),
        rgba(24, 17, 36, .62) !important;
}

.leaderboard-row.tier-silver {
    border-color: rgba(220, 230, 255, .20) !important;
}

.leaderboard-row.tier-bronze {
    border-color: rgba(236, 144, 71, .21) !important;
}

.leaderboard-place {
    width: 24px !important;
    height: 24px !important;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(circle at 34% 18%, rgba(255, 255, 255, .22), transparent 36%),
        rgba(255, 255, 255, .055) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.leaderboard-row.tier-gold .leaderboard-place {
    color: #3b2400 !important;
    background: linear-gradient(135deg, #fff1a4, #ffd15e 52%, #ff9d1b) !important;
}

.leaderboard-row.tier-silver .leaderboard-place {
    color: #17203d !important;
    background: linear-gradient(135deg, #fff, #d8e1f2 58%, #9cafcf) !important;
}

.leaderboard-row.tier-bronze .leaderboard-place {
    color: #311706 !important;
    background: linear-gradient(135deg, #ffd6a8, #d48742 58%, #8b4522) !important;
}

.leaderboard-avatar-wrap {
    width: 36px !important;
    height: 36px !important;
}

.leaderboard-avatar-wrap::before {
    inset: 0 !important;
}

.leaderboard-avatar-wrap img,
.leaderboard-avatar-wrap span {
    width: 33px !important;
    height: 33px !important;
}

.leaderboard-row em {
    padding: 5px 8px;
    border: 1px solid rgba(126, 232, 255, .13);
    border-radius: 999px;
    background: rgba(126, 232, 255, .055);
    color: rgba(126, 232, 255, .96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.leaderboard-full-link {
    justify-self: stretch !important;
    min-height: 31px;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: rgba(126, 232, 255, .055) !important;
    color: rgba(126, 232, 255, .96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.leaderboard-current-label {
    padding-left: 2px;
    color: rgba(226, 222, 255, .64) !important;
}

.home-service-card {
    --service-a: #c77dff;
    --service-b: #55f1ff;
    --service-soft: rgba(199, 125, 255, .16);
    --service-chip-a: rgba(199, 125, 255, .22);
    --service-chip-b: rgba(85, 241, 255, .12);
    --service-pill: rgba(199, 125, 255, .13);
    --service-shadow: rgba(199, 125, 255, .26);
    min-height: 52px !important;
    padding: 8px 10px !important;
    border-color: rgba(255, 255, 255, .115) !important;
    border-radius: 20px 16px 20px 16px !important;
    background:
        radial-gradient(circle at 0% 0%, var(--service-soft), transparent 33%),
        linear-gradient(145deg, rgba(255, 255, 255, .118), rgba(255, 255, 255, .040)),
        rgba(18, 14, 36, .58) !important;
    box-shadow:
        0 9px 22px rgba(0, 0, 0, .13),
        inset 0 1px 0 rgba(255, 255, 255, .13) !important;
}

.home-service-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(var(--service-a), var(--service-b));
    box-shadow: 0 0 14px var(--service-shadow);
}

.home-service-card.service-nonexy_bot {
    --service-a: #c77dff;
    --service-b: #55f1ff;
    --service-soft: rgba(199, 125, 255, .16);
    --service-chip-a: rgba(199, 125, 255, .22);
    --service-chip-b: rgba(85, 241, 255, .12);
    --service-pill: rgba(199, 125, 255, .13);
    --service-shadow: rgba(199, 125, 255, .28);
}

.home-service-card.service-chat {
    --service-a: #55f1ff;
    --service-b: #6de9a8;
    --service-soft: rgba(85, 241, 255, .14);
    --service-chip-a: rgba(85, 241, 255, .20);
    --service-chip-b: rgba(109, 233, 168, .13);
    --service-pill: rgba(85, 241, 255, .11);
    --service-shadow: rgba(85, 241, 255, .25);
}

.home-service-card.service-channel {
    --service-a: #ff4fd8;
    --service-b: #ffd15e;
    --service-soft: rgba(255, 79, 216, .13);
    --service-chip-a: rgba(255, 79, 216, .18);
    --service-chip-b: rgba(255, 209, 94, .13);
    --service-pill: rgba(255, 79, 216, .10);
    --service-shadow: rgba(255, 79, 216, .24);
}

.home-service-card.service-anon_chat {
    --service-a: #8f7cff;
    --service-b: #ff6ad5;
    --service-soft: rgba(143, 124, 255, .15);
    --service-chip-a: rgba(143, 124, 255, .20);
    --service-chip-b: rgba(255, 106, 213, .12);
    --service-pill: rgba(143, 124, 255, .12);
    --service-shadow: rgba(143, 124, 255, .25);
}

.home-service-card.service-mafia_bot {
    --service-a: #9a7bff;
    --service-b: #69738b;
    --service-soft: rgba(154, 123, 255, .10);
    --service-chip-a: rgba(154, 123, 255, .15);
    --service-chip-b: rgba(105, 115, 139, .10);
    --service-pill: rgba(154, 123, 255, .08);
    --service-shadow: rgba(154, 123, 255, .16);
}

.home-service-emoji {
    width: 34px !important;
    height: 34px !important;
    border-radius: 14px 12px 14px 12px !important;
    background:
        radial-gradient(circle at 32% 16%, rgba(255, 255, 255, .26), transparent 36%),
        linear-gradient(145deg, var(--service-chip-a), var(--service-chip-b)),
        rgba(255, 255, 255, .055) !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.home-service-copy strong {
    font-size: 13.5px !important;
}

.home-service-card em {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--service-pill);
    color: rgba(255, 255, 255, .84) !important;
}

.home-service-card.disabled em {
    background: rgba(255, 255, 255, .055);
    color: rgba(226, 222, 255, .48) !important;
}

body.theme-light .home-leaderboard-section,
body.theme-light .home-services-section {
    border-color: rgba(0, 132, 255, .16) !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 184, 255, .15), transparent 31%),
        radial-gradient(circle at 92% 18%, rgba(151, 71, 255, .13), transparent 35%),
        radial-gradient(circle at 70% 105%, rgba(255, 79, 216, .07), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(236, 246, 255, .72)),
        rgba(255, 255, 255, .74) !important;
    box-shadow:
        0 18px 42px rgba(18, 48, 98, .12),
        inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

body.theme-light .home-section-title.decorated .eyebrow {
    color: #5d32d9 !important;
    text-shadow: 0 0 16px rgba(101, 87, 255, .14);
}

body.theme-light .home-section-title.decorated small,
body.theme-light .leaderboard-current-label {
    color: rgba(36, 47, 86, .58) !important;
}

body.theme-light .home-section-mark {
    border-color: rgba(0, 132, 255, .13);
    background:
        radial-gradient(circle at 30% 14%, rgba(255, 255, 255, .9), transparent 34%),
        linear-gradient(145deg, rgba(0, 184, 255, .16), rgba(151, 71, 255, .10)),
        rgba(255, 255, 255, .76);
    color: #5d32d9;
    box-shadow:
        0 10px 22px rgba(0, 120, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .94);
}

body.theme-light .leaderboard-row,
body.theme-light .home-service-card {
    border-color: rgba(0, 132, 255, .12) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 184, 255, .10), transparent 33%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(231, 244, 255, .84)),
        rgba(255, 255, 255, .88) !important;
    color: #17203d !important;
    box-shadow:
        0 10px 24px rgba(37, 82, 143, .09),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body.theme-light .leaderboard-main strong,
body.theme-light .home-service-copy strong {
    color: #17203d !important;
}

body.theme-light .leaderboard-main small,
body.theme-light .home-service-copy small {
    color: rgba(23, 32, 61, .62) !important;
}

body.theme-light .leaderboard-row em,
body.theme-light .leaderboard-full-link,
body.theme-light .home-service-card em {
    border-color: rgba(0, 132, 255, .10);
    background: rgba(0, 184, 255, .075) !important;
    color: #0b57d0 !important;
}

@media (max-width: 480px) {
    .home-leaderboard-section,
    .home-services-section {
        padding: 12px !important;
        border-radius: 24px 18px 26px 18px !important;
    }

    .leaderboard-row {
        grid-template-columns: 25px 34px minmax(0, 1fr) auto !important;
        padding: 7px 8px !important;
    }

    .leaderboard-row em {
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-service-card {
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
    }
}

/* Give the two home modules their own personalities. */
.home-leaderboard-section {
    border-radius: 30px 22px 24px 22px !important;
    border-color: rgba(255, 208, 77, .18) !important;
    background:
        radial-gradient(circle at 10% -4%, rgba(255, 208, 77, .20), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(199, 125, 255, .15), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .032)),
        rgba(15, 11, 28, .78) !important;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .25),
        0 0 34px rgba(255, 208, 77, .06),
        inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.home-leaderboard-section::before {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 236, 168, .11), transparent 24%),
        linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, .065) 42%, transparent 63%),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 208, 77, .035) 28px 29px);
    opacity: .78;
}

.home-leaderboard-section .home-section-title.decorated {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 208, 77, .11);
}

.home-leaderboard-section .home-section-mark {
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 18%, rgba(255, 255, 255, .44), transparent 34%),
        linear-gradient(145deg, rgba(255, 208, 77, .36), rgba(255, 79, 216, .14)),
        rgba(255, 255, 255, .065);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .20),
        0 0 22px rgba(255, 208, 77, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

.home-leaderboard-section .leaderboard-row {
    border-radius: 16px 20px 16px 20px !important;
}

.home-services-section {
    border-radius: 22px 30px 22px 30px !important;
    border-color: rgba(126, 232, 255, .17) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(126, 232, 255, .18), transparent 32%),
        radial-gradient(circle at 96% 96%, rgba(143, 124, 255, .15), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .086), rgba(255, 255, 255, .025)),
        rgba(8, 12, 28, .78) !important;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .24),
        0 0 34px rgba(126, 232, 255, .055),
        inset 0 1px 0 rgba(255, 255, 255, .17) !important;
}

.home-services-section::before {
    background:
        linear-gradient(90deg, rgba(126, 232, 255, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(126, 232, 255, .025) 1px, transparent 1px),
        radial-gradient(circle at 88% 18%, rgba(126, 232, 255, .13), transparent 22%),
        linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, .052) 42%, transparent 64%);
    background-size: 22px 22px, 22px 22px, auto, auto;
    opacity: .70;
}

.home-services-section .home-section-title.decorated {
    padding: 8px 9px;
    border: 1px solid rgba(126, 232, 255, .10);
    border-radius: 18px 14px 20px 14px;
    background: rgba(126, 232, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.home-services-section .home-section-mark {
    border-radius: 13px;
    background:
        radial-gradient(circle at 32% 14%, rgba(255, 255, 255, .34), transparent 34%),
        linear-gradient(145deg, rgba(126, 232, 255, .26), rgba(143, 124, 255, .14)),
        rgba(255, 255, 255, .060);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .18),
        0 0 20px rgba(126, 232, 255, .14),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

.home-services-list {
    position: relative;
}

.home-services-list::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 11px;
    bottom: 11px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(transparent, rgba(126, 232, 255, .22), transparent);
    pointer-events: none;
}

.home-services-section .home-service-card {
    border-radius: 14px 20px 20px 14px !important;
}

body.theme-light .home-leaderboard-section {
    border-color: rgba(255, 181, 46, .20) !important;
    background:
        radial-gradient(circle at 10% -4%, rgba(255, 196, 68, .18), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(101, 87, 255, .11), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .78)),
        rgba(255, 255, 255, .86) !important;
}

body.theme-light .home-services-section {
    border-color: rgba(0, 184, 255, .17) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 184, 255, .15), transparent 32%),
        radial-gradient(circle at 96% 96%, rgba(101, 87, 255, .10), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(233, 247, 255, .76)),
        rgba(255, 255, 255, .86) !important;
}

body.theme-light .home-leaderboard-section .home-section-title.decorated {
    border-bottom-color: rgba(255, 181, 46, .18);
}

body.theme-light .home-services-section .home-section-title.decorated {
    border-color: rgba(0, 184, 255, .14);
    background: rgba(0, 184, 255, .06);
}

#homeServicesSection {
    display: none !important;
}

.profile-services-panel {
    margin: 0;
}

/* Resilient Telegram avatars: keep initials underneath a remote or cached photo. */
.mini-avatar,
.leaderboard-avatar-wrap,
.profile-avatar,
.premium-avatar-core,
.support-chat-avatar,
.admin-user-avatar {
    position: relative;
}

.avatar-fallback {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: inherit;
    color: #fff;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .28), transparent 34%),
        linear-gradient(145deg, rgba(199, 125, 255, .68), rgba(85, 241, 255, .32));
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.avatar-image {
    position: absolute !important;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Give both own and public friend lists the full profile sheet width. */
#profileSettingsDrawer.profile-settings-panel,
#profileFriendsDrawer.profile-friends-page,
.profile-public-friends-panel.profile-friends-page {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin: 12px -16px 14px !important;
    padding: 16px clamp(12px, 3vw, 20px) 18px !important;
    box-sizing: border-box;
}

/* Published photos should begin directly with the image, without a gray cap. */
.profile-wall-post > .profile-wall-media-frame {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0;
}

.profile-wall-post > .profile-wall-media-frame > .profile-wall-media {
    display: block;
    margin: 0;
}

.profile-wall-repost-media-frame {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0;
}

.profile-wall-repost-media-frame > .profile-wall-media {
    display: block;
    margin: 0;
}

/* Standalone browser entry: the private app stays hidden until Telegram authenticates it. */
body.external-access-only {
    min-height: 100vh;
    overflow-x: hidden;
}

body.external-access-only .app-shell,
body.external-access-only #regionGate,
body.external-access-only #banGate,
body.external-access-only #profileWallMount {
    display: none !important;
}

.external-access-gate {
    position: relative;
    z-index: 2000;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(180px, .72fr) minmax(280px, 1.28fr);
    align-items: center;
    gap: clamp(28px, 7vw, 84px);
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: max(38px, env(safe-area-inset-top)) 0 max(38px, env(safe-area-inset-bottom));
}

.external-access-gate::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 14% 18%, rgba(126, 232, 255, .14), transparent 30%),
        radial-gradient(circle at 84% 80%, rgba(255, 78, 184, .13), transparent 32%),
        linear-gradient(145deg, #090817, #111329 52%, #0b1020);
}

.external-access-gate::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(145deg, #000, transparent 78%);
}

.external-access-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: min(250px, 64vw);
    aspect-ratio: 1;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 38% 62% 54% 46% / 44% 38% 62% 56%;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .26), transparent 30%),
        linear-gradient(145deg, rgba(199, 125, 255, .26), rgba(85, 241, 255, .10)),
        rgba(255, 255, 255, .055);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .42),
        0 0 52px rgba(159, 124, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    animation: external-visual-float 5.8s ease-in-out infinite;
}

.external-access-logo {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54%;
    aspect-ratio: 1;
    border-radius: 34%;
    background: linear-gradient(145deg, #d9b4ff, #8f7cff 48%, #55f1ff);
    color: #0c0b1d;
    font-size: clamp(58px, 10vw, 98px);
    font-weight: 950;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .28),
        0 0 38px rgba(126, 232, 255, .24),
        inset 0 1px 0 rgba(255, 255, 255, .72);
}

.external-access-visual i {
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    animation: external-orbit 8s linear infinite;
}

.external-access-visual i::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7ee8ff;
    box-shadow: 0 0 18px rgba(126, 232, 255, .85);
}

.external-access-copy {
    min-width: 0;
}

.external-access-copy h1 {
    max-width: 610px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 7vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}

.external-access-copy > p:not(.eyebrow) {
    max-width: 600px;
    margin: 18px 0 0;
    color: rgba(226, 226, 248, .72);
    font-size: 16px;
    line-height: 1.6;
}

.external-access-button {
    width: fit-content;
    min-width: min(260px, 100%);
    min-height: 52px;
    margin-top: 26px;
    padding: 0 24px;
    text-decoration: none;
}

.external-access-copy > small {
    display: block;
    max-width: 520px;
    margin-top: 13px;
    color: rgba(220, 222, 246, .48);
    font-size: 12px;
    line-height: 1.45;
}

@keyframes external-visual-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes external-orbit {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .external-access-gate {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        width: min(520px, calc(100% - 28px));
        text-align: center;
    }

    .external-access-visual {
        width: min(176px, 48vw);
    }

    .external-access-copy > p:not(.eyebrow),
    .external-access-copy > small {
        margin-left: auto;
        margin-right: auto;
    }

    .external-access-button {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .external-access-visual,
    .external-access-visual i {
        animation: none;
    }
}
