/* LinkHub Account Shell — ispirato al layout sidebar fisso, tema scuro viola */

:root {
    --lh-acc-bg: #080808;
    --lh-acc-sidebar: #0c0c0c;
    --lh-acc-card: #101010;
    --lh-acc-card-2: #141414;
    --lh-acc-border: #1a1a1a;
    --lh-acc-border-2: #242424;
    --lh-acc-text: #f5f5f5;
    --lh-acc-muted: #9ca3af;
    --lh-acc-muted-2: #6b7280;
    --lh-acc-accent: #9c4dab;
    --lh-acc-accent-bright: #d283eb;
    --lh-acc-accent-soft: rgba(156, 77, 171, 0.28);
    --lh-acc-accent-border: rgba(194, 101, 224, 0.45);
    --lh-acc-emerald: #34d399;
    --lh-acc-emerald-soft: rgba(52, 211, 153, 0.15);
    --lh-acc-sidebar-w: 300px;
    --lh-acc-radius: 15px;
    --lh-acc-radius-lg: 20px;
    --lh-acc-font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.lh-acc-body {
    margin: 0;
    min-height: 100vh;
    background: var(--lh-acc-bg);
    color: var(--lh-acc-text);
    font-family: var(--lh-acc-font);
}

.lh-acc-app {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.lh-acc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: var(--lh-acc-sidebar-w);
    min-width: var(--lh-acc-sidebar-w);
    height: 100vh;
    padding: 25px;
    background: var(--lh-acc-sidebar);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    scrollbar-width: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lh-acc-sidebar::-webkit-scrollbar { display: none; }

.lh-acc-sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--lh-acc-border-2);
    border-radius: 50%;
    background: #181818;
    color: var(--lh-acc-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.lh-acc-brand {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lh-acc-border);
    margin-bottom: 20px;
}

.lh-acc-brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
}

.lh-acc-logo-mark {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lh-acc-logo-mark .lh-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lh-acc-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lh-acc-brand-text strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--lh-acc-text);
}

.lh-acc-brand-text small {
    font-size: 14px;
    color: var(--lh-acc-muted-2);
    font-weight: 500;
}

.lh-acc-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 10px 12px;
    border: none;
    border-radius: 18px;
    background: #121212;
    border: 2px solid #161616;
    color: #a5a4a4;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.85;
    text-align: left;
}

.lh-acc-search-btn i { font-size: 21px; }

.lh-acc-search-btn span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-acc-search-btn kbd {
    color: #898989;
    background: #181818;
    border: 2px solid #222;
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11px;
    font-family: inherit;
}

.lh-acc-nav-label {
    margin: 0 0 6px 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 0.02em;
}

.lh-acc-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: -10px;
    margin-bottom: 18px;
}

.lh-acc-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 10px 10px 15px;
    border-radius: var(--lh-acc-radius-lg);
    text-decoration: none;
    color: var(--lh-acc-text);
    font-size: 17px;
    font-weight: 500;
    transition: background 0.3s;
}

.lh-acc-nav-link i { font-size: 22px; }

.lh-acc-nav-link:hover { background: rgba(250, 250, 250, 0.15); }

.lh-acc-nav-link.is-active {
    background: rgba(156, 77, 171, 0.22);
    border: 2px solid rgba(194, 101, 224, 0.25);
}

.lh-acc-nav-link.is-active i {
    color: var(--lh-acc-accent-bright);
}

.lh-acc-premium-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--lh-acc-text);
    font-weight: 500;
    font-size: 15px;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    transition: 0.25s;
    cursor: pointer;
}

.lh-acc-premium-cta:hover {
    background: rgba(126, 44, 139, 0.5);
}

.lh-acc-user-card {
    margin-top: 25px;
    background: #141414;
    border-radius: 35px;
    padding: 10px;
}

.lh-acc-user-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-acc-user-avatar {
    width: 49px;
    height: 49px;
    min-width: 49px;
    border-radius: 50%;
    border: 2px solid var(--lh-acc-border-2);
    object-fit: cover;
}

.lh-acc-user-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f1f;
    font-size: 14px;
    font-weight: 700;
    color: var(--lh-acc-muted);
}

