/* Temi profilo */
.lh-theme-neon::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(217,70,239,0.25), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.2), transparent 50%);
    animation: lh-neon-drift 8s ease-in-out infinite alternate;
}
.lh-neon-btn {
    border: 1px solid rgba(232,121,249,0.7) !important;
    box-shadow: 0 0 18px rgba(217,70,239,0.45), 0 0 8px rgba(6,182,212,0.25), inset 0 0 12px rgba(217,70,239,0.08);
    animation: lh-neon-pulse 2.5s ease-in-out infinite;
}
@keyframes lh-neon-drift {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
@keyframes lh-neon-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(217,70,239,0.45), 0 0 8px rgba(6,182,212,0.25); }
    50% { box-shadow: 0 0 28px rgba(217,70,239,0.65), 0 0 16px rgba(6,182,212,0.4); }
}

.lh-theme-cyber::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6,182,212,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,182,212,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.lh-cyber-btn { box-shadow: 0 0 12px rgba(6,182,212,0.3); }

.lh-theme-aurora::before {
    content: '';
    position: fixed;
    inset: -50%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% 50%, #312e81, #134e4a, #6ee7b7, #312e81);
    opacity: 0.35;
    animation: lh-aurora-spin 20s linear infinite;
}
@keyframes lh-aurora-spin {
    to { transform: rotate(360deg); }
}

.lh-theme-sunset::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 45%);
}

.lh-theme-gold::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at top, rgba(251,191,36,0.15), transparent 55%);
}

.lh-theme-ocean::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(255,255,255,0.06) 0%, transparent 30%);
    animation: lh-ocean-shimmer 6s ease-in-out infinite alternate;
}
@keyframes lh-ocean-shimmer {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.lh-fx-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    --lh-fx-speed: 1;
    --lh-fx-duration: calc(5s / var(--lh-fx-speed));
}
.lh-profile-page {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lh-profile-stage {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 1.5rem 1rem 2.5rem;
    box-sizing: border-box;
}

.lh-profile-page .lh-fx-layer {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    min-height: 100%;
}

.lh-fx-particle,
.lh-fx-snow,
.lh-fx-rain,
.lh-fx-confetti,
.lh-fx-bubble,
.lh-fx-heart,
.lh-fx-ember,
.lh-fx-matrix-col,
.lh-fx-star,
.lh-fx-firefly,
.lh-fx-glitter-bit,
.lh-fx-aurora-band {
    animation-duration: var(--lh-fx-duration, 5s);
    animation-fill-mode: both;
}

.lh-fx-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    animation-name: lh-float-up;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-float-up {
    0% { top: 108%; transform: scale(0); opacity: 0; }
    8% { top: 100%; transform: scale(1); opacity: 1; }
    92% { opacity: 1; }
    100% { top: -12%; transform: scale(1); opacity: 0; }
}

.lh-fx-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation-name: lh-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes lh-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.8); }
}

