/* Exact profile rendering bridge for chat: mirrors /home popover + V2 system output. */

@keyframes profilePopoverReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.978);
        filter: blur(14px) saturate(1.08);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1);
    }
}

@keyframes profilePopoverHide {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.978);
        filter: blur(10px) saturate(1.02);
    }
}

.profile-popover {
    position: fixed;
    z-index: 70;
    width: min(424px, calc(100vw - 1.5rem));
    pointer-events: auto;
}

.profile-popover.is-expanded {
    width: min(520px, calc(100vw - 1.5rem));
}

.profile-popover.hidden {
    display: none;
}

.profile-popover.is-opening .profile-popover-card,
.profile-popover.is-opening .v2-dynamic-profile-container {
    animation: profilePopoverReveal 0.24s cubic-bezier(0.22, 0.86, 0.22, 1) both;
    transform-origin: var(--popover-origin-x, 50%) var(--popover-origin-y, 50%);
}

.profile-popover.is-closing .profile-popover-card,
.profile-popover.is-closing .v2-dynamic-profile-container {
    animation: profilePopoverHide 0.2s cubic-bezier(0.4, 0.14, 0.3, 1) both;
    transform-origin: var(--popover-origin-x, 50%) var(--popover-origin-y, 50%);
}

.profile-popover-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.45rem;
    border: none;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: rgba(241, 244, 248, 0.96);
    background:
        linear-gradient(var(--popover-direction, 180deg), rgba(1, 4, 10, 0.14), rgba(1, 4, 10, 0.4)),
        linear-gradient(var(--popover-direction, 180deg), var(--popover-start, #252a33), var(--popover-end, #3a414d));
    min-height: 304px;
}

.profile-popover-card::before {
    display: none;
}

.profile-popover-card.mode-standard {
    --popover-direction: 180deg;
}

.profile-popover-card.mode-card {
    --popover-direction: 270deg;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(160px, 42%);
    gap: 0.35rem;
    align-items: stretch;
    min-height: 210px;
    aspect-ratio: 21 / 9;
    max-height: 210px;
    background-image:
        var(--popover-card-overlay, linear-gradient(270deg, rgba(3, 5, 11, 0.14), rgba(3, 5, 11, 0.34))),
        var(--popover-card-surface, linear-gradient(270deg, var(--popover-start, #252a33), var(--popover-end, #3a414d)));
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.profile-popover-card.mode-avatar {
    min-height: 312px;
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.34), rgba(4, 8, 14, 0.58)),
        linear-gradient(180deg, var(--popover-start, #252a33), var(--popover-end, #3a414d));
    background-size: cover, cover;
    background-position: center, center;
}

.profile-popover-banner {
    height: 101px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14)),
        linear-gradient(135deg, rgba(8, 12, 20, 0.72), rgba(18, 24, 36, 0.42));
    background-size: cover;
    background-position: center;
}

.profile-popover-banner.is-image {
    background-color: rgba(255, 255, 255, 0.04);
}

.profile-popover-standard-body {
    padding: 0.28rem 1rem 0.95rem;
    margin-top: -1.16rem;
}

.profile-popover-identity {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.profile-popover-avatar {
    width: 84px;
    height: 84px;
    border-radius: 9999px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.42rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(244, 247, 251, 0.92);
    box-shadow: none;
}

.profile-popover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-popover-card-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.85rem 0.85rem 0.7rem 0.2rem;
}

.profile-popover-card-avatar-wrap .profile-popover-avatar {
    width: min(128px, calc(100% - 0.25rem));
    height: min(128px, calc(100% - 0.25rem));
}

.profile-popover-copy {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 0.74rem;
}

.profile-popover-name {
    font-size: 1.34rem;
    line-height: 1.05;
    font-weight: 700;
    color: rgba(245, 248, 252, 0.98);
}

.profile-popover-username {
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.48);
    text-transform: none;
    line-height: 1.35;
}

.profile-popover-bio {
    margin-top: 0.72rem;
    border-radius: 1rem;
    border: none;
    background: rgba(9, 12, 18, 0.42);
    padding: 0.76rem 0.88rem;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(244, 247, 251, 0.78);
    box-shadow: none;
    word-break: break-word;
}

.profile-popover-since {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgba(244, 247, 251, 0.66);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    max-width: 100%;
    width: fit-content;
    margin-top: 0.48rem;
    white-space: normal;
}

.profile-popover-presence-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.profile-popover .cf-status-pill,
.profile-presence-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    min-height: 1.28rem;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 13, 19, 0.48);
    backdrop-filter: blur(14px);
    color: rgba(244, 247, 251, 0.86);
    font-family: "Quicksand", "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: none !important;
}