.lh-acc-user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.lh-acc-user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--lh-acc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-acc-user-meta a {
    font-size: 18px;
    font-weight: 600;
    color: var(--lh-acc-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-acc-user-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(126, 44, 139, 0.35);
    background: rgba(126, 44, 139, 0.16);
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.lh-acc-user-profile-btn:hover {
    background: rgba(126, 44, 139, 0.28);
    border-color: rgba(168, 85, 247, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.lh-acc-user-profile-btn i {
    font-size: 14px;
}

.lh-acc-user-meta small {
    font-size: 13px;
    color: var(--lh-acc-muted-2);
}

.lh-acc-user-logout {
    color: #797979;
    font-size: 28px;
    text-decoration: none;
    display: flex;
    padding: 4px;
    transition: color 0.2s;
}

.lh-acc-user-logout:hover { color: #ededed; }

/* Main */
.lh-acc-main {
    flex: 1;
    margin-left: var(--lh-acc-sidebar-w);
    padding: 45px 45px 45px 40px;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.lh-acc-mobile-bar {
    display: none;
}

.lh-acc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
}

.lh-acc-overlay.is-visible { display: block; }

/* Page header */
.lh-acc-page-header { margin: 0 0 25px; }

.lh-acc-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-acc-page-header p {
    margin: 8px 0 0;
    font-size: 17px;
    color: var(--lh-acc-muted);
    font-weight: 400;
}

.lh-acc-page-header .lh-acc-accent-text {
    color: #e3a6eb;
    font-size: 15px;
    font-weight: 400;
}

/* Alerts */
.lh-acc-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--lh-acc-radius);
    font-size: 14px;
    border: 2px solid transparent;
}

.lh-acc-alert--ok {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.lh-acc-alert--err {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Cards & grid */
.lh-acc-grid-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.lh-acc-stat {
    background: var(--lh-acc-card-2);
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
}

.lh-acc-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1520, #121218);
    border: 2px solid rgba(194, 101, 224, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--lh-acc-accent-bright);
    flex-shrink: 0;
}

.lh-acc-stat-body {
    flex: 1;
    min-width: 0;
}

.lh-acc-stat-label {
    display: block;
    font-size: 13px;
    color: var(--lh-acc-muted);
    font-weight: 450;
    margin-bottom: 3px;
    line-height: 1.2;
}

.lh-acc-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--lh-acc-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-acc-stat--emerald .lh-acc-stat-icon {
    color: var(--lh-acc-emerald);
    border-color: rgba(52, 211, 153, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), #121218);
}

/* Barra modifiche non salvate */
.lh-unsaved-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(calc(100% + 32px));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(640px, calc(100vw - 32px));
    padding: 14px 18px 14px 22px;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.lh-unsaved-bar.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lh-unsaved-bar-msg {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #f4f4f5;
    white-space: nowrap;
}

.lh-unsaved-bar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lh-unsaved-bar-reset {
    border: none;
    background: transparent;
    color: #a1a1aa;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    transition: color 0.2s;
}

.lh-unsaved-bar-reset:hover {
    color: #e4e4e7;
}

.lh-unsaved-bar-save {
    border: none;
    background: #7c3aed;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
}

.lh-unsaved-bar-save:hover {
    background: #6d28d9;
}

.lh-unsaved-bar-save:active {
    transform: scale(0.98);
}

body.lh-has-unsaved-bar .lh-acc-main {
    padding-bottom: 88px;
}

@media (max-width: 640px) {
    .lh-unsaved-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        gap: 12px;
        padding: 16px;
    }

    .lh-unsaved-bar-msg {
        text-align: center;
        white-space: normal;
    }

    .lh-unsaved-bar-actions {
        justify-content: center;
    }

    .lh-unsaved-bar-save {
        flex: 1;
    }
}

.lh-acc-panel {
    background: var(--lh-acc-card);
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius);
    padding: 22px 25px;
    margin-bottom: 25px;
}

.lh-acc-panel h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 500;
    color: var(--lh-acc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-acc-panel h2 .lh-acc-badge {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
}

.lh-acc-panel > p,
.lh-acc-panel-desc {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--lh-acc-muted);
    font-weight: 450;
}

.lh-acc-columns {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.lh-acc-columns > * { flex: 1; min-width: 0; }

/* Progress */
.lh-acc-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lh-acc-progress-head h2 { margin: 0; }

.lh-acc-progress-track {
    height: 20px;
    background: #1b1b1b;
    border: 2px solid #232323;
    border-radius: 100px;
    overflow: hidden;
}

.lh-acc-progress-fill {
    height: 100%;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    border-radius: 100px;
    margin-top: -2px;
    transition: width 0.4s ease;
}

.lh-acc-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.lh-acc-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    background: #161616;
    border: 2px solid #1a1a1a;
    border-radius: var(--lh-acc-radius);
}

.lh-acc-check-item h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--lh-acc-text);
}

.lh-acc-check-item p {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--lh-acc-muted);
}

.lh-acc-check-icon {
    font-size: 25px;
    flex-shrink: 0;
}

.lh-acc-check-icon--ok { color: #4bb543; }
.lh-acc-check-icon--no { color: #707070; }

.lh-acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--lh-acc-radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.25s;
    color: var(--lh-acc-text);
    background: transparent;
}

.lh-acc-btn:active { transform: translateY(3px); }

.lh-acc-btn--primary {
    background: var(--lh-acc-accent-soft);
    border-color: var(--lh-acc-accent-border);
}

.lh-acc-btn--primary:hover { background: rgba(126, 44, 139, 0.55); }

.lh-acc-btn--ghost {
    background: #1a1a1a;
    border-color: #202020;
}

.lh-acc-btn--ghost:hover { background: #202020; }

.lh-acc-btn--danger {
    background: rgba(255, 56, 56, 0.24);
    border-color: rgba(255, 56, 56, 0.28);
}

.lh-acc-btn--danger:hover {
    background: rgba(255, 56, 56, 0.32);
}

.lh-acc-btn--block { width: 100%; }

/* Gradient promo card */
.lh-acc-promo {
    background: linear-gradient(135deg, rgba(126, 44, 139, 0.35), rgba(30, 20, 35, 0.9));
    border: 2px solid rgba(152, 73, 172, 0.23);
    border-radius: var(--lh-acc-radius-lg);
    padding: 20px;
}

.lh-acc-promo h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 500;
}

.lh-acc-promo p {
    margin: 6px 0 14px;
    font-size: 16px;
    color: #a5a5a5;
}

/* Settings rows */
.lh-acc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #161616;
    border: 2px solid #1a1a1a;
    border-radius: var(--lh-acc-radius);
    margin-bottom: 10px;
}

