/* ── paydea-brief — modulo pubblico ─────────────────────────────────────────
   Pagina autonoma (niente tema): fondo scuro con aurore in movimento, card
   in vetro, passi animati. L'accento arriva da --acc (Impostazioni). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

.pdbr {
    --acc: #7c3aed;
    --acc-2: #26becc;
    --acc-3: #70d0cc;
    --acc-soft: color-mix(in oklab, var(--acc) 22%, transparent);
    --acc-line: color-mix(in oklab, var(--acc) 60%, #ffffff 10%);
    --bg: #0d0f2b;
    --panel: rgba(16, 20, 57, .55);
    --panel-2: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --text: #f1f3f5;
    --muted: #cdd0e6;
    --faint: #b3b7d6;
    --ok: #34d399;
    --err: #fb7185;
    --r: 22px;
    --r-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    min-height: 100vh;
    min-height: 100dvh;
    background: #101439 linear-gradient(135deg, #101439 0%, #2b1f7a 35%, #513dc4 62%, #26becc 100%) center / cover no-repeat fixed;
    color: var(--text);
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.pdbr button, .pdbr input, .pdbr textarea { font: inherit; color: inherit; }
.pdbr a { color: inherit; }
.pdbr svg { display: block; }
.pdbr-ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ── Sfondo: aurore che respirano + griglia sottile ───────────────────────── */
.pdbr-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.pdbr-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.pdbr-orb--1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle at 30% 30%, var(--acc), transparent 65%); opacity: .28; animation: pdbr-float1 26s var(--ease) infinite alternate; }
.pdbr-orb--2 { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vh; background: radial-gradient(circle at 60% 40%, #a855f7, transparent 65%); opacity: .22; animation: pdbr-float2 32s var(--ease) infinite alternate; }
.pdbr-orb--3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, #26becc, transparent 65%); opacity: .25; animation: pdbr-float3 38s var(--ease) infinite alternate; }
.pdbr-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes pdbr-float1 { to { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes pdbr-float2 { to { transform: translate(-14vw, 16vh) scale(.9); } }
@keyframes pdbr-float3 { to { transform: translate(-10vw, -12vh) scale(1.15); } }

.pdbr-app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
.pdbr-boot { min-height: 100vh; display: grid; place-items: center; }
.pdbr-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--acc); animation: pdbr-spin .8s linear infinite; display: inline-block; }
@keyframes pdbr-spin { to { transform: rotate(360deg); } }
.pdbr-noscript { padding: 40px; text-align: center; }

/* ── Bottoni ──────────────────────────────────────────────────────────────── */
.pdbr-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; padding: 0 26px; border-radius: 16px; border: 0; cursor: pointer;
    font-weight: 700; font-size: 16px; letter-spacing: .1px; text-decoration: none; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.pdbr-btn .pdbr-ico { font-size: 20px; }
.pdbr-btn:active { transform: scale(.97); }
.pdbr-btn--primary {
    color: #fff; overflow: hidden;
    background: linear-gradient(110deg, #7c3aed 0%, #a855f7 38%, #22b8c9 100%);
    box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--acc) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.pdbr-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px color-mix(in oklab, var(--acc) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.pdbr-btn--primary::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); animation: pdbr-shine 3.6s ease-in-out infinite;
}
@keyframes pdbr-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.pdbr-btn--ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pdbr-btn--ghost:hover { background: rgba(255,255,255,.08); }
.pdbr-btn--lg { height: 62px; padding: 0 34px; font-size: 17px; border-radius: 18px; }
.pdbr-btn[disabled] { opacity: .55; cursor: default; transform: none !important; }
.pdbr-btn .pdbr-spinner { width: 20px; height: 20px; border-width: 2.5px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.pdbr-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.pdbr-link:hover { color: var(--text); }

/* ── Intro ────────────────────────────────────────────────────────────────── */
.pdbr-intro { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 22px 60px; text-align: center; }
.pdbr-brand { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pdbr-brand img { width: 38px; height: 38px; display: block; background: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(124,58,237,.45)); }
.pdbr-brand b { display: block; font-size: 14px; line-height: 1.2; text-align: left; }
.pdbr-brand small { display: block; font-size: 12px; color: var(--muted); text-align: left; }
.pdbr-intro h1 {
    font-family: "SF Pro Display", -apple-system, "Segoe UI Variable Display", "Segoe UI", Inter, sans-serif;
    font-size: clamp(38px, 7.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
    margin: 34px auto 20px; max-width: 900px;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pdbr-intro h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #c4b5fd, #a78bfa 40%, #5eead4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pdbr-intro p.pdbr-lead { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.pdbr-feats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 38px; }
.pdbr-feat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: 14px; color: #d6dae0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pdbr-feat .pdbr-ico { color: var(--acc-2); font-size: 17px; }
.pdbr-intro-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pdbr-steps-preview { margin-top: 56px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 760px; }
.pdbr-steps-preview span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.85); }
.pdbr-steps-preview .pdbr-ico { color: #70d0cc; }
.pdbr-steps-preview span + span::before { content: ""; width: 14px; height: 1px; background: rgba(255,255,255,.4); }
.pdbr-welcome-back { margin: 0 auto 26px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: color-mix(in oklab, var(--ok) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 35%, transparent); color: #bbf7d0; font-size: 15px; }

.pdbr-reveal > * { opacity: 0; transform: translateY(18px); animation: pdbr-up .8s var(--ease) forwards; }
.pdbr-reveal > *:nth-child(2) { animation-delay: .08s; }
.pdbr-reveal > *:nth-child(3) { animation-delay: .16s; }
.pdbr-reveal > *:nth-child(4) { animation-delay: .24s; }
.pdbr-reveal > *:nth-child(5) { animation-delay: .32s; }
.pdbr-reveal > *:nth-child(6) { animation-delay: .40s; }
.pdbr-reveal > *:nth-child(7) { animation-delay: .48s; }
@keyframes pdbr-up { to { opacity: 1; transform: none; } }

/* ── Struttura dei passi ──────────────────────────────────────────────────── */
.pdbr-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.pdbr-rail {
    position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 28px 22px; display: flex; flex-direction: column; gap: 26px;
    border-right: 1px solid var(--line); background: rgba(16, 20, 57, .45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.pdbr-rail .pdbr-brand { background: none; box-shadow: none; padding: 0; }
.pdbr-stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; }
.pdbr-stepper::-webkit-scrollbar { display: none; }
.pdbr-stepper li { position: relative; }
.pdbr-stepper li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 44px; bottom: -8px; width: 2px; border-radius: 2px; background: var(--line); }
.pdbr-stepper li.is-done:not(:last-child)::after { background: linear-gradient(var(--acc), var(--acc-2)); }
.pdbr-stepper button {
    width: 100%; display: flex; align-items: center; gap: 13px; padding: 8px 10px; border-radius: 14px;
    background: none; border: 0; text-align: left; cursor: pointer; color: var(--faint); transition: background .2s, color .2s;
}
.pdbr-stepper button:disabled { cursor: default; }
.pdbr-stepper button:not(:disabled):hover { background: var(--panel-2); color: var(--text); }
.pdbr-stepper .pdbr-dot {
    width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 32px;
    background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; transition: all .3s var(--ease);
}
.pdbr-stepper .pdbr-lbl { font-size: 14.5px; font-weight: 600; }
.pdbr-stepper li.is-done .pdbr-dot { background: color-mix(in oklab, var(--acc) 28%, transparent); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc) 60%, transparent); }
.pdbr-stepper li.is-done button { color: #cdd2da; }
.pdbr-stepper li.is-current button { color: #fff; background: var(--panel-2); }
.pdbr-stepper li.is-current .pdbr-dot { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; box-shadow: 0 6px 20px -4px var(--acc); }
.pdbr-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.pdbr-save { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); min-height: 20px; }
.pdbr-save .pdbr-ico { font-size: 15px; }
.pdbr-save.is-ok { color: var(--ok); }
.pdbr-save.is-err { color: var(--err); }
.pdbr-save .pdbr-spinner { width: 14px; height: 14px; border-width: 2px; }
.pdbr-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pdbr-meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .6s var(--ease); box-shadow: 0 0 16px var(--acc); }
.pdbr-meter-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

.pdbr-stage { padding: 48px clamp(18px, 5vw, 72px) 60px; display: flex; flex-direction: column; align-items: center; }
.pdbr-top { display: none; }

.pdbr-card {
    width: 100%; max-width: 860px; background: var(--panel); border-radius: var(--r);
    box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0,0,0,.7);
    backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    position: relative; overflow: hidden;
}
.pdbr-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.pdbr-card-body { padding: 40px clamp(20px, 4vw, 48px) 34px; }
.pdbr-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 32px; }
.pdbr-head-icon {
    width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 58px; font-size: 27px; color: #fff;
    background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 12px 30px -10px var(--acc), inset 0 1px 0 rgba(255,255,255,.3);
}
.pdbr-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc-3); margin-bottom: 4px; }
.pdbr-head h2 { font-family: "SF Pro Display", -apple-system, "Segoe UI Variable Display", "Segoe UI", Inter, sans-serif; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 6px; font-weight: 800; }
.pdbr-head p { margin: 0; color: var(--muted); font-size: 16px; }

