* {
    box-sizing: border-box;
}

:root {
    --yellow: #ffd83d;
    --yellow-soft: #ffef99;
    --purple: #6d39df;
    --purple-dark: #3e168d;
    --purple-light: #a875ff;
    --blue: #26b8ea;
    --ink: #21152e;
    --muted: #756980;
    --card: rgba(255, 255, 255, 0.94);
    --border: rgba(255, 255, 255, 0.74);
    --danger: #e35b68;
    --success: #25a86a;
}

html {
    min-height: 100%;
    background: #100718;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family:
        Inter,
        ui-rounded,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at 12% 5%,
            rgba(255, 245, 171, 0.95),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(255, 255, 255, 0.55),
            transparent 26%
        ),
        linear-gradient(
            155deg,
            #ffd21f,
            #ffeb6f 48%,
            #ffd33b
        );
}

button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.98);
}

.app {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        calc(14px + env(safe-area-inset-top))
        16px
        calc(104px + env(safe-area-inset-bottom));
}

.view {
    display: none;
    animation: view-in 180ms ease-out;
}

.active-view {
    display: block;
}

@keyframes view-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 9px;
}

.social-button,
.notification-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 16px;
    color: #fff;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(64, 34, 0, 0.16);
}

.social-button span {
    font-size: 18px;
}

