/* Effetto profilo Discord — sfondo card */
.lh-discord-effect {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.lh-discord-effect img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Targhetta Discord sui bottoni link — overlay sopra il colore tema, non al posto di esso */
.lh-profile-link.lh-has-nameplate {
    position: relative;
    overflow: hidden;
}

/* Preset con sfondo molto trasparente: base più leggibile sotto la targhetta */
.lh-profile-wrap .lh-profile-link.lh-has-nameplate.lh-btn-custom {
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        var(--lh-btn-bg) !important;
}

.lh-nameplate-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
}

.lh-nameplate-deco img,
.lh-nameplate-deco video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lh-profile-link.lh-has-nameplate > i,
.lh-profile-link.lh-has-nameplate > .lh-brand-icon,
.lh-profile-link.lh-has-nameplate .lh-link-tile-text,
.lh-profile-link.lh-has-nameplate .lh-link-tile-thumb,
.lh-profile-link.lh-has-nameplate .lh-link-featured-bar,
.lh-profile-link.lh-has-nameplate .lh-link-featured-media {
    position: relative;
    z-index: 1;
}

.lh-profile-link.lh-has-nameplate .lh-link-tile-label,
.lh-profile-link.lh-has-nameplate .lh-link-featured-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Dashboard picker collectible Discord */
.lh-collectible-panel {
    border: 1px solid rgb(63 63 70);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: rgb(9 9 11 / 0.5);
}

.lh-collectible-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.lh-collectible-preview {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    background: rgb(24 24 27);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.lh-collectible-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lh-collectible-search {
    position: relative;
    margin-bottom: 0.5rem;
}

.lh-collectible-search input {
    width: 100%;
    padding: 0.5rem 0.65rem 0.5rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(63 63 70);
    background: rgb(9 9 11);
    color: rgb(244 244 245);
    font-size: 0.8125rem;
}

.lh-collectible-search i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(113 113 122);
    font-size: 0.875rem;
}

.lh-collectible-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
    max-height: 5.5rem;
    overflow: auto;
}

.lh-collectible-chip {
    border: 0;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.6875rem;
    background: rgb(39 39 42);
    color: rgb(161 161 170);
    cursor: pointer;
}

.lh-collectible-chip.is-active {
    background: rgb(88 101 242);
    color: #fff;
}

.lh-collectible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.45rem;
    max-height: min(22rem, 52vh);
    overflow: auto;
}

.lh-collectible-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgb(63 63 70);
}

.lh-collectible-pager-btn {
    appearance: none;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgb(63 63 70);
    background: rgb(24 24 27);
    color: rgb(244 244 245);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lh-collectible-pager-btn:hover:not(:disabled) {
    border-color: rgb(88 101 242);
    background: rgba(88, 101, 242, 0.12);
}

.lh-collectible-pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.lh-collectible-pager-info {
    font-size: 0.6875rem;
    color: rgb(161 161 170);
    text-align: center;
    min-width: 0;
}

.lh-collectible-tile {
    border: 1px solid rgb(63 63 70);
    border-radius: 0.65rem;
    background: rgb(24 24 27);
    padding: 0.35rem;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.lh-collectible-tile.is-selected {
    border-color: rgb(34 197 94);
    box-shadow: 0 0 0 1px rgb(34 197 94);
}

.lh-collectible-tile.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.lh-collectible-tile-thumb {
    aspect-ratio: 1;
    border-radius: 0.45rem;
    background: rgb(9 9 11);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.lh-collectible-panel[data-collectible-type="effect"] .lh-collectible-tile-thumb,
.lh-collectible-panel[data-collectible-type="nameplate"] .lh-collectible-tile-thumb,
.lh-collectible-panel[data-collectible-type="effect"] .lh-collectible-preview,
.lh-collectible-panel[data-collectible-type="nameplate"] .lh-collectible-preview {
    background: linear-gradient(145deg, #52525b 0%, #27272a 45%, #18181b 100%);
}

.lh-collectible-thumb-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgb(161 161 170);
    font-size: 1.1rem;
}

.lh-collectible-preview .lh-collectible-thumb-fallback {
    font-size: 1.35rem;
}

.lh-collectible-tile-thumb img,
.lh-collectible-tile-thumb video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

.lh-collectible-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lh-collectible-tile-name {
    font-size: 0.625rem;
    line-height: 1.2;
    color: rgb(212 212 216);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .lh-nameplate-deco video {
        display: none;
    }
}
