/* Link-Hub UI 2.0 — sistema grafico comune.
   Caricato per ultimo su tutte le pagine dell'app (non sul profilo pubblico dell'utente). */

:root {
    /* superfici */
    --ui-night: #0c0a18;
    --ui-surface: #141127;
    --ui-raised: #1b1733;
    --ui-well: #0f0d1f;
    --ui-line: #262146;
    --ui-line-strong: #383164;
    /* testo */
    --ui-text: #f1eeff;
    --ui-soft: #c9c3e6;
    --ui-muted: #9a94b8;
    --ui-faint: #6c668c;
    /* marca: il gradiente dell'anello del logo, usato solo per il motivo "link" */
    --ui-ring-a: #36a9ff;
    --ui-ring-b: #8b6cff;
    --ui-ring-c: #f04bd3;
    --ui-ring: linear-gradient(90deg, var(--ui-ring-a), var(--ui-ring-b) 52%, var(--ui-ring-c));
    --ui-accent: #8b6cff;
    --ui-accent-hi: #b9a3ff;
    --ui-accent-ink: #120e26;
    --ui-accent-wash: rgba(139, 108, 255, 0.14);
    --ui-accent-line: rgba(139, 108, 255, 0.42);
    /* stati */
    --ui-ok: #3ddc97;
    --ui-ok-wash: rgba(61, 220, 151, 0.12);
    --ui-warn: #ffc24b;
    --ui-warn-wash: rgba(255, 194, 75, 0.12);
    --ui-bad: #ff6b81;
    --ui-bad-wash: rgba(255, 107, 129, 0.12);
    /* forma */
    --ui-r-card: 18px;
    --ui-r-ctl: 12px;
    --ui-r-sm: 8px;
    --ui-font: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ui-display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
    --ui-shadow-pop: 0 18px 50px -18px rgba(4, 2, 16, 0.85);

    /* ponte verso le vecchie variabili dell'area account */
    --lh-acc-bg: var(--ui-night);
    --lh-acc-sidebar: var(--ui-well);
    --lh-acc-card: var(--ui-surface);
    --lh-acc-card-2: var(--ui-surface);
    --lh-acc-border: var(--ui-line);
    --lh-acc-border-2: var(--ui-line-strong);
    --lh-acc-text: var(--ui-text);
    --lh-acc-muted: var(--ui-muted);
    --lh-acc-muted-2: var(--ui-faint);
    --lh-acc-accent: var(--ui-accent);
    --lh-acc-accent-bright: var(--ui-accent-hi);
    --lh-acc-accent-soft: var(--ui-accent-wash);
    --lh-acc-accent-border: var(--ui-accent-line);
    --lh-acc-emerald: var(--ui-ok);
    --lh-acc-emerald-soft: var(--ui-ok-wash);
    --lh-acc-sidebar-w: 256px;
    --lh-acc-radius: 14px;
    --lh-acc-radius-lg: 18px;
    --lh-acc-font: var(--ui-font);
}