.twitch {
    background: linear-gradient(145deg, #965dff, #5f22ca);
}

.telegram-social {
    background: linear-gradient(145deg, #43c8ff, #168bd5);
}

.instagram {
    background:
        linear-gradient(
            145deg,
            #7f3bff,
            #e8408e 52%,
            #ff9e37
        );
}

.notification-button {
    color: var(--ink);
    font-size: 20px;
    background: rgba(255, 255, 255, 0.9);
}

.notification-button.disabled {
    color: var(--danger);
    background: #fff3f4;
}

.brand-card {
    position: relative;
    overflow: hidden;
    padding: 24px 18px 26px;
    border: 1px solid var(--border);
    border-radius: 30px;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            rgba(23, 7, 39, 0.97),
            rgba(49, 18, 82, 0.96)
        );
    box-shadow:
        0 18px 44px rgba(52, 20, 77, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-card::before,
.brand-card::after {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    content: "";
    filter: blur(35px);
    opacity: 0.55;
}

.brand-card::before {
    top: -65px;
    left: -50px;
    background: #7f4fff;
}

.brand-card::after {
    right: -60px;
    bottom: -85px;
    background: #20cfff;
}

.avatar-glow {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            #8c5bff,
            #21d7ff,
            #ffd84b,
            #8c5bff
        );
    box-shadow:
        0 0 23px rgba(141, 87, 255, 0.72),
        0 0 46px rgba(34, 210, 255, 0.32);
    animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
    50% {
        box-shadow:
            0 0 32px rgba(141, 87, 255, 0.92),
            0 0 62px rgba(34, 210, 255, 0.46);
    }
}

.brand-avatar {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 4px solid #160a25;
    border-radius: 50%;
    font-size: 44px;
    background:
        radial-gradient(circle at 35% 25%, #fff5b7, #ffd42f);
}

.mini-label,
.section-kicker {
    margin: 0 0 7px;
    color: #8a51ff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.brand-name {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 13vw, 68px);
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 0.98;
    text-shadow:
        0 0 7px #fff,
        0 0 16px #a970ff,
        0 0 34px #7839ff,
        0 0 52px rgba(40, 205, 255, 0.65);
}

.brand-subtitle {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.45;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
}

.stat-card {
    display: flex;
    min-height: 122px;
    flex-direction: column;
    justify-content: center;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 32px rgba(86, 56, 0, 0.12);
}

.stat-icon {
    margin-bottom: 5px;
    font-size: 21px;
}

.stat-card strong {
    color: var(--purple);
    font-size: 31px;
    line-height: 1;
}

.stat-card > span:last-child {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.account-status-card,
.featured-giveaway,
.community-chat-card,
.news-card,
.category-card,
.history-card,
.empty-state,
.profile-summary,
.profile-menu {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 16px 38px rgba(82, 49, 0, 0.13);
}

.account-status-card {
    padding: 19px;
    border-radius: 26px;
}

.card-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.card-heading h2,
.section-heading h2,
.simple-header h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
}

.access-badge,
.live-badge,
.prize-label,
.news-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.access-badge,
.prize-label,
.news-badge {
    color: var(--purple-dark);
    background: #eee5ff;
}

.live-badge {
    gap: 6px;
    color: #b22938;
    background: #ffe9eb;
}

.live-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e13d4e;
    box-shadow: 0 0 8px #e13d4e;
}

.condition-list {
    display: grid;
    gap: 9px;
    margin: 17px 0;
}

.condition-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    background: #f4f0e7;
}

.condition-icon {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.condition-row.completed .condition-icon {
    background: var(--success);
}

.condition-row.pending .condition-icon {
    background: #ef9b28;
}

.secondary-button,
.primary-button,
.category-card button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 17px;
    font-weight: 900;
}

.secondary-button {
    color: #fff;
    background: linear-gradient(145deg, #914fff, #5823c4);
    box-shadow: 0 11px 24px rgba(97, 42, 199, 0.25);
}

.twitch-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.twitch-action span {
    font-size: 19px;
}

.featured-section,
.news-section {
    margin-top: 25px;
}

.section-heading {
    margin-bottom: 13px;
}

.featured-giveaway {
    overflow: hidden;
    border-radius: 29px;
}

.featured-image {
    position: relative;
    display: grid;
    min-height: 225px;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(73, 221, 255, 0.58),
            transparent 28%
        ),
        linear-gradient(145deg, #4a1c91, #170a32);
}

.image-light {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(99, 212, 255, 0.18);
    filter: blur(20px);
}

.knife-emoji {
    position: relative;
    z-index: 1;
    font-size: 91px;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.weekly-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    background: rgba(20, 7, 42, 0.73);
    backdrop-filter: blur(10px);
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    margin: 12px 0 6px;
    font-size: 28px;
}

.giveaway-description {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.giveaway-meta {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    margin: 17px 0;
    color: var(--muted);
    font-size: 12px;
}

.giveaway-conditions {
    margin-bottom: 15px;
    padding: 13px;
    border-radius: 16px;
    background: #f4f0e6;
}

.giveaway-conditions p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.giveaway-conditions div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.giveaway-conditions span {
    padding: 6px 8px;
    border-radius: 999px;
    color: #168153;
    font-size: 11px;
    font-weight: 900;
    background: #daf5e8;
}

.primary-button {
    color: #fff;
    font-size: 15px;
    background: linear-gradient(
        145deg,
        #8150ef,
        #5220bd
    );
    box-shadow: 0 13px 29px rgba(81, 31, 190, 0.31);
}

.primary-button:disabled {
    cursor: not-allowed;
    color: #7e7288;
    background: #ddd6df;
    box-shadow: none;
}

.participation-warning {
    margin: 11px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.hidden {
    display: none !important;
}

.community-chat-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 23px;
    color: var(--ink);
    text-align: left;
}

.chat-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 17px;
    font-size: 23px;
    background: #eee5ff;
}

.chat-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.chat-copy b {
    font-size: 15px;
}

.chat-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-arrow {
    color: var(--purple);
    font-size: 30px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.news-card {
    overflow: hidden;
    border-radius: 25px;
}

.news-image {
    display: grid;
    min-height: 150px;
    place-items: center;
    font-size: 58px;
}

.news-image-purple {
    background:
        radial-gradient(circle, #aa83ff, transparent 45%),
        linear-gradient(145deg, #5117a3, #251043);
}

.news-image-blue {
    background:
        radial-gradient(circle, #76e4ff, transparent 45%),
        linear-gradient(145deg, #147fa9, #0c405a);
}

.news-content {
    padding: 18px;
}

.news-content h3 {
    margin: 11px 0 7px;
    font-size: 21px;
}

.news-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.news-content time {
    color: #9b91a0;
    font-size: 11px;
}

.simple-header {
    padding: 18px 5px 10px;
}

.simple-header h1 {
    font-size: 34px;
}

.simple-header > p:last-child {
    margin: 8px 0 0;
    color: #62556b;
    line-height: 1.45;
}

.category-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.category-card {
    padding: 21px;
    border-radius: 25px;
}

.category-card > span {
    font-size: 37px;
}

.category-card h2 {
    margin: 11px 0 7px;
}

.category-card p {
    min-height: 42px;
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.category-card button {
    color: #fff;
    background: var(--purple);
}

.history-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 23px;
}

.history-card > span {
    font-size: 33px;
}

.history-card div {
    flex: 1;
}

.history-card h2,
.history-card p {
    margin: 0;
}

.history-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.history-card > b {
    color: var(--purple);
    font-size: 28px;
}

.empty-state {
    padding: 45px 20px;
    border-radius: 28px;
    text-align: center;
}

.empty-state > span {
    font-size: 63px;
}

.empty-state h2 {
    margin: 15px 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border-radius: 24px;
}

.profile-avatar {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border-radius: 19px;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    background: linear-gradient(145deg, #8f56f8, #5020b4);
}

.profile-summary > div:nth-child(2) {
    flex: 1;
}

.profile-summary h2,
.profile-summary p {
    margin: 0;
}

.profile-summary p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.profile-status {
    padding: 7px 9px;
    border-radius: 999px;
    color: #9c6515;
    font-size: 11px;
    font-weight: 900;
    background: #fff0c6;
}

.profile-menu {
    overflow: hidden;
    margin-top: 14px;
    border-radius: 25px;
}

.profile-menu button {
    display: grid;
    width: 100%;
    grid-template-columns: 35px 1fr 25px;
    grid-template-rows: auto auto;
    column-gap: 9px;
    padding: 15px;
    border: 0;
    border-bottom: 1px solid #eee7ef;
    color: var(--ink);
    text-align: left;
    background: transparent;
}

.profile-menu button:last-child {
    border-bottom: 0;
}

.profile-menu button > span {
    grid-row: 1 / 3;
    font-size: 22px;
}

.profile-menu b {
    font-size: 14px;
}

.profile-menu small {
    overflow: hidden;
    grid-column: 2;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu i {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    color: var(--purple);
    font-size: 25px;
    font-style: normal;
}

.bottom-nav {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 50;
    display: grid;
    max-width: 740px;
    min-height: 72px;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 18px 46px rgba(49, 27, 1, 0.25);
    backdrop-filter: blur(20px);
}

.bottom-nav button {
    display: flex;
    min-width: 0;
    min-height: 57px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 18px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    background: transparent;
}

.bottom-nav button span {
    font-size: 20px;
}

.bottom-nav button.active {
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #8150ed,
            #5220b9
        );
    box-shadow: 0 9px 21px rgba(87, 34, 191, 0.27);
}

.toast {
    position: fixed;
    right: 16px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 100;
    max-width: 560px;
    margin: 0 auto;
    padding: 13px 15px;
    border-radius: 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: rgba(26, 12, 42, 0.94);
    box-shadow: 0 15px 35px rgba(24, 8, 36, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 620px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-giveaway {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .featured-image {
        min-height: 100%;
    }

    .news-list {
        grid-template-columns: 1fr;
    }
}

/* SMUSIM COMPACT BRAND V3 */

.social-button {
    overflow: hidden;
}

.social-button img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1);
    pointer-events: none;
}

.telegram-social img {
    width: 27px;
    height: 27px;
}

.instagram img {
    width: 26px;
    height: 26px;
}

.compact-brand-card {
    padding: 18px 20px;
    text-align: left;
}

.brand-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    min-height: 116px;
}

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

.compact-brand-card .avatar-glow {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    margin: 0;
}

.compact-brand-card .brand-avatar {
    width: 72px;
    height: 72px;
    border-width: 3px;
    font-size: 35px;
}

.compact-brand-card .mini-label {
    margin-bottom: 4px;
}

.compact-brand-card .brand-name {
    font-size: clamp(42px, 11vw, 59px);
    line-height: 0.94;
}

.compact-brand-card .brand-subtitle {
    margin-top: 8px;
    font-size: 13px;
}

.profile-access-card {
    margin-top: 14px;
}

@media (max-width: 420px) {
    .compact-brand-card {
        padding: 16px;
    }

    .brand-main {
        gap: 13px;
        min-height: 102px;
    }

    .compact-brand-card .avatar-glow {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .compact-brand-card .brand-avatar {
        width: 61px;
        height: 61px;
        font-size: 29px;
    }

    .compact-brand-card .brand-name {
        font-size: 40px;
    }

    .compact-brand-card .brand-subtitle {
        font-size: 11px;
    }
}



/* SMUSIM STREAM STORE PROFILE V6 START */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.store-button {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    background:
        linear-gradient(145deg, #8c4fff, #5420ba);
    box-shadow:
        0 10px 24px rgba(64, 34, 0, 0.16),
        0 0 19px rgba(108, 48, 220, 0.25);
}

.store-hand {
    display: inline-block;
    font-size: 13px;
    transform-origin: 50% 100%;
    animation:
        store-hand-tap 1.25s ease-in-out infinite;
}

@keyframes store-hand-tap {
    0%,
    42%,
    100% {
        transform:
            translateY(-3px)
            rotate(-8deg);
    }

    55% {
        transform:
            translateY(2px)
            rotate(0deg)
            scale(0.9);
    }

    67% {
        transform:
            translateY(-3px)
            rotate(-8deg);
    }
}

.stream-status-button {
    border: 0;
    cursor: pointer;
}

.stream-status-button #stream-status-text {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.stream-status-button.offline {
    color: #716775;
    background: #ece8ed;
}

.stream-status-button.offline .stream-dot {
    background: #9f969f;
    box-shadow: none;
}

.stream-status-button.online {
    color: #b42838;
    background: #ffe8eb;
    box-shadow:
        0 0 18px rgba(225, 61, 78, 0.2);
}

.stream-status-button.online .stream-dot {
    background: #e13d4e;
    box-shadow: 0 0 8px #e13d4e;
    animation:
        stream-live-pulse 1.2s infinite;
}

@keyframes stream-live-pulse {
    50% {
        opacity: 0.38;
        transform: scale(0.72);
    }
}

.stream-schedule-card {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 13px;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 21px;
    color: #fff;
    background:
        radial-gradient(
            circle at 92% 0,
            rgba(48, 205, 255, 0.3),
            transparent 38%
        ),
        linear-gradient(145deg, #371265, #19092f);
    box-shadow:
        0 13px 28px rgba(39, 14, 61, 0.2);
}

.schedule-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 16px;
    font-size: 23px;
    background: rgba(255, 255, 255, 0.12);
}

.schedule-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

.schedule-copy > span {
    grid-column: 1 / 3;
    color: #cba9ff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.schedule-copy div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-copy b {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
}

.schedule-copy strong {
    font-size: 16px;
}

.schedule-zone {
    padding: 6px 8px;
    border-radius: 999px;
    color: #32125c;
    font-size: 10px;
    font-weight: 950;
    background: #eadfff;
}

.profile-summary-button {
    width: 100%;
    border: 1px solid var(--border);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.profile-summary-button[aria-expanded="true"] {
    box-shadow:
        0 16px 38px rgba(82, 49, 0, 0.13),
        0 0 0 3px rgba(116, 60, 220, 0.13);
}

.account-details-panel {
    margin-top: 12px;
}

.profile-chat-card {
    margin-top: 16px;
    margin-bottom: 10px;
}

@media (max-width: 420px) {
    .topbar-actions {
        gap: 5px;
    }

    .store-button {
        min-height: 40px;
        padding: 0 8px;
        font-size: 10px;
    }

    .store-hand {
        font-size: 15px;
    }
}

/* SMUSIM STREAM STORE PROFILE V6 END */


/* SMUSIM DYNAMIC SCHEDULE V7 START */

.dynamic-schedule {
    align-items: stretch;
    gap: 14px;
    padding: 15px;
}

.schedule-date-box {
    display: flex;
    min-width: 104px;
    flex-direction: column;
    justify-content: center;
    padding: 13px;
    border-radius: 17px;
    color: #301155;
    background:
        linear-gradient(145deg, #f6eaff, #d9c3ff);
}

.schedule-date-box span {
    color: #7c43d4;
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}

.schedule-date-box strong {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.25;
}

.dynamic-schedule-copy {
    min-width: 0;
    flex: 1;
}

.schedule-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.schedule-time-row span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 850;
}

.schedule-time-row strong {
    color: #fff;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.dynamic-schedule-copy h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 16px;
}

.dynamic-schedule-copy p {
    margin: 0;
    color: #c9a9ff;
    font-size: 10px;
    font-weight: 800;
}

#stream-countdown {
    margin-top: 4px;
    color: #ffe671;
    font-size: 13px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.schedule-week {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.schedule-week span {
    padding: 5px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.1);
}

.twitch-confirm-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.twitch-confirm-button img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1);
}

.owner-account-note {
    margin: 16px 0 4px;
    padding: 18px;
    border-radius: 19px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(255, 223, 74, 0.35),
            transparent 40%
        ),
        linear-gradient(145deg, #7137dc, #351076);
}

.owner-account-note span {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
}

.owner-account-note strong {
    display: block;
    font-size: 17px;
}

.owner-account-note p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

.owner-hidden-registration {
    display: none !important;
}

@media (max-width: 430px) {
    .dynamic-schedule {
        gap: 10px;
        padding: 12px;
    }

    .schedule-date-box {
        min-width: 88px;
        padding: 10px;
    }

    .schedule-date-box strong {
        font-size: 12px;
    }

    .dynamic-schedule-copy h3 {
        font-size: 14px;
    }

    #stream-countdown {
        font-size: 11px;
    }
}

/* SMUSIM DYNAMIC SCHEDULE V7 END */


/* SMUSIM BELL ANIMATION START */

.notification-button #notification-icon {
    display: inline-block;
    transform-origin: 50% 12%;
    animation:
        smusim-bell-swing 1.45s ease-in-out infinite;
}

@keyframes smusim-bell-swing {
    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-13deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-7deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

.notification-button:active #notification-icon {
    animation-duration: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
    .notification-button #notification-icon {
        animation: none;
    }
}

/* SMUSIM BELL ANIMATION END */

/* SMUSIM PHASE 2 OWNER UI START */

:root {
    --owner-purple: #6d35d9;
    --owner-purple-dark: #35106e;
    --owner-yellow: #ffd83d;
    --owner-surface: #fffdf5;
    --owner-border: rgba(60, 35, 20, 0.10);
    --owner-danger: #c83b4d;
}

.hidden {
    display: none !important;
}

.stack-list,
.giveaway-feed {
    display: grid;
    gap: 14px;
}

.compact-empty {
    min-height: 180px;
    padding: 24px;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-row button,
.owner-tabs button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: #655b67;
    font-size: 11px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.76);
}

.filter-row button.active,
.owner-tabs button.active {
    color: #fff;
    background: linear-gradient(145deg, #8a49ff, #5420bd);
    box-shadow: 0 8px 20px rgba(83, 32, 184, 0.24);
}

.live-giveaway-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background: var(--owner-surface);
    box-shadow: 0 18px 38px rgba(64, 43, 12, 0.14);
}

.live-giveaway-card.compact {
    border-radius: 24px;
}

.live-giveaway-image {
    position: relative;
    display: grid;
    min-height: 170px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), transparent 33%),
        linear-gradient(145deg, #4f1fa8, #1f0b43);
    background-size: cover;
    background-position: center;
}

.live-giveaway-card.compact .live-giveaway-image {
    min-height: 132px;
}

.live-giveaway-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 6, 33, 0.04), rgba(16, 6, 33, 0.42));
}