.lh-acc-setting-row strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
}

.lh-acc-setting-row span {
    font-size: 15px;
    color: var(--lh-acc-muted);
}

.lh-acc-setting-row .lh-acc-setting-value {
    color: #b1b1b1;
    font-size: 16px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.lh-acc-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.lh-acc-badge-card {
    background: rgba(255, 126, 255, 0.13);
    border: 2px solid rgba(255, 126, 255, 0.08);
    border-radius: var(--lh-acc-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
}

.lh-acc-badge-card.is-locked {
    opacity: 0.5;
    background: #121212;
    border-color: #1b1b1b;
}

.lh-acc-badge-card:not(.is-locked) {
    border-color: color-mix(in srgb, var(--lh-badge-color, #c265e0) 35%, transparent);
    background: color-mix(in srgb, var(--lh-badge-color, #c265e0) 12%, #141414);
}

.lh-acc-badge-card:not(.is-locked) .lh-acc-badge-card-head i {
    color: var(--lh-badge-color, var(--lh-acc-accent-bright));
}

.lh-acc-badge-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lh-acc-badge-card-head strong {
    font-size: 17px;
    font-weight: 600;
}

.lh-acc-badge-card-head i { font-size: 25px; color: #d4d4d4; }

.lh-acc-badge-card .lh-acc-badge-count {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.lh-acc-badge-card small {
    font-size: 15px;
    color: var(--lh-acc-muted);
}

/* Chart placeholder */
.lh-acc-chart-wrap {
    background: #0f0f0f;
    border: 2px solid var(--lh-acc-border);
    border-radius: 10px;
    padding: 20px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.lh-acc-chart-bar {
    flex: 1;
    max-width: 48px;
    background: linear-gradient(180deg, #a470b2, #74477f);
    border-radius: 8px 8px 4px 4px;
    min-height: 12px;
    opacity: 0.85;
}

.lh-acc-chart-empty {
    text-align: center;
    color: var(--lh-acc-muted);
    font-size: 16px;
    padding: 40px 20px;
}

/* Dashboard inside shell — keep form sections readable */
.lh-acc-main .bg-zinc-900 {
    background: var(--lh-acc-card) !important;
    border-color: var(--lh-acc-border) !important;
}

.lh-acc-main input,
.lh-acc-main textarea,
.lh-acc-main select {
    background: #0c0c0c !important;
    border-color: #1f1f1f !important;
    color: #eee !important;
}

.lh-acc-dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.lh-acc-dash-header .lh-acc-profile-link {
    color: #e3a6eb;
    text-decoration: none;
    font-weight: 500;
}

.lh-acc-dash-header .lh-acc-profile-link:hover { text-decoration: underline; }

.lh-acc-premium-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    color: #fafafa;
}

.lh-lock-overlay {
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
}

/* Mobile */
@media (max-width: 900px) {
    .lh-acc-sidebar {
        transform: translateX(-110%);
        box-shadow: none;
        z-index: 1001;
    }

    .lh-acc-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 10px 0 24px rgba(0, 0, 0, 0.35);
    }

    .lh-acc-sidebar-close { display: flex; }

    .lh-acc-main {
        margin-left: 0;
        padding: 15px 18px 40px;
    }

    .lh-acc-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 14px 0 18px;
        padding: 10px 12px;
        background: rgba(15, 15, 15, 0.95);
        border: 2px solid #131313;
        border-radius: 18px;
    }

    .lh-acc-mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--lh-acc-text);
        font-weight: 600;
        font-size: 16px;
    }

    .lh-acc-icon-btn,
    .lh-acc-mobile-profile {
        width: 44px;
        height: 44px;
        border: 2px solid #171717;
        background: #151515;
        color: #ededed;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        cursor: pointer;
        text-decoration: none;
        transition: 0.2s;
    }

    .lh-acc-icon-btn:hover,
    .lh-acc-mobile-profile:hover {
        background: #171717;
        border-color: #262626;
    }

    .lh-acc-columns { flex-direction: column; }
}

@media (max-width: 1100px) {
    .lh-acc-grid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .lh-acc-grid-stats { grid-template-columns: 1fr; }
    .lh-acc-page-header h1 { font-size: 24px; }
}

/* Dashboard — sezioni collassabili */
.lh-dash-section {
    background: var(--lh-acc-card);
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.lh-dash-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    color: var(--lh-acc-text);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.lh-dash-section-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lh-dash-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1520, #101010);
    border: 2px solid rgba(194, 101, 224, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--lh-acc-accent-bright);
    flex-shrink: 0;
}

.lh-dash-section-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lh-dash-section-meta strong {
    font-size: 17px;
    font-weight: 600;
}

.lh-dash-section-meta small {
    font-size: 13px;
    color: var(--lh-acc-muted);
    font-weight: 450;
}

.lh-dash-section-badge .lh-acc-premium-pill {
    font-size: 10px;
    padding: 4px 8px;
}

.lh-dash-section-chevron {
    font-size: 18px;
    color: var(--lh-acc-muted-2);
    transition: transform 0.25s ease;
}

.lh-dash-section.is-open .lh-dash-section-chevron {
    transform: rotate(180deg);
}

.lh-dash-section-body {
    padding: 0 18px 18px;
    border-top: 2px solid var(--lh-acc-border);
}

.lh-dash-section-body:not([hidden]) {
    padding-top: 16px;
}

/* Pagina Link */
.lh-links-panel { padding: 22px; }

.lh-links-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.lh-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lh-link-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    background: #161616;
    border: 2px solid #1c1c1c;
    border-radius: var(--lh-acc-radius);
    transition: border-color 0.2s;
}

.lh-link-row:hover {
    border-color: #2a2a2a;
}

.lh-link-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--lh-acc-emerald-soft);
    border: 2px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--lh-acc-emerald);
}

.lh-link-row-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lh-link-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #1f1f1f;
    background: #0c0c0c;
    color: #eee;
    font-family: inherit;
    font-size: 14px;
}