/* ───────── Base ───────── */
body.lh-ui {
    margin: 0;
    background: var(--ui-night);
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.lh-ui *, body.lh-ui *::before, body.lh-ui *::after { box-sizing: border-box; }
body.lh-ui h1, body.lh-ui h2, body.lh-ui h3 {
    font-family: var(--ui-display);
    letter-spacing: -0.02em;
    line-height: 1.12;
}
:where(body.lh-ui) a { color: inherit; }
body.lh-ui ::selection { background: rgba(139, 108, 255, 0.45); color: #fff; }
body.lh-ui :focus-visible {
    outline: 2px solid var(--ui-accent-hi);
    outline-offset: 2px;
    border-radius: 6px;
}
body.lh-ui img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
    body.lh-ui *, body.lh-ui *::before, body.lh-ui *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.ui-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ───────── Primitive ───────── */
.ui-btn {
    --_bg: var(--ui-raised);
    --_fg: var(--ui-text);
    --_bd: var(--ui-line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border: 1px solid var(--_bd); border-radius: var(--ui-r-ctl);
    background: var(--_bg); color: var(--_fg);
    font: 600 15px/1 var(--ui-font); text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.ui-btn:hover { --_bg: #231e42; --_bd: #4a4282; }
.ui-btn:active { transform: translateY(1px); }
.ui-btn[disabled], .ui-btn.is-disabled { opacity: 0.5; pointer-events: none; }
.ui-btn--primary { --_bg: var(--ui-accent-hi); --_fg: var(--ui-accent-ink); --_bd: transparent; }
.ui-btn--primary:hover { --_bg: #cdbcff; --_bd: transparent; }
.ui-btn--ghost { --_bg: transparent; --_bd: transparent; --_fg: var(--ui-soft); }
.ui-btn--ghost:hover { --_bg: rgba(255, 255, 255, 0.06); --_bd: transparent; --_fg: var(--ui-text); }
.ui-btn--danger { --_bg: var(--ui-bad-wash); --_fg: #ff9aa9; --_bd: rgba(255, 107, 129, 0.35); }
.ui-btn--danger:hover { --_bg: rgba(255, 107, 129, 0.2); --_bd: rgba(255, 107, 129, 0.55); }
.ui-btn--sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.ui-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.ui-btn--block { display: flex; width: 100%; }

.ui-field { display: block; min-width: 0; }
.ui-label {
    display: block; margin: 0 0 6px;
    font-size: 13.5px; font-weight: 600; color: var(--ui-soft);
}
.ui-help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ui-muted); }
.ui-input, .ui-textarea, .ui-select {
    display: block; width: 100%; min-height: 46px; padding: 11px 14px;
    border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-ctl);
    background: var(--ui-well); color: var(--ui-text);
    font: 500 15px/1.4 var(--ui-font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-textarea { resize: vertical; min-height: 96px; }
.ui-input::placeholder, .ui-textarea::placeholder { color: var(--ui-faint); }
.ui-input:hover, .ui-textarea:hover, .ui-select:hover { border-color: #4a4282; }
.ui-input:focus, .ui-textarea:focus, .ui-select:focus {
    outline: none; border-color: var(--ui-accent-hi);
    box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.28);
}
.ui-input[disabled], .ui-textarea[disabled], .ui-select[disabled] { opacity: 0.55; cursor: not-allowed; }

.ui-card {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-r-card);
}
.ui-alert {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 16px; padding: 12px 14px;
    border-radius: var(--ui-r-ctl); border: 1px solid transparent;
    font-size: 14px; line-height: 1.45;
}
.ui-alert--ok { background: var(--ui-ok-wash); border-color: rgba(61, 220, 151, 0.32); color: #9af0c9; }
.ui-alert--err { background: var(--ui-bad-wash); border-color: rgba(255, 107, 129, 0.34); color: #ffb0bb; }
.ui-alert--info { background: var(--ui-accent-wash); border-color: var(--ui-accent-line); color: #d9cfff; }
.ui-alert--warn { background: var(--ui-warn-wash); border-color: rgba(255, 194, 75, 0.34); color: #ffdc96; }

.ui-tag {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    padding: 3px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1.3;
    background: var(--ui-accent-wash); color: var(--ui-accent-hi);
    border: 1px solid var(--ui-accent-line);
}
.ui-tag--lock { background: var(--ui-warn-wash); color: var(--ui-warn); border-color: rgba(255, 194, 75, 0.35); }
.ui-tag--ok { background: var(--ui-ok-wash); color: var(--ui-ok); border-color: rgba(61, 220, 151, 0.35); }

/* il motivo "anello": una riga sottile col gradiente del logo */
.ui-ringline { height: 3px; border-radius: 3px; background: var(--ui-ring); }

/* ───────── Barra pubblica + footer ───────── */
.ui-topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(12, 10, 24, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ui-line);
}
.ui-topbar-in {
    max-width: 1180px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ui-brand {
    display: inline-flex; align-items: center; gap: 10px; min-width: 0;
    text-decoration: none; color: var(--ui-text);
    font: 700 19px/1 var(--ui-display); letter-spacing: -0.02em;
}
.ui-brand img, .ui-brand .lh-brand-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.ui-topbar-links { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ui-topbar-links > a:not(.ui-btn) {
    padding: 9px 12px; border-radius: 10px;
    color: var(--ui-soft); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.ui-topbar-links > a:not(.ui-btn):hover { color: var(--ui-text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 560px) {
    .ui-topbar-in { padding: 10px 14px; }
    .ui-topbar-links .ui-hide-sm { display: none; }
    .ui-brand { font-size: 17px; }
    .ui-brand img, .ui-brand .lh-brand-logo { width: 32px; height: 32px; }
}

.ui-footer { border-top: 1px solid var(--ui-line); margin-top: 72px; }
.ui-footer-in {
    max-width: 1180px; margin: 0 auto; padding: 36px 20px 28px;
    display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px;
}
.ui-footer-brand p { margin: 12px 0 0; max-width: 34ch; color: var(--ui-muted); font-size: 14px; }
.ui-footer h3 { margin: 0 0 10px; font: 700 14px/1.2 var(--ui-font); letter-spacing: 0; color: var(--ui-soft); }
.ui-footer nav { display: flex; flex-direction: column; gap: 8px; }
.ui-footer nav a { color: var(--ui-muted); text-decoration: none; font-size: 14px; }
.ui-footer nav a:hover { color: var(--ui-text); }
.ui-footer-legal {
    max-width: 1180px; margin: 0 auto; padding: 16px 20px 28px;
    color: var(--ui-faint); font-size: 13px;
}
.ui-footer--slim { margin-top: 40px; }
.ui-footer--slim .ui-footer-legal {
    border-top: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 22px 20px;
}
.ui-footer--slim a { color: var(--ui-muted); text-decoration: none; }
.ui-footer--slim a:hover { color: var(--ui-text); }
@media (max-width: 720px) {
    .ui-footer-in { grid-template-columns: 1fr 1fr; }
    .ui-footer-brand { grid-column: 1 / -1; }
}

/* ───────── Landing ───────── */
body.ui-landing { overflow-x: hidden; }
.ui-hero {
    max-width: 1180px; margin: 0 auto; padding: 64px 20px 40px;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
}
.ui-hero h1 {
    margin: 0; font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
.ui-hero-lead { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--ui-soft); }

/* la barra indirizzo: è il gesto principale della pagina */
.ui-claim { margin-top: 34px; max-width: 560px; }
.ui-claim-bar {
    position: relative; display: flex; align-items: center; gap: 4px;
    padding: 8px 8px 8px 18px;
    background: var(--ui-surface); border: 1px solid var(--ui-line-strong); border-radius: 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-claim-bar::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px;
    border-radius: 3px; background: var(--ui-ring); opacity: 0.9;
}
.ui-claim-bar:focus-within { border-color: var(--ui-accent-hi); box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.22); }
.ui-claim-host {
    font: 700 clamp(1.05rem, 2.6vw, 1.45rem)/1 var(--ui-display); color: var(--ui-muted); white-space: nowrap; letter-spacing: -0.02em;
}
.ui-claim-bar input {
    flex: 1; min-width: 0; height: 52px; padding: 0 6px 0 0; border: 0; background: none; outline: none;
    font: 700 clamp(1.05rem, 2.6vw, 1.45rem)/1 var(--ui-display); letter-spacing: -0.02em; color: var(--ui-text);
}
.ui-claim-bar input::placeholder { color: #56507a; }
.ui-claim-bar .ui-btn { flex-shrink: 0; }
.ui-claim-msg { min-height: 22px; margin: 12px 4px 0; font-size: 14px; font-weight: 600; color: var(--ui-muted); }
.ui-claim-msg.is-ok, .ui-claim-msg.text-emerald-400 { color: var(--ui-ok); }
.ui-claim-msg.is-bad, .ui-claim-msg.text-red-400 { color: var(--ui-bad); }
.ui-claim-msg.text-zinc-400, .ui-claim-msg.text-zinc-500 { color: var(--ui-muted); }
.ui-hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 4px 0; padding: 0; list-style: none; color: var(--ui-muted); font-size: 14px; }
.ui-hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.ui-hero-notes i { color: var(--ui-ok); }

/* telefoni dimostrativi */
.ui-phones { position: relative; height: 560px; }
.ui-phone {
    position: absolute; width: 268px; height: 540px; padding: 9px;
    border-radius: 42px; background: #07060f; border: 1px solid #332c5c;
    box-shadow: var(--ui-shadow-pop);
}
.ui-phone-screen {
    position: relative; height: 100%; overflow: hidden; border-radius: 34px;
    display: flex; flex-direction: column; align-items: center; padding: 44px 18px 18px; text-align: center;
}
.ui-phone--main { left: 50%; top: 10px; margin-left: -134px; z-index: 3; }
.ui-phone--left { left: 50%; top: 46px; margin-left: -300px; transform: rotate(-9deg) scale(0.84); z-index: 1; }
.ui-phone--right { left: 50%; top: 46px; margin-left: 32px; transform: rotate(9deg) scale(0.84); z-index: 2; }
.ui-phone--main .ui-phone-screen { background: radial-gradient(120% 70% at 50% 0%, #3a2a86 0%, #141127 62%); color: #fff; }
.ui-phone--left .ui-phone-screen { background: linear-gradient(170deg, #ffd9ec, #f6b6d6 55%, #e58fc0); color: #4a1335; }
.ui-phone--right .ui-phone-screen { background: linear-gradient(170deg, #062b3d, #0b5f73 60%, #17a6b8); color: #eaffff; }
.ui-mock-avatar {
    width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font: 800 28px/1 var(--ui-display); color: #fff;
    background: conic-gradient(from 210deg, var(--ui-ring-a), var(--ui-ring-b), var(--ui-ring-c), var(--ui-ring-a));
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.ui-phone--left .ui-mock-avatar { background: #7b1f55; }
.ui-phone--right .ui-mock-avatar { background: #0a3a4c; }
.ui-mock-name { margin: 14px 0 0; font: 800 21px/1.1 var(--ui-display); letter-spacing: -0.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-mock-handle { margin: 4px 0 0; font-size: 12.5px; opacity: 0.7; }
.ui-mock-bio { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; opacity: 0.85; }
.ui-mock-links { width: 100%; margin-top: 18px; display: grid; gap: 9px; }
.ui-mock-link {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
    border-radius: 14px; font-size: 13.5px; font-weight: 700;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
}
.ui-phone--left .ui-mock-link { background: #4a1335; color: #ffe3f1; border-color: transparent; border-radius: 999px; }
.ui-phone--right .ui-mock-link { background: rgba(255, 255, 255, 0.16); border-radius: 6px; }
.ui-mock-player {
    margin-top: auto; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px;
    border-radius: 14px; background: rgba(0, 0, 0, 0.32); font-size: 12px; text-align: left;
}
.ui-mock-player b { display: block; font-size: 12.5px; }
.ui-mock-player span { opacity: 0.7; }
.ui-mock-player i { font-size: 22px; }

.ui-section { max-width: 1180px; margin: 0 auto; padding: 56px 20px 0; }
.ui-section > h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.ui-section-lead { margin: 12px 0 0; max-width: 58ch; color: var(--ui-soft); font-size: 17px; }

/* "cosa puoi cambiare": una tabella vera, perché il contenuto è un elenco con uno stato */
.ui-kit { margin-top: 28px; border: 1px solid var(--ui-line); border-radius: var(--ui-r-card); overflow: hidden; background: var(--ui-surface); }
.ui-kit-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 16px 20px; border-top: 1px solid var(--ui-line);
}
.ui-kit-row:first-child { border-top: 0; }
.ui-kit-ico {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--ui-raised); color: var(--ui-accent-hi); font-size: 20px;
}
.ui-kit-row h3 { margin: 0; font: 700 16px/1.25 var(--ui-font); letter-spacing: 0; }
.ui-kit-row p { margin: 3px 0 0; color: var(--ui-muted); font-size: 14px; }
@media (max-width: 560px) {
    .ui-kit-row { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
    .ui-kit-row .ui-tag { grid-column: 2; justify-self: start; }
    .ui-kit-ico { width: 40px; height: 40px; }
}

.ui-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.ui-steps li { counter-increment: step; padding: 22px; border-radius: var(--ui-r-card); background: var(--ui-surface); border: 1px solid var(--ui-line); }
.ui-steps li::before {
    content: counter(step); display: block; width: max-content; margin-bottom: 14px;
    font: 800 34px/1 var(--ui-display); color: transparent;
    background: var(--ui-ring); -webkit-background-clip: text; background-clip: text;
}
.ui-steps h3 { margin: 0; font: 700 17px/1.25 var(--ui-font); letter-spacing: 0; }
.ui-steps p { margin: 6px 0 0; color: var(--ui-muted); font-size: 14.5px; }

.ui-faq { margin-top: 24px; max-width: 820px; }
.ui-faq details { border-bottom: 1px solid var(--ui-line); }
.ui-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 2px; cursor: pointer; list-style: none;
    font: 700 17px/1.3 var(--ui-font);
}
.ui-faq summary::-webkit-details-marker { display: none; }
.ui-faq summary::after { content: '+'; font: 400 26px/1 var(--ui-font); color: var(--ui-accent-hi); transition: transform 0.2s ease; }
.ui-faq details[open] summary::after { transform: rotate(45deg); }
.ui-faq details p { margin: 0; padding: 0 2px 20px; max-width: 66ch; color: var(--ui-soft); }

.ui-cta-band {
    max-width: 1140px; margin: 64px auto 0; padding: 34px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-radius: 24px; background: var(--ui-surface); border: 1px solid var(--ui-line); position: relative; overflow: hidden;
}
.ui-cta-band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ui-ring); }
.ui-cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; }
.ui-cta-band p { margin: 6px 0 0; color: var(--ui-muted); }

.ui-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 520px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px;
    background: var(--ui-raised); border: 1px solid var(--ui-line-strong); border-radius: 16px; box-shadow: var(--ui-shadow-pop);
    font-size: 14px; color: var(--ui-soft);
}
.ui-cookie[hidden] { display: none; }
.ui-cookie p { margin: 0; flex: 1 1 220px; }
.ui-cookie a { color: var(--ui-accent-hi); }
.ui-cookie-actions { display: flex; gap: 8px; }

@media (max-width: 980px) {
    .ui-hero { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
    .ui-phones { height: 440px; transform: scale(0.8); transform-origin: top center; margin-bottom: -90px; }
    .ui-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ui-phone--left, .ui-phone--right { display: none; }
    .ui-phones { transform: scale(0.86); height: 480px; margin-bottom: -60px; }
    .ui-claim-bar { flex-wrap: wrap; padding: 10px 12px 12px 14px; }
    .ui-claim-bar input { flex: 1 1 120px; height: 44px; }
    .ui-claim-bar .ui-btn { width: 100%; }
    .ui-hero-lead { font-size: 16.5px; }
}

/* ───────── Accesso / registrazione ───────── */
.ui-auth {
    min-height: calc(100vh - 63px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}
.ui-auth-main { display: flex; justify-content: center; padding: 56px 20px 48px; }
.ui-auth-box { width: 100%; max-width: 420px; }
.ui-auth-box h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; }
.ui-auth-sub { margin: 10px 0 26px; color: var(--ui-muted); font-size: 15.5px; }
.ui-auth-form { display: grid; gap: 16px; }
.ui-auth-alt { margin: 22px 0 0; font-size: 14.5px; color: var(--ui-muted); }
.ui-auth-alt a, .ui-link { color: var(--ui-accent-hi); font-weight: 600; text-decoration: none; }
.ui-auth-alt a:hover, .ui-link:hover { text-decoration: underline; }
.ui-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ui-label-row a { font-size: 13px; }
.ui-auth-side {
    position: relative; overflow: hidden; padding: 56px 48px;
    background: var(--ui-well); border-left: 1px solid var(--ui-line);
    display: flex; flex-direction: column; justify-content: center;
}
.ui-auth-side::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--ui-ring-a), var(--ui-ring-b), var(--ui-ring-c)); }
.ui-auth-side h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; max-width: 16ch; }
.ui-auth-url {
    margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--ui-surface); border: 1px solid var(--ui-line);
    font: 700 18px/1.2 var(--ui-display); letter-spacing: -0.01em; color: var(--ui-muted); word-break: break-all;
}
.ui-auth-url b { color: var(--ui-text); font-weight: 700; }
.ui-auth-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--ui-soft); font-size: 15px; }
.ui-auth-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ui-auth-list i { color: var(--ui-accent-hi); font-size: 17px; line-height: 1.35; }
.ui-userfield { display: flex; align-items: center; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-ctl); background: var(--ui-well); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.ui-userfield:focus-within { border-color: var(--ui-accent-hi); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.28); }
.ui-userfield span { padding: 0 2px 0 14px; color: var(--ui-muted); font-weight: 600; white-space: nowrap; }
.ui-userfield .ui-input { border: 0; background: none; box-shadow: none !important; padding-left: 2px; }
.ui-otp-input { text-align: center; font: 800 28px/1 var(--ui-display); letter-spacing: 0.35em; height: 64px; }
@media (max-width: 900px) {
    .ui-auth { grid-template-columns: 1fr; min-height: 0; }
    .ui-auth-main { padding: 32px 18px 28px; }
    .ui-auth-side { border-left: 0; border-top: 1px solid var(--ui-line); padding: 32px 22px; }
    .ui-auth-side::before { width: auto; height: 3px; right: 0; bottom: auto; background: var(--ui-ring); }
}

/* pulsanti OAuth */
body.lh-ui .lh-oauth { margin-top: 2px; }
body.lh-ui .lh-oauth-sep { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; color: var(--ui-faint); font-size: 13px; }
body.lh-ui .lh-oauth-sep::before, body.lh-ui .lh-oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--ui-line); }
body.lh-ui .lh-oauth-sep span { background: none; padding: 0; }
body.lh-ui .lh-oauth-btns { display: grid; gap: 10px; }
body.lh-ui .lh-oauth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
    border-radius: var(--ui-r-ctl); border: 1px solid var(--ui-line-strong); background: var(--ui-raised);
    color: var(--ui-text); font-weight: 600; font-size: 15px; text-decoration: none;
}
body.lh-ui .lh-oauth-btn:hover { background: #231e42; border-color: #4a4282; }
body.lh-ui .lh-oauth-discord i { color: #8b9bff; font-size: 18px; }

/* ───────── Pagine semplici (404, conferme) ───────── */
.ui-plain { min-height: 100vh; display: flex; flex-direction: column; }
.ui-plain-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.ui-plain-box { max-width: 460px; }
.ui-plain-code { font: 800 clamp(4rem, 14vw, 7rem)/1 var(--ui-display); letter-spacing: -0.05em; color: transparent; background: var(--ui-ring); -webkit-background-clip: text; background-clip: text; }
.ui-plain-box h1 { margin: 10px 0 0; font-size: 1.7rem; font-weight: 800; }
.ui-plain-box p { margin: 10px 0 22px; color: var(--ui-muted); }
.ui-plain-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ───────── Area account: guscio ───────── */
body.lh-ui.lh-acc-body { background: var(--ui-night); font-family: var(--ui-font); }
body.lh-ui .lh-acc-sidebar {
    width: var(--lh-acc-sidebar-w); min-width: var(--lh-acc-sidebar-w);
    padding: 18px 14px 14px; gap: 14px;
    background: var(--ui-well); border-right: 1px solid var(--ui-line);
    border-radius: 0;
}
body.lh-ui .lh-acc-brand { padding: 2px 8px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--ui-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.lh-ui .lh-acc-brand-link { gap: 10px; }
body.lh-ui .lh-acc-logo-mark { width: 34px; height: 34px; min-width: 34px; border-radius: 0; }
body.lh-ui .lh-acc-brand-text strong { font: 700 18px/1 var(--ui-display); letter-spacing: -0.02em; }
body.lh-ui .lh-acc-nav-label {
    margin: 16px 0 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ui-faint);
}
body.lh-ui .lh-acc-nav-group { gap: 2px; margin: 0; }
body.lh-ui .lh-acc-nav-link {
    position: relative; gap: 11px; padding: 9px 10px; border: 0; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--ui-soft);
    transition: background 0.15s ease, color 0.15s ease;
}
body.lh-ui .lh-acc-nav-link i { font-size: 17px; width: 20px; text-align: center; color: var(--ui-muted); }
body.lh-ui .lh-acc-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--ui-text); }
body.lh-ui .lh-acc-nav-link.is-active { background: var(--ui-raised); border: 0; color: var(--ui-text); }
body.lh-ui .lh-acc-nav-link.is-active i { color: var(--ui-accent-hi); }
body.lh-ui .lh-acc-nav-link.is-active::before {
    content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--ui-ring-a), var(--ui-ring-b), var(--ui-ring-c));
}
body.lh-ui .lh-acc-premium-cta {
    margin-top: 16px; padding: 11px 12px; justify-content: flex-start; gap: 10px;
    border-radius: 12px; border: 1px solid rgba(255, 194, 75, 0.32); background: var(--ui-warn-wash);
    color: #ffdc96; font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
body.lh-ui .lh-acc-premium-cta:hover { background: rgba(255, 194, 75, 0.18); }
body.lh-ui .lh-acc-premium-cta i { font-size: 17px; color: var(--ui-warn); }
body.lh-ui .lh-acc-user-card { margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--ui-surface); border: 1px solid var(--ui-line); display: grid; gap: 10px; }
body.lh-ui .lh-acc-user-inner { gap: 10px; }
body.lh-ui .lh-acc-user-avatar { width: 36px; height: 36px; min-width: 36px; border: 0; }
body.lh-ui .lh-acc-user-avatar--initials { background: var(--ui-raised); color: var(--ui-soft); font-size: 13px; }
body.lh-ui .lh-acc-user-name { font-size: 14px; font-weight: 700; }
body.lh-ui .lh-acc-user-meta small { font-size: 12px; color: var(--ui-muted); }
body.lh-ui .lh-acc-user-logout { font-size: 18px; padding: 7px; border-radius: 8px; color: var(--ui-muted); }
body.lh-ui .lh-acc-user-logout:hover { color: var(--ui-bad); background: var(--ui-bad-wash); }
body.lh-ui .lh-acc-user-profile-btn {
    margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--ui-line-strong);
    background: transparent; color: var(--ui-soft); font-size: 13.5px; font-weight: 600; transform: none;
}
body.lh-ui .lh-acc-user-profile-btn:hover { background: var(--ui-raised); color: var(--ui-text); border-color: #4a4282; transform: none; }

body.lh-ui .lh-acc-main { padding: 34px 40px 60px; }
body.lh-ui .lh-acc-main > * { max-width: 1240px; }
body.lh-ui .lh-acc-page-header { margin: 0 0 26px; }
body.lh-ui .lh-acc-page-header h1 { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--ui-display); letter-spacing: -0.03em; }
body.lh-ui .lh-acc-page-header p { margin-top: 8px; font-size: 15.5px; color: var(--ui-muted); max-width: 70ch; }

body.lh-ui .lh-acc-panel {
    background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-r-card);
    padding: 22px 24px; margin-bottom: 20px;
}
body.lh-ui .lh-acc-panel h2 { font: 700 19px/1.2 var(--ui-display); letter-spacing: -0.02em; }
body.lh-ui .lh-acc-stat { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 14px; min-height: 72px; }
body.lh-ui .lh-acc-stat-icon { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--ui-raised); font-size: 17px; }
body.lh-ui .lh-acc-stat-label { font-size: 12.5px; }
body.lh-ui .lh-acc-stat-value { font: 700 19px/1.2 var(--ui-display); letter-spacing: -0.02em; }
body.lh-ui .lh-acc-stat--clickable:hover, body.lh-ui .lh-acc-stat--clickable:focus-visible { border-color: var(--ui-accent-line); background: var(--ui-raised); }