.pdbr-nav { display: flex; align-items: center; gap: 14px; padding: 20px clamp(20px, 4vw, 48px); border-top: 1px solid var(--line); background: rgba(0,0,0,.14); }
.pdbr-nav .pdbr-spacer { flex: 1; }
.pdbr-kbd { font-size: 13px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.pdbr-kbd kbd { font: inherit; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }

/* Transizioni tra un passo e l'altro */
.pdbr-anim-in-next { animation: pdbr-in-next .55s var(--ease) both; }
.pdbr-anim-in-prev { animation: pdbr-in-prev .55s var(--ease) both; }
@keyframes pdbr-in-next { from { opacity: 0; transform: translateX(34px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pdbr-in-prev { from { opacity: 0; transform: translateX(-34px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Campi ────────────────────────────────────────────────────────────────── */
.pdbr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.pdbr-f { grid-column: span 6; min-width: 0; transition: opacity .3s var(--ease); }
.pdbr-f--half { grid-column: span 3; }
.pdbr-f--third { grid-column: span 2; }
.pdbr-f[hidden] { display: none; }
.pdbr-f.is-appearing { animation: pdbr-appear .45s var(--ease) both; }
@keyframes pdbr-appear { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.pdbr-label { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; margin-bottom: 10px; color: #e5e7eb; }
.pdbr-label .pdbr-req { color: var(--acc-3); font-weight: 800; }
.pdbr-label .pdbr-ico { color: var(--muted); font-size: 17px; }
.pdbr-hint { font-size: 13px; color: var(--faint); margin-top: 8px; }
.pdbr-err { font-size: 13.5px; color: var(--err); margin-top: 8px; display: none; align-items: center; gap: 6px; font-weight: 600; }
.pdbr-f.has-err .pdbr-err { display: flex; }
.pdbr-f.has-err { animation: pdbr-shake .42s; }
@keyframes pdbr-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pdbr-input {
    width: 100%; height: 56px; padding: 0 18px; border-radius: var(--r-sm); border: 0; outline: 0;
    background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 16.5px; color: var(--text); transition: box-shadow .2s, background .2s;
}
textarea.pdbr-input { height: auto; min-height: 130px; padding: 15px 18px; resize: vertical; line-height: 1.55; }
.pdbr-input::placeholder { color: #5b6270; }
.pdbr-input:hover { background: rgba(255,255,255,.07); }
.pdbr-input:focus { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px var(--acc-line), 0 0 0 5px var(--acc-soft); }
.pdbr-f.has-err .pdbr-input { box-shadow: inset 0 0 0 1.5px var(--err), 0 0 0 5px rgba(251, 113, 133, .14); }
.pdbr-input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 60px #1b1e24; }

/* Pillole (scelta singola o multipla) */
.pdbr-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pdbr-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); color: #d6dae0; font-weight: 600; font-size: 15px;
    transition: all .22s var(--ease); -webkit-tap-highlight-color: transparent;
}
.pdbr-pill:hover { background: rgba(255,255,255,.09); color: #fff; }
.pdbr-pill .pdbr-tick { width: 0; overflow: hidden; display: inline-flex; transition: width .22s var(--ease); font-size: 16px; }
.pdbr-pill.is-on { color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 45%, transparent), color-mix(in oklab, var(--acc-2) 30%, transparent)); box-shadow: inset 0 0 0 1.5px var(--acc-line), 0 8px 24px -10px var(--acc); }
.pdbr-pill.is-on .pdbr-tick { width: 17px; }
/* Nota della voce (es. «+50 €»), dalle Impostazioni */
.pdbr-pill-nota { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; color: #fde68a; background: rgba(251, 191, 36, .14); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); white-space: nowrap; }
.pdbr-pill.is-on .pdbr-pill-nota { color: #fff; background: rgba(251, 191, 36, .28); }

/* Card di scelta */
.pdbr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pdbr-choices--compact { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.pdbr-choice {
    position: relative; text-align: left; border: 0; cursor: pointer; padding: 18px; border-radius: 18px; min-height: 100%;
    background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2);
    display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    -webkit-tap-highlight-color: transparent;
}
.pdbr-choices--compact .pdbr-choice { flex-direction: row; align-items: center; padding: 14px; gap: 12px; }
.pdbr-choice:hover { transform: translateY(-3px); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 14px 30px -18px rgba(0,0,0,.8); }
.pdbr-choice-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; flex: 0 0 44px; background: rgba(255,255,255,.07); color: #cfd4dc; transition: all .25s var(--ease); }
.pdbr-choices--compact .pdbr-choice-ico { width: 38px; height: 38px; flex-basis: 38px; font-size: 19px; border-radius: 11px; }
.pdbr-choice b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: #f1f3f5; }
.pdbr-choice small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.pdbr-choice-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc-2)); transform: scale(0); transition: transform .3s var(--ease); }
.pdbr-choices--compact .pdbr-choice-check { top: 50%; margin-top: -12px; }
.pdbr-choice.is-on { background: linear-gradient(160deg, color-mix(in oklab, var(--acc) 26%, transparent), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1.5px var(--acc-line), 0 16px 40px -18px var(--acc); }
.pdbr-choice.is-on .pdbr-choice-ico { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; box-shadow: 0 8px 20px -8px var(--acc); }
.pdbr-choice.is-on .pdbr-choice-check { transform: scale(1); }
.pdbr-choices--compact .pdbr-choice { padding-right: 42px; }

/* Stili grafici con anteprima */
.pdbr-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pdbr-style { border: 0; padding: 0; cursor: pointer; border-radius: 18px; overflow: hidden; text-align: left; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.pdbr-style:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 18px 36px -18px rgba(0,0,0,.9); }
.pdbr-style.is-on { box-shadow: inset 0 0 0 2px var(--acc-line), 0 18px 40px -16px var(--acc); }
.pdbr-mock { height: 118px; padding: 10px; position: relative; }
.pdbr-mock-bar { display: flex; gap: 4px; margin-bottom: 10px; }
.pdbr-mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.pdbr-mock-aa { font-size: 30px; line-height: 1; font-weight: 700; }
.pdbr-mock-line { height: 5px; border-radius: 3px; margin-top: 8px; width: 70%; opacity: .35; background: currentColor; }
.pdbr-mock-line + .pdbr-mock-line { width: 48%; }
.pdbr-mock-btn { position: absolute; right: 10px; bottom: 10px; height: 18px; width: 52px; border-radius: 5px; }
.pdbr-style-info { padding: 12px 14px 14px; }
.pdbr-style-info b { display: block; font-size: 15px; }
.pdbr-style-info small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.pdbr-style .pdbr-choice-check { top: 10px; right: 10px; }
.pdbr-style.is-on .pdbr-choice-check { transform: scale(1); }
.pdbr-f-elegante { font-family: Georgia, "Times New Roman", serif; font-weight: 400 !important; font-style: italic; }
.pdbr-f-moderno  { font-family: -apple-system, "Segoe UI", sans-serif; font-weight: 800 !important; letter-spacing: -.04em; }
.pdbr-f-minimal  { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 300 !important; }
.pdbr-f-vivace   { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 900 !important; }
.pdbr-f-naturale { font-family: Palatino, "Palatino Linotype", Georgia, serif; font-weight: 600 !important; }
.pdbr-f-tech     { font-family: "SF Mono", Consolas, "Courier New", monospace; font-weight: 700 !important; }
.pdbr-f-classico { font-family: "Times New Roman", Times, serif; font-weight: 700 !important; }
.pdbr-f-lusso    { font-family: Didot, "Bodoni MT", Georgia, serif; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; font-size: 24px !important; }

/* Voci libere (tag) */
.pdbr-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 56px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px var(--line-2); cursor: text; transition: box-shadow .2s; }
.pdbr-tags:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc-line), 0 0 0 5px var(--acc-soft); }
.pdbr-tag { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 40%, transparent), color-mix(in oklab, var(--acc-2) 25%, transparent)); box-shadow: inset 0 0 0 1px var(--acc-line); animation: pdbr-pop .3s var(--ease); }
.pdbr-tag button { border: 0; background: rgba(255,255,255,.12); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; font-size: 13px; padding: 0; }
.pdbr-tags input { flex: 1 1 160px; min-width: 120px; height: 38px; border: 0; outline: 0; background: none; font-size: 16px; padding: 0 6px; }
.pdbr-tags input::placeholder { color: #5b6270; }
@keyframes pdbr-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* Colori */
.pdbr-colors { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pdbr-swatch { position: relative; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 7px; animation: pdbr-pop .35s var(--ease); }
.pdbr-swatch label { width: 64px; height: 64px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 10px 26px -10px rgba(0,0,0,.8); display: block; position: relative; overflow: hidden; }
.pdbr-swatch input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.pdbr-swatch code { font-size: 12px; color: var(--muted); font-family: "SF Mono", Consolas, monospace; text-transform: uppercase; }
.pdbr-swatch .pdbr-x { position: absolute; top: -4px; right: 0; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #23272f; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; padding: 0; }
.pdbr-add-color { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 24px; color: var(--muted); background: none; box-shadow: inset 0 0 0 2px var(--line-2); transition: all .2s; margin-bottom: 25px; }
.pdbr-add-color:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--acc-line); }
.pdbr-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pdbr-preset { width: 30px; height: 30px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .2s var(--ease); padding: 0; }
.pdbr-preset:hover { transform: scale(1.15) rotate(-4deg); }

/* Caricamento file */
.pdbr-drop {
    position: relative; border-radius: 18px; padding: 30px 20px; text-align: center; cursor: pointer;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px), rgba(255,255,255,.03);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); transition: all .25s var(--ease);
}
.pdbr-drop::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px dashed rgba(255,255,255,.18); pointer-events: none; transition: border-color .25s; }
.pdbr-drop:hover, .pdbr-drop.is-over { background-color: color-mix(in oklab, var(--acc) 12%, transparent); }
.pdbr-drop:hover::before, .pdbr-drop.is-over::before { border-color: var(--acc-line); }
.pdbr-drop.is-over { transform: scale(1.01); }
.pdbr-drop-ico { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 27px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 12px 28px -10px var(--acc); }
.pdbr-drop b { display: block; font-size: 16px; }
.pdbr-drop small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.pdbr-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdbr-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; margin-top: 14px; }
.pdbr-file { position: relative; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); animation: pdbr-pop .35s var(--ease); }
.pdbr-file-thumb { aspect-ratio: 1; display: grid; place-items: center; background: rgba(0,0,0,.25); color: var(--muted); font-size: 30px; }
.pdbr-file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdbr-file-ext { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; background: rgba(13,15,43,.78); text-transform: uppercase; }
.pdbr-file-name { font-size: 12px; padding: 7px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d1d5db; }
.pdbr-file .pdbr-x { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(13,15,43,.82); color: #fff; font-size: 14px; padding: 0; }
.pdbr-file-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.1); }
.pdbr-file-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .2s; }
.pdbr-file.is-err { box-shadow: inset 0 0 0 1.5px var(--err); }
.pdbr-file.is-err .pdbr-file-name { color: var(--err); white-space: normal; }
.pdbr-file.is-loading .pdbr-file-thumb { opacity: .55; }