.live-giveaway-image > span {
    position: relative;
    z-index: 1;
    font-size: 68px;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.live-giveaway-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #1f0b43;
}

.live-giveaway-image > b {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    background: rgba(24, 9, 49, 0.66);
    backdrop-filter: blur(12px);
}

.live-giveaway-body {
    padding: 17px;
}

.live-giveaway-topline,
.management-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-giveaway-topline small {
    color: #756b73;
    font-size: 10px;
    font-weight: 800;
}

.live-giveaway-body h3 {
    margin: 12px 0 7px;
    font-size: 22px;
    line-height: 1.15;
}

.live-giveaway-body > p {
    margin: 0;
    color: #786c74;
    font-size: 12px;
    line-height: 1.5;
}

.live-giveaway-prize {
    margin: 13px 0;
    padding: 11px 12px;
    border-radius: 14px;
    color: #3b175f;
    font-size: 13px;
    font-weight: 950;
    background: #f0e7ff;
}

.status-pill,
.role-chip,
.winner-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    color: #5f5660;
    font-size: 9px;
    font-weight: 950;
    background: #efebee;
}

.status-active {
    color: #0f7a53;
    background: #dff8eb;
}

.status-draft,
.status-scheduled {
    color: #7042c2;
    background: #eee4ff;
}