body.lh-ui .lh-unsaved-bar {
    padding: 10px 10px 10px 20px; background: var(--ui-raised); border: 1px solid var(--ui-line-strong);
    border-radius: 16px; box-shadow: var(--ui-shadow-pop);
}
body.lh-ui .lh-unsaved-bar-msg { font-size: 14.5px; font-weight: 600; color: var(--ui-text); }
body.lh-ui .lh-unsaved-bar-actions { gap: 6px; }
body.lh-ui .lh-unsaved-bar-reset { padding: 10px 14px; border-radius: 10px; color: var(--ui-soft); font-weight: 600; font-size: 14.5px; }
body.lh-ui .lh-unsaved-bar-reset:hover { background: rgba(255, 255, 255, 0.06); color: var(--ui-text); }
body.lh-ui .lh-unsaved-bar-save { padding: 11px 18px; border-radius: 10px; background: var(--ui-accent-hi); color: var(--ui-accent-ink); font-weight: 700; font-size: 14.5px; }
body.lh-ui .lh-unsaved-bar-save:hover { background: #cdbcff; }

body.lh-ui .lh-acc-mobile-bar { background: rgba(12, 10, 24, 0.9); border-bottom: 1px solid var(--ui-line); }
body.lh-ui .lh-acc-mobile-logo { font: 700 17px/1 var(--ui-display); letter-spacing: -0.02em; gap: 8px; }
body.lh-ui .lh-acc-bottom-nav-inner { background: rgba(20, 17, 39, 0.96); border: 1px solid var(--ui-line-strong); border-radius: 18px; }
body.lh-ui .lh-acc-bottom-nav-item { color: var(--ui-muted); font-size: 11.5px; }
body.lh-ui .lh-acc-bottom-nav-item.is-active { color: var(--ui-text); background: var(--ui-raised); }
body.lh-ui .lh-acc-bottom-nav-item.is-active i { color: var(--ui-accent-hi); }

@media (max-width: 900px) {
    body.lh-ui .lh-acc-main { padding: 20px 16px 110px; }
    body.lh-ui .lh-acc-sidebar { border-right: 1px solid var(--ui-line); width: min(300px, 86vw); min-width: 0; }
}

/* ───────── Editor «Personalizza» ───────── */
body.lh-ui.lh-dash-page .lh-acc-main > * { max-width: none; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 22px; }
.st-head h1 { margin: 0; font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--ui-display); letter-spacing: -0.03em; }
.st-head p { margin: 8px 0 0; color: var(--ui-muted); font-size: 15px; max-width: 62ch; }
.st-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-head-actions .ui-tag { padding: 6px 12px; font-size: 12.5px; text-decoration: none; }