.lh-fx-snow {
    position: absolute;
    color: #fff;
    opacity: 0.85;
    animation-name: lh-snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-snow-fall {
    0% { top: -8%; transform: rotate(0deg); }
    100% { top: 108%; transform: rotate(360deg); }
}

.lh-fx-rain {
    position: absolute;
    width: 1px;
    height: 18px;
    background: linear-gradient(transparent, rgba(174,214,255,0.7));
    animation-name: lh-rain-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-rain-fall {
    0% { top: -8%; opacity: 0; }
    8% { opacity: 1; }
    100% { top: 108%; opacity: 0.35; }
}

.lh-fx-aurora-band {
    position: absolute;
    width: 200%;
    height: 40%;
    left: -50%;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation-name: lh-aurora-wave;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes lh-aurora-wave {
    0% { top: 0%; transform: rotate(-5deg); }
    100% { top: 55%; transform: rotate(5deg); }
}

.lh-fx-confetti {
    position: absolute;
    width: 8px;
    height: 12px;
    animation-name: lh-confetti-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-confetti-fall {
    0% { top: -8%; transform: rotate(0deg); opacity: 1; }
    100% { top: 108%; transform: rotate(720deg); opacity: 0.6; }
}

.lh-effetto-card:hover { border-color: #52525b; }
.lh-preview-phone {
    border: 3px solid #3f3f46;
    border-radius: 1.75rem;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    min-height: 480px;
}
.lh-preview-inner {
    position: relative;
    min-height: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
}

.lh-preview-inner--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
}

.lh-preview-inner--centered .lh-preview-frame-wrap {
    margin: 0 auto;
    flex-shrink: 0;
}
#lh-preview-fx {
    z-index: 1;
    --lh-fx-speed: 1;
    --lh-fx-duration: calc(5s / var(--lh-fx-speed));
}
.lh-fx-contained .lh-fx-particle { animation-name: lh-float-up-box; }
.lh-fx-contained .lh-fx-snow { animation-name: lh-snow-fall-box; }
.lh-fx-contained .lh-fx-rain { animation-name: lh-rain-fall-box; }
.lh-fx-contained .lh-fx-confetti { animation-name: lh-confetti-fall-box; }
.lh-fx-contained .lh-fx-bubble { animation-name: lh-bubble-rise-box; }
.lh-fx-contained .lh-fx-heart { animation-name: lh-heart-float-box; }
.lh-fx-contained .lh-fx-ember { animation-name: lh-ember-rise-box; }
.lh-fx-contained .lh-fx-matrix-col { animation-name: lh-matrix-fall-box; top: -15%; }
@keyframes lh-float-up-box {
    0% { top: 108%; opacity: 0; }
    12% { opacity: 1; }
    100% { top: -12%; opacity: 0; }
}
@keyframes lh-snow-fall-box {
    0% { top: -8%; }
    100% { top: 108%; }
}
@keyframes lh-rain-fall-box {
    0% { top: -8%; opacity: 0; }
    15% { opacity: 1; }
    100% { top: 108%; opacity: 0.35; }
}
@keyframes lh-confetti-fall-box {
    0% { top: -8%; transform: rotate(0deg); opacity: 1; }
    100% { top: 108%; transform: rotate(720deg); opacity: 0.6; }
}
@keyframes lh-bubble-rise-box {
    0% { top: 108%; transform: scale(0.3); opacity: 0; }
    12% { opacity: 0.7; }
    100% { top: -12%; transform: scale(1); opacity: 0; }
}
@keyframes lh-heart-float-box {
    0% { top: 108%; transform: rotate(0deg); opacity: 0; }
    15% { opacity: 0.85; }
    100% { top: -12%; transform: rotate(20deg); opacity: 0; }
}
@keyframes lh-ember-rise-box {
    0% { top: 108%; transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { top: -12%; transform: translateX(var(--drift, 20px)); opacity: 0; }
}
@keyframes lh-matrix-fall-box {
    0% { top: -15%; }
    100% { top: 115%; }
}
.lh-preview-links .lh-preview-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.65rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

.lh-preview-links .lh-preview-link-btn i {
    font-size: 0.7rem;
    flex-shrink: 0;
}
#lh-preview-aside {
    position: relative;
}
@media (min-width: 1024px) {
    body.lh-dash-page .lh-acc-main {
        overflow-x: visible;
    }

    body.lh-dash-page #lh-preview-aside {
        position: sticky;
        top: 1.25rem;
        align-self: start;
        z-index: 25;
        max-height: calc(100vh - 2.5rem);
        overflow: visible;
    }

    #lh-preview-aside {
        position: sticky;
        top: 5.5rem;
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow: visible;
    }
    #lh-preview-aside .lh-preview-phone {
        overflow: visible;
    }
    #lh-preview-aside .lh-preview-inner {
        max-height: min(72vh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #52525b transparent;
    }
    #lh-preview-aside .lh-preview-inner.lh-preview-inner--sync {
        justify-content: flex-start;
        align-items: center;
        min-height: 100%;
        padding-top: 8%;
        padding-bottom: 55%;
        scroll-behavior: auto;
    }

    body.lh-dash-page #lh-preview-aside .lh-preview-inner {
        max-height: min(78vh, 560px);
    }
}
.lh-preview-phone.lh-preview-pulse .lh-preview-inner {
    animation: lh-preview-section-pulse 0.55s ease;
}
@keyframes lh-preview-section-pulse {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(168, 85, 247, 0); }
    50% { box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.45); }
}
.lh-preview-notch {
    width: 80px;
    height: 6px;
    background: #27272a;
    border-radius: 999px;
    margin: 8px auto 0;
}
.lh-preview-bg-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
}
.lh-preview-bg-blur.lh-preview-bg--sharp {
    inset: 0;
    filter: none;
    transform: none;
}
.lh-preview-bg-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
    pointer-events: none;
}
.lh-theme-card-swatch {
    width: 100%;
    height: 2.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
}
.lh-font-card { cursor: pointer; transition: border-color 0.15s; }
.lh-font-card.selected { border-color: #10b981 !important; background: rgba(16,185,129,0.08); }
.lh-effetto-card { cursor: pointer; min-height: 5rem; overflow: hidden; position: relative; }
.lh-effetto-card.selected { border-color: #a855f7 !important; }
.lh-bg-pos-frame {
    position: relative;
    height: 10rem;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: crosshair;
    border: 1px solid #3f3f46;
}
.lh-bg-pos-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Profilo free — decorazione leggera */
.lh-profile-free::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(99, 102, 241, 0.07), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 100%, rgba(14, 165, 233, 0.06), transparent 55%);
}