.lh-link-input:focus {
    outline: none;
    border-color: rgba(194, 101, 224, 0.45);
}

.lh-link-domain {
    font-size: 11px;
    color: var(--lh-acc-muted-2);
    text-transform: lowercase;
    min-width: 56px;
    text-align: center;
}

.lh-link-remove {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.lh-link-remove:hover {
    background: rgba(239, 68, 68, 0.18);
}

.lh-links-add { width: 100%; margin-bottom: 16px; }

.lh-links-save-bar { margin-top: 8px; }

.lh-links-empty {
    text-align: center;
    color: var(--lh-acc-muted);
    font-size: 14px;
    padding: 24px 12px;
    border: 2px dashed #222;
    border-radius: var(--lh-acc-radius);
}

.lh-acc-chart-wrap--labeled {
    align-items: flex-end;
    padding-bottom: 8px;
}

.lh-acc-chart-col {
    flex: 1;
    max-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 200px;
    justify-content: flex-end;
}

.lh-acc-chart-label {
    font-size: 11px;
    color: var(--lh-acc-muted-2);
}

@media (max-width: 640px) {
    .lh-link-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .lh-link-domain { display: none; }
    .lh-link-remove { grid-column: 2; justify-self: end; }
}

/* Asset multimediali (Customize) */
.lh-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 4px 0;
}

.lh-assets-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lh-music-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}

.lh-music-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(126, 44, 139, 0.12);
    border: 1px solid rgba(126, 44, 139, 0.22);
    color: #e9d5ff;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lh-music-intro i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--lh-acc-accent-bright);
}

.lh-music-block {
    padding: 16px 0;
    border-top: 1px solid #252525;
}

.lh-music-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.lh-music-block-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-acc-accent-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-music-cover-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.lh-music-cover-preview {
    min-width: 72px;
}

.lh-music-cover-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lh-audio-time-input.lh-audio-time-invalid {
    border-color: rgba(239, 68, 68, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

@media (max-width: 520px) {
    .lh-music-cover-row {
        grid-template-columns: 1fr;
    }
}

.lh-asset-card {
    background: #161616;
    border: 2px solid #1c1c1c;
    border-radius: var(--lh-acc-radius);
    padding: 16px;
}

.lh-asset-card-head {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lh-acc-accent-bright);
}

.lh-asset-hint {
    font-size: 12px;
    color: var(--lh-acc-muted-2);
    margin: 0 0 10px;
}

.lh-asset-file {
    width: 100%;
    font-size: 12px;
    color: var(--lh-acc-muted);
}

.lh-asset-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.lh-asset-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: #141414;
    color: #e4e4e7;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.lh-asset-pick:hover {
    border-color: var(--lh-acc-accent);
    color: #fff;
}

.lh-asset-current {
    margin: 8px 0 4px;
    min-height: 36px;
}

.lh-asset-saved {
    font-size: 12px;
    color: #34d399;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lh-asset-empty {
    font-size: 12px;
    color: var(--lh-acc-muted-2);
    margin: 0;
    font-style: italic;
}

.lh-asset-thumb {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    border: 1px solid #2a2a2a;
}

.lh-asset-cursor-preview {
    image-rendering: pixelated;
    margin-bottom: 6px;
    border-radius: 4px;
    background: #111;
}

.lh-asset-cover-preview {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #2a2a2a;
}

.lh-asset-upload-msg {
    font-size: 11px;
    margin: 6px 0 0;
    min-height: 16px;
    color: var(--lh-acc-muted-2);
}