/* Consenso */
.pdbr-consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; color: #d6dae0; transition: box-shadow .2s; }
.pdbr-consent input { position: absolute; opacity: 0; pointer-events: none; }
.pdbr-box { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 28px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-2); color: transparent; transition: all .25s var(--ease); font-size: 17px; }
.pdbr-consent.is-on { box-shadow: inset 0 0 0 1.5px var(--acc-line); }
.pdbr-consent.is-on .pdbr-box { background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: none; color: #fff; }
.pdbr-consent a { color: var(--acc-2); }
.pdbr-f.has-err .pdbr-consent { box-shadow: inset 0 0 0 1.5px var(--err); }

/* Trappola anti-bot */
.pdbr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Riepilogo ────────────────────────────────────────────────────────────── */
.pdbr-review { display: grid; gap: 14px; }
.pdbr-rsec { border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 20px; }
.pdbr-rsec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pdbr-rsec-head .pdbr-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: color-mix(in oklab, var(--acc) 25%, transparent); color: #fff; }
.pdbr-rsec-head h3 { margin: 0; font-size: 16.5px; flex: 1; }
.pdbr-rsec dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 8px 16px; font-size: 14.5px; }
.pdbr-rsec dt { color: var(--muted); }
.pdbr-rsec dd { margin: 0; color: #f1f3f5; white-space: pre-line; overflow-wrap: anywhere; }
.pdbr-rsec dd.is-missing { color: var(--err); font-weight: 600; }
.pdbr-rsec .pdbr-dots { display: inline-flex; gap: 6px; vertical-align: middle; }
.pdbr-rsec .pdbr-dots i { width: 18px; height: 18px; border-radius: 6px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.pdbr-rsec-empty { color: var(--faint); font-size: 14px; }

/* ── Fine ─────────────────────────────────────────────────────────────────── */
.pdbr-done { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 22px; text-align: center; }
.pdbr-done-check { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 30px; background: radial-gradient(circle, color-mix(in oklab, var(--ok) 30%, transparent), transparent 70%); position: relative; }
.pdbr-done-check::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in oklab, var(--ok) 50%, transparent); animation: pdbr-ring 2s var(--ease) infinite; }
@keyframes pdbr-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.pdbr-done-check svg { width: 80px; height: 80px; }
.pdbr-done-check circle { stroke: var(--ok); stroke-width: 3; fill: none; stroke-dasharray: 190; stroke-dashoffset: 190; animation: pdbr-draw .8s var(--ease) .1s forwards; }
.pdbr-done-check path { stroke: var(--ok); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: pdbr-draw .5s var(--ease) .75s forwards; }
@keyframes pdbr-draw { to { stroke-dashoffset: 0; } }
.pdbr-done h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.pdbr-done p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.pdbr-signature { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.pdbr-signature img { width: 52px; height: 52px; border-radius: 16px; background: #fff; }
.pdbr-signature b { display: block; }
.pdbr-signature small { color: var(--muted); }
.pdbr-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ── Finestra "Continua più tardi" ───────────────────────────────────────── */
.pdbr-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5,6,8,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: pdbr-fade .25s ease; }
@keyframes pdbr-fade { from { opacity: 0; } }
.pdbr-modal-box { width: 100%; max-width: 480px; background: #171a3d; border-radius: 24px; padding: 30px; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -20px #000; animation: pdbr-up .45s var(--ease) both; opacity: 0; transform: translateY(18px); }
.pdbr-modal-box h3 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.02em; }
.pdbr-modal-box p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.pdbr-copy { display: flex; gap: 8px; margin-bottom: 14px; }
.pdbr-copy input { flex: 1; min-width: 0; height: 50px; font-size: 13.5px; }
.pdbr-share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdbr-share .pdbr-btn { height: 50px; font-size: 15px; }
.pdbr-modal-close { margin-top: 18px; width: 100%; }

.pdbr-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 60; padding: 13px 20px; border-radius: 14px; background: #1d2026; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px #000; font-size: 15px; font-weight: 600; opacity: 0; transition: all .35s var(--ease); pointer-events: none; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); }
.pdbr-toast.is-on { opacity: 1; transform: translateX(-50%); }
.pdbr-toast.is-err { box-shadow: inset 0 0 0 1px var(--err), 0 20px 50px -10px #000; }

/* ── Tablet e telefono ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pdbr-shell { grid-template-columns: 1fr; }
    .pdbr-rail { display: none; }
    .pdbr-top {
        display: block; position: sticky; top: 0; z-index: 20; width: 100%;
        padding: 12px 16px 12px; padding-top: max(12px, env(safe-area-inset-top));
        background: rgba(16,20,57,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    }
    .pdbr-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    .pdbr-top-row .pdbr-brand { padding: 0; background: none; box-shadow: none; gap: 10px; }
    .pdbr-top-row .pdbr-brand img { width: 32px; height: 32px; }
    .pdbr-top-count { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
    .pdbr-stage { padding: 0 0 40px; }
    .pdbr-card { margin-top: 18px; }
}
@media (max-width: 1024px) and (min-width: 700px) {
    .pdbr-stage { padding: 0 24px 40px; }
    .pdbr-top { margin: 0 -24px; width: calc(100% + 48px); }
}
@media (max-width: 699px) {
    .pdbr-card { border-radius: 0; margin-top: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
    .pdbr-card::before { display: none; }
    .pdbr-card-body { padding: 26px 18px 30px; }
    .pdbr-head { margin-bottom: 26px; gap: 14px; }
    .pdbr-head-icon { width: 50px; height: 50px; flex-basis: 50px; font-size: 23px; border-radius: 15px; }
    .pdbr-head p { font-size: 15px; }
    .pdbr-grid { gap: 22px 12px; }
    .pdbr-f--half { grid-column: span 6; }
    .pdbr-f--third { grid-column: span 2; }
    .pdbr-nav {
        position: sticky; bottom: 0; z-index: 20; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: rgba(13,15,43,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .pdbr-nav .pdbr-btn { height: 52px; padding: 0 18px; }
    .pdbr-nav .pdbr-btn--primary { flex: 1; }
    .pdbr-kbd, .pdbr-nav .pdbr-spacer { display: none; }
    .pdbr-choices { grid-template-columns: 1fr; }
    .pdbr-choices--compact { grid-template-columns: 1fr 1fr; }
    .pdbr-choices--compact .pdbr-choice { flex-direction: column; align-items: flex-start; padding: 14px; }
    .pdbr-choices--compact .pdbr-choice-check { top: 12px; margin-top: 0; }
    .pdbr-styles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pdbr-mock { height: 96px; }
    .pdbr-rsec dl { grid-template-columns: 1fr; gap: 2px; }
    .pdbr-rsec dd { margin-bottom: 8px; }
    .pdbr-intro h1 { margin-top: 28px; }
    .pdbr-intro-actions .pdbr-btn { width: 100%; }
    .pdbr-steps-preview { display: none; }
    .pdbr-share { grid-template-columns: 1fr; }
    .pdbr-modal-box { padding: 24px 20px; }
}
@media (max-width: 380px) {
    .pdbr-f--third { grid-column: span 6; }
    .pdbr-choices--compact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .pdbr *, .pdbr *::before, .pdbr *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 1.0.4 · logo ufficiale Paydea (wordmark bianco dell'header) al posto dell'icona */
.pdbr-brand.is-marchio { gap: 14px; padding: 9px 18px 9px 16px; }
.pdbr-brand.is-marchio img { width: auto; height: 30px; max-width: 170px; filter: none; }
.pdbr-brand.is-marchio span { padding-left: 14px; border-left: 1px solid var(--line); }
.pdbr-brand.is-marchio small { font-size: 12.5px; }
.pdbr-signature.is-marchio img { width: auto; height: 38px; max-width: 200px; border-radius: 0; background: none; }
.pdbr-signature.is-marchio span { padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 600px) { .pdbr-top-row .pdbr-brand.is-marchio img { width: auto; height: 24px; } .pdbr-top-row .pdbr-brand.is-marchio span { padding-left: 10px; } }

/* Colonna laterale: marchio sopra, «Il circuito del cashback» sotto su una riga (affiancati andava a capo parola per parola) */
.pdbr-rail .pdbr-brand.is-marchio { flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 0 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pdbr-rail .pdbr-brand.is-marchio span { padding-left: 0; border-left: 0; }
.pdbr-rail .pdbr-brand.is-marchio small { white-space: nowrap; }

/* ── Modelli del sito: card con miniatura, scelta e anteprima ── */
.pdbr-modelli { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pdbr-modello { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; transition: box-shadow .22s var(--ease), transform .22s var(--ease); }
.pdbr-modello:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 18px 40px -20px rgba(0,0,0,.6); }
.pdbr-modello.is-on { box-shadow: inset 0 0 0 2px var(--acc-line), 0 18px 44px -16px var(--acc); }
.pdbr-modello-sel { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pdbr-modello-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #101439; }
.pdbr-modello-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s var(--ease); }
.pdbr-modello:hover .pdbr-modello-img img { transform: scale(1.04); }
.pdbr-modello-info { display: block; padding: 14px 16px 6px; }
.pdbr-modello-info b { display: block; font-size: 15px; letter-spacing: .02em; color: #fff; }
.pdbr-modello-info small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pdbr-modello .pdbr-choice-check { top: 10px; right: 10px; z-index: 2; }
.pdbr-modello.is-on .pdbr-choice-check { opacity: 1; transform: scale(1); }
.pdbr-modello-ant { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin: 8px 16px 16px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; font: 600 13px/1 inherit; font-family: inherit; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.pdbr-modello-ant:hover { background: rgba(255,255,255,.16); }
.pdbr-modello-ant .pdbr-ico { width: 15px; height: 15px; }
a.pdbr-modello-ant, a.pdbr-modello-ant:hover { text-decoration: none; color: #fff; }
/* Modelli della pagina del negozio fisico: anteprima verticale (pagina intera, non solo la testata) */
.pdbr-modelli--pagine .pdbr-modello-img { aspect-ratio: 4 / 5; }

/* ── Colori del sito: anteprima, tre colori, combinazioni pronte ── */
.pdbr-palette { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px 20px; align-items: center; }
.pdbr-pal-mock { grid-row: span 2; position: relative; height: 130px; border-radius: 16px; overflow: hidden; padding: 16px; background: linear-gradient(135deg, var(--s) 0%, color-mix(in oklab, var(--s) 70%, var(--t)) 55%, color-mix(in oklab, var(--t) 60%, var(--d)) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pdbr-pal-mock b { display: block; font-size: 26px; line-height: 1; color: #fff; }
.pdbr-pal-mock span { display: block; height: 6px; width: 70%; margin-top: 10px; border-radius: 4px; background: rgba(255,255,255,.35); }
.pdbr-pal-mock span + span { width: 50%; }
.pdbr-pal-mock i { position: absolute; left: 16px; bottom: 16px; width: 86px; height: 26px; border-radius: 999px; background: linear-gradient(110deg, var(--t), var(--d)); }
.pdbr-pal-cols { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.pdbr-pal-c { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pdbr-pal-sw { position: relative; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 6px 16px -6px rgba(0,0,0,.6); overflow: hidden; }
.pdbr-pal-sw input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; }
.pdbr-pal-c b { display: block; font-size: 13.5px; color: #fff; }
.pdbr-pal-c code { font-size: 12px; color: var(--muted); background: none; padding: 0; }
.pdbr-pal-preset { display: flex; flex-wrap: wrap; gap: 8px; }
.pdbr-pal-preset button { display: inline-flex; padding: 4px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .15s; }
.pdbr-pal-preset button:hover { transform: translateY(-2px); }
.pdbr-pal-preset i { width: 16px; height: 22px; display: block; }
.pdbr-pal-preset i:first-child { border-radius: 999px 0 0 999px; }
.pdbr-pal-preset i:last-child { border-radius: 0 999px 999px 0; }
.pdbr-pal-reset { grid-column: 2; justify-self: start; }
@media (max-width: 600px) {
    .pdbr-palette { grid-template-columns: 1fr; }
    .pdbr-pal-mock { grid-row: auto; height: 110px; }
    .pdbr-pal-reset { grid-column: 1; }
    .pdbr-modelli { grid-template-columns: 1fr; }
}

/* ── Contratto: titoletti di sezione e riquadro dei contratti da firmare ── */
.pdbr-sez { padding-top: 10px; }
.pdbr-sez:first-child, .pdbr-f[hidden] + .pdbr-sez { padding-top: 0; }
.pdbr-sez h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-3); }
.pdbr-sez h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.pdbr-ctr-passi { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: ctr; display: grid; gap: 12px; }
.pdbr-ctr-passi li { counter-increment: ctr; position: relative; padding: 2px 0 0 44px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pdbr-ctr-passi li b { color: var(--text); }
.pdbr-ctr-passi li::before { content: counter(ctr); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #7c3aed, #22b8c9); box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .8); }
.pdbr-ctr-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pdbr-ctr-doc { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; padding: 18px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-2); }
.pdbr-ctr-doc b { display: block; color: var(--text); font-size: 15.5px; }
.pdbr-ctr-doc small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.pdbr-ctr-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--acc) 30%, transparent); color: #fff; }
.pdbr-ctr-ico .pdbr-ico { width: 24px; height: 24px; }
.pdbr-ctr-doc .pdbr-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
@media (max-width: 760px) {
    .pdbr-ctr-docs { grid-template-columns: 1fr; }
    .pdbr-ctr-passi li { font-size: 14px; }
}

/* Link dentro i suggerimenti (es. Google Maps, Facebook) */
.pdbr-hint a { color: var(--acc-3); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pdbr-hint a:hover { color: #fff; }

/* Campi in sola lettura (risposte di «Chi sei» ripetute nel contratto) */
.pdbr-input.is-copia { cursor: default; color: var(--muted); background: rgba(255, 255, 255, .025); border-style: dashed; border-color: var(--line-2); box-shadow: none; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b7d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.pdbr-input.is-copia:focus { outline: none; border-color: var(--line-2); box-shadow: none; }

/* Riepilogo: anteprima della pagina dell'esercente */
.pdbr-vedi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 22px; padding: 18px 20px; border-radius: var(--r-sm);
  background: linear-gradient(110deg, color-mix(in oklab, var(--acc) 26%, transparent), color-mix(in oklab, var(--acc-2) 18%, transparent)); border: 1px solid var(--line-2); }
.pdbr-vedi-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #22b8c9); }
.pdbr-vedi-ico .pdbr-ico { width: 24px; height: 24px; }
.pdbr-vedi b { display: block; color: var(--text); font-size: 16px; }
.pdbr-vedi small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
@media (max-width: 760px) {
  .pdbr-vedi { grid-template-columns: auto minmax(0, 1fr); }
  .pdbr-vedi .pdbr-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

/* Punti di forza della scheda prodotto: icona del tema + titolo + testo */
.pdbr-gar { display: flex; flex-direction: column; gap: 10px; }
.pdbr-gar-riga { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.4fr) 34px; gap: 8px; align-items: center; }
.pdbr-gar-ico { width: 52px; height: 52px; border: 0; border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; color: #fff; padding: 0; background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 8px 22px -10px var(--acc); }
.pdbr-gar-ico svg, .pdbr-gar-icone svg { width: 22px; height: 22px; display: block; position: static; top: auto; }
.pdbr-gar-ico .tk-svg-iconset, .pdbr-gar-icone .tk-svg-iconset { display: grid; place-items: center; padding: 0; }
.pdbr-gar-riga .pdbr-x { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; padding: 0; background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }
.pdbr-gar-riga .pdbr-x:hover { color: #fff; background: rgba(251, 113, 133, .22); }
.pdbr-gar-icone { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line-2); }
.pdbr-gar-icone[hidden] { display: none; }
.pdbr-gar-icone button { width: 42px; height: 42px; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--muted); background: rgba(255, 255, 255, .05); }
.pdbr-gar-icone button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pdbr-gar-icone button.is-on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc-2)); }
.pdbr-gar-add { align-self: flex-start; }
.pdbr-pill.is-fisso { cursor: default; }
@media (max-width: 699px) {
  .pdbr-gar-riga { grid-template-columns: 52px minmax(0, 1fr) 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .pdbr-gar-riga .pdbr-gar-x { grid-column: 2 / 3; }
  .pdbr-gar-riga .pdbr-x { grid-column: 3; grid-row: 1; }
  .pdbr-gar-add { align-self: stretch; justify-content: center; }
}

/* Commissione dei negozi fisici: valore bloccato, si cambia col PIN di Paydea */
.pdbr-lock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 22%, transparent), color-mix(in oklab, var(--acc-2) 14%, transparent)); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--acc) 55%, transparent); }
.pdbr-lock-val { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; color: #fff; }
.pdbr-lock-val .pdbr-ico { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.12); }
.pdbr-lock-val b { font-size: 24px; line-height: 1.1; font-weight: 800; }
.pdbr-lock-val small { font-size: 13px; color: #c7cbe0; }
.pdbr-lock-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.35); cursor: pointer; transition: color .2s, background .2s; }
.pdbr-lock-btn:hover, .pdbr-lock-btn:focus-visible { color: #fff; background: rgba(255,255,255,.1); outline: 0; }
.pdbr-lock-btn .pdbr-ico { width: 18px; height: 18px; }

/* Cashback a mano + commissioni di Paydea: blocchi uguali in fila (3 con online e fisico, 2 con uno solo) */
.pdbr-perc { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pdbr-comm { display: contents; }
.pdbr-perc-in, .pdbr-comm-card { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 104px; margin: 0; padding: 14px 18px; border-radius: 18px; box-sizing: border-box; }
.pdbr-perc-in small, .pdbr-comm-card small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.pdbr-perc-in { background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 26%, transparent), color-mix(in oklab, var(--acc-2) 16%, transparent)); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--acc) 60%, transparent); cursor: text; }
.pdbr-perc-in small { color: #e9e3ff; }
.pdbr-perc-box { position: relative; display: flex; align-items: center; }
.pdbr-perc-in .pdbr-input { width: 100%; height: 46px; min-height: 0; padding: 0 34px 0 12px; border-radius: 12px; font-size: 30px; font-weight: 800; line-height: 1; text-align: left; background: rgba(0,0,0,.18); }
.pdbr-perc-box i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; font-size: 22px; color: #c7cbe0; pointer-events: none; }
.pdbr-comm-card { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.pdbr-comm-card small { color: var(--acc-3, #5eead4); }
.pdbr-comm-card b { font-size: 30px; font-weight: 800; line-height: 1.1; color: #fff; }
.pdbr-comm-card em { font-style: normal; font-size: 13px; color: #c7cbe0; }
@media (max-width: 600px) { .pdbr-perc { grid-template-columns: 1fr; } .pdbr-perc-in, .pdbr-comm-card { min-height: 0; } }

.pdbr-lock-val b[data-act] { cursor: default; -webkit-user-select: none; user-select: none; }
.pdbr-comm-card[data-act] { cursor: default; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