.status-completed,
.status-skin_received,
.status-money_paid {
    color: #147051;
    background: #dcf6e8;
}

.status-cancelled,
.status-archived {
    color: #766d74;
    background: #ebe8ea;
}

.status-drawing,
.status-skin_pending,
.status-money_pending_method,
.status-money_pending_payment {
    color: #9a6310;
    background: #fff0cf;
}

.status-skin_sent {
    color: #186a9c;
    background: #dcefff;
}

.inline-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.inline-header > div {
    min-width: 0;
}

.back-button,
.ghost-button,
.owner-tip button,
.owner-search-row button {
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: var(--owner-purple);
}

.back-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 20px;
}

.owner-access-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    margin: 14px 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 23px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(56, 202, 255, 0.34), transparent 42%),
        linear-gradient(145deg, #4d178d, #19072f);
    box-shadow: 0 17px 35px rgba(48, 15, 76, 0.24);
}

.owner-crown {
    font-size: 34px;
}

.owner-access-card h2,
.owner-access-card p {
    margin: 0;
}

.owner-access-card .section-kicker {
    color: #cda8ff;
}

.owner-access-card > div > p:last-child {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.owner-access-card button {
    padding: 10px 12px;
    border: 0;
    border-radius: 13px;
    color: #35105e;
    font-weight: 950;
    background: #ffe66b;
}

.owner-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.owner-tabs::-webkit-scrollbar {
    display: none;
}

.owner-panel {
    display: none;
}

.owner-panel.active {
    display: block;
}

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

.owner-stats-grid article {
    display: grid;
    gap: 4px;
    padding: 17px;
    border: 1px solid var(--owner-border);
    border-radius: 20px;
    background: rgba(255, 253, 245, 0.94);
    box-shadow: 0 12px 25px rgba(65, 45, 20, 0.10);
}

.owner-stats-grid article > span {
    font-size: 21px;
}

.owner-stats-grid strong {
    color: var(--owner-purple);
    font-size: 28px;
}

.owner-stats-grid small {
    color: #766c72;
    font-size: 10px;
    font-weight: 850;
}

.owner-tip {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 14px 0;
    padding: 16px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #42137c, #1b092e);
}

.owner-tip > span {
    font-size: 28px;
}

.owner-tip > div {
    min-width: 0;
    flex: 1;
}

.owner-tip h3,
.owner-tip p {
    margin: 0;
}

.owner-tip p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.4;
}

.owner-tip button {
    padding: 9px 11px;
    background: #7e42e5;
}

.owner-module {
    margin-bottom: 15px;
    padding: 17px;
    border: 1px solid var(--owner-border);
    border-radius: 24px;
    background: rgba(255, 253, 245, 0.96);
    box-shadow: 0 15px 32px rgba(65, 45, 20, 0.12);
}

.owner-module-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.owner-module-heading h2,
.owner-module-heading p {
    margin: 0;
}

.ghost-button {
    padding: 8px 11px;
    color: #654690;
    background: #eee4ff;
}

.owner-form {
    display: grid;
    gap: 12px;
}

.owner-form label {
    display: grid;
    gap: 6px;
    color: #665b63;
    font-size: 10px;
    font-weight: 900;
}

.owner-form input,
.owner-form textarea,
.owner-form select,
.owner-search-row input,
.role-control select,
.chat-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfd8dc;
    border-radius: 14px;
    outline: none;
    color: #26182a;
    font: inherit;
    background: #fff;
}

.owner-form input,
.owner-form select,
.owner-search-row input,
.role-control select,
.chat-form input {
    min-height: 45px;
    padding: 0 12px;
}

.owner-form textarea {
    min-height: 86px;
    padding: 11px 12px;
    resize: vertical;
}