.lh-asset-upload-msg.is-ok { color: #34d399; }
.lh-asset-upload-msg.is-error { color: #fca5a5; }

.lh-asset-text {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid #1f1f1f;
    background: #0c0c0c;
    color: #eee;
    font-size: 13px;
}

.lh-asset-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--lh-acc-muted);
    cursor: pointer;
}

.lh-asset-remove {
    margin-top: 8px;
    font-size: 11px;
    color: #fca5a5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.lh-asset-remove.is-marked { color: #fbbf24; }

/* Platform picker (Links) */
.lh-platform-picker {
    background: #141414;
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius-lg);
    padding: 16px;
    margin-bottom: 18px;
}

.lh-platform-picker.hidden { display: none; }

.lh-platform-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lh-platform-close {
    width: 36px;
    height: 36px;
    border: 2px solid #222;
    background: #1a1a1a;
    color: #ccc;
    border-radius: 10px;
    cursor: pointer;
}

.lh-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.lh-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #1f1f1f;
    background: #161616;
    border-radius: 12px;
    color: #ddd;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

.lh-platform-btn i { font-size: 22px; color: var(--lh-acc-emerald); }

.lh-platform-btn:hover {
    border-color: rgba(194, 101, 224, 0.4);
    background: #1a1a1a;
}

.lh-link-drag {
    color: var(--lh-acc-muted-2);
    cursor: grab;
    padding: 4px;
}

.lh-link-row.is-dragging { opacity: 0.45; }
.lh-link-row.is-drag-over { border-color: rgba(194, 101, 224, 0.5); }

.lh-link-row {
    grid-template-columns: auto auto 1fr auto auto;
}

/* Pricing */
.lh-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.lh-pricing-card {
    background: var(--lh-acc-card);
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius-lg);
    padding: 28px;
    position: relative;
}

.lh-pricing-card--premium {
    border-color: rgba(152, 73, 172, 0.35);
    background: linear-gradient(160deg, rgba(126, 44, 139, 0.2), var(--lh-acc-card));
}

.lh-pricing-popular {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 700;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    padding: 4px 10px;
    border-radius: 20px;
}

.lh-pricing-tier {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lh-acc-muted);
    margin: 0;
}

.lh-pricing-price {
    font-size: 42px;
    font-weight: 800;
    margin: 8px 0 0;
}

.lh-pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--lh-acc-muted);
}

.lh-pricing-period {
    font-size: 14px;
    color: var(--lh-acc-muted-2);
    margin: 4px 0 20px;
}

.lh-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.lh-pricing-features li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.lh-pricing-features .bi-check-lg { color: var(--lh-acc-emerald); flex-shrink: 0; }

.lh-pricing-card--premium .lh-pricing-features .bi-check-lg { color: var(--lh-acc-accent-bright); }

.lh-pricing-badge {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    font-weight: 600;
    font-size: 14px;
}

.lh-pricing-badge--muted {
    background: #1a1a1a;
    border-color: #222;
    color: var(--lh-acc-muted);
}

.lh-pricing-table-wrap { overflow-x: auto; }

.lh-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lh-pricing-table th,
.lh-pricing-table td {
    padding: 12px 14px;
    border-bottom: 2px solid #1a1a1a;
    text-align: left;
}

.lh-pricing-table th:not(:first-child),
.lh-pricing-table td:not(:first-child) {
    text-align: center;
    width: 100px;
}

/* Templates */
.lh-tpl-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lh-tpl-tab {
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid #1c1c1c;
    background: #141414;
    color: var(--lh-acc-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.lh-tpl-tab.is-active,
.lh-tpl-tab:hover {
    border-color: rgba(194, 101, 224, 0.4);
    color: #eee;
    background: #1a1520;
}

.lh-tpl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.lh-tpl-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #141414;
    border: 2px solid #1c1c1c;
    border-radius: 12px;
}

.lh-tpl-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #eee;
    font-size: 14px;
    outline: none;
}

.lh-tpl-sort {
    display: flex;
    gap: 8px;
}

.lh-tpl-sort a {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--lh-acc-muted);
    text-decoration: none;
    border: 2px solid transparent;
}

.lh-tpl-sort a.is-active {
    border-color: rgba(194, 101, 224, 0.35);
    color: #eee;
    background: #1a1520;
}

.lh-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.lh-tpl-card {
    background: var(--lh-acc-card);
    border: 2px solid var(--lh-acc-border);
    border-radius: var(--lh-acc-radius-lg);
    overflow: hidden;
}

.lh-tpl-preview-wrap {
    position: relative;
    aspect-ratio: 9/14;
    overflow: hidden;
    background: #0a0a0a;
}

.lh-tpl-preview-wrap .lh-tpl-live-preview {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.lh-tpl-preview-wrap .lh-tpl-live-fx {
    z-index: 1;
    --lh-fx-speed: 1;
    --lh-fx-duration: calc(5s / var(--lh-fx-speed));
}

.lh-tpl-preview-wrap .lh-preview-frame-wrap.lh-profile-card {
    max-width: calc(100% - 1rem);
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.lh-tpl-preview-wrap .lh-preview-frame-wrap .lh-profile-card-inner {
    width: 100%;
    border-radius: 1rem;
    padding: 0.75rem 0.75rem 0.5rem;
    padding-top: 1rem;
}

.lh-tpl-preview-wrap .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-tpl-brand-avatar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1f30, #151018) !important;
    border: 2px solid rgba(194, 101, 224, 0.28);
    overflow: hidden;
}

.lh-tpl-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--lh-acc-accent-bright);
    font-size: 1.35rem;
}