.st { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(300px, 372px); gap: 20px; align-items: start; }

.st-tabs { position: sticky; top: 20px; display: grid; gap: 14px; }
.st-tabs-group { display: grid; gap: 2px; }
.st-tabs-label { margin: 0 0 4px 10px; font-size: 12px; font-weight: 600; color: var(--ui-faint); }
.st-tab {
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px;
    border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
    font: 600 14.5px/1.2 var(--ui-font); color: var(--ui-soft);
    transition: background 0.15s ease, color 0.15s ease;
}
.st-tab > i:first-child { width: 20px; text-align: center; font-size: 17px; color: var(--ui-muted); }
.st-tab span { flex: 1; min-width: 0; }
.st-tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--ui-text); }
.st-tab.is-active { background: var(--ui-surface); color: var(--ui-text); box-shadow: inset 0 0 0 1px var(--ui-line-strong); }
.st-tab.is-active > i:first-child { color: var(--ui-accent-hi); }
.st-tab.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ui-ring); }
.st-tab-lock { font-size: 12px; color: var(--ui-warn); }

.st-panels { min-width: 0; }
.st-panel { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-r-card); }
.st-panel[hidden] { display: none; }
.st-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--ui-line); }
.st-panel-head h2 { margin: 0; font: 700 20px/1.2 var(--ui-display); letter-spacing: -0.02em; }
.st-panel-head p { margin: 5px 0 0; color: var(--ui-muted); font-size: 14px; }
.st-panel-body { padding: 20px 22px 24px; }
.st-footnote { margin: 14px 4px 0; color: var(--ui-muted); font-size: 13.5px; }