.owner-form input:focus,
.owner-form textarea:focus,
.owner-form select:focus,
.owner-search-row input:focus,
.chat-form input:focus {
    border-color: #8a52e7;
    box-shadow: 0 0 0 3px rgba(120, 62, 220, 0.12);
}

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

.management-card {
    overflow: hidden;
    padding: 15px;
    border: 1px solid var(--owner-border);
    border-radius: 21px;
    background: rgba(255, 253, 245, 0.96);
    box-shadow: 0 13px 27px rgba(65, 45, 20, 0.10);
}

.management-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.management-icon {
    display: grid;
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    place-items: center;
    border-radius: 15px;
    font-size: 23px;
    background: #f1e8ff;
}

.management-card-main > div {
    min-width: 0;
    flex: 1;
}

.management-card h3,
.management-card p,
.management-card small {
    margin: 0;
}

.management-card h3 {
    font-size: 15px;
}

.management-card p {
    margin-top: 4px;
    color: #6d6269;
    font-size: 11px;
}

.management-card small {
    display: block;
    margin-top: 4px;
    color: #968b91;
    font-size: 9px;
}

.management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.management-actions button,
.participant-row button,
.role-control button {
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    color: #4e2a79;
    font-size: 9px;
    font-weight: 950;
    background: #eee4ff;
}

.management-actions button.danger {
    color: #a92d40;
    background: #ffe1e6;
}

.participants-panel {
    display: grid;
    gap: 7px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e6dfe2;
}

.participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
    background: #f6f1f8;
}

.participant-row strong,
.participant-row small {
    display: block;
}

.participant-row small {
    margin-top: 2px;
    color: #8a7d86;
    font-size: 8px;
}

.winner-badge {
    color: #7c5b08;
    background: #fff1b8;
}

.owner-search-row,
.role-control {
    display: flex;
    gap: 8px;
}

.owner-search-row button,
.role-control button {
    min-width: 72px;
    padding: 0 12px;
}

.role-control {
    margin-top: 12px;
}

.role-control select {
    flex: 1;
}

.chat-messages {
    display: grid;
    gap: 9px;
    min-height: 340px;
    max-height: calc(100vh - 310px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 253, 245, 0.90);
    box-shadow: inset 0 0 0 1px rgba(70, 40, 20, 0.04);
}

.chat-message {
    padding: 11px 12px;
    border-radius: 16px;
    background: #f1ebf5;
}

.chat-message-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message-head strong {
    color: #4d246f;
    font-size: 11px;
}

.chat-message-head time {
    margin-left: auto;
    color: #958994;
    font-size: 8px;
}

.chat-message-head > button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    color: #a73142;
    background: #ffe1e6;
}

.chat-message p {
    margin: 7px 0 0;
    color: #302330;
    font-size: 12px;
    line-height: 1.42;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.role-owner {
    color: #7c5900;
    background: #ffe99a;
}

.role-admin {
    color: #6932a9;
    background: #eaddff;
}

.role-moderator {
    color: #12658a;
    background: #d8f2ff;
}

.emoji-row {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    overflow-x: auto;
}

.emoji-row button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 13px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
    margin-top: 9px;
}

.chat-form button {
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-size: 19px;
    background: linear-gradient(145deg, #8a49ff, #5420bd);
}

.chat-form input:disabled,
.chat-form button:disabled {
    opacity: 0.55;
}

.loading-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 11px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    background: rgba(20, 8, 36, 0.62);
    backdrop-filter: blur(7px);
}

.loading-spinner {
    width: 38px;
    height: 38px;
    margin: auto;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffe05c;
    border-radius: 50%;
    animation: owner-spin 0.85s linear infinite;
}

@keyframes owner-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 430px) {
    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .owner-access-card {
        grid-template-columns: auto 1fr;
    }

    .owner-access-card > button {
        grid-column: 1 / 3;
        width: 100%;
    }

    .live-giveaway-image {
        min-height: 145px;
    }

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

/* SMUSIM PHASE 2 OWNER UI END */

/* SMUSIM OWNER POLISH V2 START */

.bottom-nav button span {
    font-size: inherit;
}

.bottom-nav button .nav-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.bottom-nav button .nav-label {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}

.profile-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-page-header > div {
    min-width: 0;
    flex: 1;
}

.streamer-panel-button {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(50, 28, 10, 0.10);
    border-radius: 16px;
    background: rgba(255, 253, 245, 0.96);
    box-shadow: 0 10px 22px rgba(63, 38, 4, 0.14);
}

.streamer-panel-button img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.wins-page-header {
    align-items: flex-start;
}

.image-upload-field input[type="file"] {
    min-height: 54px;
    padding: 9px;
    border-style: dashed;
    cursor: pointer;
}

.image-upload-field > span,
.form-hint {
    color: #8a7c84;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.giveaway-image-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e1d8e5;
    border-radius: 16px;
    background: #f8f3fb;
}

.giveaway-image-preview img {
    width: 72px;
    height: 72px;
    border-radius: 13px;
    object-fit: cover;
}

.giveaway-image-preview span {
    color: #665b63;
    font-size: 10px;
    font-weight: 850;
}

.owner-status-filters {
    display: flex;
    gap: 7px;
    margin: 2px 0 13px;
    overflow-x: auto;
    scrollbar-width: none;
}

.owner-status-filters::-webkit-scrollbar {
    display: none;
}

.owner-status-filters button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 999px;
    color: #655a61;
    font-size: 9px;
    font-weight: 900;
    background: rgba(255, 253, 245, 0.93);
}