.lh-theme-light.lh-profile-free::after {
    background:
        radial-gradient(ellipse 60% 40% at 12% 0%, rgba(99, 102, 241, 0.1), transparent 58%),
        radial-gradient(ellipse 50% 35% at 88% 100%, rgba(56, 189, 248, 0.08), transparent 58%);
}

.lh-profile-footer-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.12);
}
.lh-profile-wrap[style*="background-color: #fff"] .lh-profile-footer-card,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-profile-footer-card {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}

.lh-avatar-initials {
    background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(139,92,246,0.35));
    font-weight: 800;
    letter-spacing: 0.05em;
}

.lh-username-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0.85;
    margin-bottom: 1rem;
}

/* Badge profilo pubblico (pill accanto al nome) */
.lh-profile-name-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
}

.lh-profile-display-name {
    line-height: 1.2;
}

.lh-profile-badges-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    vertical-align: middle;
}

.lh-profile-badges-pill--avatar {
    position: absolute;
    top: -0.05rem;
    right: -0.1rem;
    z-index: 5;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    gap: 0;
}

.lh-profile-badges-pill--avatar .lh-pb-badge {
    width: 26px;
    height: 26px;
    font-size: 22px;
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.lh-profile-badges-pill--avatar .lh-pb-badge[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.96);
}

.lh-profile-badges-pill--avatar .lh-pb-badge[data-tooltip]:hover::after,
.lh-profile-badges-pill--avatar .lh-pb-badge[data-tooltip]:focus-visible::after {
    transform: translateX(0) scale(1);
}

@media (min-width: 640px) {
    .lh-profile-badges-pill--avatar {
        top: 0;
        right: 0;
    }

    .lh-profile-badges-pill--avatar .lh-pb-badge {
        width: 30px;
        height: 30px;
        font-size: 25px;
    }
}