/* anteprima */
.st-preview { position: sticky; top: 20px; display: grid; gap: 12px; justify-items: center; padding: 14px; border-radius: var(--ui-r-card); background: var(--ui-well); border: 1px solid var(--ui-line); }
.st-preview-bar { width: 100%; display: flex; align-items: center; gap: 10px; }
.st-preview-bar strong { flex: 1; font: 700 15px/1 var(--ui-display); letter-spacing: -0.01em; }
.st-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--ui-surface); border: 1px solid var(--ui-line); }
.st-seg button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ui-muted); cursor: pointer; font-size: 15px; }
.st-seg button:hover { color: var(--ui-text); }
.st-seg button.is-active { background: var(--ui-raised); color: var(--ui-accent-hi); }
.st-preview-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--ui-surface); color: var(--ui-soft); cursor: pointer; }
.st-device { position: relative; width: 100%; display: flex; justify-content: center; }
.st-device-screen { position: relative; overflow: hidden; background: #05040b; border-radius: 30px; box-shadow: 0 0 0 8px #07060f, 0 0 0 9px #332c5c, var(--ui-shadow-pop); margin: 9px; }
.st-device[data-device="desktop"] .st-device-screen { border-radius: 10px; box-shadow: 0 0 0 6px #07060f, 0 0 0 7px #332c5c, var(--ui-shadow-pop); margin: 7px; }
.st-device-screen iframe { display: block; border: 0; transform-origin: 0 0; background: #05040b; }
.st-device-busy {
    position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px;
    background: rgba(12, 10, 24, 0.86); border: 1px solid var(--ui-line-strong); color: var(--ui-soft);
    font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.15s ease 0.25s;
}
.st-device.is-busy .st-device-busy { opacity: 1; }
.st-preview-note { margin: 0; font-size: 12.5px; color: var(--ui-faint); text-align: center; }
.st-preview-fab { display: none; }

@media (max-width: 1280px) {
    .st { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
    .st-tabs { grid-column: 1 / -1; position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .st-tabs-group { display: flex; gap: 6px; }
    .st-tabs-label { display: none; }
    .st-tab { width: auto; white-space: nowrap; padding: 9px 13px; background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-line); }
}
@media (max-width: 980px) {
    .st { grid-template-columns: minmax(0, 1fr); }
    .st-tabs { margin: 0 -16px; padding: 0 16px 8px; }
    .st-preview {
        position: fixed; inset: 0; z-index: 1200; border-radius: 0; border: 0; padding: 14px 14px 20px;
        background: #08060f; align-content: start; overflow-y: auto;
        transform: translateY(102%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .st-preview.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; }
    .st-preview-close { display: inline-flex; align-items: center; justify-content: center; }
    .st-preview-fab {
        position: fixed; left: 14px; bottom: 96px; z-index: 1100; display: inline-flex; align-items: center; gap: 8px;
        min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ui-line-strong);
        background: var(--ui-raised); color: var(--ui-text); font: 700 14px/1 var(--ui-font); cursor: pointer; box-shadow: var(--ui-shadow-pop);
    }
    .st-preview-fab i { color: var(--ui-accent-hi); }
    body.lh-has-unsaved-bar .st-preview-fab { bottom: 232px; }
    body.st-sheet-open { overflow: hidden; }
    .st-panel-head { padding: 16px 16px 14px; }
    .st-panel-body { padding: 16px 16px 20px; }
}

/* controlli dentro le schede: uniforma i vecchi campi (classi utility) al nuovo stile */
.st-panels input[type="text"], .st-panels input[type="url"], .st-panels input[type="search"], .st-panels textarea, .st-panels select {
    min-height: 46px; padding: 11px 14px; border: 1px solid var(--ui-line-strong) !important; border-radius: var(--ui-r-ctl) !important;
    background: var(--ui-well) !important; color: var(--ui-text); font: 500 15px/1.4 var(--ui-font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.st-panels input[type="text"]:focus, .st-panels input[type="url"]:focus, .st-panels input[type="search"]:focus, .st-panels textarea:focus, .st-panels select:focus {
    outline: none; border-color: var(--ui-accent-hi) !important; box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.28);
}
.st-panels label.block, .st-panels .text-sm.text-zinc-400 { color: var(--ui-soft); font-weight: 600; font-size: 13.5px; }
.st-panels .text-zinc-400 { color: var(--ui-muted); }
.st-panels .text-zinc-500, .st-panels .text-zinc-600 { color: var(--ui-muted); }
.st-panels .text-zinc-200, .st-panels .text-zinc-300 { color: var(--ui-text); }
.st-panels .text-xs { font-size: 12.5px; }
.st-panels .text-\[10px\], .st-panels .text-\[11px\] { font-size: 12px; line-height: 1.35; }
.st-panels .border-zinc-700, .st-panels .border-zinc-800 { border-color: var(--ui-line-strong); }
.st-panels .bg-zinc-950, .st-panels .bg-zinc-950\/50, .st-panels .bg-zinc-950\/80, .st-panels .bg-zinc-900 { background-color: var(--ui-well); }
.st-panels .text-violet-400, .st-panels .text-violet-300, .st-panels .text-violet-400\/80 { color: var(--ui-warn); }
.st-panels input[type="file"] { color: var(--ui-muted); font-size: 13.5px; max-width: 100%; }
.st-panels input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 9px 14px; border: 1px solid var(--ui-line-strong); border-radius: 10px;
    background: var(--ui-raised); color: var(--ui-text); font: 600 13.5px/1 var(--ui-font); cursor: pointer;
}
.st-panels input[type="color"] { height: 46px; padding: 4px; border: 1px solid var(--ui-line-strong) !important; border-radius: var(--ui-r-ctl) !important; background: var(--ui-well) !important; }
.st-panels input[type="range"] { accent-color: var(--ui-accent-hi); }
.st-panels input[type="checkbox"]:not(.sr-only) { accent-color: var(--ui-accent-hi); width: 16px; height: 16px; }

/* card selezionabili: tema, font, forma, effetti, stile card */
.st-panels .lh-theme-card, .st-panels .lh-font-card, .st-panels .lh-forma-card, .st-panels .lh-effetto-card {
    position: relative; border: 1px solid var(--ui-line-strong) !important; border-radius: 14px !important;
    background: var(--ui-well) !important; cursor: pointer; opacity: 1;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.st-panels .lh-theme-card:hover, .st-panels .lh-font-card:hover, .st-panels .lh-forma-card:hover, .st-panels .lh-effetto-card:hover { border-color: #4a4282 !important; }
.st-panels .lh-theme-card.selected, .st-panels .lh-font-card.selected, .st-panels .lh-forma-card.selected, .st-panels .lh-effetto-card.selected {
    border-color: var(--ui-accent-hi) !important; background: var(--ui-accent-wash) !important;
    box-shadow: 0 0 0 1px var(--ui-accent-hi);
}
.st-panels .lh-theme-card.selected::after, .st-panels .lh-font-card.selected::after, .st-panels .lh-forma-card.selected::after, .st-panels .lh-effetto-card.selected::after {
    content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; top: 8px; right: 9px;
    width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--ui-accent-hi); color: var(--ui-accent-ink); font-size: 13px; line-height: 1;
}
.st-panels .opacity-60, .st-panels .opacity-70 { opacity: 1; }
.st-panels label:has(input:disabled) { cursor: not-allowed; }
.st-panels label:has(input:disabled) > *:not(.bi-lock-fill) { opacity: 0.5; }
.st-panels .bi-lock-fill { color: var(--ui-warn) !important; }
.st-panels .lh-theme-card-swatch { height: 54px; border-radius: 9px; margin-bottom: 9px; border: 1px solid rgba(255, 255, 255, 0.08); }
.st-panels #campo-tema .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-panels .lh-theme-badge-stagione, .st-panels .lh-theme-badge-in-stagione { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--ui-raised); color: var(--ui-soft); }
.st-panels .lh-theme-badge-in-stagione { background: var(--ui-ok-wash); color: var(--ui-ok); }

/* velo «da sbloccare» */
body.lh-ui .lh-lock-overlay { background: rgba(12, 10, 24, 0.78); backdrop-filter: blur(3px); border-radius: 14px; }
body.lh-ui .lh-lock-overlay a { background: var(--ui-warn) !important; color: #2a1c00 !important; border-radius: 10px; }
body.lh-ui .lh-lock-overlay .bi-lock-fill { color: var(--ui-warn) !important; }

/* sotto-schede */
.st-panels .lh-dash-subnav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 12px; background: var(--ui-well); border: 1px solid var(--ui-line); }
.st-panels .lh-dash-subnav-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; background: none; color: var(--ui-muted); font: 600 13.5px/1 var(--ui-font); cursor: pointer; }
.st-panels .lh-dash-subnav-btn:hover { color: var(--ui-text); }
.st-panels .lh-dash-subnav-btn.is-active { background: var(--ui-raised); color: var(--ui-text); box-shadow: none; border: 0; }
.st-panels .lh-dash-subnav-btn.is-active i { color: var(--ui-accent-hi); }

/* interruttori */
body.lh-ui .lh-toggle-track { background: #2c2750; border: 1px solid var(--ui-line-strong); }
body.lh-ui .lh-toggle input:checked + .lh-toggle-track { background: var(--ui-accent); border-color: var(--ui-accent-hi); }
.st-card-lock { position: absolute; top: 8px; right: 8px; opacity: 1 !important; }

/* pulsante flottante assistenza/messaggi */
body.lh-ui .lh-support-fab {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ui-line-strong);
    background: var(--ui-raised); color: var(--ui-accent-hi); box-shadow: var(--ui-shadow-pop);
}
body.lh-ui .lh-support-fab:hover { filter: none; background: #231e42; }

/* blocchi dentro una scheda */
.st-block + .st-block { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ui-line); }
.st-block-title { margin: 0 0 12px; font: 700 16px/1.25 var(--ui-font) !important; letter-spacing: 0 !important; color: var(--ui-text); }
.st-media-row { display: flex; align-items: center; gap: 16px; }
.st-avatar-thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--ui-well); border: 1px solid var(--ui-line-strong); }
.st-avatar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-avatar-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--ui-faint); }
.st-media-actions { min-width: 0; }
.st-media-actions--row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.st-file { position: relative; }
.st-file:focus-within { outline: 2px solid var(--ui-accent-hi); outline-offset: 2px; }
.st-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ui-soft); cursor: pointer; }
.st-banner-thumb { aspect-ratio: 3 / 1; border-radius: 12px; overflow: hidden; background: var(--ui-well); border: 1px solid var(--ui-line-strong); }
.st-banner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-banner-empty { height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--ui-muted); font-size: 13px; }
.st-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-choice-box {
    position: relative; display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; cursor: pointer;
    background: var(--ui-well); border: 1px solid var(--ui-line-strong); transition: border-color 0.15s ease, background 0.15s ease;
}
.st-choice-box i:first-child { font-size: 22px; color: var(--ui-muted); }
.st-choice-box strong { font-size: 14.5px; }
.st-choice-box small { font-size: 12.5px; line-height: 1.4; color: var(--ui-muted); }
.st-choice-box .ui-tag { justify-self: start; margin-top: 4px; }
.st-choice-item:hover .st-choice-box { border-color: #4a4282; }
.st-choice-item input:checked + .st-choice-box { border-color: var(--ui-accent-hi); background: var(--ui-accent-wash); box-shadow: 0 0 0 1px var(--ui-accent-hi); }
.st-choice-item input:checked + .st-choice-box i:first-child { color: var(--ui-accent-hi); }
.st-choice-item input:focus-visible + .st-choice-box { outline: 2px solid var(--ui-accent-hi); outline-offset: 2px; }
.st-choice-item input:disabled + .st-choice-box { cursor: not-allowed; }
.st-choice-item input:disabled + .st-choice-box > *:not(.ui-tag) { opacity: 0.5; }
@media (max-width: 520px) { .st-choice { grid-template-columns: 1fr; } }

/* selettori decorazioni / cursori / collezionabili */
.st-panels .lh-deco-search, .st-panels .lh-collectible-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin: 0 0 12px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-ctl); background: var(--ui-well); }
.st-panels .lh-deco-search:focus-within, .st-panels .lh-collectible-search:focus-within { border-color: var(--ui-accent-hi); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.28); }
.st-panels .lh-deco-search i, .st-panels .lh-collectible-search i { color: var(--ui-muted); position: static; transform: none; }
.st-panels .lh-deco-search input, .st-panels .lh-collectible-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 11px 0; min-height: 44px; }
.st-panels .lh-deco-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.st-panels .lh-deco-chip { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ui-line-strong); background: var(--ui-well); color: var(--ui-soft); font: 600 13px/1 var(--ui-font); cursor: pointer; }
.st-panels .lh-deco-chip:hover { color: var(--ui-text); border-color: #4a4282; }
.st-panels .lh-deco-chip.is-active { background: var(--ui-accent-hi); border-color: var(--ui-accent-hi); color: var(--ui-accent-ink); }
.st-panels [data-premium="1"] .lh-deco-tile-prem { display: none; }
.st-panels .lh-deco-tile-prem { color: var(--ui-warn); background: rgba(12, 10, 24, 0.8); }
.st-panels .lh-deco-tile, .st-panels .lh-cursor-tile { border: 1px solid var(--ui-line-strong); border-radius: 14px; background: var(--ui-well); }
.st-panels .lh-deco-tile:hover, .st-panels .lh-cursor-tile:hover { border-color: #4a4282; }
.st-panels .lh-deco-tile.is-selected, .st-panels .lh-cursor-tile.is-selected { border-color: var(--ui-accent-hi); background: var(--ui-accent-wash); box-shadow: 0 0 0 1px var(--ui-accent-hi); }
.st-panels .lh-deco-title { font: 700 16px/1.25 var(--ui-font); letter-spacing: 0; }
.st-panels .lh-deco-sub { color: var(--ui-muted); font-size: 13px; }
.st-panels .lh-effetti-sezione h4, .st-panels .lh-music-block-title { font: 700 16px/1.25 var(--ui-font); letter-spacing: 0; color: var(--ui-text); }
.st-panels .lh-music-block-title i, .st-panels .lh-music-intro i { color: var(--ui-accent-hi); }
.st-panels .lh-music-intro { background: var(--ui-accent-wash); border: 1px solid var(--ui-accent-line); border-radius: var(--ui-r-ctl); color: #d9cfff; }
.st-panels .lh-asset-pick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ui-line-strong); background: var(--ui-raised); color: var(--ui-text); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.st-panels .lh-asset-pick:hover { background: #231e42; border-color: #4a4282; }
.st-panels .lh-asset-remove { color: #ff9aa9; }
.st-panels .lh-asset-card { background: none; border: 0; padding: 0; }
.st-panels .lh-collectible-panel { background: none; border: 0; padding: 0; }
.st-panels .lh-collectible-panel + .lh-collectible-panel { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ui-line); }
.st-panels .lh-collectible-tile { border: 1px solid var(--ui-line-strong); border-radius: 14px; background: var(--ui-well); }
.st-panels .lh-collectible-tile:hover { border-color: #4a4282; }
.st-panels .lh-collectible-tile.is-selected { border-color: var(--ui-accent-hi); background: var(--ui-accent-wash); box-shadow: 0 0 0 1px var(--ui-accent-hi); }
.st-panels .lh-collectible-tile-name { color: var(--ui-soft); font-size: 12px; }
.st-panels .lh-collectible-chips { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: thin; }
.st-panels .lh-collectible-chip { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ui-line-strong); background: var(--ui-well); color: var(--ui-soft); font: 600 13px/1 var(--ui-font); cursor: pointer; }
.st-panels .lh-collectible-chip.is-active { background: var(--ui-accent-hi); border-color: var(--ui-accent-hi); color: var(--ui-accent-ink); }
.st-panels .lh-collectible-pager-btn { border: 1px solid var(--ui-line-strong); background: var(--ui-raised); color: var(--ui-text); border-radius: 10px; }

/* ───────── Pagina Link ───────── */
body.lh-ui .lh-links-panel { padding: 18px; }
body.lh-ui .lh-links-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
body.lh-ui .ln-layout { margin-left: auto; display: inline-flex; flex-direction: row; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ui-well); border: 1px solid var(--ui-line); }
body.lh-ui .ln-layout-opt { margin: 0; position: relative; }
body.lh-ui .ln-layout-opt span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: none; color: var(--ui-muted); font: 600 13.5px/1 var(--ui-font); cursor: pointer; }
body.lh-ui .ln-layout-opt input:checked + span { background: var(--ui-raised); color: var(--ui-text); }
body.lh-ui .ln-layout-opt input:checked + span i { color: var(--ui-accent-hi); }
body.lh-ui .ln-layout-opt input:focus-visible + span { outline: 2px solid var(--ui-accent-hi); outline-offset: 2px; }
body.lh-ui .ln-layout-opt.is-locked span { cursor: not-allowed; color: var(--ui-faint); }
body.lh-ui .ln-layout-opt.is-locked i { color: var(--ui-warn); }
.ln-help { margin: 0 0 16px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-well); }
.ln-help summary { padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ui-soft); }
.ln-help ul { margin: 0; padding: 0 14px 14px 32px; display: grid; gap: 6px; color: var(--ui-muted); font-size: 13.5px; }
.ln-help strong { color: var(--ui-text); }