.owner-status-filters button.active {
    color: #fff;
    background: linear-gradient(145deg, #8150ed, #5220b9);
}

.owner-stats-grid .owner-stat-card {
    display: grid;
    gap: 4px;
    padding: 17px;
    border: 1px solid var(--owner-border);
    border-radius: 20px;
    text-align: left;
    background: rgba(255, 253, 245, 0.94);
    box-shadow: 0 12px 25px rgba(65, 45, 20, 0.10);
}

.owner-stats-grid .owner-stat-card:active {
    transform: scale(0.98);
}

.owner-stats-grid .owner-stat-card > span {
    font-size: 21px;
}

.owner-stats-grid .owner-stat-card strong {
    color: var(--owner-purple);
    font-size: 28px;
}

.owner-stats-grid .owner-stat-card small {
    color: #766c72;
    font-size: 10px;
    font-weight: 850;
}

.autocomplete-list {
    position: relative;
    z-index: 4;
    display: grid;
    max-height: 260px;
    margin-top: -7px;
    overflow-y: auto;
    border: 1px solid #ded3e3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 13px 28px rgba(48, 26, 55, 0.16);
}

.autocomplete-list button {
    display: grid;
    gap: 2px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #eee7f0;
    text-align: left;
    background: #fff;
}

.autocomplete-list button:last-child {
    border-bottom: 0;
}

.autocomplete-list strong,
.autocomplete-list small {
    display: block;
}

.autocomplete-list strong {
    color: #29192c;
    font-size: 11px;
}

.autocomplete-list small {
    color: #887a84;
    font-size: 9px;
}

.autocomplete-empty {
    padding: 13px;
    color: #887a84;
    font-size: 10px;
}

.selected-item,
.selected-prize {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #dcd0e4;
    border-radius: 15px;
    background: #f4edfb;
}

.selected-item strong,
.selected-prize strong {
    color: #3f1f69;
    font-size: 12px;
}

.selected-item small,
.selected-prize small {
    color: #7f7180;
    font-size: 9px;
}

.user-role-card {
    cursor: default;
}

.user-card-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
}

.user-card-copy {
    min-width: 0;
}

.user-card-copy strong,
.user-card-copy small {
    display: block;
}

.user-card-copy strong {
    overflow: hidden;
    color: #251629;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card-copy small {
    margin-top: 4px;
    color: #877a82;
    font-size: 9px;
}

.user-card-arrow {
    color: #6d35d9;
    font-size: 20px;
}

.user-card-details {
    display: grid;
    gap: 6px;
    margin-top: 13px;
    padding: 12px;
    border-radius: 14px;
    background: #f6f1f8;
}

.user-card-details p {
    margin: 0;
    color: #675c64;
    font-size: 10px;
    line-height: 1.35;
}

.streamer-role-lock {
    margin-top: 12px;
    padding: 11px;
    border-radius: 13px;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    text-align: center;
    background: linear-gradient(145deg, #7140d8, #3c157e);
}

@media (max-width: 390px) {
    .bottom-nav button .nav-label {
        font-size: 9px;
    }

    .streamer-panel-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

/* SMUSIM OWNER POLISH V2 END */

/* ===== Phase 3: workflow, roles, support and full-screen chat ===== */
.profile-summary-copy {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.profile-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-name-line h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-avatar {
    overflow: hidden;
    flex: 0 0 auto;
}

.profile-avatar img,
.chat-avatar img,
.support-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-controls {
    margin: -8px 12px 16px;
}

.avatar-controls .secondary-button {
    width: 100%;
}

.role-badge-button,
.role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    background: #efe5ff;
    color: #53209b;
    cursor: pointer;
}

.role-badge-button:empty {
    display: none;
}

.role-owner { background: #ffe88a; color: #5c3900; }
.role-admin { background: #e7ddff; color: #4f1a9f; }
.role-moderator { background: #dff7f2; color: #075f52; }
.role-vip { background: #f3e1ff; color: #7b1bb2; }
.role-own_guy { background: #e3f3ff; color: #17567a; }
.role-old_timer { background: #f2eadc; color: #72522a; }
.role-user { background: #ece8f0; color: #594d61; }

.giveaway-admin-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.giveaway-admin-tools button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
    color: #34145f;
    box-shadow: 0 5px 16px rgba(20, 6, 37, 0.18);
    font-size: 17px;
}

.giveaway-admin-tools button.danger {
    color: #b1143a;
}

.live-giveaway-card {
    position: relative;
}

.owner-tabs-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
}

.owner-tabs-three button {
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
}

.owner-stat-card {
    cursor: pointer;
}

.owner-stat-card:active {
    transform: scale(0.98);
}

.management-card-top-tools {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}

.management-card-top-tools button {
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: #eee3ff;
    color: #4b168f;
    font-weight: 800;
}

.management-card-top-tools button.danger {
    background: #ffe3ea;
    color: #a41439;
}

#my-wins-list.hidden,
#staff-wins-panel.hidden {
    display: none !important;
}

.prize-history-card .management-actions {
    margin-top: 10px;
}

.support-thread {
    margin-top: 14px;
    padding: 16px;
    border-radius: 24px;
    background: #fffdf5;
}

.support-thread-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.support-thread-heading h2,
.support-thread-heading p {
    margin: 0;
}

.support-thread-heading select {
    max-width: 130px;
}

.support-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 4px 2px 14px;
}

.support-message {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.support-message.is-me .support-bubble {
    background: #eadcff;
}

.support-avatar,
.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eee3ff;
    font-weight: 900;
    overflow: hidden;
}

.support-bubble {
    padding: 10px 12px;
    border-radius: 16px;
    background: #f1eef3;
}

.support-bubble header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.support-bubble header time {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.65;
}

.support-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-reply-form {
    position: static !important;
    padding: 0 !important;
    background: transparent !important;
}

.rules-content {
    min-height: 180px;
    padding: 20px;
    border-radius: 24px;
    background: #fffdf5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rules-content.empty {
    color: #756d7a;
}

.chat-fullscreen-view.active-view {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex !important;
    flex-direction: column;
    height: var(--tg-viewport-stable-height, 100dvh);
    padding: max(10px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
    background: #ffd83d;
    overflow: hidden;
}

.chat-open .bottom-nav {
    display: none !important;
}

.chat-fullscreen-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 4px 10px;
}

.chat-fullscreen-header h1,
.chat-fullscreen-header p {
    margin: 0;
}

.chat-fullscreen-header h1 {
    font-size: 22px;
}

.chat-fullscreen-header p {
    font-size: 12px;
}

.chat-fullscreen-view .chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    border-radius: 22px;
    padding: 12px;
    background: rgba(255, 253, 245, 0.96);
}

.chat-fullscreen-view .emoji-row {
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 8px 2px 6px;
    white-space: nowrap;
}

.chat-fullscreen-view .chat-form {
    position: static;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 48px;
    gap: 7px;
    padding: 8px 0 0;
    background: transparent;
}

.chat-fullscreen-view .chat-form input {
    min-width: 0;
}

.chat-message {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
}

.chat-message-content {
    min-width: 0;
    padding: 9px 11px;
    border-radius: 16px;
    background: #f1eef3;
}

.chat-message-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-message-head time {
    margin-left: auto;
}

.chat-message-content p {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 430px) {
    .support-thread-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .support-thread-heading select {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
    }

    .giveaway-admin-tools button {
        width: 27px;
        height: 27px;
    }
}

.support-request-card {
    width: 100%;
    border: 0;
    text-align: left;
    color: inherit;
    font: inherit;
}

.chat-message-head > .role-chip,
.support-bubble header > .role-chip {
    width: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 13px;
}

.chat-message-head > [data-delete-message] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    color: #a73142;
    background: #ffe1e6;
}

/* Phase 3: all participations */
.participation-search-card {
    margin-bottom: 14px;
}

.participation-search-card label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.management-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #efe5ff;
    color: #4d178e;
    font-weight: 900;
}

.management-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participation-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

/* ===== Phase 4 fixes ===== */
.profile-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.profile-header-icon-button,
.header-icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(53, 24, 74, 0.16);
}

.profile-header-icon-button img,
.header-icon-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.news-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-title-row h2 {
    margin: 0;
}

.form-submit-compact {
    width: auto !important;
    min-width: 116px;
    min-height: 42px !important;
    align-self: flex-start;
    padding: 0 18px;
    border-radius: 14px !important;
}

.form-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.danger-button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #a51d34;
    font-weight: 900;
    background: #ffe3e8;
}