.lh-tpl-like-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #f4f4f5;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.lh-tpl-like-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: scale(1.04);
}

.lh-tpl-like-btn.is-liked,
.lh-tpl-like-btn.is-liked:hover {
    color: #f472b6;
}

.lh-tpl-like-btn i {
    font-size: 12px;
}

.lh-tpl-meta-heart {
    color: #f472b6;
    font-size: 10px;
}

.lh-tpl-save-btn.is-saved {
    border-color: rgba(126, 44, 139, 0.45);
    color: #e9d5ff;
}

.lh-tpl-save-btn.is-saved:hover {
    background: rgba(126, 44, 139, 0.18);
}

.lh-tpl-own-hint {
    padding: 6px 0 2px;
    line-height: 1.35;
}

.lh-tpl-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lh-acc-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-tpl-actions--explore {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lh-tpl-actions--explore form {
    width: 100%;
}

.lh-tpl-saved-badge {
    background: rgba(126, 44, 139, 0.65);
}

.lh-tpl-pub-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.55);
    padding: 4px 8px;
    border-radius: 8px;
}

.lh-tpl-body {
    padding: 14px;
}

.lh-tpl-body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.lh-tpl-meta {
    font-size: 12px;
    color: var(--lh-acc-muted-2);
    margin: 0 0 8px;
}

.lh-tpl-desc {
    font-size: 13px;
    color: var(--lh-acc-muted);
    margin: 0 0 12px;
}

.lh-tpl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lh-tpl-create-form .lh-tpl-input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #1f1f1f;
    background: #0c0c0c;
    color: #eee;
    font-size: 14px;
}

.lh-tpl-pub-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--lh-acc-muted);
    cursor: pointer;
}

/* Template apply — premium confirmation modal */
body.lh-tpl-modal-open {
    overflow: hidden;
}

.lh-tpl-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lh-tpl-modal[hidden] {
    display: none !important;
}

.lh-tpl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.lh-tpl-modal-dialog {
    position: relative;
    width: min(100%, 440px);
    padding: 24px;
    border-radius: 20px;
    background: #141414;
    border: 2px solid #2a2a2a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.lh-tpl-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lh-tpl-modal-header i {
    font-size: 22px;
    color: var(--lh-acc-accent-bright);
}

.lh-tpl-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.lh-tpl-modal-lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--lh-acc-muted);
    line-height: 1.5;
}

.lh-tpl-modal-list {
    margin: 0 0 16px;
    padding: 12px 12px 12px 28px;
    border-radius: 12px;
    background: rgba(126, 44, 139, 0.12);
    border: 1px solid var(--lh-acc-accent-border);
    font-size: 14px;
    color: #e8e8e8;
    max-height: 200px;
    overflow-y: auto;
}

.lh-tpl-modal-list li {
    margin-bottom: 6px;
}

.lh-tpl-modal-list li:last-child {
    margin-bottom: 0;
}

.lh-tpl-modal-empty {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 13px;
    color: #fcd34d;
}

.lh-tpl-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.lh-acc-btn--premium {
    background: var(--lh-acc-accent-soft);
    border: 2px solid var(--lh-acc-accent-border);
    color: var(--lh-acc-text);
}

.lh-acc-btn--premium:hover {
    background: rgba(126, 44, 139, 0.5);
}

.lh-acc-btn.is-disabled,
.lh-acc-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Card style picker mini previews */
.lh-card-style-mini {
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 14, 0.6);
}
.lh-card-style-mini--glass { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); }
.lh-card-style-mini--solid { background: rgba(10, 10, 16, 0.95); }
.lh-card-style-mini--minimal { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.lh-card-style-mini--neon { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); border-color: rgba(168, 85, 247, 0.5); }
.lh-card-style-mini--outline { background: transparent; border-width: 2px; }
.lh-card-style-mini--animated { background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.2)); }
.lh-card-style-mini--depth_3d { transform: perspective(200px) rotateX(8deg); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }
.lh-card-style-mini--cursor_glow { background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.35), rgba(8, 8, 14, 0.8)); }