body.lh-ui .lh-link-section { padding: 12px; border: 1px solid var(--ui-line); border-radius: 16px; background: var(--ui-well); }
body.lh-ui .lh-link-section + .lh-link-section { margin-top: 14px; }
body.lh-ui .lh-link-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
body.lh-ui .lh-section-title { font-weight: 700; }
body.lh-ui .lh-links-list { display: grid; gap: 10px; }
body.lh-ui .lh-link-input {
    width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--ui-line-strong); border-radius: 10px;
    background: var(--ui-night); color: var(--ui-text); font: 500 14.5px/1.4 var(--ui-font);
}
body.lh-ui .lh-link-input:focus { outline: none; border-color: var(--ui-accent-hi); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.28); }
body.lh-ui .lh-link-row {
    display: grid; grid-template-columns: 18px 48px minmax(0, 1fr) auto 38px 38px; gap: 10px 12px; align-items: start;
    padding: 14px; border: 1px solid var(--ui-line); border-radius: 14px; background: var(--ui-surface);
}
body.lh-ui .lh-link-row:hover { border-color: var(--ui-line-strong); }
body.lh-ui .lh-link-row.is-link-hidden-profile { border-style: dashed; opacity: 1; background: transparent; }
body.lh-ui .lh-link-row.is-link-hidden-profile .lh-link-row-fields, body.lh-ui .lh-link-row.is-link-hidden-profile .lh-link-thumb-edit { opacity: 0.55; }
body.lh-ui .lh-link-drag { align-self: center; color: var(--ui-faint); cursor: grab; }
body.lh-ui .lh-link-thumb-edit { width: 48px; height: 48px; margin-top: 21px; border-radius: 12px; border: 1px solid var(--ui-line-strong); background: var(--ui-well); overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
body.lh-ui .lh-link-thumb-edit:hover { border-color: var(--ui-accent-hi); }
body.lh-ui .lh-link-row-icon { border: 0; background: none; color: var(--ui-accent-hi); }
body.lh-ui .lh-link-row-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px 12px; min-width: 0; }
body.lh-ui .lh-link-field { display: block; min-width: 0; margin: 0; }
body.lh-ui .lh-link-field:nth-child(1) { order: 2; }
body.lh-ui .lh-link-field:nth-child(2) { order: 1; }
body.lh-ui .lh-link-field:nth-child(3) { order: 3; grid-column: 1 / -1; }
body.lh-ui .lh-link-img-opts { order: 4; grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
body.lh-ui .lh-link-field-label { display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ui-muted); }
body.lh-ui .lh-link-field-label em { font-style: normal; font-weight: 500; color: var(--ui-faint); }
body.lh-ui .lh-link-upload-photo-btn, body.lh-ui .lh-link-display-summary {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 9px;
    border: 1px solid var(--ui-line-strong); background: var(--ui-raised); color: var(--ui-soft); font: 600 12.5px/1 var(--ui-font); cursor: pointer;
}
body.lh-ui .lh-link-upload-photo-btn:hover, body.lh-ui .lh-link-display-summary:hover { color: var(--ui-text); border-color: #4a4282; }
body.lh-ui .lh-link-evidenza-label { font-size: 12.5px; color: var(--ui-soft); }
body.lh-ui .lh-link-thumb-clear { color: #ff9aa9; font-size: 12.5px; }
body.lh-ui .lh-link-domain { align-self: center; margin-top: 21px; font-size: 12.5px; color: var(--ui-muted); white-space: nowrap; }
body.lh-ui .lh-link-profile-visibility, body.lh-ui .lh-link-remove, body.lh-ui .btn-remove-section {
    width: 38px; height: 38px; margin-top: 23px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--ui-line-strong); background: var(--ui-raised); color: var(--ui-soft); cursor: pointer;
}
body.lh-ui .btn-remove-section { margin-top: 0; flex-shrink: 0; padding: 0; }
body.lh-ui .lh-link-profile-visibility:hover { color: var(--ui-text); border-color: #4a4282; }
body.lh-ui .lh-link-row.is-link-hidden-profile .lh-link-profile-visibility { color: var(--ui-warn); border-color: rgba(255, 194, 75, 0.4); background: var(--ui-warn-wash); }
body.lh-ui .lh-link-remove:hover, body.lh-ui .btn-remove-section:hover { color: #ff9aa9; border-color: rgba(255, 107, 129, 0.5); background: var(--ui-bad-wash); }
body.lh-ui .lh-links-empty { margin: 0; padding: 18px; text-align: center; color: var(--ui-muted); font-size: 14px; border: 1px dashed var(--ui-line-strong); border-radius: 12px; }
@media (max-width: 720px) {
    body.lh-ui .lh-link-row { grid-template-columns: 18px 44px minmax(0, 1fr) 38px; }
    body.lh-ui .lh-link-row-fields { grid-column: 1 / -1; grid-template-columns: 1fr; order: 5; }
    body.lh-ui .lh-link-field:nth-child(3), body.lh-ui .lh-link-img-opts { grid-column: auto; }
    body.lh-ui .lh-link-thumb-edit, body.lh-ui .lh-link-domain, body.lh-ui .lh-link-profile-visibility, body.lh-ui .lh-link-remove { margin-top: 0; }
    body.lh-ui .lh-link-domain { justify-self: start; }
    body.lh-ui .lh-link-row { grid-template-columns: 18px 44px minmax(0, 1fr) 38px 38px; }
    body.lh-ui .ln-layout { margin-left: 0; }
}

/* vecchi bottoni dell'area account → nuovo stile */
body.lh-ui .lh-acc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
    border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-ctl); background: var(--ui-raised); color: var(--ui-text);
    font: 600 14.5px/1 var(--ui-font); text-decoration: none; cursor: pointer; box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
body.lh-ui .lh-acc-btn:hover { background: #231e42; border-color: #4a4282; transform: none; }
body.lh-ui .lh-acc-btn--primary { background: var(--ui-accent-hi); border-color: transparent; color: var(--ui-accent-ink); }
body.lh-ui .lh-acc-btn--primary:hover { background: #cdbcff; border-color: transparent; }
body.lh-ui .lh-acc-btn--ghost { background: transparent; }
body.lh-ui .lh-acc-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }

body.lh-ui .lh-platform-picker { background: var(--ui-well); border: 1px solid var(--ui-line-strong); border-radius: 16px; }
body.lh-ui .lh-platform-group-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ui-muted); }
body.lh-ui .lh-platform-btn { border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-surface); color: var(--ui-soft); }
body.lh-ui .lh-platform-btn:hover { border-color: var(--ui-accent-hi); color: var(--ui-text); background: var(--ui-raised); }
body.lh-ui .lh-platform-btn i { color: var(--ui-accent-hi); }
body.lh-ui .lh-platform-search-wrap { border: 1px solid var(--ui-line-strong); border-radius: 12px; background: var(--ui-night); }
body.lh-ui .lh-platform-search { border: 0; background: none; box-shadow: none; outline: none; }