.inline-review-form {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.inline-review-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.inline-review-form select,
.inline-review-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd2e8;
    border-radius: 14px;
    color: var(--ink);
    font: inherit;
    background: #fff;
}

.saved-review {
    width: 100%;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #5a357f;
    font-size: 12px;
    line-height: 1.45;
    background: #eee5ff;
}

.review-card .management-card-main {
    align-items: flex-start;
}

.review-card .management-card-main > div {
    min-width: 0;
}

.review-card p {
    white-space: pre-wrap;
}

.review-stars {
    margin: 5px 0 !important;
    letter-spacing: 2px;
}

.dynamic-news-image {
    min-height: 170px;
    overflow: hidden;
    background: linear-gradient(145deg, #4b1b90, #21103d);
}

.dynamic-news-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-card .management-actions {
    margin-top: 14px;
}

.inline-create-form {
    gap: 12px;
}

@media (max-width: 390px) {
    .profile-header-icon-button,
    .header-icon-button,
    .streamer-panel-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .profile-header-icon-button img,
    .header-icon-button img {
        width: 27px;
        height: 27px;
    }
}


/* ===== Phase 5: Twitch, hierarchy and two-step publishing ===== */
.profile-page-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-page-header > .profile-header-actions {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-start;
}

.twitch-link-status {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.35;
}

.twitch-link-status.success {
    background: #daf7e7;
    color: #075b35;
}

.twitch-link-status.warning {
    background: #fff0c8;
    color: #6a4300;
}

.twitch-link-status span {
    font-size: 11px;
    font-weight: 650;
}

.role-moderator {
    color: #008f5a;
}

.telegram-published-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 13px;
    background: #daf7e7;
    color: #075b35;
    font-size: 11px;
    font-weight: 850;
}

.role-icon-moderator {
    color: #00a86b;
    font-family: Arial, sans-serif;
    font-weight: 900;
}

/* Phase 6: mandatory Twitch registration, referral profile and compact chat */
.profile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profile-metrics-grid article {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 8px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 253, 245, 0.94);
    box-shadow: inset 0 0 0 1px rgba(76, 44, 12, 0.06);
}

.profile-metrics-grid article > span {
    font-size: 20px;
}

.profile-metrics-grid strong {
    color: #6f2bd9;
    font-size: 19px;
    line-height: 1;
}

.profile-metrics-grid small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.25;
}

.referral-card {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 16px;
    border-radius: 23px;
    background: rgba(255, 253, 245, 0.94);
}

.referral-card h2,
.referral-card p {
    margin: 0;
}

.referral-card h2 {
    margin-top: 3px;
    font-size: 20px;
}

.referral-card p:not(.section-kicker) {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.referral-card label {
    font-size: 11px;
    font-weight: 900;
}

.referral-card input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dfd4e6;
    border-radius: 14px;
    color: var(--ink);
    font-size: 12px;
    background: #fff;
}

.referral-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.compact-action-button {
    width: auto !important;
    min-height: 42px;
    padding: 10px 12px !important;
    font-size: 12px !important;
}

.user-directory-search-card {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.user-directory-search-card label {
    font-size: 12px;
    font-weight: 900;
}

.public-user-card .management-card-main {
    align-items: center;
}

/* Compact Telegram-like chat: about five ordinary messages fit on screen. */
.chat-fullscreen-view .chat-messages {
    gap: 5px;
    padding: 7px;
}

.chat-fullscreen-view .chat-message {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 5px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
}

.chat-fullscreen-view .chat-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.chat-fullscreen-view .chat-message-content {
    padding: 6px 8px;
    border-radius: 12px;
}

.chat-fullscreen-view .chat-message-head {
    gap: 4px;
    flex-wrap: nowrap;
}

.chat-fullscreen-view .chat-message-head strong {
    overflow: hidden;
    max-width: 42%;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-fullscreen-view .chat-message-head time {
    font-size: 7px;
    white-space: nowrap;
}

.chat-fullscreen-view .chat-message-head > .role-chip {
    min-width: 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 10px;
}

.chat-fullscreen-view .chat-message-head > [data-delete-message] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
}

.chat-fullscreen-view .chat-message-content p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.28;
}

@media (max-width: 360px) {
    .profile-metrics-grid {
        gap: 5px;
    }

    .profile-metrics-grid article {
        padding: 10px 5px;
    }

    .profile-metrics-grid strong {
        font-size: 17px;
    }
}

/* ===== Phase 7: стабильность, профили, счётчики и рефералки ===== */
.profile-summary-copy,
.profile-name-line,
.profile-name-line h2 {
    min-width: 0;
    max-width: 100%;
}