/* Admin hub & tables */
.lh-admin-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 720px;
}
.lh-admin-hub-card {
    display: block;
    padding: 24px;
    border-radius: 20px;
    border: 2px solid var(--lh-acc-border);
    background: var(--lh-acc-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}
.lh-admin-hub-card:hover {
    border-color: var(--lh-acc-accent-border);
    transform: translateY(-2px);
}
.lh-admin-hub-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--lh-acc-accent-soft);
    color: var(--lh-acc-accent-bright);
    font-size: 22px;
    margin-bottom: 12px;
}
.lh-admin-hub-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}
.lh-admin-hub-card p {
    margin: 0;
    font-size: 13px;
    color: var(--lh-acc-muted);
}
.lh-admin-table-wrap {
    overflow-x: auto;
    border: 2px solid var(--lh-acc-border);
    border-radius: 16px;
    background: var(--lh-acc-card);
}
.lh-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lh-admin-table th,
.lh-admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #222;
}
.lh-admin-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lh-acc-muted-2);
    background: #111;
}
.lh-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.lh-admin-pwd-details {
    position: relative;
}
.lh-admin-pwd-details > summary {
    list-style: none;
    cursor: pointer;
}
.lh-admin-pwd-details > summary::-webkit-details-marker {
    display: none;
}
.lh-admin-pwd-form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    padding: 10px;
    background: #18181b;
    border: 1px solid var(--lh-acc-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.lh-admin-pwd-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    color: #fafafa;
    background: #09090b;
    border: 1px solid var(--lh-acc-border);
    border-radius: 8px;
    box-sizing: border-box;
}
.lh-admin-pwd-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
}
.lh-acc-btn--sm {
    padding: 5px 10px;
    font-size: 11px;
}
.lh-admin-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

/* ── Layout admin: colonna destra con sole 2 sezioni ── */
.lh-acc-app--admin {
    min-height: 100vh;
}

.lh-acc-main--admin {
    margin-left: 0 !important;
    margin-right: 300px;
    padding: 24px 28px 48px;
    min-height: 100vh;
    box-sizing: border-box;
}

.lh-admin-rail {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    z-index: 40;
    background: var(--lh-acc-sidebar);
    border-left: 2px solid var(--lh-acc-border);
    box-sizing: border-box;
}

.lh-admin-rail-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 16px;
}

.lh-admin-rail-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.lh-admin-rail-brand strong {
    display: block;
    font-size: 16px;
}

.lh-admin-rail-brand small {
    font-size: 12px;
    color: var(--lh-acc-muted-2);
}

.lh-admin-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.lh-admin-rail-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 2px solid var(--lh-acc-border);
    background: var(--lh-acc-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.lh-admin-rail-card:hover {
    border-color: var(--lh-acc-accent-border);
    transform: translateY(-1px);
}

.lh-admin-rail-card.is-active {
    border-color: var(--lh-acc-accent-bright);
    background: var(--lh-acc-accent-soft);
}

.lh-admin-rail-card .lh-admin-hub-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.lh-admin-rail-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lh-admin-rail-card-text strong {
    font-size: 15px;
    font-weight: 700;
}

.lh-admin-rail-card-text small {
    font-size: 12px;
    color: var(--lh-acc-muted);
    line-height: 1.35;
}

.lh-admin-rail-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px;
    border-radius: 20px;
    background: #141414;
    border: 2px solid #1a1a1a;
}

.lh-admin-rail-user .lh-acc-user-meta span {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.lh-admin-rail-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.55);
}

.lh-admin-welcome {
    margin-top: 8px;
}

.lh-acc-mobile-bar--admin {
    justify-content: space-between;
}

@media (max-width: 1023px) {
    .lh-acc-main--admin {
        margin-right: 0;
        padding-bottom: 80px;
    }

    .lh-admin-rail {
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 50;
    }

    .lh-admin-rail.is-open {
        transform: translateX(0);
    }
}

/* ── Role badges (guns.lol style) ── */
.lh-badges-page {
    --lh-role-staff: #3b82f6;
    --lh-role-premium: #a855f7;
    --lh-role-verified: #38bdf8;
    --lh-role-donor: #22c55e;
    --lh-role-gifter: #f97316;
    --lh-role-reporter: #4ade80;
}

.lh-role-badges-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lh-role-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #121212;
    border: 2px solid #1c1c1c;
    transition: border-color 0.2s ease;
}