.profile-presence-chip.is-online {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(11, 13, 19, 0.48);
    color: rgba(244, 247, 251, 0.92);
}

.profile-presence-chip.is-offline {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(11, 13, 19, 0.48);
    color: rgba(244, 247, 251, 0.86);
}

.profile-presence-chip-label {
    color: rgba(255, 255, 255, 0.88);
    font-family: "Quicksand", "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: none !important;
}

.profile-popover .cf-status-pill-copy {
    color: rgba(255, 255, 255, 0.9);
    font-family: "Quicksand", "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: none !important;
}

.profile-popover .cf-status-pill .cf-status-icon-circle,
.profile-popover .profile-presence-chip .cf-status-icon-circle,
.profile-popover .profile-presence-chip .cf-time-state-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-grid;
    place-items: center;
}

.profile-popover .cf-status-pill .cf-status-icon-img,
.profile-popover .profile-presence-chip .cf-status-icon-img,
.profile-popover .profile-presence-chip .cf-time-state-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.profile-popover-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.profile-popover-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    padding: 0 0.72rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    color: rgba(245, 248, 255, 0.78);
    font-family: "Quicksand", "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none !important;
}

.profile-popover-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.98);
}

.profile-popover-status {
    min-height: 1rem;
    color: rgba(240, 244, 255, 0.72);
    font-family: "Quicksand", "Segoe UI", sans-serif;
    font-size: 10px;
}

.profile-menu-trigger {
    width: 1.7rem;
    height: 1.7rem;
    min-width: 1.7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 248, 255, 0.76);
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    line-height: 1;
}

.profile-popover .cf-presence-time-chip {
    min-height: 1.28rem;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 13, 19, 0.48);
}