.profile-name-line {
    align-items: flex-start;
    flex-wrap: wrap;
}

#profile-name {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    line-height: 1.14;
}

.profile-registration-warning {
    margin: 4px 0 0;
    color: #d71920 !important;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.menu-badge,
.nav-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e51c2f;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(229, 28, 47, .28);
}

.menu-badge.hidden,
.nav-badge.hidden {
    display: none !important;
}

.bottom-nav button {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 9px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 10px;
}

.referral-compact-button {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    color: #19052a;
    text-align: left;
}

.referral-compact-button > span:first-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f1e5ff;
    font-size: 22px;
}

.referral-compact-button b,
.referral-compact-button small {
    display: block;
}

.referral-compact-button small {
    margin-top: 2px;
    color: #786b80;
    font-size: 11px;
}

.referral-compact-button i {
    color: #762fe8;
    font-size: 24px;
    font-style: normal;
}

.referral-detail-card {
    margin: 0 14px;
}

.condition-row.clickable {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.condition-row.clickable i {
    margin-left: auto;
    color: #762fe8;
    font-size: 20px;
    font-style: normal;
}

.condition-row small {
    display: block;
    margin-top: 2px;
    color: #756b7b;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(18, 6, 31, .68);
}

.app-modal.hidden {
    display: none !important;
}

.app-modal-card {
    position: relative;
    width: min(100%, 520px);
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 22px;
    border-radius: 26px;
    background: #fffdf5;
    color: #180523;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.app-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    background: #efe7f7;
    color: #301647;
    font-size: 25px;
}

.user-profile-modal-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 42px;
}

.user-profile-modal-head h2 {
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.user-profile-modal-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 20px;
    background: #eee3ff;
    font-size: 24px;
    font-weight: 900;
}

.user-profile-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-rows {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.user-profile-row {
    display: grid;
    grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f5effa;
}

.user-profile-row span {
    color: #786b80;
    font-size: 12px;
}

.user-profile-row b {
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 12px;
}

.public-user-card {
    width: 100%;
    text-align: left;
}

.public-user-card > i {
    margin-left: auto;
    color: #762fe8;
    font-size: 22px;
    font-style: normal;
}

.request-kind-label {
    display: inline-flex;
    margin-bottom: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eee2ff;
    color: #6524c5;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.support-request-card.awaiting {
    border: 2px solid rgba(229, 28, 47, .32);
}

.request-awaiting-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e51c2f;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.referral-reward-card {
    align-items: center;
}

.chat-message {
    gap: 8px;
    padding: 7px 8px;
    border-radius: 14px;
}

.chat-message-content p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.32;
}

.chat-message-head strong,
.chat-message-head time {
    font-size: 10px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
}

@media (max-width: 420px) {
    .profile-summary {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 9px;
    }

    #profile-name {
        font-size: 18px;
    }

    .profile-header-actions {
        margin-left: auto;
        justify-content: flex-end;
    }

    .user-profile-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .user-profile-row b {
        text-align: left;
    }
}


/* ===== Twitch + referral + user directory hotfix ===== */
.profile-menu button {
    position: relative;
}

.profile-menu button > .menu-badge {
    position: absolute;
    top: 50%;
    right: 38px;
    z-index: 2;
    grid-row: auto;
    grid-column: auto;
    min-width: 18px;
    width: auto;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    transform: translateY(-50%);
}

.referral-compact-button {
    margin: 12px 0 10px;
    box-shadow: 0 10px 24px rgba(89, 44, 0, .10);
}

.referral-detail-card {
    display: grid;
    gap: 12px;
}

.referral-reward-message {
    margin: 0;
    padding: 13px 14px;
    border-radius: 17px;
    color: #38105f;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    background: #f0e3ff;
}

.referral-condition-message {
    margin: 0;
    color: #665c68;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.referral-detail-card label {
    font-size: 12px;
    font-weight: 900;
}

.referral-detail-card textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    resize: none;
    overflow: hidden;
    padding: 12px 13px;
    border: 1px solid #d8cce2;
    border-radius: 15px;
    color: #180523;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
    background: #fff;
}

.user-directory-search-card {
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 20px;
}

.user-directory-search-card input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 2px solid #e5d9ec;
    border-radius: 15px;
    font-size: 15px;
    background: #fff;
}

.user-directory-search-card input:focus {
    border-color: #7a35e8;
    outline: 3px solid rgba(122, 53, 232, .12);
}

#public-user-list {
    gap: 9px;
}

.public-user-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(82, 45, 21, .08);
    border-radius: 20px;
    background: rgba(255, 253, 245, .96);
    box-shadow: 0 9px 22px rgba(55, 31, 7, .08);
}

.public-user-card-button {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px 13px;
    border: 0;
    color: #180523;
    text-align: left;
    background: transparent;
}

.public-user-card-button:active {
    background: #f7efff;
}

.public-user-card .management-avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 17px;
}

.public-user-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.public-user-copy > strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-user-role-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: #685d6d;
    font-size: 10px;
}

.public-user-role-line .role-chip {
    width: 24px;
    height: 24px;
    min-width: 24px;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.public-user-role-line b {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-user-copy small {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 9px;
    color: #6f6571;
    font-size: 10px;
}

.public-user-card-button > i {
    color: #762fe8;
    font-size: 22px;
    font-style: normal;
}

.directory-loading {
    padding: 22px;
    border-radius: 20px;
    color: #6e6175;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    background: rgba(255, 253, 245, .88);
}

.role-chip[role="button"] {
    cursor: pointer;
}

@media (max-width: 360px) {
    .public-user-card-button {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }

    .public-user-card .management-avatar {
        width: 42px;
        height: 42px;
    }

    .referral-reward-message {
        font-size: 14px;
    }
}


/* Phase 7 direct-install hotfix */
.live-giveaway-image {
    min-height: 190px;
}
.live-giveaway-card.compact .live-giveaway-image {
    min-height: 170px;
}
.live-giveaway-image > img {
    object-fit: contain !important;
    object-position: center !important;
}
.giveaway-admin-tools {
    top: 7px;
    right: 7px;
    gap: 4px;
}
.giveaway-admin-tools button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 9px !important;
    font-size: 13px !important;
}