.lh-pb-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    cursor: default;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.lh-pb-badge--verified { color: #7dd3fc; }
.lh-pb-badge--premium { color: #d8b4fe; }
.lh-pb-badge--staff { color: #93c5fd; }
.lh-pb-badge--donor { color: #86efac; }
.lh-pb-badge--gifter { color: #fdba74; }
.lh-pb-badge--reporter { color: #86efac; }

.lh-pb-badge[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) scale(0.96);
    min-width: 140px;
    max-width: 220px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 30;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.lh-pb-badge[data-tooltip]:hover::after,
.lh-pb-badge[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ── Temi migliorati + nuovi ── */
.lh-theme-retro::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(61,41,20,0.03) 2px, rgba(61,41,20,0.03) 4px);
}
.lh-theme-holo::before {
    content: '';
    position: fixed;
    inset: -30%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 0deg, #6366f1, #ec4899, #22d3ee, #a855f7, #6366f1);
    opacity: 0.18;
    animation: lh-holo-spin 14s linear infinite;
    filter: blur(60px);
}
.lh-holo-btn { background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.2)) !important; }
@keyframes lh-holo-spin { to { transform: rotate(360deg); } }

.lh-theme-rose::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 80% 10%, rgba(190,24,93,0.2), transparent 55%),
                radial-gradient(ellipse 50% 40% at 10% 90%, rgba(157,23,77,0.15), transparent 50%);
    animation: lh-rose-breathe 6s ease-in-out infinite alternate;
}
@keyframes lh-rose-breathe { 0% { opacity: 0.6; } 100% { opacity: 1; } }

.lh-theme-sakura::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(251,207,232,0.5), transparent 35%),
                radial-gradient(circle at 75% 70%, rgba(244,114,182,0.25), transparent 40%);
}
.lh-theme-void::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(124,58,237,0.35), transparent 60%);
    animation: lh-void-pulse 5s ease-in-out infinite;
}
.lh-void-btn { box-shadow: 0 0 20px rgba(139,92,246,0.35); }
@keyframes lh-void-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.lh-theme-mint::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.12), transparent 55%);
}
.lh-theme-lava::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(234,88,12,0.25), transparent 55%);
    animation: lh-lava-glow 4s ease-in-out infinite alternate;
}
.lh-lava-btn { box-shadow: 0 0 16px rgba(234,88,12,0.45); animation: lh-lava-flicker 3s ease-in-out infinite; }
@keyframes lh-lava-glow { 0% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes lh-lava-flicker { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }

/* Neon migliorato */
.lh-theme-neon::before {
    animation: lh-neon-drift 6s ease-in-out infinite alternate, lh-neon-hue 12s linear infinite;
}
@keyframes lh-neon-hue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

/* ── Avatar wrap + effetti ── */
.lh-avatar-wrap {
    --lh-avatar-size: 6rem;
    --lh-avatar-ring: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--lh-avatar-size) + var(--lh-avatar-ring) * 2);
    height: calc(var(--lh-avatar-size) + var(--lh-avatar-ring) * 2);
    border-radius: 50%;
    margin-bottom: 1rem;
    padding: var(--lh-avatar-ring);
    box-sizing: border-box;
    flex-shrink: 0;
    background: transparent;
}
.lh-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    padding: var(--lh-avatar-ring);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
.lh-avatar-inner {
    position: relative;
    z-index: 2;
    width: var(--lh-avatar-size);
    height: var(--lh-avatar-size);
    border-radius: 50%;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    background: #0a0a0a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.lh-avatar-inner.lh-avatar-rotate {
    animation: lh-avatar-photo-spin 10s linear infinite;
}
.lh-avatar-inner img.lh-avatar-photo,
.lh-avatar-inner .lh-avatar-initials {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.lh-avatar-inner .lh-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lh-avatar-inner .lh-avatar-photo.hidden,
.lh-avatar-inner .lh-avatar-initials.hidden {
    display: none !important;
}
@media (min-width: 640px) {
    .lh-avatar-wrap { --lh-avatar-size: 7rem; }
}
.lh-avatar-orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    top: 50%;
    left: 50%;
    margin: -4px 0 0 -4px;
}
.lh-fx-avatar-spin_gradient::before {
    opacity: 1;
    background: conic-gradient(from 0deg, #f472b6, #818cf8, #22d3ee, #34d399, #fbbf24, #f472b6);
    animation: lh-spin 2.5s linear infinite;
}
.lh-fx-avatar-pulse_ring::before {
    opacity: 1;
    padding: 0;
    -webkit-mask: none;
    mask: none;
    border: 2px solid rgba(255,255,255,0.5);
    animation: lh-pulse-ring 2s ease-out infinite;
}
.lh-fx-avatar-neon_orbit .lh-avatar-orbit-dot:nth-child(1) {
    background: #e879f9;
    box-shadow: 0 0 10px #e879f9;
    animation: lh-orbit 3s linear infinite;
}
.lh-fx-avatar-neon_orbit .lh-avatar-orbit-dot:nth-child(2) {
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: lh-orbit 3s linear infinite reverse;
    animation-delay: -1.5s;
}
.lh-fx-avatar-electric {
    animation: lh-electric-border 0.8s steps(2) infinite;
    box-shadow: 0 0 12px rgba(96,165,250,0.6), inset 0 0 8px rgba(96,165,250,0.2);
}
.lh-fx-avatar-fire_ring::before {
    opacity: 1;
    background: conic-gradient(from 0deg, #f97316, #ef4444, #fbbf24, #f97316);
    animation: lh-spin 1.5s linear infinite;
    filter: blur(0.5px);
}
.lh-fx-avatar-diamond::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(200,200,255,0.4), rgba(255,255,255,0.8));
    background-size: 200% 200%;
    animation: lh-diamond-shine 3s ease infinite;
}
.lh-fx-avatar-hologram::before {
    opacity: 1;
    background: linear-gradient(90deg, #ff6b9d, #c44fff, #6ecbff, #ff6b9d);
    background-size: 300% 100%;
    animation: lh-holo-slide 4s linear infinite;
}
@keyframes lh-spin { to { transform: rotate(360deg); } }
@keyframes lh-avatar-photo-spin { to { transform: rotate(360deg); } }
@keyframes lh-pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}
@keyframes lh-orbit {
    0% { transform: rotate(0deg) translateX(calc(var(--lh-avatar-size) / 2 + var(--lh-avatar-ring))) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(calc(var(--lh-avatar-size) / 2 + var(--lh-avatar-ring))) rotate(-360deg); }
}
@keyframes lh-electric-border {
    0%, 100% { box-shadow: 0 0 8px #60a5fa, 0 0 16px #3b82f6; }
    50% { box-shadow: 0 0 20px #93c5fd, 0 0 30px #60a5fa; }
}
@keyframes lh-diamond-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes lh-holo-slide { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ── Card profilo (vetro) + cornice sulla card interna ── */
.lh-profile-card {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 0.75rem;
    border-radius: 0;
    overflow: visible;
}
.lh-profile-glass .lh-profile-card-inner,
.lh-glass-panel {
    background: rgba(8, 8, 14, 0.48);
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tema chiaro — card leggibile (niente grigio/contrasto su sfondo bianco) */
.lh-theme-light .lh-profile-glass .lh-profile-card-inner,
.lh-theme-light .lh-glass-panel,
.lh-profile-wrap[style*="background-color: #fff"] .lh-profile-glass .lh-profile-card-inner,
.lh-profile-wrap[style*="background-color: #fff"] .lh-glass-panel,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-profile-glass .lh-profile-card-inner,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.lh-theme-light .lh-username-badge,
.lh-profile-wrap[style*="background-color: #fff"] .lh-username-badge,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-username-badge {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
    opacity: 1;
}

.lh-theme-light .lh-profile-badges-pill,
.lh-profile-wrap[style*="background-color: #fff"] .lh-profile-badges-pill,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-profile-badges-pill {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}

.lh-theme-light .lh-pb-badge {
    color: #334155;
    filter: none;
}

.lh-theme-light .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #fff"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #f5f0e6"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #ecfdf5"] .lh-stat-pill {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.lh-theme-light .lh-stat-like-btn:hover {
    background: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.14);
}

.lh-theme-light .lh-stat-label {
    color: #64748b;
}

.lh-profile-empty-links {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.lh-theme-light .lh-profile-empty-links {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

.lh-theme-light .lh-profile-welcome {
    color: #64748b;
    opacity: 1;
}

.lh-theme-light .lh-avatar-initials {
    background: linear-gradient(135deg, #c4b5fd, #7dd3fc);
    color: #1e1b4b;
}

.lh-profile-card-inner {
    position: relative;
    z-index: 2;
    border-radius: 1.35rem;
    padding: 2rem 1.25rem 2.5rem;
    overflow: visible;
}
.lh-profile-card-inner > *:not(.lh-profile-card-border) {
    position: relative;
    z-index: 4;
}
.lh-profile-card-border {
    --lh-frame-w: 2px;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    padding: var(--lh-frame-w);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    background: transparent;
}
.lh-fx-frame-snake .lh-profile-card-border {
    background: conic-gradient(from var(--lh-snake-angle, 0deg), transparent 55%, #22d3ee 72%, #e879f9 82%, transparent 95%);
    animation: lh-snake-rotate 4s linear infinite;
}
.lh-fx-frame-border_flow .lh-profile-card-border {
    background: linear-gradient(90deg, #22d3ee, #a855f7, #f472b6, #22d3ee);
    background-size: 300% 100%;
    animation: lh-border-flow 3s linear infinite;
}
.lh-fx-frame-scanline .lh-profile-card-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: var(--lh-frame-w);
    background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.95) 49%, rgba(34, 211, 238, 0.95) 51%, transparent 100%);
    background-size: 100% 220%;
    background-position: 0% 0%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: lh-scanline-ring 3s linear infinite;
    box-shadow: none;
}
.lh-fx-frame-aurora_frame .lh-profile-card-border {
    background: linear-gradient(135deg, #6ee7b7, #818cf8, #f472b6, #6ee7b7);
    background-size: 400% 400%;
    animation: lh-aurora-frame 6s ease infinite;
}
.lh-fx-frame-none .lh-profile-card-border {
    display: none;
}
@property --lh-snake-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes lh-snake-rotate { to { --lh-snake-angle: 360deg; } }
@keyframes lh-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes lh-scanline-ring {
    0% { background-position: 0% 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { background-position: 0% 100%; opacity: 0; }
}
@keyframes lh-aurora-frame {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Effetti link (hover) ── */
.lh-profile-link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.lh-fx-link-glow_hover:hover {
    box-shadow: 0 0 24px rgba(255,255,255,0.25), 0 0 48px rgba(139,92,246,0.2) !important;
}
.lh-fx-link-slide_shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.lh-fx-link-slide_shine:hover::after { left: 150%; }
.lh-fx-link-lift_pop { transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.lh-fx-link-lift_pop:hover { transform: translateY(-4px) scale(1.02) !important; box-shadow: 0 12px 28px rgba(0,0,0,0.2) !important; }
.lh-fx-link-neon_border {
    border: 1px solid rgba(232,121,249,0.4) !important;
    animation: lh-link-neon 2s ease-in-out infinite;
}
@keyframes lh-link-neon {
    0%, 100% { box-shadow: 0 0 8px rgba(217,70,239,0.3); }
    50% { box-shadow: 0 0 20px rgba(6,182,212,0.4); }
}
.lh-fx-link-magnetic { transition: transform 0.15s ease-out !important; }

/* ── Overlay ingresso (guns.lol) ── */
.lh-entry-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.lh-entry-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.lh-entry-overlay-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 2.5rem;
    max-width: 22rem;
    animation: lh-entry-float 3s ease-in-out infinite;
}
.lh-entry-overlay-ring {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
    animation: lh-entry-pulse 2s ease-out infinite;
    overflow: hidden;
}
.lh-entry-overlay-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lh-entry-overlay-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.lh-entry-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.lh-entry-overlay-cta i {
    font-size: 1.25rem;
    opacity: 0.9;
}
.lh-entry-overlay-hint {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lh-entry-overlay.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.lh-entry-locked {
    overflow: hidden;
}
body.lh-entry-locked .lh-profile-page {
    filter: blur(10px) brightness(0.55);
    transform: scale(1.03);
    pointer-events: none;
    user-select: none;
}
body.lh-entry-locked .lh-audio-player,
body.lh-entry-locked .lh-promo-header {
    opacity: 0;
}
@keyframes lh-entry-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); transform: scale(1); }
    70% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}
@keyframes lh-entry-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Apertura profilo (ingresso pagina) ── */
.lh-profile-wrap.lh-fx-apertura-fade_up.lh-entry-replay .lh-profile-card-inner,
.lh-preview-card-inner.lh-fx-apertura-fade_up.lh-entry-replay {
    animation: lh-apertura-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lh-profile-wrap.lh-fx-apertura-zoom_in.lh-entry-replay .lh-profile-card-inner,
.lh-preview-card-inner.lh-fx-apertura-zoom_in.lh-entry-replay {
    animation: lh-apertura-zoom-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lh-profile-wrap.lh-fx-apertura-blur_in.lh-entry-replay .lh-profile-card-inner,
.lh-preview-card-inner.lh-fx-apertura-blur_in.lh-entry-replay {
    animation: lh-apertura-blur-in 0.95s ease-out both;
}
.lh-profile-wrap.lh-fx-apertura-elastic.lh-entry-replay .lh-profile-card-inner,
.lh-preview-card-inner.lh-fx-apertura-elastic.lh-entry-replay {
    animation: lh-apertura-elastic 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lh-profile-wrap.lh-fx-apertura-glitch.lh-entry-replay .lh-profile-card-inner,
.lh-preview-card-inner.lh-fx-apertura-glitch.lh-entry-replay {
    animation: lh-apertura-glitch 0.7s steps(2, end) both;
}
.lh-profile-wrap.lh-entry-replay .lh-profile-card-border {
    animation: lh-apertura-frame-in 1s ease-out both;
}
@keyframes lh-apertura-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes lh-apertura-zoom-in {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes lh-apertura-blur-in {
    from { opacity: 0; filter: blur(14px); transform: scale(1.03); }
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes lh-apertura-elastic {
    0% { opacity: 0; transform: scale(0.6); }
    55% { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes lh-apertura-glitch {
    0% { opacity: 0; transform: translate(0); filter: hue-rotate(0deg); }
    20% { opacity: 1; transform: translate(-3px, 1px); filter: hue-rotate(90deg); }
    40% { transform: translate(3px, -1px); filter: hue-rotate(-40deg); }
    60% { transform: translate(-2px, 0); }
    100% { opacity: 1; transform: translate(0); filter: none; }
}
@keyframes lh-apertura-frame-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Click FX (legacy, non più in dashboard) ── */
.lh-click-fx {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    transform: scale(0);
    animation: lh-click-ripple 0.6s ease-out forwards;
}
.lh-click-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: lh-sparkle-fly 0.5s ease-out forwards;
}
.lh-click-shockwave {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: lh-shockwave 0.5s ease-out forwards;
}
.lh-click-flash {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.4);
    pointer-events: none;
    z-index: 9999;
    animation: lh-flash-fade 0.35s ease-out forwards;
}
.lh-fx-btn-bounce:active { animation: lh-btn-bounce 0.35s ease !important; }
@keyframes lh-click-ripple { to { transform: scale(4); opacity: 0; } }
@keyframes lh-sparkle-fly { to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }
@keyframes lh-shockwave { to { transform: scale(3); opacity: 0; } }
@keyframes lh-flash-fade { to { opacity: 0; } }
@keyframes lh-btn-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(0.92); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ── Sfondo FX migliorati + nuovi ── */
.lh-fx-bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
    animation-name: lh-bubble-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-bubble-rise {
    0% { top: 108%; transform: scale(0.3); opacity: 0; }
    10% { opacity: 0.7; }
    100% { top: -12%; transform: scale(1); opacity: 0; }
}
.lh-fx-firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 6px #fbbf24;
    animation-name: lh-firefly-drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-firefly-drift {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(var(--dx, 30px), var(--dy, -80px)); opacity: 0; }
}
.lh-fx-matrix-col {
    position: absolute;
    top: -15%;
    font-family: monospace;
    font-size: 12px;
    color: #4ade80;
    opacity: 0.7;
    animation-name: lh-matrix-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
}
@keyframes lh-matrix-fall {
    0% { top: -15%; }
    100% { top: 115%; }
}
.lh-fx-heart {
    position: absolute;
    color: #f472b6;
    animation-name: lh-heart-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-heart-float {
    0% { top: 108%; transform: rotate(0deg); opacity: 0; }
    15% { opacity: 0.85; }
    100% { top: -12%; transform: rotate(20deg); opacity: 0; }
}
.lh-fx-glitter-bit {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    animation-name: lh-glitter-twinkle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-glitter-twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
}
.lh-fx-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation-name: lh-ember-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes lh-ember-rise {
    0% { top: 108%; transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { top: -12%; transform: translateX(var(--drift, 20px)); opacity: 0; }
}

/* Particelle migliorate */
.lh-fx-particle { box-shadow: 0 0 6px rgba(255,255,255,0.5); }
.lh-fx-star { box-shadow: 0 0 4px rgba(255,255,255,0.8); }
.lh-fx-confetti { border-radius: 1px; }

/* ── Dashboard: sezioni effetti + anteprima ── */
.lh-effetti-sezione { margin-bottom: 1.25rem; }
.lh-effetti-sezione h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #a1a1aa; margin-bottom: 0.5rem; }
.lh-effetto-card { cursor: pointer; min-height: 4.5rem; overflow: hidden; position: relative; transition: border-color 0.15s, background 0.15s; }
.lh-preview-avatar-wrap.lh-avatar-wrap {
    --lh-avatar-size: 3.5rem;
    --lh-avatar-ring: 3px;
    margin-bottom: 0.75rem;
    overflow: visible;
}
.lh-preview-avatar-wrap .lh-avatar-inner,
.lh-preview-avatar-wrap .lh-preview-avatar-inner {
    width: var(--lh-avatar-size);
    height: var(--lh-avatar-size);
}
.lh-preview-avatar-wrap .lh-avatar-inner img.lh-avatar-photo,
.lh-preview-avatar-wrap .lh-avatar-inner .lh-avatar-initials {
    width: 100%;
    height: 100%;
}
.lh-preview-frame-wrap.lh-profile-card {
    max-width: calc(100% - 1rem);
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}
.lh-preview-frame-wrap .lh-profile-card-inner {
    width: 100%;
    border-radius: 1rem;
}
.lh-preview-frame-wrap .lh-glass-panel {
    background: rgba(8, 8, 14, 0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.lh-preview-frame-wrap .lh-profile-card-inner { padding: 0.75rem 0.75rem 0.5rem; padding-top: 1rem; }

.lh-preview-links { width: 100%; margin-top: 0.5rem; }
.lh-preview-link-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.75rem;
    margin-top: 0.35rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ── Statistiche profilo pubblico ── */
.lh-profile-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 20rem;
}
.lh-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    min-width: 7.5rem;
}
.lh-profile-wrap[style*="background-color: #fff"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #ffffff"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #f5f0e6"] .lh-stat-pill,
.lh-profile-wrap[style*="background-color: #ecfdf5"] .lh-stat-pill,
.lh-theme-light .lh-stat-pill {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}
.lh-stat-like-btn {
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font: inherit;
    color: inherit;
}
.lh-stat-like-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
}
.lh-stat-like-btn.is-liked {
    background: rgba(244,63,94,0.15);
    border-color: rgba(244,63,94,0.45);
    box-shadow: 0 0 18px rgba(244,63,94,0.2);
}
.lh-stat-like-btn.is-liked .lh-stat-icon-likes {
    color: #fb7185;
    animation: lh-stat-heart-pop 0.45s ease;
}
.lh-stat-like-btn.is-pulse { animation: lh-stat-pulse 0.45s ease; }
.lh-stat-like-btn.is-loading { opacity: 0.65; pointer-events: none; }
.lh-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.lh-stat-icon-views {
    background: rgba(56,189,248,0.18);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56,189,248,0.15);
}
.lh-stat-icon-likes {
    background: rgba(244,63,94,0.15);
    color: #fb7185;
    box-shadow: 0 0 12px rgba(244,63,94,0.12);
}
.lh-stat-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.lh-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.lh-stat-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
    font-weight: 600;
}
@keyframes lh-stat-heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
@keyframes lh-stat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Toggle on/off dashboard */
.lh-toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.lh-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #3f3f46;
    transition: background 0.2s ease;
    position: relative;
}
.lh-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}
.lh-toggle input:checked + .lh-toggle-track {
    background: #8b5cf6;
}
.lh-toggle input:checked + .lh-toggle-track::after {
    transform: translateX(20px);
}
.lh-toggle input:disabled + .lh-toggle-track {
    opacity: 0.5;
}

/* ── Stili card profilo (Premium) ── */
.lh-card-solid-inner {
    background: rgba(10, 10, 16, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: none !important;
}
.lh-card-solid .lh-profile-card-border,
.lh-card-solid-inner + .lh-profile-card-border { opacity: 0.85; }

.lh-card-minimal-inner {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px) !important;
    box-shadow: none;
}
.lh-card-minimal .lh-avatar-wrap::before { opacity: 0.75; }

.lh-card-neon-inner {
    background: rgba(6, 8, 20, 0.82) !important;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(34, 211, 238, 0.06);
}
.lh-card-neon .lh-profile-card-border {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(232, 121, 249, 0.9)) !important;
    opacity: 1;
}

.lh-card-outline-inner {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: none !important;
    box-shadow: none;
}
.lh-card-outline .lh-profile-card-border { opacity: 0.9; }

.lh-card-animated-inner {
    position: relative;
    overflow: hidden;
    background: rgba(8, 8, 14, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.lh-card-animated-inner::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.35), transparent, rgba(34, 211, 238, 0.3), transparent);
    animation: lh-card-shimmer 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}
.lh-card-animated-inner > *:not(.lh-profile-card-border):not(.lh-card-glow-spot) { position: relative; z-index: 2; }
@keyframes lh-card-shimmer {
    to { transform: rotate(360deg); }
}

.lh-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}
.lh-card-3d-inner {
    background: rgba(12, 12, 20, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lh-card-cursor-glow-inner {
    position: relative;
    overflow: hidden;
    background: rgba(8, 8, 16, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lh-card-glow-spot {
    position: absolute;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

/* Adattamento cornici avatar/card per stile */
.lh-card-neon .lh-fx-avatar-none::before,
.lh-card-neon .lh-avatar-wrap::before {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.lh-card-outline .lh-profile-card-border,
.lh-card-minimal .lh-profile-card-border {
    --lh-frame-w: 1px;
}
.lh-card-solid .lh-fx-frame-none .lh-profile-card-border {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

/* —— Audio player bar (guns.lol) —— */
.lh-audio-player {
    position: fixed;
    bottom: 27px;
    left: 30px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: min(360px, calc(100vw - 48px));
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.lh-audio-player-cover {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lh-audio-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lh-audio-cover-fallback {
    font-size: 20px;
    color: #fff;
    line-height: 1;
}
.lh-audio-player.is-playing .lh-audio-cover-fallback {
    color: #c4b5fd;
}
.lh-audio-player-body {
    flex: 1;
    min-width: 0;
}
.lh-audio-player-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    line-height: 1.2;
}
.lh-audio-player-bar {
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    margin-bottom: 6px;
    overflow: hidden;
}
.lh-audio-player-progress {
    height: 100%;
    width: 100%;
    position: relative;
}
.lh-audio-player-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: #fff;
    transition: width 0.1s linear;
}
.lh-audio-player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.lh-audio-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    min-width: 32px;
    font-variant-numeric: tabular-nums;
}
.lh-audio-time:last-child {
    text-align: right;
}
.lh-audio-ctrl {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.lh-audio-ctrl:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.lh-audio-ctrl--play {
    font-size: 18px;
    color: #fff;
}
.lh-audio-player.is-playing .lh-audio-ctrl--play {
    color: #c4b5fd;
}

@media (max-width: 480px) {
    .lh-audio-player {
        left: 12px;
        right: 12px;
        bottom: 16px;
        max-width: none;
        min-width: 0;
    }
}