.profile-menu-trigger svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* V2 dynamic profile engine (same rendering rules used by editor output). */
.v2-dynamic-profile-container {
    position: relative;
    --v2-card-width-scale: 1;
    --v2-card-height-scale: 1;
    --v2-card-render-width: calc(720px * var(--v2-card-width-scale));
    --v2-avatar-size: calc(92px * var(--v2-card-height-scale));
    --v2-side-helper-size: calc(56px * var(--v2-card-height-scale));
    width: min(var(--v2-card-render-width), 100%);
    max-width: 100%;
    border-radius: 1.35rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.profile-popover-side-media {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.profile-popover-side-media-art {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 10rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.profile-popover-side-media-art img,
.profile-popover-side-media-art video {
    width: 100%;
    height: 100%;
    min-height: 10rem;
    object-fit: cover;
    transform-origin: center;
}

.profile-popover-side-helper {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.profile-popover-side-helper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

.v2-overlay-host {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    backface-visibility: hidden;
}

.v2-overlay-host-card {
    z-index: 2;
    overflow: hidden;
}

.v2-overlay-host-inside {
    z-index: 4;
    overflow: hidden;
}

.v2-overlay-host-floating {
    z-index: 5;
    overflow: visible;
}

.v2-overlay-layer {
    position: absolute;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.v2-effect-layer,
.v2-scene-layer {
    inset: 0;
}

.v2-profile-effect-media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    background: transparent;
    transform: translateZ(0);
}

.v2-png-layer {
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: max-content;
}

.v2-png-layer img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(60vw, 420px);
    max-height: min(60vh, 420px);
    pointer-events: none;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.v2-side-stack {
    width: 100%;
    display: grid;
    gap: 0.55rem;
}

.v2-side-thumbnail-card {
    position: relative;
    width: 100%;
    aspect-ratio: 0.9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.v2-side-thumbnail-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.v2-side-thumbnail,
.v2-side-helper-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    display: block;
    backface-visibility: hidden;
}

.v2-side-helper-thumb {
    width: var(--v2-side-helper-size);
    height: var(--v2-side-helper-size);
    margin-left: auto;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.v2-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.v2-gallery-card,
.v2-live-activity {
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.85rem;
    min-width: 0;
    backdrop-filter: blur(18px);
}

.v2-gallery-card {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.v2-card-kicker {
    margin-bottom: 0.65rem;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 800;
}

.v2-gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.55rem;
}

.v2-gallery-item {
    display: grid;
    gap: 0.42rem;
    min-height: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
    padding: 0.34rem;
    box-shadow: inset 0 0 0 1px transparent;
}

.v2-gallery-item:hover,
.v2-gallery-item:focus-visible {
    transform: none;
    background: var(--v2-theme-accent-soft, rgba(255, 255, 255, 0.16));
    box-shadow: inset 0 0 0 1px var(--v2-theme-accent-strong, rgba(255, 255, 255, 0.26));
    outline: none;
}

.v2-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1.04;
    object-fit: cover;
    display: block;
    border-radius: 0.76rem;
}

.v2-gallery-item-label {
    padding: 0 0.06rem 0.02rem;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.35;
}

.v2-live-activity-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.v2-live-activity-row img,
.v2-live-activity-art {
    width: 52px;
    height: 52px;
    border-radius: 0.9rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.v2-live-activity-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-live-activity-subtitle {
    margin-top: 0.18rem;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-live-activity .profile-popover-spotify-progress {
    display: grid;
    gap: 0.26rem;
    margin-top: 0.38rem;
}

.v2-live-activity .profile-popover-spotify-progress-bar {
    position: relative;
    width: 100%;
    height: 0.24rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.v2-live-activity .profile-popover-spotify-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(124, 255, 178, 0.95), rgba(63, 231, 161, 0.96));
    transition: width 0.9s linear;
}

.v2-live-activity .profile-popover-spotify-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    font-weight: 700;
}

.v2-desktop-activity-line {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 100%;
    margin-top: 0.55rem;
    min-height: 29px;
    padding: 0.38rem 0.72rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    color: rgba(245, 248, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

.v2-desktop-activity-line span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-popover .cf-music-icon,
.v2-live-activity .cf-music-icon,
.spotify-live-indicator .cf-music-icon {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
}

@media (max-width: 768px) {
    .v2-dynamic-profile-container {
        width: min(100%, var(--v2-card-render-width));
        max-width: 100%;
        border-radius: 1.1rem;
    }
}

.v2-edge-glow-layer {
    position: absolute;
    inset: -10px;
    border-radius: 1.7rem;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(var(--popover-direction, 135deg), var(--popover-glow-start, transparent), var(--popover-glow-end, transparent));
    filter: blur(24px) saturate(1.1);
    opacity: 0.82;
    mix-blend-mode: screen;
}

.v2-profile-surface {
    position: relative;
    width: 100%;
    min-height: calc(320px * var(--v2-card-height-scale));
    background: linear-gradient(var(--popover-direction, 135deg), var(--popover-start, #252a33), var(--popover-end, #3a414d));
    border-radius: 1.32rem;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 34px rgba(0, 0, 0, 0.16);
}

.v2-banner-header {
    position: relative;
    width: 100%;
    min-height: calc(110px * var(--v2-card-height-scale));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: visible;
    box-shadow: none;
}

.v2-dynamic-profile-container.is-banner-tall .v2-banner-header {
    min-height: calc(158px * var(--v2-card-height-scale));
}

.v2-profile-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(calc(var(--v2-avatar-size) + 20px), calc(var(--v2-avatar-size) + 44px)) minmax(0, 1fr);
    gap: calc(1rem * var(--v2-card-height-scale));
    padding: 0 1rem calc(1rem * var(--v2-card-height-scale));
    margin-top: calc(-2rem * var(--v2-card-height-scale));
    z-index: 3;
    align-items: start;
}

.v2-side-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.v2-content-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(0.8rem * var(--v2-card-height-scale));
    padding-top: calc(2.35rem * var(--v2-card-height-scale));
}

.v2-header-block {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.v2-name-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.v2-bio-link-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    min-height: 30px;
    padding: 0.25rem 0.62rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: rgba(245, 248, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.v2-bio-link-bar:hover,
.v2-bio-link-bar:focus-visible {
    background: color-mix(in srgb, var(--v2-theme-accent-soft, rgba(255, 255, 255, 0.22)) 80%, rgba(0, 0, 0, 0.44));
    color: rgba(255, 255, 255, 0.98);
    outline: none;
}

.v2-avatar-frame {
    width: var(--v2-avatar-size);
    height: var(--v2-avatar-size);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

.v2-profile-bio {
    font-size: 12.5px;
    line-height: 1.58;
    color: rgba(244, 247, 251, 0.76);
    word-break: break-word;
}

.v2-profile-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: flex-start;
}

.v2-profile-addons .profile-popover-actions {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

/* Requested fix only: keep original system, but tone down V2 display name + trail chip scale/font. */
body[data-page="channels"] .v2-dynamic-profile-container .profile-popover-name {
    font-family: "Quicksand", "Trebuchet MS", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    line-height: 1.08 !important;
}

body[data-page="channels"] .v2-dynamic-profile-container .profile-presence-chip {
    font-size: 10px !important;
    letter-spacing: 0.03em !important;
    min-height: 1.28rem !important;
    padding: 0.18rem 0.56rem !important;
}

.profile-popover .cf-role-tag {
    height: auto !important;
    min-height: 1.16rem !important;
    padding: 0.18rem 0.5rem !important;
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
}

/* Premium Voyager tag: frosted capsule with soft sky glow + Quicksand */
.profile-premium-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(236, 246, 255, 0.56);
    background:
        radial-gradient(120% 200% at 10% 0%, rgba(255, 255, 255, 0.44), transparent 52%),
        linear-gradient(135deg, rgba(205, 224, 255, 0.3), rgba(118, 179, 255, 0.3));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -1px 0 rgba(79, 129, 210, 0.22),
        0 6px 20px rgba(58, 124, 214, 0.24);
    color: rgba(249, 252, 255, 0.96);
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.profile-premium-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 52%),
        radial-gradient(95% 120% at 88% 88%, rgba(103, 168, 255, 0.24), transparent 70%);
    opacity: 0.92;
}

.profile-premium-chip-label {
    position: relative;
    z-index: 1;
    font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: none;
    white-space: nowrap;
}

.profile-premium-chip.plus {
    border-color: rgba(242, 249, 255, 0.7);
    background:
        radial-gradient(132% 220% at 8% 0%, rgba(255, 255, 255, 0.52), transparent 50%),
        linear-gradient(135deg, rgba(188, 216, 255, 0.38), rgba(94, 167, 255, 0.34));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(83, 147, 236, 0.28),
        0 10px 24px rgba(79, 151, 241, 0.28);
}

.profile-premium-chip.supporter {
    border-color: rgba(244, 230, 255, 0.58);
    background:
        radial-gradient(120% 210% at 10% 0%, rgba(255, 255, 255, 0.42), transparent 52%),
        linear-gradient(135deg, rgba(217, 198, 255, 0.32), rgba(141, 117, 255, 0.32));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        inset 0 -1px 0 rgba(127, 97, 236, 0.26),
        0 8px 22px rgba(118, 90, 223, 0.24);
}