/* ───────── Template ───────── */
/* le anteprime usano i temi veri del profilo: alcuni hanno livelli a posizione fissa che
   uscivano dalla card e coloravano tutta la pagina. Li teniamo dentro la loro anteprima. */
body.lh-ui .lh-tpl-preview-wrap { contain: paint; transform: translateZ(0); }
body.lh-ui .lh-tpl-card { border: 1px solid var(--ui-line); border-radius: var(--ui-r-card); background: var(--ui-surface); }
body.lh-ui .lh-tpl-card.is-applied { border-color: var(--ui-accent-hi); box-shadow: 0 0 0 1px var(--ui-accent-hi); }
body.lh-ui .lh-tpl-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ui-well); border: 1px solid var(--ui-line); }
body.lh-ui .lh-tpl-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ui-muted); font: 600 14px/1 var(--ui-font); text-decoration: none; }
body.lh-ui .lh-tpl-tab:hover { color: var(--ui-text); }
body.lh-ui .lh-tpl-tab.is-active { background: var(--ui-raised); color: var(--ui-text); }
body.lh-ui .lh-tpl-tab.is-active i { color: var(--ui-accent-hi); }

/* ───────── Panoramica ───────── */
.ov-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--ui-well); border: 1px solid var(--ui-line-strong); position: relative; }
.ov-link::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ui-ring); }
.ov-link-url { flex: 1 1 200px; min-width: 0; font: 700 clamp(1.05rem, 2.2vw, 1.35rem)/1.2 var(--ui-display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-link-url span { color: var(--ui-muted); }
.ov-qr { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.ov-qr #lh-qr { padding: 10px; border-radius: 14px; background: #fff; line-height: 0; }
.ov-qr p { margin: 0 0 10px; color: var(--ui-muted); font-size: 14px; max-width: 32ch; }
body.lh-ui .lh-acc-grid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { body.lh-ui .lh-acc-grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.lh-ui .lh-acc-check-item { border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-well); }
body.lh-ui .lh-acc-promo { border-radius: var(--ui-r-card); border: 1px solid rgba(255, 194, 75, 0.3); background: var(--ui-warn-wash); }
body.lh-ui .lh-acc-promo h2 { font: 700 19px/1.2 var(--ui-display); }