.lh-role-badge-row.is-unlocked {
    border-color: color-mix(in srgb, var(--lh-role-glow, #c265e0) 30%, #1c1c1c);
    background: color-mix(in srgb, var(--lh-role-glow, #c265e0) 6%, #121212);
}

.lh-role-badge-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    filter: drop-shadow(0 0 8px currentColor);
}

.lh-role-badge-icon--staff { color: var(--lh-role-staff); background: rgba(59, 130, 246, 0.15); }
.lh-role-badge-icon--premium { color: var(--lh-role-premium); background: rgba(168, 85, 247, 0.15); }
.lh-role-badge-icon--verified { color: var(--lh-role-verified); background: rgba(56, 189, 248, 0.15); }
.lh-role-badge-icon--donor { color: var(--lh-role-donor); background: rgba(34, 197, 94, 0.15); }
.lh-role-badge-icon--gifter { color: var(--lh-role-gifter); background: rgba(249, 115, 22, 0.15); }
.lh-role-badge-icon--reporter { color: var(--lh-role-reporter); background: rgba(74, 222, 128, 0.15); }

.lh-role-badge-copy {
    flex: 1;
    min-width: 0;
}

.lh-role-badge-copy strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.lh-role-badge-copy p {
    margin: 0;
    font-size: 13px;
    color: var(--lh-acc-muted);
    line-height: 1.4;
}

.lh-role-badge-price {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #a78bfa;
}

.lh-role-badge-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #2a2a2a;
    color: #f4f4f5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.lh-role-badge-btn:hover {
    background: #363636;
    color: #fff;
}

.lh-role-badge-btn.is-done {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    cursor: default;
    pointer-events: none;
}

.lh-role-badge-form {
    margin: 0;
}

.lh-role-stripe-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--lh-acc-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badge modals */
body.lh-badge-modal-open {
    overflow: hidden;
}

.lh-badge-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lh-badge-modal[hidden] {
    display: none !important;
}

.lh-badge-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.lh-badge-modal-dialog {
    position: relative;
    width: min(100%, 720px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 20px;
    background: #111;
    border: 2px solid #2a2a2a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.lh-badge-modal-dialog--sm {
    width: min(100%, 440px);
}

.lh-badge-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #1f1f1f;
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-badge-modal-close:hover {
    background: #2a2a2a;
    color: #fff;
}

.lh-badge-modal-dialog h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    padding-right: 36px;
}

.lh-badge-modal-lead {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--lh-acc-muted);
    line-height: 1.5;
}

.lh-badge-field {
    display: block;
    margin-bottom: 14px;
}

.lh-badge-field > span {
    display: block;
    font-size: 13px;
    color: #a1a1aa;
    margin-bottom: 6px;
}

.lh-badge-field input,
.lh-badge-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: #0a0a0a;
    color: #f4f4f5;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.lh-badge-field input:focus,
.lh-badge-field textarea:focus {
    outline: none;
    border-color: var(--lh-acc-accent-border);
}

.lh-badge-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.lh-donate-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lh-donate-preset {
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid #2a2a2a;
    background: #1a1a1a;
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.lh-donate-preset.is-active,
.lh-donate-preset:hover {
    border-color: var(--lh-acc-accent-border);
    background: var(--lh-acc-accent-soft);
}

.lh-gift-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(126, 44, 139, 0.2);
    border: 1px solid var(--lh-acc-accent-border);
    font-size: 14px;
    color: #e8e8e8;
}

.lh-gift-banner i {
    font-size: 18px;
    color: var(--lh-acc-accent-bright);
}

.lh-gift-banner strong {
    color: var(--lh-acc-accent-bright);
}

.lh-gift-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .lh-gift-layout {
        grid-template-columns: 1fr;
    }
    .lh-gift-art {
        display: none;
    }
}

.lh-gift-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.2), transparent 70%);
}

.lh-gift-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #a855f7;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
    animation: lh-gift-float 3s ease-in-out infinite;
}

@keyframes lh-gift-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lh-gift-username {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: #0a0a0a;
}

.lh-gift-username i {
    color: #71717a;
}

.lh-gift-username input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    color: #f4f4f5;
    font-size: 14px;
}

.lh-gift-username input:focus {
    outline: none;
}

.lh-gift-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lh-gift-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid #2a2a2a;
    background: #0f0f0f;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.lh-gift-product input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lh-gift-product.is-selected {
    border-color: var(--lh-acc-accent-bright);
    background: rgba(126, 44, 139, 0.12);
}

.lh-gift-product-body {
    flex: 1;
    min-width: 0;
}

.lh-gift-product-body strong {
    display: block;
    font-size: 14px;
}

.lh-gift-product-body small {
    font-size: 12px;
    color: var(--lh-acc-muted);
}

.lh-gift-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #e4e4e7;
    white-space: nowrap;
}

.lh-gift-submit {
    width: 100%;
    justify-content: center;
}

.lh-report-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* Admin tickets */
.lh-admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.lh-tpl-tab--sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.lh-admin-tickets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lh-admin-ticket-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: #121212;
    border: 2px solid #1c1c1c;
}

.lh-admin-ticket-card.aperto {
    border-color: rgba(245, 158, 11, 0.35);
}

.lh-admin-ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lh-admin-ticket-meta {
    display: block;
    font-size: 12px;
    color: var(--lh-acc-muted);
    margin-top: 4px;
}

.lh-admin-ticket-stato {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.lh-admin-ticket-stato--aperto {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.lh-admin-ticket-stato--chiuso {
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1aa;
}

.lh-admin-ticket-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #d4d4d8;
}

.lh-admin-ticket-reply {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 13px;
}

.lh-admin-ticket-reply strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #93c5fd;
}

.lh-admin-ticket-close {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.lh-admin-ticket-close textarea {
    flex: 1 1 100%;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: #0a0a0a;
    color: #f4f4f5;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

/* Admin badge management */
.lh-admin-badge-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lh-admin-badge-select {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: #0f0f0f;
    color: #f4f4f5;
    font-size: 14px;
}

.lh-admin-badge-preview {
    padding: 14px 16px;
    border-radius: 12px;
    background: #0f0f0f;
    border: 2px solid #1c1c1c;
}

.lh-admin-badge-preview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 18px;
}

.lh-admin-badge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.lh-admin-badge-override {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #71717a;
}

.lh-admin-badge-row .lh-role-badge-copy p {
    margin-bottom: 0;
}

