:root{
  --bg:#111620;
  --bg2:#252b37;
  --panel:#1b212b;
  --panel2:#151b24;
  --text:#f1f2f6;
  --muted:#a7afbf;
  --accent:#b58cff;
  --accent2:#6be7b3;
  --ok:#5ee6a7;
  --danger:#ff5470;
  --border:rgba(255,255,255,.11);
  --shadow:0 24px 70px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(145deg,var(--bg),var(--bg2));color:var(--text);min-height:100vh}
a{color:inherit}.wrap{width:min(1120px,94%);margin:0 auto}

/* PUBLIC PAGE */
.public-page{background:
  radial-gradient(circle at 50% -10%, rgba(181,140,255,.28), transparent 34%),
  radial-gradient(circle at 100% 20%, rgba(107,231,179,.10), transparent 28%),
  linear-gradient(155deg,#121722 0%,#282e3a 100%);}
.bio-shell{width:min(680px,92%);margin:0 auto;padding:34px 0 38px}
.bio-hero{position:relative;overflow:hidden;text-align:center;background:rgba(19,24,33,.76);border:1px solid var(--border);border-radius:34px;padding:34px 24px 30px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.hero-glow{position:absolute;inset:-80px -60px auto auto;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(181,140,255,.32),transparent 65%);filter:blur(6px)}
.profile-media{position:relative;z-index:1;display:grid;place-items:center;margin-bottom:16px}.public-avatar{width:118px;height:118px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.18);box-shadow:0 16px 45px rgba(0,0,0,.35)}.placeholder-avatar{display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#6e53ff);font-size:48px;font-weight:900}.public-logo{max-width:220px;max-height:108px;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(0,0,0,.28))}.bio-hero h1{position:relative;z-index:1;margin:0;font-size:clamp(2rem,7vw,3.4rem);letter-spacing:-1.5px;line-height:1.02}.public-bio{position:relative;z-index:1;margin:14px auto 0;color:#d5d9e5;font-size:1.05rem;line-height:1.55;max-width:520px}.bio-links{margin-top:24px}.public-link{position:relative;display:flex;align-items:center;gap:16px;text-decoration:none;margin:14px 0;padding:18px 20px;border-radius:26px;background:rgba(21,27,36,.86);border:1px solid rgba(255,255,255,.10);box-shadow:0 14px 38px rgba(0,0,0,.22);overflow:hidden;transition:transform .18s ease,border-color .18s ease,background .18s ease}.public-link::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(181,140,255,.16),transparent 38%);opacity:.35}.public-link:hover{transform:translateY(-3px);border-color:rgba(181,140,255,.65);background:rgba(24,31,42,.96)}.public-link.is-pinned{border-color:var(--accent);box-shadow:0 0 0 1px rgba(181,140,255,.25),0 18px 50px rgba(181,140,255,.12)}.public-link-icon{position:relative;z-index:1;width:52px;height:52px;border-radius:18px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,rgba(181,140,255,.24),rgba(255,255,255,.07));font-size:25px}.public-link-text{position:relative;z-index:1;flex:1;text-align:left;font-size:1.05rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.public-link-arrow{position:relative;z-index:1;font-size:34px;color:rgba(255,255,255,.45);line-height:1}.public-footer,.empty-public{text-align:center;color:var(--muted);font-size:.9rem;margin:26px 0}.empty-public{background:rgba(255,255,255,.06);border:1px dashed var(--border);border-radius:20px;padding:20px}.theme-light.public-page{background:#f3f4f8;color:#161922}.theme-light .bio-hero,.theme-light .public-link{background:rgba(255,255,255,.88);color:#151922;border-color:rgba(0,0,0,.08)}.theme-light .public-bio{color:#586174}.theme-light .public-link-arrow{color:#6b7280}

/* ADMIN */
.admin-page{background:linear-gradient(145deg,#141923 0%,#2b303b 100%)}.admin-wrap{width:min(1180px,94%)}.top{padding:16px 0;border-bottom:1px solid var(--border);background:rgba(18,23,32,.78);position:sticky;top:0;backdrop-filter:blur(14px);z-index:10}.brand{font-size:30px;font-weight:900;letter-spacing:-1px}.brand span{color:var(--accent)}.nav{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.nav-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:14px;text-decoration:none;color:#dfe2ea;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-weight:750;font-size:.94rem}.nav-link:hover{border-color:rgba(181,140,255,.55)}.nav-link.owner{background:rgba(181,140,255,.13);border-color:rgba(181,140,255,.33)}.danger-link{background:rgba(255,84,112,.14);border-color:rgba(255,84,112,.32)}
.card{background:rgba(27,33,43,.86);border:1px solid var(--border);border-radius:24px;padding:24px;margin:22px 0;box-shadow:0 18px 45px rgba(0,0,0,.18)}.center{text-align:center}.bio{color:var(--muted);font-size:17px;line-height:1.5}.muted{color:var(--muted)}.small{font-size:.88rem}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent2);font-weight:850;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem}.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;background:linear-gradient(135deg,rgba(181,140,255,.18),rgba(107,231,179,.08));border:1px solid rgba(181,140,255,.25);border-radius:30px;padding:28px;margin:24px 0;box-shadow:var(--shadow)}.dashboard-hero h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1;margin:10px 0}.public-url a{color:#c9b3ff;font-weight:800}.hero-actions,.head-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:16px;padding:13px 18px;background:var(--accent);color:#1b1328;text-decoration:none;font-weight:900;cursor:pointer;min-height:44px}.btn.secondary{background:rgba(255,255,255,.07);color:var(--text);border:1px solid var(--border)}.btn.danger{background:var(--danger);color:#fff}.btn:hover{filter:brightness(1.07)}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.metric-card{background:rgba(15,20,28,.78);border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:0 14px 34px rgba(0,0,0,.18)}.metric-card span{display:block;color:var(--muted);font-weight:700}.metric-card strong{display:block;margin-top:8px;font-size:2.2rem;line-height:1;color:var(--ok)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.section-head h2{margin:0}.small-head{align-items:center}.mini-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.mini-metrics div{background:rgba(255,255,255,.05);border:1px solid var(--border);border-radius:18px;padding:15px}.mini-metrics span{display:block;color:var(--muted);font-size:.88rem}.mini-metrics strong{display:block;font-size:1.8rem;color:#fff;margin-top:5px}.owner-card{border-color:rgba(181,140,255,.24)}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px 10px;border-bottom:1px solid rgba(255,255,255,.10);text-align:left;vertical-align:middle}.compact-table th,.compact-table td{padding:11px 6px}.table tr:last-child td{border-bottom:0}.table-card{padding:0}.table-wrap{overflow-x:auto;padding:18px}.table-wrap h2{margin:6px 0 16px}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:14px;border-bottom:1px solid rgba(255,255,255,.12);text-align:left;vertical-align:middle}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form select{min-width:120px}.check{display:inline-flex;align-items:center;gap:6px;color:#d8d8df}.admin-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.field{margin:14px 0}label{display:block;color:var(--muted);margin-bottom:7px;font-weight:700}input,textarea,select{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--border);background:#151922;color:var(--text);font-size:16px}textarea{min-height:92px}.avatar{width:118px;height:118px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.16)}.logo{max-width:180px;max-height:80px;object-fit:contain}.success,.notice{background:#143d2c;border:1px solid #2fbf7d;color:#8ff0be;padding:12px;border-radius:14px;margin:12px 0}.error{padding:14px;border-radius:14px;background:#4a1d2a;border:1px solid rgba(255,84,112,.35);color:#ffd2db}.upgrade-box{border-color:rgba(181,140,255,.25)}

/* LEGACY LINK BUTTONS, kept for compatibility */
.link-btn{display:flex;align-items:center;gap:18px;text-decoration:none;background:#1b2027;color:#e8e8ee;border:1px solid #3b414d;border-radius:999px;padding:18px 22px;margin:14px 0;font-size:22px;font-weight:800;letter-spacing:2px;text-transform:uppercase;transition:.16s transform,.16s opacity}.link-btn:hover{transform:translateY(-2px);opacity:.93}.link-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:30px;flex:0 0 auto;background:rgba(181,140,255,.14)}.pinned{outline:2px solid var(--accent)}.footer{color:var(--muted);font-size:13px;text-align:center;margin:30px 0}

@media(max-width:900px){.dashboard-hero{display:block}.hero-actions{margin-top:18px}.metric-grid,.mini-metrics,.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}}
@media(max-width:620px){.wrap,.admin-wrap,.bio-shell{width:92%}.brand{font-size:26px}.top{position:relative}.nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.nav-link{white-space:nowrap}.metric-grid,.mini-metrics,.admin-metrics,.grid{grid-template-columns:1fr}.card,.dashboard-hero{padding:18px;border-radius:22px}.public-link{padding:15px;border-radius:22px}.public-link-icon{width:48px;height:48px}.public-link-text{font-size:.98rem}.bio-hero{padding:28px 18px;border-radius:28px}}

/* V5 - THEMES */
.theme-midnight.public-page{--theme-bg1:#121722;--theme-bg2:#282e3a;--theme-panel:rgba(19,24,33,.78);--theme-link:rgba(21,27,36,.88);background:radial-gradient(circle at 50% -10%,rgba(181,140,255,.30),transparent 34%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-dark.public-page{--theme-bg1:#07090d;--theme-bg2:#1a1f29;--theme-panel:rgba(12,16,23,.82);--theme-link:rgba(15,20,28,.94);background:radial-gradient(circle at 18% 0%,rgba(255,255,255,.08),transparent 28%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-light.public-page{--theme-bg1:#eef1f7;--theme-bg2:#ffffff;--theme-panel:rgba(255,255,255,.88);--theme-link:rgba(255,255,255,.92);background:linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));color:#151922;}
.theme-royal.public-page{--theme-bg1:#120928;--theme-bg2:#3a176d;--theme-panel:rgba(24,13,48,.78);--theme-link:rgba(27,14,54,.90);background:radial-gradient(circle at 80% 0%,rgba(214,168,255,.35),transparent 34%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-ocean.public-page{--theme-bg1:#071b2a;--theme-bg2:#0a5f78;--theme-panel:rgba(7,28,43,.78);--theme-link:rgba(7,31,47,.90);background:radial-gradient(circle at 20% 0%,rgba(72,220,255,.25),transparent 32%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-sunset.public-page{--theme-bg1:#241020;--theme-bg2:#7d2d2b;--theme-panel:rgba(36,16,32,.78);--theme-link:rgba(41,19,35,.90);background:radial-gradient(circle at 80% 0%,rgba(255,180,69,.35),transparent 34%),radial-gradient(circle at 15% 20%,rgba(255,70,120,.22),transparent 30%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-forest.public-page{--theme-bg1:#071912;--theme-bg2:#17412e;--theme-panel:rgba(9,30,22,.82);--theme-link:rgba(10,35,26,.92);background:radial-gradient(circle at 25% 0%,rgba(92,230,167,.22),transparent 34%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-rose.public-page{--theme-bg1:#25131b;--theme-bg2:#5c2d3a;--theme-panel:rgba(38,19,28,.80);--theme-link:rgba(43,22,32,.92);background:radial-gradient(circle at 78% 0%,rgba(255,190,210,.24),transparent 34%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-mono.public-page{--theme-bg1:#000000;--theme-bg2:#151515;--theme-panel:rgba(12,12,12,.86);--theme-link:rgba(20,20,20,.96);background:linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}
.theme-gold.public-page{--theme-bg1:#090805;--theme-bg2:#2f2410;--theme-panel:rgba(20,16,10,.84);--theme-link:rgba(23,18,11,.94);background:radial-gradient(circle at 70% -10%,rgba(255,198,85,.25),transparent 36%),linear-gradient(155deg,var(--theme-bg1),var(--theme-bg2));}

.public-page:not(.theme-light) .bio-hero{background:var(--theme-panel,rgba(19,24,33,.76));}
.public-page:not(.theme-light) .public-link{background:var(--theme-link,rgba(21,27,36,.86));}
.theme-light .public-link-icon{background:linear-gradient(135deg,rgba(0,0,0,.05),rgba(181,140,255,.18));}
.theme-light .public-link::before{background:linear-gradient(90deg,rgba(181,140,255,.12),transparent 38%)}
.theme-gold .public-link.is-pinned,.theme-gold .public-link:hover{border-color:#f2c75c;box-shadow:0 0 0 1px rgba(242,199,92,.22),0 18px 50px rgba(242,199,92,.12)}
.theme-mono .public-link.is-pinned,.theme-mono .public-link:hover{border-color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 18px 50px rgba(255,255,255,.08)}

.theme-preview-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin:8px 0 18px}.theme-tile{min-height:78px;border-radius:18px;padding:12px;border:1px solid var(--border);display:flex;align-items:flex-end;font-weight:850;cursor:default;position:relative;overflow:hidden}.theme-tile input{position:absolute;top:10px;right:10px;width:auto}.theme-tile span{position:relative;z-index:1;text-shadow:0 2px 10px rgba(0,0,0,.35)}.theme-tile-midnight{background:linear-gradient(135deg,#121722,#52358d)}.theme-tile-dark{background:linear-gradient(135deg,#050607,#222936)}.theme-tile-light{background:linear-gradient(135deg,#f3f4f8,#ffffff);color:#121722}.theme-tile-royal{background:linear-gradient(135deg,#120928,#6b2dbd)}.theme-tile-ocean{background:linear-gradient(135deg,#071b2a,#0c7898)}.theme-tile-sunset{background:linear-gradient(135deg,#241020,#ff7a32)}.theme-tile-forest{background:linear-gradient(135deg,#071912,#1c7048)}.theme-tile-rose{background:linear-gradient(135deg,#25131b,#d66a86)}.theme-tile-mono{background:linear-gradient(135deg,#000,#343434)}.theme-tile-gold{background:linear-gradient(135deg,#090805,#b5852a)}

/* V5 - CHARTS */
.chart-card{overflow:hidden}.line-chart{width:100%;overflow:hidden}.line-chart svg{width:100%;height:auto;display:block;background:rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:8px}.grid-line{stroke:rgba(255,255,255,.11);stroke-width:1}.line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.visits-line{stroke:#5ee6a7}.clicks-line{stroke:#f052f2}.dot{stroke:#121722;stroke-width:2}.visit-dot{fill:#5ee6a7}.click-dot{fill:#f052f2}.chart-legend{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:12px;color:var(--muted);font-weight:800}.chart-legend span{display:inline-flex;align-items:center;gap:8px}.chart-legend i{width:14px;height:14px;border-radius:50%;display:inline-block}.legend-visits{background:#5ee6a7}.legend-clicks{background:#f052f2}
.bar-chart{display:grid;gap:14px}.bar-row-top{display:flex;justify-content:space-between;gap:16px;margin-bottom:7px}.bar-row-top span{color:#e8ebf3;font-weight:750}.bar-row-top strong{color:#fff}.bar-track{height:13px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.bar-track i{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent2));box-shadow:0 0 18px rgba(181,140,255,.22)}
.pie-wrap{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:24px}.pie{width:220px;aspect-ratio:1;border-radius:50%;border:3px solid rgba(255,255,255,.75);box-shadow:0 18px 45px rgba(0,0,0,.22)}.pie-legend{display:grid;gap:10px}.pie-legend div{display:grid;grid-template-columns:16px 1fr auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08)}.pie-legend div:last-child{border-bottom:0}.pie-legend i{width:14px;height:14px;border-radius:50%;display:block}.pie-legend span{color:#e6e9f1}.pie-legend strong{color:#fff}
.stat{font-size:2rem;font-weight:900;color:var(--ok);line-height:1.1;margin-top:6px}

@media(max-width:900px){.theme-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pie-wrap{grid-template-columns:1fr}.pie{margin:0 auto}}
@media(max-width:620px){.theme-preview-grid{grid-template-columns:1fr}.line-chart svg{min-width:0}.bar-row-top{font-size:.94rem}.pie{width:190px}.chart-legend{font-size:.92rem}.public-link-arrow{display:none}}

/* V13 - ICON LIBRARY */
.library-icon-img{width:100%;height:100%;display:block;object-fit:contain;border-radius:0}.library-icon-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:1.15em;font-weight:900;line-height:1}.public-link-icon .library-icon-img{width:34px;height:34px}.public-link-icon .library-icon-fallback{font-size:25px}.icon-preview{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:rgba(181,140,255,.14);border:1px solid rgba(255,255,255,.08);overflow:hidden;flex:0 0 auto}.icon-preview .library-icon-img{width:32px;height:32px}.icon-preview .library-icon-fallback{font-size:22px}.small-icon{width:38px;height:38px;border-radius:13px}.small-icon .library-icon-img{width:26px;height:26px}.small-icon .library-icon-fallback{font-size:18px}.icon-preview-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.icon-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.icon-choice{position:relative;margin:0;padding:12px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.04);display:flex;align-items:center;gap:11px;color:#e9edf6;font-weight:800;cursor:pointer;min-height:76px;transition:border-color .15s ease,background .15s ease,transform .15s ease}.icon-choice input{position:absolute;opacity:0;pointer-events:none}.icon-choice:hover{border-color:rgba(181,140,255,.55);transform:translateY(-1px)}.icon-choice.selected,.icon-choice:has(input:checked){border-color:var(--accent);background:rgba(181,140,255,.16);box-shadow:0 0 0 1px rgba(181,140,255,.22)}code{background:rgba(255,255,255,.07);border:1px solid var(--border);border-radius:9px;padding:4px 7px;color:#dfe7ff}
@media(max-width:900px){.icon-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.icon-picker{grid-template-columns:1fr}.icon-choice{min-height:68px}.public-link-icon .library-icon-img{width:31px;height:31px}}


/* V21/V23 - NapoLink brand + mobile statistics hardening */
.brand-logo{display:flex;align-items:baseline;gap:0;font-size:30px;font-weight:950;letter-spacing:-1.3px;line-height:1}
.brand-logo .brand-link,.auth-brand .brand-link{color:#fff}
.brand-logo .brand-ora,.auth-brand .brand-ora{color:var(--accent)}
.brand-logo small{margin-left:10px;color:var(--muted);font-size:.48em;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.auth-page{background:radial-gradient(circle at 50% -8%,rgba(181,140,255,.28),transparent 34%),linear-gradient(145deg,#111620,#252b37)}
.auth-wrap{width:min(520px,92%);padding:44px 0}
.auth-brand{text-align:center;font-size:42px;font-weight:950;letter-spacing:-1.8px;line-height:1;margin:8px 0 22px;text-shadow:0 18px 42px rgba(0,0,0,.28)}
.auth-card{margin:0}.auth-card h1{margin-top:0}.auth-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.auth-note{margin-top:16px;color:var(--muted)}
.admin-page{overflow-x:hidden}.admin-page .wrap,.admin-page .admin-wrap{max-width:calc(100vw - 24px)}
.dashboard-hero,.card,.chart-card,.table-card,.metric-card,.grid,.two-col,.line-chart,.pie-wrap,.pie-legend,.bar-chart{min-width:0;max-width:100%}
.chart-card{overflow:hidden}.line-chart{overflow:hidden}.line-chart svg{display:block;width:100%;max-width:100%;height:auto;box-sizing:border-box}.section-head{min-width:0}.section-head h2{overflow-wrap:anywhere}.bar-row-top span,.pie-legend span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pie-legend div{min-width:0}.table-card{overflow:hidden}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.admin-table{min-width:640px}.compact-table{min-width:560px}.admin-table th,.admin-table td{overflow-wrap:normal}.admin-table td strong{overflow-wrap:anywhere}
@media(max-width:760px){
  .admin-wrap{width:94%}.brand-logo{font-size:26px}.brand-logo small{font-size:.44em;margin-left:8px}.top{position:relative}.nav{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:8px;padding-bottom:8px;scrollbar-width:thin}.nav-link{white-space:nowrap;flex:0 0 auto;font-size:.88rem;padding:9px 11px}.dashboard-hero{display:block;padding:18px;border-radius:22px}.dashboard-hero h1{font-size:clamp(1.65rem,9vw,2.35rem);overflow-wrap:anywhere}.hero-actions,.head-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:16px}.hero-actions .btn,.head-actions .btn{width:100%}.metric-grid,.mini-metrics,.admin-metrics,.grid,.two-col{grid-template-columns:1fr!important;gap:12px}.metric-card{padding:18px}.metric-card strong{font-size:1.9rem}.card{padding:18px;border-radius:22px;margin:16px 0}.chart-card h2,.table-card h2{font-size:1.2rem}.line-chart svg{padding:6px;border-radius:16px}.pie{width:min(180px,72vw)}.pie-wrap{gap:16px}.pie-legend{font-size:.92rem}.chart-legend{flex-wrap:wrap;gap:10px;font-size:.9rem}.bar-row-top{gap:10px;font-size:.92rem}.bar-track{height:11px}.table-wrap{padding:12px}.admin-table{font-size:.9rem;min-width:540px}.compact-table{min-width:500px}.auth-wrap{padding:32px 0}.auth-brand{font-size:38px}.auth-actions .btn{width:100%}
}
@media(max-width:420px){
  .admin-page .wrap,.admin-page .admin-wrap{max-width:calc(100vw - 16px);width:calc(100vw - 16px)}.brand-logo{font-size:24px}.brand-logo small{display:none}.nav-link{font-size:.84rem;padding:8px 10px}.card,.dashboard-hero{padding:15px;border-radius:20px}.metric-card strong{font-size:1.7rem}.pie{width:min(160px,68vw)}.pie-legend div{grid-template-columns:14px minmax(0,1fr) auto;gap:8px}.compact-table{min-width:470px}.admin-table{min-width:510px}.auth-brand{font-size:34px}
}


/* V22/V23 - NapoLink header: separa il nome brand dall'etichetta area */
.brand-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.brand-logo{display:inline-flex;align-items:baseline;gap:0}
.brand-logo small{display:none!important}
.brand-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:rgba(181,140,255,.12);border:1px solid rgba(181,140,255,.34);color:#d9ccff;font-size:.82rem;font-weight:850;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}
@media(max-width:620px){.brand-head{align-items:flex-start;gap:8px}.brand-badge{font-size:.72rem;padding:6px 10px;margin-top:2px}}
@media(max-width:420px){.brand-head{display:block}.brand-badge{margin-top:8px}.brand-logo{font-size:24px!important}}


/* V23 SAFE OVERRIDE - NapoLink brand
   Supporta markup: .brand-napo + .brand-link e mantiene compatibilità con vecchio .brand-ora */
.brand-logo .brand-napo,
.auth-brand .brand-napo {
    color: #18aeea !important;
}

.brand-logo .brand-link,
.auth-brand .brand-link {
    color: #ffffff !important;
}

.brand-logo .brand-ora,
.auth-brand .brand-ora {
    color: #18aeea !important;
}

body.theme-light .brand-logo .brand-link,
body.theme-light-clean .brand-logo .brand-link,
body.light .brand-logo .brand-link,
body.theme-light .auth-brand .brand-link,
body.theme-light-clean .auth-brand .brand-link,
body.light .auth-brand .brand-link {
    color: #111827 !important;
}

.brand-logo,
.auth-brand {
    text-decoration: none;
}

.brand-badge {
    background: rgba(24, 174, 234, .12);
    border-color: rgba(24, 174, 234, .34);
    color: #bfefff;
}

/* V24 - QR Code page */
.qr-layout{align-items:start}.qr-card{overflow:hidden}.qr-preview-box{width:min(360px,100%);margin:0 auto 18px;padding:18px;border-radius:28px;background:#fff;border:1px solid rgba(255,255,255,.18);box-shadow:0 20px 55px rgba(0,0,0,.28)}.qr-image{display:block;width:100%;height:auto;border-radius:16px}.qr-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}.qr-tips{display:grid;gap:12px;margin-top:18px}.qr-tips div{padding:14px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid var(--border)}.qr-tips strong{display:block;color:#fff;margin-bottom:5px}.qr-tips span{display:block;color:var(--muted);line-height:1.45}.qr-dashboard-card{border-color:rgba(24,174,234,.24);background:linear-gradient(135deg,rgba(24,174,234,.10),rgba(181,140,255,.08))}
@media(max-width:760px){.qr-preview-box{width:min(280px,100%);padding:14px;border-radius:22px}.qr-actions{display:grid;grid-template-columns:1fr}.qr-actions .btn{width:100%}}

/* V30 - Powered by NapoLink evidenziato con brand split: Napo celeste + Link bianco */
.public-footer{
    margin:28px auto 10px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:auto;
    max-width:calc(100% - 24px);
    padding:10px 18px;
    border-radius:999px;
    color:rgba(255,255,255,.94);
    background:rgba(10,15,24,.50);
    border:1px solid rgba(255,255,255,.20);
    box-shadow:0 12px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    font-size:0;
    text-align:center;
}

.public-footer::before{
    content:"Powered by";
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    margin:0 7px 0 0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    color:rgba(255,255,255,.88);
    font-size:.88rem;
    font-weight:780;
    letter-spacing:.01em;
}

.public-footer::after{
    content:"NapoLink";
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:auto;
    margin:0;
    border-radius:0;
    background:linear-gradient(90deg,#18aeea 0 50%,#ffffff 50% 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    box-shadow:none;
    font-size:.94rem;
    font-weight:950;
    letter-spacing:-.02em;
}

.public-footer > *{
    display:none!important;
}

.theme-light .public-footer{
    color:#111827;
    background:rgba(255,255,255,.86);
    border-color:rgba(17,24,39,.12);
    box-shadow:0 12px 30px rgba(17,24,39,.10), inset 0 1px 0 rgba(255,255,255,.7);
}

.theme-light .public-footer::before{
    color:rgba(17,24,39,.70);
}

.theme-light .public-footer::after{
    background:linear-gradient(90deg,#18aeea 0 50%,#111827 50% 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
}

@media(max-width:620px){
    .public-footer{
        margin-top:24px;
        padding:9px 15px;
    }
    .public-footer::before{
        font-size:.82rem;
        margin-right:6px;
    }
    .public-footer::after{
        font-size:.88rem;
    }
}

/* V31 - centra e rende leggermente più visibile il badge Powered by NapoLink */
.public-footer{
    display:flex!important;
    width:fit-content!important;
    margin:30px auto 12px!important;
    padding:11px 20px!important;
    font-size:0!important;
}

.public-footer::before{
    font-size:.94rem!important;
    margin-right:8px!important;
}

.public-footer::after{
    font-size:1.02rem!important;
}

@media(max-width:620px){
    .public-footer{
        margin:26px auto 10px!important;
        padding:10px 17px!important;
    }
    .public-footer::before{
        font-size:.88rem!important;
        margin-right:7px!important;
    }
    .public-footer::after{
        font-size:.96rem!important;
    }
}


/* V32 - Powered by NapoLink con markup reale: Napo tutto celeste, Link separato */
.public-footer.public-footer-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    width:fit-content!important;
    margin:31px auto 14px!important;
    padding:12px 22px!important;
    font-size:1rem!important;
    text-align:center!important;
}

.public-footer.public-footer-brand::before,
.public-footer.public-footer-brand::after{
    content:none!important;
    display:none!important;
}

.public-footer.public-footer-brand > *{
    display:inline-flex!important;
    align-items:center!important;
}

.public-footer .powered-by{
    color:rgba(255,255,255,.90)!important;
    font-size:1rem!important;
    font-weight:820!important;
    letter-spacing:.01em!important;
}

.public-footer .footer-brand{
    gap:0!important;
    font-size:1.13rem!important;
    font-weight:980!important;
    letter-spacing:-.035em!important;
    line-height:1!important;
}

.public-footer .footer-brand-napo{
    color:#18aeea!important;
}

.public-footer .footer-brand-link{
    color:#ffffff!important;
}

.theme-light .public-footer .powered-by{
    color:#374151!important;
}

.theme-light .public-footer .footer-brand-link{
    color:#111827!important;
}

@media(max-width:620px){
    .public-footer.public-footer-brand{
        margin:27px auto 12px!important;
        padding:11px 19px!important;
        gap:8px!important;
    }
    .public-footer .powered-by{
        font-size:.94rem!important;
    }
    .public-footer .footer-brand{
        font-size:1.06rem!important;
    }
}

/* V33 - rifinitura mobile/statistiche, pagina pubblica e sicurezza UI */
.public-page-pro{
    overflow-x:hidden;
}
.public-page-pro .bio-shell{
    width:min(700px,94%);
    padding:38px 0 44px;
}
.public-page-pro .bio-hero{
    border-radius:36px;
    border-color:rgba(255,255,255,.14);
    box-shadow:0 28px 80px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
}
.public-page-pro .bio-hero::after{
    content:"";
    position:absolute;
    left:24px;
    right:24px;
    bottom:0;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(24,174,234,.38),rgba(181,140,255,.38),transparent);
}
.public-page-pro .public-link{
    min-height:74px;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.public-page-pro .public-link-icon{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 22px rgba(0,0,0,.16);
}
.public-page-pro .public-link-text{
    letter-spacing:.045em;
}
.public-page-pro .public-link.is-pinned::after{
    content:"In evidenza";
    position:absolute;
    top:10px;
    right:14px;
    padding:4px 9px;
    border-radius:999px;
    color:#f0e9ff;
    background:rgba(181,140,255,.18);
    border:1px solid rgba(181,140,255,.30);
    font-size:.68rem;
    font-weight:850;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.theme-light.public-page-pro .bio-hero::after{
    background:linear-gradient(90deg,transparent,rgba(24,174,234,.28),rgba(181,140,255,.28),transparent);
}

.stats-hero .bio,
.dashboard-hero .bio{
    max-width:760px;
}
.chart-card .muted.small{
    overflow-wrap:anywhere;
}
.line-chart{
    width:100%;
    max-width:100%;
}
.line-chart svg{
    min-height:190px;
}
.table-wrap{
    border-radius:18px;
}
.table-wrap::-webkit-scrollbar,
.nav::-webkit-scrollbar{
    height:8px;
}
.table-wrap::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.16);
    border-radius:999px;
}
.table-wrap::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track{
    background:rgba(255,255,255,.04);
    border-radius:999px;
}

.security-note{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px 14px;
    border-radius:16px;
    background:rgba(24,174,234,.08);
    border:1px solid rgba(24,174,234,.18);
    color:var(--muted);
}
.security-note strong{color:#dff6ff}

@media(max-width:760px){
    .public-page-pro .bio-shell{width:min(440px,92%);padding:24px 0 32px}
    .public-page-pro .bio-hero{border-radius:30px;padding:28px 18px 26px}
    .public-page-pro .public-avatar{width:104px;height:104px}
    .public-page-pro .public-logo{max-width:190px;max-height:92px}
    .public-page-pro .public-link{min-height:66px;margin:12px 0;padding:14px 16px;gap:13px}
    .public-page-pro .public-link-icon{width:47px;height:47px;border-radius:16px}
    .public-page-pro .public-link-text{font-size:.95rem;letter-spacing:.035em;line-height:1.18}
    .public-page-pro .public-link.is-pinned::after{top:7px;right:10px;font-size:.60rem;padding:3px 7px}

    .line-chart svg{min-height:175px}
    .chart-card{padding:16px!important}
    .pie-wrap{grid-template-columns:1fr!important;text-align:left}
    .pie-legend{width:100%}
    .pie-legend div{padding:9px 0}

    table.mobile-stack{
        min-width:0!important;
        width:100%!important;
        border-collapse:separate!important;
        border-spacing:0 10px!important;
    }
    table.mobile-stack thead{display:none!important}
    table.mobile-stack tbody,
    table.mobile-stack tr,
    table.mobile-stack td{display:block!important;width:100%!important}
    table.mobile-stack tr{
        padding:12px;
        border:1px solid rgba(255,255,255,.10);
        border-radius:16px;
        background:rgba(255,255,255,.045);
    }
    table.mobile-stack td{
        display:grid!important;
        grid-template-columns:96px minmax(0,1fr);
        gap:10px;
        align-items:start;
        padding:8px 0!important;
        border-bottom:1px solid rgba(255,255,255,.08)!important;
        overflow-wrap:anywhere!important;
    }
    table.mobile-stack td:last-child{border-bottom:0!important}
    table.mobile-stack td::before{
        content:attr(data-label);
        color:var(--muted);
        font-size:.78rem;
        font-weight:850;
        text-transform:uppercase;
        letter-spacing:.04em;
    }
    table.mobile-stack td[colspan]::before{content:"";display:none}
    .admin-users-table{min-width:760px!important}
}

@media(max-width:420px){
    .public-page-pro .bio-shell{width:calc(100vw - 24px)}
    .public-page-pro .bio-hero h1{font-size:clamp(1.75rem,10vw,2.45rem)}
    .public-page-pro .public-link{border-radius:20px}
    .public-page-pro .public-link-icon{width:44px;height:44px}
    .public-page-pro .public-link-icon .library-icon-img{width:29px;height:29px}
    table.mobile-stack td{grid-template-columns:82px minmax(0,1fr);font-size:.9rem}
}


/* v34 premium charts */
.chart-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 16px}
.chart-kpi{padding:14px 16px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015))}
.chart-kpi span{display:block;color:var(--muted);font-size:.84rem;font-weight:700;letter-spacing:.02em;margin-bottom:6px}
.chart-kpi strong{display:block;color:#fff;font-size:1.2rem;font-weight:850}
.chart-empty-state{margin-top:10px;padding:18px;border:1px dashed rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.025);text-align:center}
.chart-empty-state strong{display:block;font-size:1rem;margin-bottom:6px}
.chart-empty-state p{margin:0;color:var(--muted)}
.premium-line-chart svg{background:linear-gradient(180deg,rgba(6,12,24,.82),rgba(10,18,34,.92));border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.axis-label,.x-label{fill:rgba(214,222,236,.68);font-size:11px;font-weight:700}
.axis-base{stroke:rgba(255,255,255,.16);stroke-width:1.2}
.x-tick{stroke:rgba(255,255,255,.16);stroke-width:1}
.line-area{stroke:none}
.visits-area{fill:rgba(94,230,167,.12)}
.clicks-area{fill:rgba(240,82,242,.08)}
.line{stroke-width:4.2}
.visits-line{filter:drop-shadow(0 0 8px rgba(94,230,167,.18))}
.clicks-line{filter:drop-shadow(0 0 8px rgba(240,82,242,.18))}
.dot{stroke:#111827;stroke-width:2.2}
.chart-note{margin-top:10px;text-align:center;color:var(--muted);font-size:.92rem}
@media(max-width:900px){.chart-summary{grid-template-columns:1fr 1fr}.chart-kpi:last-child{grid-column:1/-1}}
@media(max-width:620px){.chart-summary{grid-template-columns:1fr}.chart-kpi:last-child{grid-column:auto}.premium-line-chart svg{padding:8px;border-radius:18px}.axis-label,.x-label{font-size:10px}.chart-note{font-size:.88rem}}


/* v35 chart range tabs */
.chart-range-tabs{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  flex:0 0 auto;
}
.chart-range-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  color:var(--muted);
  text-decoration:none;
  font-weight:850;
  font-size:.86rem;
  white-space:nowrap;
  border:1px solid transparent;
}
.chart-range-tabs a:hover{
  color:#fff;
  border-color:rgba(255,255,255,.14);
}
.chart-range-tabs a.active{
  color:#08111d;
  background:linear-gradient(135deg,#5ee6a7,#18aeea);
  box-shadow:0 10px 26px rgba(24,174,234,.16);
}
@media(max-width:760px){
  .chart-range-tabs{width:100%;justify-content:space-between;margin-top:10px}
  .chart-range-tabs a{flex:1;padding:8px 8px;font-size:.82rem}
}


/* v36 mobile fix: evita titoli verticali nei grafici */
@media(max-width:760px){
  .chart-card .section-head,
  .chart-card .section-head.small-head{
    display:block!important;
    align-items:stretch!important;
  }

  .chart-card .section-head > div:first-child{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }

  .chart-card .section-head h2{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    line-height:1.15!important;
    margin-bottom:6px!important;
  }

  .chart-card .section-head .muted.small{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  .chart-range-tabs{
    width:100%!important;
    margin-top:14px!important;
  }
}


/* V37 - public page premium refinement */
.public-page-pro{
    min-height:100svh;
    background-attachment:fixed;
}
.public-page-pro::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(circle at 18% 10%, rgba(24,174,234,.16), transparent 28%),
      radial-gradient(circle at 82% 18%, rgba(181,140,255,.18), transparent 30%),
      radial-gradient(circle at 50% 100%, rgba(107,231,179,.08), transparent 32%);
    opacity:.9;
    z-index:0;
}
.public-page-pro .bio-shell{
    position:relative;
    z-index:1;
}
.public-page-pro .bio-hero{
    isolation:isolate;
    padding-top:38px;
    padding-bottom:32px;
}
.public-page-pro .bio-hero::before{
    content:"";
    position:absolute;
    inset:1px;
    border-radius:inherit;
    pointer-events:none;
    background:
      linear-gradient(180deg, rgba(255,255,255,.09), transparent 34%),
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 42%);
    opacity:.75;
    z-index:0;
}
.public-page-pro .hero-glow{
    z-index:0;
}
.public-page-pro .profile-media,
.public-page-pro .bio-hero h1,
.public-page-pro .public-bio{
    position:relative;
    z-index:1;
}
.public-page-pro .public-avatar{
    width:124px;
    height:124px;
    border:4px solid rgba(255,255,255,.18);
    outline:1px solid rgba(255,255,255,.08);
    outline-offset:5px;
}
.public-page-pro .public-logo{
    max-width:min(250px,78vw);
    max-height:118px;
}
.public-page-pro .bio-hero h1{
    letter-spacing:-.055em;
    text-shadow:0 16px 38px rgba(0,0,0,.26);
}
.public-page-pro .public-bio{
    max-width:560px;
    color:rgba(231,236,247,.88);
}
.theme-light.public-page-pro .public-bio{
    color:#4b5563;
}
.bio-links-pro{
    display:grid;
    gap:13px;
    margin-top:22px;
}
.bio-links-pro .public-link{
    margin:0;
    min-height:76px;
    padding:16px 18px;
    border-radius:25px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
      rgba(18,24,34,.78);
    border-color:rgba(255,255,255,.13);
    box-shadow:0 16px 38px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06);
}
.bio-links-pro .public-link::before{
    background:linear-gradient(90deg, rgba(24,174,234,.16), rgba(181,140,255,.10), transparent 58%);
    opacity:.55;
}
.bio-links-pro .public-link:hover{
    transform:translateY(-2px) scale(1.006);
    border-color:rgba(24,174,234,.48);
    box-shadow:0 20px 48px rgba(0,0,0,.28), 0 0 0 1px rgba(24,174,234,.10), inset 0 1px 0 rgba(255,255,255,.08);
}
.bio-links-pro .public-link:active{
    transform:translateY(0) scale(.995);
}
.bio-links-pro .public-link:focus-visible{
    outline:3px solid rgba(24,174,234,.55);
    outline-offset:3px;
}
.bio-links-pro .public-link-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    background:
      linear-gradient(135deg, rgba(24,174,234,.22), rgba(181,140,255,.18)),
      rgba(255,255,255,.04);
}
.bio-links-pro .public-link-text{
    letter-spacing:.035em;
    line-height:1.16;
}
.bio-links-pro .public-link-arrow{
    opacity:.75;
    transform:translateX(0);
    transition:transform .18s ease, opacity .18s ease;
}
.bio-links-pro .public-link:hover .public-link-arrow{
    opacity:1;
    transform:translateX(3px);
}
.public-page-pro .empty-public{
    margin:0;
    padding:22px;
    border-radius:24px;
    background:rgba(255,255,255,.055);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.public-page-pro .public-footer.public-footer-brand{
    margin-top:28px!important;
    box-shadow:0 14px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
}
.theme-light.public-page-pro::before{
    background:
      radial-gradient(circle at 18% 10%, rgba(24,174,234,.12), transparent 28%),
      radial-gradient(circle at 82% 18%, rgba(181,140,255,.12), transparent 30%),
      radial-gradient(circle at 50% 100%, rgba(17,24,39,.04), transparent 32%);
}
.theme-light .bio-links-pro .public-link{
    background:
      linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.82)),
      rgba(255,255,255,.88);
    border-color:rgba(17,24,39,.09);
    box-shadow:0 16px 38px rgba(17,24,39,.10), inset 0 1px 0 rgba(255,255,255,.75);
}
.theme-light .bio-links-pro .public-link:hover{
    border-color:rgba(24,174,234,.36);
    box-shadow:0 20px 44px rgba(17,24,39,.14), 0 0 0 1px rgba(24,174,234,.08);
}
.theme-light .bio-links-pro .public-link-text{
    color:#111827;
}
@media(max-width:760px){
    .public-page-pro{background-attachment:scroll}
    .public-page-pro .bio-shell{padding-top:22px;padding-bottom:32px}
    .public-page-pro .bio-hero{padding:28px 18px 25px}
    .public-page-pro .public-avatar{width:106px;height:106px;outline-offset:4px}
    .public-page-pro .public-logo{max-width:min(210px,74vw);max-height:96px}
    .public-page-pro .bio-hero h1{letter-spacing:-.045em}
    .bio-links-pro{gap:12px;margin-top:18px}
    .bio-links-pro .public-link{min-height:68px;padding:14px 15px;border-radius:22px}
    .bio-links-pro .public-link-icon{width:48px;height:48px;border-radius:16px}
    .bio-links-pro .public-link-text{font-size:.95rem;letter-spacing:.028em}
}
@media(max-width:420px){
    .bio-links-pro .public-link{gap:12px}
    .bio-links-pro .public-link-icon{width:45px;height:45px}
    .bio-links-pro .public-link-text{font-size:.91rem}
}


/* V38 - fix mobile barre statistiche con testi lunghi */
.bar-chart,
.bar-row{
    min-width:0;
    max-width:100%;
}

.bar-row-top{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
}

.bar-row-top span{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}

.bar-row-top strong{
    display:block!important;
    min-width:34px!important;
    max-width:72px!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:visible!important;
    flex:0 0 auto!important;
}

.bar-track{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}

.chart-card{
    overflow:hidden!important;
}

/* Allinea il titolo della tabella click al contenuto della scheda. */
.mobile-clicks-card > h2{
    margin:0;
    padding:24px 18px 0;
}

@media(max-width:760px){
    .bar-row-top{
        gap:10px!important;
    }

    .bar-row-top strong{
        min-width:28px!important;
        max-width:54px!important;
        font-size:.98rem!important;
    }

    .bar-row-top span{
        font-size:.96rem!important;
    }

    .chart-card .bar-chart{
        overflow:hidden!important;
    }
}


/* V39 - admin users mobile cards */
@media(max-width:760px){
    .mobile-card-wrap{
        overflow:visible!important;
        padding:14px!important;
    }

    .admin-mobile-cards{
        min-width:0!important;
        width:100%!important;
        border-collapse:separate!important;
        border-spacing:0 13px!important;
    }

    .admin-mobile-cards thead{
        display:none!important;
    }

    .admin-mobile-cards tbody,
    .admin-mobile-cards tr,
    .admin-mobile-cards td{
        display:block!important;
        width:100%!important;
        min-width:0!important;
    }

    .admin-mobile-cards tr{
        padding:15px!important;
        border:1px solid rgba(255,255,255,.11)!important;
        border-radius:18px!important;
        background:rgba(255,255,255,.045)!important;
        box-shadow:0 12px 30px rgba(0,0,0,.12)!important;
    }

    .admin-mobile-cards td{
        padding:10px 0!important;
        border-bottom:1px solid rgba(255,255,255,.08)!important;
        overflow-wrap:anywhere!important;
    }

    .admin-mobile-cards td:last-child{
        border-bottom:0!important;
        padding-bottom:0!important;
    }

    .admin-mobile-cards td::before{
        content:attr(data-label);
        display:block;
        margin-bottom:6px;
        color:var(--muted);
        font-size:.76rem;
        font-weight:900;
        text-transform:uppercase;
        letter-spacing:.06em;
    }

    .admin-mobile-cards td[data-label="Utente"] strong{
        font-size:1.05rem;
    }

    .admin-mobile-cards td[data-label="Pagina"] a{
        display:inline-flex;
        max-width:100%;
        padding:7px 10px;
        border-radius:999px;
        background:rgba(24,174,234,.10);
        border:1px solid rgba(24,174,234,.20);
        color:#dff6ff;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .user-inline-form{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        align-items:stretch!important;
        width:100%!important;
    }

    .user-inline-form select,
    .user-inline-form .btn{
        width:100%!important;
        min-width:0!important;
    }

    .user-inline-form .check{
        width:100%;
        justify-content:flex-start;
        padding:10px 12px;
        border-radius:14px;
        background:rgba(255,255,255,.045);
        border:1px solid rgba(255,255,255,.08);
    }
}

/* V42 - fix mobile CTA Gestisci utenti nella card amministrazione */
@media(max-width:760px){
    .section-head{
        display:block!important;
    }

    .section-head .head-actions{
        display:block!important;
        width:100%!important;
        margin-top:16px!important;
    }

    .head-actions .btn[href$="admin/users.php"]{
        display:flex!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-height:52px!important;
        padding:14px 18px!important;
        border-radius:18px!important;
        text-align:center!important;
        line-height:1.1!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
    }
}

/* Variante più precisa per la card Utenti e piani */
@media(max-width:760px){
    .card .section-head:has(.btn[href$="admin/users.php"]){
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:14px!important;
    }

    .card .section-head:has(.btn[href$="admin/users.php"]) .head-actions{
        margin-top:0!important;
    }
}

/* V43 - Ocean Blue buttons refinement */
:root{
    --ocean-cta-1:#6be7b3;
    --ocean-cta-2:#18c6d4;
    --ocean-cta-3:#18aeea;
    --ocean-cta-text:#06131f;
    --ocean-cta-shadow:rgba(24,174,234,.24);
}

/* Bottoni principali: palette verde acqua / azzurro */
.btn:not(.danger):not(.secondary),
button.btn:not(.danger):not(.secondary),
input[type="submit"].btn:not(.danger):not(.secondary){
    color:var(--ocean-cta-text)!important;
    background:linear-gradient(135deg,var(--ocean-cta-1) 0%,var(--ocean-cta-2) 52%,var(--ocean-cta-3) 100%)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:0 14px 34px var(--ocean-cta-shadow), inset 0 1px 0 rgba(255,255,255,.34)!important;
}

.btn:not(.danger):not(.secondary):hover,
button.btn:not(.danger):not(.secondary):hover,
input[type="submit"].btn:not(.danger):not(.secondary):hover{
    filter:none!important;
    transform:translateY(-1px);
    box-shadow:0 18px 44px rgba(24,174,234,.30), inset 0 1px 0 rgba(255,255,255,.38)!important;
}

/* Bottoni secondari: meno viola, più Ocean */
.btn.secondary{
    background:rgba(24,174,234,.09)!important;
    color:#e8fbff!important;
    border:1px solid rgba(24,174,234,.22)!important;
}

.btn.secondary:hover{
    border-color:rgba(107,231,179,.34)!important;
    background:rgba(24,174,234,.14)!important;
}

/* Navbar area admin: attivi/owner coerenti con Ocean Blue */
.nav-link.owner,
.nav-link.active,
.nav-link[aria-current="page"]{
    color:#eaffff!important;
    background:linear-gradient(135deg,rgba(24,174,234,.18),rgba(107,231,179,.10))!important;
    border-color:rgba(24,174,234,.46)!important;
    box-shadow:0 10px 26px rgba(24,174,234,.12), inset 0 1px 0 rgba(255,255,255,.08)!important;
}

.nav-link:hover{
    border-color:rgba(107,231,179,.44)!important;
    background:rgba(24,174,234,.10)!important;
}

/* Tab periodo grafici già nello stile Ocean */
.chart-range-tabs a.active{
    color:var(--ocean-cta-text)!important;
    background:linear-gradient(135deg,var(--ocean-cta-1),var(--ocean-cta-3))!important;
    box-shadow:0 12px 30px rgba(24,174,234,.24)!important;
}

/* Form rapidi utenti: salva più coerente */
.user-inline-form .btn,
.inline-form .btn{
    border-radius:18px!important;
}

/* Lascia i bottoni pericolosi ben distinti */
.btn.danger,
.danger-link{
    background:rgba(255,84,112,.16)!important;
    color:#fff!important;
    border-color:rgba(255,84,112,.38)!important;
    box-shadow:none!important;
}

.btn.danger:hover,
.danger-link:hover{
    background:rgba(255,84,112,.24)!important;
    border-color:rgba(255,84,112,.52)!important;
}

/* V45 - link list definitive responsive layout */
.links-mobile-list{
    display:none;
}

.links-list-card h1{
    margin-bottom:18px;
}

.links-desktop-table td,
.links-desktop-table th{
    vertical-align:middle;
}

.links-desktop-table .actions-cell{
    gap:10px;
}

.links-desktop-table .link-action,
.links-desktop-table .link-button{
    color:#6be7b3;
    font-weight:900;
    text-decoration:underline;
    text-underline-offset:3px;
}

.links-desktop-table .delete-action{
    color:#ff9aad!important;
}

@media(max-width:760px){
    .links-list-card{
        overflow:hidden!important;
    }

    .links-list-card h1{
        font-size:clamp(2rem,10vw,2.8rem);
        line-height:1.05;
        margin-bottom:16px;
    }

    .links-desktop-wrap{
        display:none!important;
    }

    .links-mobile-list{
        display:grid!important;
        grid-template-columns:1fr;
        gap:14px;
        width:100%;
        min-width:0;
    }

    .link-mobile-card{
        width:100%;
        min-width:0;
        border:1px solid rgba(255,255,255,.11);
        border-radius:22px;
        padding:15px;
        background:
          linear-gradient(135deg,rgba(24,174,234,.055),rgba(107,231,179,.025)),
          rgba(255,255,255,.045);
        box-shadow:0 14px 34px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.045);
        overflow:hidden;
    }

    .link-mobile-head{
        display:grid;
        grid-template-columns:54px minmax(0,1fr);
        gap:12px;
        align-items:center;
    }

    .link-mobile-head .icon-preview{
        width:54px;
        height:54px;
        border-radius:18px;
        background:linear-gradient(135deg,rgba(24,174,234,.18),rgba(107,231,179,.10));
        border-color:rgba(24,174,234,.20);
    }

    .link-mobile-title{
        min-width:0;
    }

    .link-mobile-title strong{
        display:block;
        color:#fff;
        font-size:1.28rem;
        line-height:1.12;
        letter-spacing:-.025em;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .link-mobile-title span{
        display:block;
        margin-top:5px;
        color:var(--muted);
        font-size:.88rem;
        font-weight:750;
    }

    .link-mobile-badges{
        grid-column:1 / -1;
        display:flex;
        flex-wrap:wrap;
        gap:7px;
        margin-top:12px;
    }

    .link-mobile-card .status-badge{
        margin:0!important;
        padding:6px 10px;
        font-size:.78rem;
    }

    .link-mobile-url{
        margin-top:13px;
        padding:10px 12px;
        border-radius:15px;
        color:#d8f8ff;
        background:rgba(24,174,234,.08);
        border:1px solid rgba(24,174,234,.16);
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:.94rem;
    }

    .link-mobile-actions{
        display:grid;
        grid-template-columns:1fr;
        gap:9px;
        margin-top:13px;
    }

    .link-mobile-actions a,
    .link-mobile-actions button{
        display:flex;
        justify-content:center;
        align-items:center;
        width:100%;
        min-height:44px;
        padding:10px 12px;
        border-radius:16px;
        text-decoration:none!important;
        font:inherit;
        font-weight:950;
        cursor:pointer;
        color:#06131f!important;
        background:linear-gradient(135deg,#6be7b3,#18aeea);
        border:1px solid rgba(255,255,255,.18);
        box-shadow:0 10px 24px rgba(24,174,234,.15), inset 0 1px 0 rgba(255,255,255,.32);
    }

    .link-mobile-actions form{
        display:block;
        width:100%;
        margin:0;
    }

    .link-mobile-actions .delete-action{
        color:#fff!important;
        background:rgba(255,84,112,.18)!important;
        border-color:rgba(255,84,112,.34)!important;
        box-shadow:none!important;
    }
}

@media(max-width:420px){
    .link-mobile-card{
        padding:13px;
        border-radius:20px;
    }

    .link-mobile-title strong{
        font-size:1.16rem;
    }
}

/* V46 - desktop links table actions refinement */
@media(min-width:761px){
    .links-list-card{
        padding:24px 26px;
    }

    .links-desktop-wrap{
        overflow-x:visible!important;
        padding:10px 18px 8px!important;
    }

    .links-desktop-table{
        width:100%;
        table-layout:fixed;
    }

    .links-desktop-table th:nth-child(1),
    .links-desktop-table td:nth-child(1){
        width:54px;
        text-align:center;
    }

    .links-desktop-table th:nth-child(2),
    .links-desktop-table td:nth-child(2){
        width:62px;
    }

    .links-desktop-table th:nth-child(3),
    .links-desktop-table td:nth-child(3){
        width:130px;
    }

    .links-desktop-table th:nth-child(4),
    .links-desktop-table td:nth-child(4){
        width:auto;
    }

    .links-desktop-table th:nth-child(5),
    .links-desktop-table td:nth-child(5){
        width:64px;
        text-align:center;
    }

    .links-desktop-table th:nth-child(6),
    .links-desktop-table td:nth-child(6){
        width:145px;
    }

    .links-desktop-table th:nth-child(7),
    .links-desktop-table td:nth-child(7){
        width:240px;
    }

    .links-desktop-table td{
        padding-top:16px;
        padding-bottom:16px;
    }

    .links-desktop-table td:nth-child(4){
        color:#cdd6e6;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .links-desktop-table .actions-cell{
        display:flex!important;
        align-items:center;
        justify-content:flex-start;
        gap:8px!important;
        flex-wrap:wrap;
        min-width:0;
    }

    .links-desktop-table .actions-cell .inline-form{
        display:inline-flex!important;
        margin:0!important;
    }

    .links-desktop-table .link-action,
    .links-desktop-table .link-button{
        display:inline-flex!important;
        align-items:center;
        justify-content:center;
        min-height:34px;
        padding:7px 11px!important;
        border-radius:999px;
        text-decoration:none!important;
        font-size:.86rem!important;
        line-height:1!important;
        font-weight:950!important;
        color:#06131f!important;
        background:linear-gradient(135deg,#6be7b3,#18aeea)!important;
        border:1px solid rgba(255,255,255,.16)!important;
        box-shadow:0 8px 20px rgba(24,174,234,.13), inset 0 1px 0 rgba(255,255,255,.28)!important;
        cursor:pointer;
        white-space:nowrap;
    }

    .links-desktop-table .link-action:hover,
    .links-desktop-table .link-button:hover{
        transform:translateY(-1px);
        box-shadow:0 10px 24px rgba(24,174,234,.20), inset 0 1px 0 rgba(255,255,255,.34)!important;
    }

    .links-desktop-table .delete-action{
        color:#fff!important;
        background:rgba(255,84,112,.17)!important;
        border-color:rgba(255,84,112,.34)!important;
        box-shadow:none!important;
    }

    .links-desktop-table .delete-action:hover{
        background:rgba(255,84,112,.25)!important;
        border-color:rgba(255,84,112,.48)!important;
    }

    .links-desktop-table .status-badge{
        margin:2px 4px 2px 0;
    }
}

/* V47 - public desktop Ocean Blue refinement */
@media(min-width:761px){
    .theme-ocean.public-page.public-page-pro{
        background:
          radial-gradient(circle at 18% 4%, rgba(107,231,179,.18), transparent 28%),
          radial-gradient(circle at 82% 2%, rgba(24,174,234,.16), transparent 30%),
          linear-gradient(155deg,#062032 0%,#0a5067 46%,#082b3d 100%)!important;
    }

    .public-page-pro .bio-shell{
        width:min(720px,88vw)!important;
        padding-top:42px!important;
        padding-bottom:46px!important;
    }

    .public-page-pro .bio-hero{
        padding:32px 34px 31px!important;
        border-radius:31px!important;
        background:
          linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),
          rgba(5,28,43,.78)!important;
        border-color:rgba(107,231,179,.16)!important;
        box-shadow:
          0 26px 70px rgba(0,0,0,.30),
          inset 0 1px 0 rgba(255,255,255,.08)!important;
    }

    .public-page-pro .profile-media{
        margin-bottom:14px!important;
    }

    .public-page-pro .public-logo{
        max-width:150px!important;
        max-height:110px!important;
        filter:drop-shadow(0 14px 24px rgba(0,0,0,.30));
    }

    .public-page-pro .public-avatar{
        width:112px!important;
        height:112px!important;
    }

    .public-page-pro .bio-hero h1{
        font-size:clamp(2.35rem,4.2vw,3.25rem)!important;
        letter-spacing:-.06em!important;
        margin-top:4px!important;
    }

    .public-page-pro .public-bio{
        margin-top:12px!important;
        max-width:520px!important;
        font-size:1.02rem!important;
        color:rgba(232,242,248,.82)!important;
    }

    .bio-links-pro{
        gap:14px!important;
        margin-top:24px!important;
    }

    .bio-links-pro .public-link{
        min-height:72px!important;
        padding:15px 20px!important;
        border-radius:25px!important;
        background:
          linear-gradient(135deg,rgba(255,255,255,.070),rgba(255,255,255,.018)),
          rgba(5,30,46,.76)!important;
        border-color:rgba(107,231,179,.13)!important;
        box-shadow:
          0 16px 38px rgba(0,0,0,.20),
          inset 0 1px 0 rgba(255,255,255,.055)!important;
    }

    .bio-links-pro .public-link::before{
        background:linear-gradient(90deg,rgba(107,231,179,.16),rgba(24,174,234,.08),transparent 56%)!important;
        opacity:.55!important;
    }

    .bio-links-pro .public-link:hover{
        transform:translateY(-2px)!important;
        border-color:rgba(107,231,179,.42)!important;
        box-shadow:
          0 22px 52px rgba(0,0,0,.26),
          0 0 0 1px rgba(24,174,234,.10),
          inset 0 1px 0 rgba(255,255,255,.08)!important;
    }

    .bio-links-pro .public-link-icon{
        width:52px!important;
        height:52px!important;
        border-radius:18px!important;
        background:
          linear-gradient(135deg,rgba(24,174,234,.24),rgba(107,231,179,.13)),
          rgba(255,255,255,.04)!important;
        border:1px solid rgba(255,255,255,.07);
    }

    .bio-links-pro .public-link-text{
        font-size:1rem!important;
        letter-spacing:.038em!important;
    }

    .bio-links-pro .public-link-arrow{
        font-size:30px!important;
        color:rgba(218,240,247,.45)!important;
        padding-right:1px!important;
    }

    .public-page-pro .public-link.is-pinned{
        border-color:rgba(107,231,179,.30)!important;
        box-shadow:
          0 0 0 1px rgba(107,231,179,.12),
          0 18px 46px rgba(0,0,0,.22)!important;
    }

    .public-page-pro .public-link.is-pinned::after{
        top:11px!important;
        right:14px!important;
        padding:4px 8px!important;
        border-radius:999px!important;
        font-size:.62rem!important;
        color:#eaffff!important;
        background:rgba(24,174,234,.16)!important;
        border-color:rgba(107,231,179,.25)!important;
        letter-spacing:.025em!important;
    }

    .public-page-pro .public-footer.public-footer-brand{
        margin-top:28px!important;
    }
}

/* V48 - admin nav: solo pagina corrente illuminata */
.nav-link.owner:not(.active){
    color:#dfe2ea!important;
    background:rgba(255,255,255,.05)!important;
    border-color:rgba(255,255,255,.08)!important;
    box-shadow:none!important;
}

.nav-link.owner:not(.active):hover{
    color:#eaffff!important;
    border-color:rgba(107,231,179,.38)!important;
    background:rgba(24,174,234,.10)!important;
}

.nav-link.active{
    color:#eaffff!important;
    background:linear-gradient(135deg,rgba(24,174,234,.20),rgba(107,231,179,.12))!important;
    border-color:rgba(24,174,234,.56)!important;
    box-shadow:0 10px 26px rgba(24,174,234,.16), inset 0 1px 0 rgba(255,255,255,.10)!important;
}

/* V49 - dashboard mobile width fix */
@media(max-width:760px){
    html,
    body.admin-page{
        width:100%;
        max-width:100%;
        overflow-x:hidden!important;
    }

    body.admin-page .top,
    body.admin-page main.admin-wrap,
    body.admin-page .wrap.admin-wrap{
        width:100%!important;
        max-width:100%!important;
    }

    body.admin-page .top .admin-wrap{
        padding-left:12px!important;
        padding-right:12px!important;
    }

    body.admin-page main.admin-wrap{
        padding-left:12px!important;
        padding-right:12px!important;
    }

    .dashboard-home-hero,
    .dashboard-metrics,
    .dashboard-promo-card,
    .dashboard-owner-card,
    .dashboard-mini-lists,
    .dashboard-mini-lists .card{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }

    .dashboard-home-hero{
        margin-top:16px!important;
        overflow:hidden!important;
    }

    .dashboard-home-hero h1{
        font-size:clamp(2rem,10vw,2.75rem)!important;
        line-height:1.05!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
    }

    .dashboard-home-hero .public-url{
        min-width:0!important;
        max-width:100%!important;
        overflow:hidden!important;
    }

    .dashboard-home-hero .public-url a{
        display:inline-block!important;
        max-width:100%!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;
        vertical-align:bottom!important;
    }

    .dashboard-home-hero .hero-actions{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        width:100%!important;
    }

    .dashboard-home-hero .hero-actions .btn{
        width:100%!important;
        min-width:0!important;
    }

    .dashboard-mini-lists{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:16px!important;
    }

    .dashboard-mini-lists .card{
        overflow:hidden!important;
    }

    .dashboard-mini-lists .section-head.small-head{
        display:flex!important;
        align-items:flex-start!important;
        justify-content:space-between!important;
        gap:12px!important;
        margin-bottom:12px!important;
    }

    .dashboard-mini-lists .section-head.small-head h2{
        font-size:clamp(1.45rem,7vw,2rem)!important;
        line-height:1.08!important;
        max-width:100%!important;
        overflow-wrap:normal!important;
        word-break:normal!important;
    }

    .dashboard-mini-lists .section-head.small-head a{
        flex:0 0 auto;
        color:#dff6ff;
        text-underline-offset:3px;
    }

    .dashboard-mini-table{
        min-width:0!important;
        width:100%!important;
        max-width:100%!important;
        table-layout:fixed!important;
        border-collapse:collapse!important;
    }

    .dashboard-mini-table tr{
        width:100%!important;
    }

    .dashboard-mini-table td{
        min-width:0!important;
        max-width:100%!important;
        padding:12px 8px!important;
        overflow:hidden!important;
        vertical-align:top!important;
    }

    .dashboard-mini-table td:first-child{
        width:auto!important;
        overflow-wrap:anywhere!important;
    }

    .dashboard-mini-table td:last-child{
        width:96px!important;
        text-align:right!important;
        white-space:normal!important;
        overflow-wrap:normal!important;
        word-break:normal!important;
    }

    .dashboard-mini-table .muted.small{
        display:block!important;
        margin-top:3px!important;
        line-height:1.25!important;
        overflow-wrap:normal!important;
        word-break:normal!important;
    }

    .dashboard-owner-card .mini-metrics{
        grid-template-columns:1fr!important;
    }

    .dashboard-promo-card .section-head,
    .dashboard-owner-card .section-head{
        display:block!important;
    }

    .dashboard-promo-card .head-actions,
    .dashboard-owner-card .head-actions{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        margin-top:14px!important;
        width:100%!important;
    }

    .dashboard-promo-card .head-actions .btn,
    .dashboard-owner-card .head-actions .btn{
        width:100%!important;
    }
}

@media(max-width:420px){
    body.admin-page .top .admin-wrap,
    body.admin-page main.admin-wrap{
        padding-left:10px!important;
        padding-right:10px!important;
    }

    .dashboard-home-hero,
    .dashboard-mini-lists .card,
    .dashboard-promo-card,
    .dashboard-owner-card,
    .dashboard-metrics .metric-card{
        border-radius:20px!important;
    }

    .dashboard-mini-table td:last-child{
        width:86px!important;
        font-size:.86rem!important;
    }
}

/* V50 - mobile final polish: QR link + ultimi click */
@media(max-width:760px){
    /* QR Code: il link non deve uscire dalla card */
    .qr-public-url,
    .qr-generated-url{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:hidden!important;
    }

    .qr-public-url a,
    .qr-generated-url strong{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;
        line-height:1.25!important;
    }

    .qr-layout,
    .qr-layout .card,
    .qr-card,
    .qr-preview-box{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:hidden!important;
    }

    /* Ultimi click: niente tabella larga su smartphone */
    .mobile-clicks-card{
        padding:18px!important;
        overflow:hidden!important;
    }

    .mobile-clicks-card h2{
        font-size:clamp(1.55rem,8vw,2.05rem)!important;
        line-height:1.08!important;
        margin:0 0 14px!important;
        padding:0!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
    }

    .mobile-clicks-wrap{
        padding:0!important;
        overflow:visible!important;
        max-width:100%!important;
    }

    .mobile-clicks-table{
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        border-collapse:separate!important;
        border-spacing:0!important;
    }

    .mobile-clicks-table thead{
        display:none!important;
    }

    .mobile-clicks-table tbody{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:12px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }

    .mobile-clicks-table tr{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        padding:14px!important;
        border:1px solid rgba(255,255,255,.10)!important;
        border-radius:18px!important;
        background:
          linear-gradient(135deg,rgba(24,174,234,.045),rgba(107,231,179,.018)),
          rgba(255,255,255,.035)!important;
        box-shadow:0 12px 26px rgba(0,0,0,.10)!important;
        overflow:hidden!important;
    }

    .mobile-clicks-table td{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        padding:9px 0!important;
        border-bottom:1px solid rgba(255,255,255,.075)!important;
        overflow:hidden!important;
        text-align:left!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
    }

    .mobile-clicks-table td:last-child{
        border-bottom:0!important;
        padding-bottom:0!important;
    }

    .mobile-clicks-table td::before{
        content:attr(data-label);
        display:block;
        margin-bottom:5px;
        color:var(--muted);
        font-size:.74rem;
        font-weight:950;
        text-transform:uppercase;
        letter-spacing:.06em;
    }

    .mobile-clicks-table td[colspan]::before{
        display:none!important;
        content:""!important;
    }

    .mobile-clicks-table td strong,
    .mobile-clicks-table td a{
        color:#fff;
        font-weight:900;
        text-underline-offset:3px;
    }

    .mobile-clicks-table .muted.small{
        display:block!important;
        max-width:100%!important;
        margin-top:4px!important;
        line-height:1.25!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
}

@media(max-width:420px){
    .mobile-clicks-card{
        padding:16px!important;
    }

    .mobile-clicks-table tr{
        padding:13px!important;
        border-radius:17px!important;
    }
}

/* V52 - Security audit */
.security-audit-hero{
    border-color:rgba(24,174,234,.30);
    background:linear-gradient(135deg,rgba(24,174,234,.13),rgba(107,231,179,.06),rgba(181,140,255,.10));
}
.security-audit-metrics .metric-card:nth-child(1) strong{color:#6be7b3}
.security-audit-metrics .metric-card:nth-child(2) strong{color:#ffd166}
.security-audit-metrics .metric-card:nth-child(3) strong{color:#ff6b88}
.security-audit-metrics .metric-card:nth-child(4) strong{color:#18aeea}
.security-audit-list{
    display:grid;
    gap:12px;
}
.security-audit-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:16px;
    align-items:flex-start;
    padding:15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    background:rgba(255,255,255,.04);
}
.security-audit-row strong{
    display:block;
    color:#fff;
    font-size:1rem;
    margin-bottom:5px;
}
.security-audit-row p{
    margin:0;
    color:var(--muted);
    line-height:1.45;
    overflow-wrap:anywhere;
}
.security-audit-row > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:86px;
    padding:7px 10px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.04em;
    border:1px solid rgba(255,255,255,.12);
}
.security-audit-row.audit-ok > span{
    color:#06131f;
    background:linear-gradient(135deg,#6be7b3,#18aeea);
}
.security-audit-row.audit-warn > span{
    color:#201506;
    background:#ffd166;
}
.security-audit-row.audit-fail > span{
    color:#fff;
    background:#ff5470;
}
.security-audit-row.audit-info > span{
    color:#06131f;
    background:#8edbff;
}
@media(max-width:760px){
    .security-audit-row{
        grid-template-columns:1fr;
        gap:10px;
        padding:14px;
    }
    .security-audit-row > span{
        justify-self:flex-start;
        min-width:0;
    }
}


/* NapoLink v1.2 - inviti temporanei */
.invite-code-box {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(56,189,248,.35);
  background: rgba(14,165,233,.10);
}
.invite-code-box strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: .08em;
  color: #e0f2fe;
  word-break: break-word;
}
.invite-table-wrap table td {
  vertical-align: middle;
}
.status-badge.invite-status-ok {
  background: rgba(34,197,94,.14);
  color: #bbf7d0;
  border-color: rgba(34,197,94,.35);
}
.status-badge.invite-status-warn {
  background: rgba(245,158,11,.14);
  color: #fde68a;
  border-color: rgba(245,158,11,.35);
}
.status-badge.invite-status-danger {
  background: rgba(239,68,68,.14);
  color: #fecaca;
  border-color: rgba(239,68,68,.35);
}
.status-badge.invite-status-muted {
  background: rgba(148,163,184,.12);
  color: #cbd5e1;
  border-color: rgba(148,163,184,.25);
}
.btn.tiny {
  padding: 7px 10px;
  font-size: .82rem;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .invite-code-box strong {
    font-size: 1.25rem;
  }
}


/* NapoLink v1.3 - Landing commerciale */
.landing-page{
  min-height:100vh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 18% 5%, rgba(107,231,179,.16), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(24,174,234,.18), transparent 30%),
    linear-gradient(145deg,#061827 0%,#0b2d43 48%,#111620 100%);
  color:var(--text);
}
.landing-header{
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(6,18,30,.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.landing-nav{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.landing-brand{
  display:inline-flex;
  align-items:baseline;
  gap:0;
  text-decoration:none;
  font-size:31px;
  font-weight:980;
  letter-spacing:-.06em;
  line-height:1;
}
.landing-brand .brand-link-text,
.landing-footer .brand-link-text{
  color:#fff;
}
.landing-brand .brand-napo,
.landing-footer .brand-napo{
  color:#18aeea;
}
.landing-nav nav{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.landing-nav nav a{
  text-decoration:none;
  color:#dfe8f4;
  font-weight:850;
  font-size:.94rem;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid transparent;
}
.landing-nav nav a:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.10);
}
.landing-nav-cta{
  color:#06131f!important;
  background:linear-gradient(135deg,#6be7b3,#18aeea)!important;
  border-color:rgba(255,255,255,.18)!important;
}
.landing-hero{
  position:relative;
  padding:72px 0 54px;
}
.landing-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.035),transparent 38%);
}
.landing-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.72fr);
  gap:44px;
  align-items:center;
}
.landing-kicker{
  display:inline-flex;
  margin:0 0 16px;
  padding:8px 12px;
  border-radius:999px;
  color:#c6f7ff;
  background:rgba(24,174,234,.10);
  border:1px solid rgba(24,174,234,.22);
  font-weight:900;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.landing-copy h1{
  margin:0;
  font-size:clamp(3rem,7vw,6.4rem);
  line-height:.92;
  letter-spacing:-.08em;
  text-shadow:0 24px 60px rgba(0,0,0,.28);
}
.landing-lead{
  max-width:680px;
  margin:24px 0 0;
  color:rgba(232,242,248,.84);
  font-size:clamp(1.08rem,2vw,1.35rem);
  line-height:1.55;
}
.landing-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:26px;
}
.center-actions{
  justify-content:center;
}
.landing-note{
  margin:16px 0 0;
  color:rgba(214,226,238,.68);
  font-size:.95rem;
}
.landing-preview{
  display:grid;
  place-items:center;
}
.preview-card{
  width:min(380px,100%);
  padding:28px;
  border-radius:34px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025)),
    rgba(6,26,40,.78);
  border:1px solid rgba(107,231,179,.18);
  box-shadow:0 30px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.preview-avatar{
  width:92px;
  height:92px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  color:#06131f;
  font-size:2.6rem;
  font-weight:980;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  box-shadow:0 18px 42px rgba(24,174,234,.22);
}
.preview-card h2{
  text-align:center;
  margin:0;
  font-size:2rem;
  letter-spacing:-.05em;
}
.preview-card > p{
  text-align:center;
  color:var(--muted);
  line-height:1.45;
  margin:10px auto 18px;
}
.preview-link{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0;
  padding:12px 14px;
  border-radius:19px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
}
.preview-link span{
  width:36px;
  height:36px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:rgba(24,174,234,.14);
}
.preview-link strong{
  flex:1;
}
.preview-link i{
  font-style:normal;
  color:rgba(255,255,255,.55);
  font-size:1.6rem;
}
.preview-powered{
  margin-top:16px;
  text-align:center;
  color:rgba(255,255,255,.65);
  font-size:.9rem;
}
.preview-powered b span{
  color:#18aeea;
}
.landing-section{
  padding:58px 0;
}
.landing-section-head{
  max-width:760px;
  margin:0 auto 26px;
  text-align:center;
}
.landing-section-head h2,
.landing-band h2,
.landing-final h2{
  margin:6px 0 10px;
  font-size:clamp(2rem,4.5vw,3.4rem);
  line-height:1;
  letter-spacing:-.06em;
}
.landing-feature-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.landing-feature,
.landing-plan,
.landing-final{
  border:1px solid rgba(255,255,255,.10);
  border-radius:26px;
  background:rgba(255,255,255,.045);
  box-shadow:0 18px 45px rgba(0,0,0,.16);
}
.landing-feature{
  padding:22px;
}
.landing-feature span{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:17px;
  margin-bottom:15px;
  background:linear-gradient(135deg,rgba(24,174,234,.22),rgba(107,231,179,.12));
  font-size:1.45rem;
}
.landing-feature h3,
.landing-plan h3{
  margin:0 0 8px;
  font-size:1.25rem;
}
.landing-feature p,
.landing-plan li,
.landing-band p{
  color:var(--muted);
  line-height:1.5;
}
.landing-band{
  margin:36px 0;
  padding:42px 0;
  background:
    linear-gradient(135deg,rgba(24,174,234,.12),rgba(107,231,179,.06)),
    rgba(0,0,0,.14);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.landing-band-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.landing-band-inner > div{
  max-width:760px;
}
.landing-plan-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.landing-plan{
  padding:24px;
}
.landing-plan-highlight{
  border-color:rgba(107,231,179,.26);
  background:linear-gradient(180deg,rgba(107,231,179,.09),rgba(255,255,255,.045));
  transform:translateY(-6px);
}
.landing-price{
  margin:0 0 15px;
  color:#9eeed6;
  font-weight:950;
  font-size:1.1rem;
}
.landing-plan ul{
  margin:0;
  padding-left:18px;
}
.landing-plan li{
  margin:9px 0;
}
.landing-final{
  margin-top:38px;
  margin-bottom:48px;
  padding:38px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%,rgba(24,174,234,.16),transparent 42%),
    rgba(255,255,255,.045);
}
.landing-final p{
  max-width:660px;
  margin-left:auto;
  margin-right:auto;
}
.landing-footer{
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  background:rgba(0,0,0,.14);
}
.landing-footer .wrap{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}
.landing-footer span:first-child{
  font-size:1.3rem;
  font-weight:980;
  letter-spacing:-.04em;
}
.auth-help{
  margin-top:14px;
  color:var(--muted);
}
.auth-help a{
  color:#dff6ff;
  text-underline-offset:3px;
}
@media(max-width:980px){
  .landing-hero-grid{
    grid-template-columns:1fr;
  }
  .landing-preview{
    order:-1;
  }
  .preview-card{
    width:min(430px,100%);
  }
  .landing-feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .landing-header{
    position:relative;
  }
  .landing-nav{
    align-items:flex-start;
    flex-direction:column;
    padding:16px 0;
  }
  .landing-nav nav{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
  .landing-nav nav a{
    white-space:nowrap;
    flex:0 0 auto;
  }
  .landing-hero{
    padding:34px 0 38px;
  }
  .landing-preview{
    order:0;
  }
  .landing-copy h1{
    font-size:clamp(2.7rem,15vw,4.4rem);
  }
  .landing-lead{
    font-size:1.05rem;
  }
  .landing-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .landing-actions .btn{
    width:100%;
  }
  .landing-feature-grid,
  .landing-plan-grid{
    grid-template-columns:1fr;
  }
  .landing-plan-highlight{
    transform:none;
  }
  .landing-band-inner{
    display:grid;
    grid-template-columns:1fr;
  }
  .landing-band-inner .btn{
    width:100%;
  }
  .landing-section{
    padding:42px 0;
  }
  .landing-final{
    padding:26px 18px;
  }
  .landing-footer .wrap{
    display:grid;
    gap:8px;
    text-align:center;
    justify-content:center;
  }
}
@media(max-width:420px){
  .preview-card{
    padding:22px;
    border-radius:28px;
  }
  .preview-avatar{
    width:78px;
    height:78px;
    font-size:2.2rem;
  }
  .landing-feature,
  .landing-plan{
    padding:19px;
    border-radius:22px;
  }
}


/* NapoLink v1.3.6 - rifinitura landing mobile */
.landing-page{
  background:
    radial-gradient(circle at 12% 0%, rgba(107,231,179,.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(24,174,234,.20), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(181,140,255,.07), transparent 34%),
    linear-gradient(145deg,#051624 0%,#0a3148 44%,#0d1724 100%)!important;
}
.landing-header{
  background:rgba(5,18,31,.78)!important;
}
.landing-nav{
  min-height:70px!important;
}
.landing-brand{
  font-size:33px!important;
}
.landing-nav nav a{
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.landing-nav nav a:hover{
  transform:translateY(-1px);
}
.landing-hero{
  padding:76px 0 56px!important;
}
.landing-hero-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.66fr)!important;
  gap:50px!important;
}
.landing-copy h1{
  max-width:850px;
}
.landing-lead{
  max-width:720px!important;
}
.landing-trust-badges{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:18px;
}
.landing-trust-badges span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  color:#dffcff;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
  font-size:.86rem;
  font-weight:850;
}
.preview-card{
  position:relative;
  overflow:hidden;
}
.preview-card::before{
  content:"";
  position:absolute;
  inset:-80px -70px auto auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(107,231,179,.20),transparent 65%);
  pointer-events:none;
}
.preview-card > *{
  position:relative;
  z-index:1;
}
.preview-link{
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.preview-link:hover{
  transform:translateY(-1px);
  border-color:rgba(107,231,179,.22);
  background:rgba(255,255,255,.075);
}
.landing-feature{
  min-height:215px;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.landing-feature:hover{
  transform:translateY(-2px);
  border-color:rgba(107,231,179,.22);
  background:rgba(255,255,255,.058);
}
.landing-steps-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}
.landing-steps-grid div{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:78px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
}
.landing-steps-grid strong{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#06131f;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  box-shadow:0 12px 28px rgba(24,174,234,.16);
}
.landing-steps-grid span{
  color:#e9f5fb;
  font-weight:850;
  line-height:1.25;
}
.landing-band{
  margin:34px 0!important;
}
.landing-plan{
  position:relative;
  overflow:hidden;
}
.landing-plan::after{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(107,231,179,.22),transparent);
}
.landing-plan-highlight{
  box-shadow:0 24px 60px rgba(24,174,234,.14), inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.landing-final{
  border-color:rgba(24,174,234,.18)!important;
}

/* Mobile: sistemazione reale da screenshot */
@media(max-width:760px){
  .landing-header{
    position:relative!important;
  }

  .landing-nav{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:15px!important;
    padding:22px 0 18px!important;
    align-items:start!important;
  }

  .landing-brand{
    font-size:31px!important;
    letter-spacing:-.06em!important;
  }

  .landing-nav nav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }

  .landing-nav nav a{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:10px 8px!important;
    border-radius:16px!important;
    white-space:normal!important;
    text-align:center!important;
    font-size:.98rem!important;
    line-height:1.05!important;
    background:rgba(255,255,255,.045);
    border-color:rgba(255,255,255,.08);
  }

  .landing-nav nav .landing-nav-cta{
    border-radius:17px!important;
  }

  .landing-hero{
    padding:34px 0 36px!important;
  }

  .landing-hero-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:26px!important;
  }

  .landing-preview{
    order:2!important;
  }

  .landing-copy{
    order:1!important;
    text-align:left!important;
  }

  .landing-kicker{
    max-width:100%!important;
    margin-bottom:14px!important;
    padding:8px 11px!important;
    font-size:.72rem!important;
    line-height:1.28!important;
    letter-spacing:.075em!important;
    white-space:normal!important;
    border-radius:20px!important;
  }

  .landing-copy h1{
    font-size:clamp(2.45rem,12.2vw,3.45rem)!important;
    line-height:1.02!important;
    letter-spacing:-.07em!important;
    text-wrap:balance;
  }

  .landing-lead{
    margin-top:18px!important;
    font-size:1rem!important;
    line-height:1.55!important;
    color:rgba(232,242,248,.78)!important;
  }

  .landing-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:24px!important;
  }

  .landing-actions .btn{
    width:100%!important;
    min-height:52px!important;
    border-radius:18px!important;
    font-size:1rem!important;
  }

  .landing-note{
    margin-top:14px!important;
    font-size:.92rem!important;
    line-height:1.35!important;
  }

  .landing-trust-badges{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:14px!important;
  }

  .landing-trust-badges span{
    justify-content:center!important;
    min-height:38px!important;
  }

  .preview-card{
    width:100%!important;
    max-width:430px!important;
    margin:0 auto!important;
    padding:22px!important;
    border-radius:27px!important;
  }

  .preview-avatar{
    width:76px!important;
    height:76px!important;
    font-size:2.1rem!important;
  }

  .preview-card h2{
    font-size:1.72rem!important;
  }

  .preview-card > p{
    font-size:.95rem!important;
  }

  .landing-section{
    padding:34px 0!important;
  }

  .landing-section-head{
    text-align:left!important;
    margin-bottom:20px!important;
  }

  .landing-section-head h2,
  .landing-band h2,
  .landing-final h2{
    font-size:clamp(1.85rem,9.4vw,2.45rem)!important;
    line-height:1.05!important;
    letter-spacing:-.055em!important;
    text-align:left!important;
  }

  .landing-section-head p,
  .landing-band p,
  .landing-final p{
    font-size:.98rem!important;
    line-height:1.48!important;
  }

  .landing-feature-grid,
  .landing-plan-grid{
    grid-template-columns:1fr!important;
    gap:13px!important;
  }

  .landing-feature{
    min-height:auto!important;
    padding:18px!important;
    border-radius:21px!important;
  }

  .landing-feature span{
    width:44px!important;
    height:44px!important;
    margin-bottom:12px!important;
  }

  .landing-steps-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:18px!important;
  }

  .landing-steps-grid div{
    min-height:64px!important;
    padding:14px!important;
    border-radius:19px!important;
  }

  .landing-band{
    margin:22px 0!important;
    padding:30px 0!important;
  }

  .landing-band-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:20px!important;
  }

  .landing-band-inner .btn{
    width:100%!important;
    min-height:52px!important;
  }

  .landing-plan{
    padding:20px!important;
    border-radius:22px!important;
  }

  .landing-plan-highlight{
    transform:none!important;
  }

  .landing-final{
    margin-top:28px!important;
    margin-bottom:34px!important;
    padding:24px 18px!important;
    border-radius:24px!important;
  }

  .center-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .landing-footer .wrap{
    display:grid!important;
    gap:8px!important;
    text-align:center!important;
    justify-content:center!important;
  }
}

@media(max-width:420px){
  .landing-brand{
    font-size:29px!important;
  }

  .landing-nav{
    padding:20px 0 16px!important;
  }

  .landing-nav nav a{
    min-height:44px!important;
    font-size:.94rem!important;
    border-radius:15px!important;
  }

  .landing-copy h1{
    font-size:clamp(2.25rem,11.8vw,3.1rem)!important;
  }

  .landing-lead{
    font-size:.97rem!important;
  }

  .landing-kicker{
    font-size:.68rem!important;
  }

  .landing-section-head h2,
  .landing-band h2,
  .landing-final h2{
    font-size:clamp(1.75rem,9vw,2.25rem)!important;
  }
}

/* NapoLink v1.4 - piani e attivazione servizio */
.landing-plans-more{
  margin-top:22px;
  text-align:center;
}
.landing-plans-more p{
  margin:10px auto 0;
  color:var(--muted);
  font-size:.94rem;
  max-width:620px;
  line-height:1.45;
}
.plans-page{
  min-height:100vh;
}
.plans-hero{
  padding:58px 0 26px;
  text-align:center;
}
.plans-hero h1{
  max-width:880px;
  margin:0 auto;
  font-size:clamp(2.4rem,5.5vw,5rem);
  line-height:.96;
  letter-spacing:-.075em;
  text-shadow:0 22px 58px rgba(0,0,0,.25);
}
.plans-hero .landing-lead{
  margin-left:auto;
  margin-right:auto;
}
.plans-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
  padding:24px 0 34px;
}
.plans-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:24px;
  border-radius:28px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.060),rgba(255,255,255,.025)),
    rgba(6,26,40,.62);
  border:1px solid rgba(255,255,255,.105);
  box-shadow:0 20px 50px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden;
}
.plans-card::before{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(107,231,179,.22),transparent);
}
.plans-card-highlight{
  border-color:rgba(107,231,179,.28);
  background:
    radial-gradient(circle at 50% 0%,rgba(107,231,179,.12),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.070),rgba(255,255,255,.030)),
    rgba(6,30,45,.74);
  transform:translateY(-6px);
  box-shadow:0 26px 70px rgba(24,174,234,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.plans-badge{
  align-self:flex-start;
  margin-bottom:13px;
  padding:6px 10px;
  border-radius:999px;
  color:#06131f;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.plans-card-head h2{
  margin:0 0 8px;
  font-size:1.7rem;
  letter-spacing:-.045em;
}
.plans-price{
  margin:0 0 14px;
  color:#9eeed6;
  font-size:1.25rem;
  font-weight:980;
}
.plans-price span{
  display:block;
  margin-top:2px;
  color:rgba(232,242,248,.70);
  font-size:.88rem;
  font-weight:800;
}
.plans-desc{
  color:rgba(232,242,248,.78);
  line-height:1.45;
  margin:0 0 14px;
}
.plans-card ul{
  margin:0 0 20px;
  padding-left:18px;
  color:var(--muted);
  line-height:1.45;
}
.plans-card li{
  margin:8px 0;
}
.plans-card .btn{
  margin-top:auto;
  width:100%;
}
.plans-note{
  margin:11px 0 0;
  color:rgba(232,242,248,.66);
  font-size:.88rem;
  line-height:1.35;
  text-align:center;
}
.plans-activation{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.42fr);
  gap:22px;
  align-items:center;
  margin-top:12px;
  margin-bottom:34px;
  padding:30px;
  border-radius:30px;
  background:
    linear-gradient(135deg,rgba(24,174,234,.12),rgba(107,231,179,.06)),
    rgba(0,0,0,.14);
  border:1px solid rgba(255,255,255,.09);
}
.plans-activation h2{
  margin:6px 0 10px;
  font-size:clamp(1.85rem,3.2vw,2.7rem);
  line-height:1.02;
  letter-spacing:-.055em;
}
.plans-activation p{
  color:var(--muted);
  line-height:1.48;
  margin:0;
}
.plans-activation-box{
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
}
.plans-activation-box strong{
  color:#fff;
  font-size:1.05rem;
}
.plans-activation-box a{
  color:#dffcff;
  font-weight:900;
  text-underline-offset:3px;
}
.plans-activation-box span{
  color:rgba(232,242,248,.68);
  line-height:1.38;
  font-size:.92rem;
}

@media(max-width:980px){
  .plans-grid{
    grid-template-columns:1fr;
    max-width:620px;
  }
  .plans-card-highlight{
    transform:none;
  }
  .plans-activation{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .plans-hero{
    padding:32px 0 16px;
    text-align:left;
  }
  .plans-hero h1{
    font-size:clamp(2.05rem,10vw,3rem);
    margin:0;
  }
  .plans-grid{
    padding:18px 0 24px;
    gap:12px;
  }
  .plans-card{
    padding:18px;
    border-radius:22px;
  }
  .plans-card-head h2{
    font-size:1.42rem;
  }
  .plans-price{
    font-size:1.08rem;
  }
  .plans-desc,
  .plans-card li{
    font-size:.93rem;
  }
  .plans-card li{
    margin:7px 0;
  }
  .plans-activation{
    margin-top:4px;
    margin-bottom:26px;
    padding:20px;
    border-radius:23px;
  }
  .plans-activation h2{
    font-size:clamp(1.55rem,8vw,2rem);
  }
  .landing-plans-more{
    margin-top:16px;
  }
  .landing-plans-more .btn{
    width:100%;
  }
}

/* NapoLink v1.4.1 - pagina attivazione senza mailto obbligatorio */
.activation-wrap{
  padding:54px 0 58px;
}
.activation-card{
  width:min(760px,100%);
  margin:0 auto;
  padding:32px;
  border-radius:32px;
  background:
    radial-gradient(circle at 50% 0%,rgba(107,231,179,.12),transparent 40%),
    linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025)),
    rgba(6,26,40,.72);
  border:1px solid rgba(107,231,179,.16);
  box-shadow:0 26px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
}
.activation-card h1{
  margin:0;
  font-size:clamp(2.25rem,5vw,4.2rem);
  line-height:.98;
  letter-spacing:-.07em;
}
.activation-price{
  margin:12px 0 0;
  color:#9eeed6;
  font-weight:980;
  font-size:1.25rem;
}
.activation-intro{
  margin:16px 0 0;
  color:rgba(232,242,248,.80);
  line-height:1.5;
}
.activation-list{
  margin:20px 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.45;
}
.activation-list li{
  margin:7px 0;
}
.activation-contact-box,
.activation-template{
  display:grid;
  gap:9px;
  margin:12px 0;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.activation-contact-box span,
.activation-template span{
  color:var(--muted);
  font-size:.84rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.activation-contact-box strong{
  color:#fff;
  font-size:1.05rem;
  overflow-wrap:anywhere;
}
.activation-template pre{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
  color:#eaf9ff;
  font-family:inherit;
  line-height:1.45;
}
.activation-contact-box .btn,
.activation-template .btn{
  width:max-content;
  min-width:170px;
}
.activation-actions{
  margin-top:18px;
}
.activation-note{
  margin:14px 0 0;
  color:rgba(232,242,248,.62);
  font-size:.9rem;
  line-height:1.42;
}
@media(max-width:760px){
  .activation-wrap{
    padding:28px 0 34px;
  }
  .activation-card{
    padding:20px;
    border-radius:24px;
  }
  .activation-card h1{
    font-size:clamp(2rem,10vw,2.8rem);
  }
  .activation-contact-box .btn,
  .activation-template .btn,
  .activation-actions .btn{
    width:100%;
  }
}

/* NapoLink v1.4.2 - correzione testi attivazione */
.activation-note strong{
  color:#eaffff;
}

/* NapoLink v1.4.3 - PayPal Professional */
.plans-small-secondary{
  margin-top:10px !important;
}
.activation-paypal-box{
  display:grid;
  gap:10px;
  margin:18px 0 14px;
  padding:18px;
  border-radius:22px;
  background:
    linear-gradient(135deg,rgba(107,231,179,.14),rgba(24,174,234,.08)),
    rgba(255,255,255,.055);
  border:1px solid rgba(107,231,179,.20);
}
.activation-paypal-box span{
  color:var(--muted);
  font-size:.84rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.activation-paypal-box strong{
  color:#fff;
  font-size:1.2rem;
}
.activation-paypal-box small{
  color:rgba(232,242,248,.66);
  line-height:1.38;
}
.activation-paypal-box .btn{
  width:max-content;
  min-width:210px;
}
@media(max-width:760px){
  .activation-paypal-box .btn{
    width:100%;
  }
}

/* NapoLink v1.4.4 - branding pubblico cliccabile */
.public-footer.public-footer-link{
    text-decoration:none!important;
    cursor:pointer;
    transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.public-footer.public-footer-link:hover{
    transform:translateY(-2px);
    border-color:rgba(107,231,179,.38)!important;
    background:rgba(10,25,38,.62)!important;
    box-shadow:0 18px 44px rgba(0,0,0,.28), 0 0 0 1px rgba(24,174,234,.10), inset 0 1px 0 rgba(255,255,255,.12)!important;
}

.public-footer.public-footer-link:focus-visible{
    outline:3px solid rgba(24,174,234,.58);
    outline-offset:4px;
}

.public-footer.public-footer-link .footer-brand{
    transition:transform .16s ease;
}

.public-footer.public-footer-link:hover .footer-brand{
    transform:translateX(1px);
}

.theme-light .public-footer.public-footer-link:hover{
    background:rgba(255,255,255,.95)!important;
    border-color:rgba(24,174,234,.32)!important;
    box-shadow:0 18px 40px rgba(17,24,39,.14), 0 0 0 1px rgba(24,174,234,.08), inset 0 1px 0 rgba(255,255,255,.82)!important;
}

@media(max-width:620px){
    .public-footer.public-footer-link{
        -webkit-tap-highlight-color:transparent;
    }
}

/* NapoLink v1.4.5 - mockup prodotto nella hero */
.landing-product-preview{
  position:relative;
  min-width:0;
  display:grid;
  place-items:center;
}

.landing-product-preview::before{
  content:"";
  position:absolute;
  width:min(520px,92%);
  aspect-ratio:1;
  border-radius:50%;
  background:
    radial-gradient(circle,rgba(24,174,234,.18),transparent 58%),
    radial-gradient(circle,rgba(107,231,179,.10),transparent 66%);
  filter:blur(2px);
  opacity:.9;
  pointer-events:none;
}

.landing-product-mockup{
  position:relative;
  z-index:1;
  display:block;
  width:min(560px,112%);
  max-width:none;
  height:auto;
  object-fit:contain;
  filter:
    drop-shadow(0 34px 70px rgba(0,0,0,.36))
    drop-shadow(0 0 34px rgba(24,174,234,.12));
  transform:translateX(10px);
}

@media(max-width:1180px){
  .landing-product-mockup{
    width:min(500px,108%);
    transform:translateX(0);
  }
}

@media(max-width:980px){
  .landing-product-preview{
    order:2!important;
    margin-top:8px;
  }

  .landing-product-mockup{
    width:min(520px,100%);
    max-width:100%;
  }
}

@media(max-width:760px){
  .landing-product-preview{
    margin-top:2px;
  }

  .landing-product-preview::before{
    width:min(360px,94%);
    opacity:.72;
  }

  .landing-product-mockup{
    width:min(390px,108%);
    max-width:108%;
    margin-inline:auto;
    filter:
      drop-shadow(0 24px 46px rgba(0,0,0,.32))
      drop-shadow(0 0 22px rgba(24,174,234,.10));
  }
}

@media(max-width:420px){
  .landing-product-mockup{
    width:min(345px,110%);
    max-width:110%;
  }
}

/* NapoLink v1.4.6 - admin attivazione Professional */
.admin-activation-card{
  border-color:rgba(107,231,179,.22)!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(24,174,234,.12),transparent 34%),
    linear-gradient(135deg,rgba(107,231,179,.075),rgba(255,255,255,.035)),
    rgba(27,33,43,.86)!important;
}

.admin-activation-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:18px 0 12px;
}

.admin-activation-steps div{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
}

.admin-activation-steps strong{
  width:34px;
  height:34px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#06131f;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  box-shadow:0 10px 24px rgba(24,174,234,.16);
}

.admin-activation-steps span{
  color:#eaf8ff;
  font-weight:850;
  line-height:1.25;
}

.plan-status-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.plan-status-badge.is-professional{
  color:#06131f;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  border-color:rgba(255,255,255,.20);
}

.user-quick-activation-form{
  margin-top:10px!important;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.professional-activate-btn{
  width:100%;
}

@media(max-width:900px){
  .admin-activation-steps{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .plan-status-badge{
    display:flex;
    justify-content:center;
    width:100%;
  }

  .user-quick-activation-form{
    margin-top:12px!important;
  }
}

/* NapoLink v1.4.7 - eliminazione sicura utenti test */
.user-delete-form{
  margin-top:10px!important;
  padding-top:10px;
  border-top:1px solid rgba(255,84,112,.18);
}

.user-delete-btn{
  width:100%;
  background:rgba(255,84,112,.17)!important;
  color:#fff!important;
  border:1px solid rgba(255,84,112,.42)!important;
  box-shadow:none!important;
}

.user-delete-btn:hover{
  background:rgba(255,84,112,.26)!important;
  border-color:rgba(255,84,112,.60)!important;
}

@media(max-width:760px){
  .user-delete-form{
    margin-top:12px!important;
  }
}

/* NapoLink v1.4.10 - branding Free Professional Ultimate */
.plan-status-badge.is-ultimate{
  color:#06131f;
  background:linear-gradient(135deg,#ffd166,#18aeea);
  border-color:rgba(255,255,255,.22);
}

.branding-rule-note{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
}

@media(max-width:760px){
  .branding-rule-note{
    width:100%;
    justify-content:center;
  }
}


/* NapoLink v1.4.15 - FAQ pubblica */
.faq-page{
  min-height:100vh;
}
.faq-hero{
  padding:58px 0 28px;
  text-align:center;
}
.faq-hero h1{
  max-width:880px;
  margin:0 auto;
  font-size:clamp(2.5rem,6vw,5.2rem);
  line-height:.96;
  letter-spacing:-.075em;
  text-shadow:0 22px 58px rgba(0,0,0,.25);
}
.faq-hero .landing-lead{
  margin-left:auto;
  margin-right:auto;
}
.faq-hero-actions{
  margin-top:24px;
}
.faq-section{
  padding:20px 0 26px;
}
.faq-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.faq-card{
  position:relative;
  min-width:0;
  padding:22px;
  border-radius:26px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.060),rgba(255,255,255,.025)),
    rgba(6,26,40,.62);
  border:1px solid rgba(255,255,255,.105);
  box-shadow:0 18px 45px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
}
.faq-card::before{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(107,231,179,.22),transparent);
}
.faq-card h2{
  margin:0 0 10px;
  color:#fff;
  font-size:1.22rem;
  line-height:1.15;
  letter-spacing:-.025em;
}
.faq-card p{
  margin:0;
  color:rgba(232,242,248,.76);
  line-height:1.52;
}
.faq-card ul{
  margin:0;
  padding-left:18px;
  color:rgba(232,242,248,.76);
  line-height:1.48;
}
.faq-card li{
  margin:7px 0;
}
.faq-card code{
  overflow-wrap:anywhere;
}
.faq-final{
  margin-top:22px;
}
@media(max-width:900px){
  .faq-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .faq-hero{
    padding:32px 0 16px;
    text-align:left;
  }
  .faq-hero h1{
    margin:0;
    font-size:clamp(2.15rem,11vw,3.2rem);
  }
  .faq-hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .faq-card{
    padding:18px;
    border-radius:22px;
  }
  .faq-card h2{
    font-size:1.12rem;
  }
  .faq-card p,
  .faq-card li{
    font-size:.95rem;
  }
}


/* NapoLink v1.4.16 - richiesta codice invito pubblica */
.invite-inline-actions{
  flex:0 0 auto;
  justify-content:flex-end;
}

.invite-request-box{
  display:grid;
  gap:8px;
  margin-top:16px;
  padding:15px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(24,174,234,.10),rgba(107,231,179,.055));
  border:1px solid rgba(24,174,234,.22);
}

.invite-request-box strong{
  color:#fff;
  font-size:1rem;
}

.invite-request-box span{
  color:var(--muted);
  line-height:1.42;
}

.invite-request-box a:not(.btn),
.landing-note a,
.plans-note a,
.faq-card a,
.landing-band a:not(.btn){
  color:#dffcff;
  font-weight:900;
  text-underline-offset:3px;
}

.invite-request-box .btn{
  width:max-content;
  min-width:210px;
}

@media(max-width:760px){
  .invite-inline-actions{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    justify-content:stretch!important;
  }

  .invite-inline-actions .btn,
  .invite-request-box .btn{
    width:100%!important;
  }
}


/* NapoLink v1.5.1 - pulizia flusso Free -> Professional */
.faq-card .faq-extra{
  margin-top:10px;
}
.activation-paypal-box small{
  display:block;
}


/* NapoLink v1.5.2 - upgrade loggato Professional */
.upgrade-hero{
  border-color:rgba(107,231,179,.26)!important;
  background:linear-gradient(135deg,rgba(24,174,234,.15),rgba(107,231,179,.08),rgba(181,140,255,.08))!important;
}
.upgrade-layout{
  align-items:stretch;
}
.upgrade-flow-card{
  border-color:rgba(24,174,234,.18);
}
.upgrade-flow-card h2{
  margin-top:6px;
}
.upgrade-account-box{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.upgrade-account-box div{
  min-width:0;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
}
.upgrade-account-box span{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}
.upgrade-account-box strong{
  display:block;
  color:#fff;
  overflow-wrap:anywhere;
}
.upgrade-price-card{
  background:
    radial-gradient(circle at 100% 0%,rgba(107,231,179,.12),transparent 34%),
    linear-gradient(135deg,rgba(24,174,234,.08),rgba(255,255,255,.035)),
    rgba(27,33,43,.86)!important;
}
.upgrade-price-card h2{
  font-size:clamp(2.2rem,5vw,3.6rem);
  line-height:1;
  letter-spacing:-.06em;
  color:#9eeed6;
}
.upgrade-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.upgrade-steps div{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
}
.upgrade-steps strong{
  width:34px;
  height:34px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#06131f;
  background:linear-gradient(135deg,#6be7b3,#18aeea);
  box-shadow:0 10px 24px rgba(24,174,234,.16);
}
.upgrade-steps span{
  color:#eaf8ff;
  font-weight:850;
  line-height:1.25;
}
.upgrade-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:18px;
}
.upgrade-config-notice{
  width:100%;
}
@media(max-width:900px){
  .upgrade-account-box,
  .upgrade-steps{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .upgrade-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .upgrade-actions .btn{
    width:100%;
  }
}


/* NapoLink v1.5.5 - smart "Ho pagato" + LED admin */
.upgrade-confirm-form{
  display:inline-flex;
  margin:0;
}
.upgrade-confirm-form .btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none!important;
}
.upgrade-pending-notice{
  border-color:rgba(255,84,112,.26)!important;
  background:linear-gradient(135deg,rgba(255,84,112,.12),rgba(24,174,234,.06))!important;
}
.upgrade-admin-alert{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0!important;
  border-color:rgba(255,84,112,.30)!important;
  background:linear-gradient(135deg,rgba(255,84,112,.13),rgba(24,174,234,.06))!important;
  color:#ffd7df!important;
}
.upgrade-admin-alert strong{
  color:#fff;
}
.upgrade-led{
  display:inline-flex;
  width:13px;
  height:13px;
  margin-left:7px;
  border-radius:50%;
  background:#ff2f55;
  box-shadow:0 0 0 0 rgba(255,47,85,.72),0 0 16px rgba(255,47,85,.62);
  animation:napolinkUpgradePulse 1.05s infinite;
  vertical-align:middle;
  flex:0 0 auto;
}
@keyframes napolinkUpgradePulse{
  0%{box-shadow:0 0 0 0 rgba(255,47,85,.72),0 0 16px rgba(255,47,85,.62);transform:scale(1)}
  70%{box-shadow:0 0 0 9px rgba(255,47,85,0),0 0 22px rgba(255,47,85,.68);transform:scale(1.08)}
  100%{box-shadow:0 0 0 0 rgba(255,47,85,0),0 0 16px rgba(255,47,85,.62);transform:scale(1)}
}
.upgrade-request-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  padding:6px 10px;
  border-radius:999px;
  color:#ffe5ea;
  background:rgba(255,84,112,.15);
  border:1px solid rgba(255,84,112,.34);
  font-size:.76rem;
  font-weight:950;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.upgrade-pending-metric{
  border-color:rgba(255,84,112,.24)!important;
  background:linear-gradient(135deg,rgba(255,84,112,.11),rgba(255,255,255,.04))!important;
}
.upgrade-pending-metric strong{
  color:#ff8fa3!important;
}
@media(max-width:760px){
  .upgrade-confirm-form,
  .upgrade-confirm-form .btn{
    width:100%;
  }
  .upgrade-admin-alert{
    align-items:flex-start;
    line-height:1.35;
  }
  .upgrade-request-badge{
    width:100%;
    justify-content:center;
    white-space:normal;
    text-align:center;
  }
}


/* NapoLink v1.5.6 - chiusura richiesta se pagamento non trovato */
.user-reject-upgrade-form{
  margin-top:10px!important;
  padding-top:10px;
  border-top:1px solid rgba(255,209,102,.18);
}
.reject-upgrade-btn{
  width:100%;
  color:#ffe8a3!important;
  background:rgba(255,209,102,.10)!important;
  border:1px solid rgba(255,209,102,.34)!important;
  box-shadow:none!important;
}
.reject-upgrade-btn:hover{
  background:rgba(255,209,102,.17)!important;
  border-color:rgba(255,209,102,.48)!important;
}
.upgrade-rejected-notice{
  border-color:rgba(255,209,102,.30)!important;
  background:linear-gradient(135deg,rgba(255,209,102,.13),rgba(24,174,234,.05))!important;
  color:#ffefbd!important;
}
.upgrade-rejected-notice strong{
  color:#fff!important;
}
@media(max-width:760px){
  .user-reject-upgrade-form{
    margin-top:12px!important;
  }
}


/* NapoLink v1.5.7 - nome pubblico in dashboard e admin utenti */
.admin-account-name{
  display:inline-block;
  margin-top:3px;
  color:rgba(232,242,248,.68)!important;
}
@media(max-width:760px){
  .admin-account-name{
    margin-top:5px;
  }
}
.inline-form,.nav-logout-form{display:inline-flex;align-items:center;gap:.45rem;margin:0}.link-button,.nav-link-button{appearance:none;border:0;background:none;color:inherit;font:inherit;padding:0;cursor:pointer;text-decoration:underline}.nav-link-button{text-decoration:none}

/* NapoLink editor visuale profilo */
.profile-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:28px;align-items:start}.profile-editor-form{min-width:0}.profile-live-preview{position:sticky;top:118px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}.preview-toolbar strong{display:block;margin-top:5px;font-size:1.05rem}.preview-unsaved{padding:6px 9px;border-radius:999px;background:rgba(255,209,102,.14);border:1px solid rgba(255,209,102,.35);color:#ffe8a1;font-size:.72rem;font-weight:800}.phone-frame{width:100%;max-width:370px;margin:auto;padding:13px;border-radius:42px;background:linear-gradient(145deg,#080b11,#272d38);border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 70px rgba(0,0,0,.45);position:relative}.phone-speaker{width:76px;height:5px;border-radius:999px;background:#080a0f;position:absolute;top:9px;left:50%;transform:translateX(-50%);z-index:3}.phone-screen{--preview-accent:#b58cff;min-height:610px;border-radius:31px;padding:48px 20px 25px;text-align:center;overflow:hidden;position:relative;background:linear-gradient(155deg,#121722,#282e3a);color:#f5f7fb}.phone-screen::before{content:"";position:absolute;width:250px;height:250px;border-radius:50%;background:var(--preview-accent);opacity:.18;filter:blur(35px);top:-150px;left:50%;transform:translateX(-50%)}.phone-screen>*{position:relative;z-index:1}.preview-profile-media{min-height:78px;display:grid;place-items:center}.preview-avatar-live{width:74px;height:74px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.2)}.preview-avatar-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,var(--preview-accent),#6e53ff);font-size:30px;font-weight:900}.preview-logo{max-width:145px;max-height:74px;object-fit:contain}.phone-screen h2{margin:12px 0 7px;font-size:1.55rem;line-height:1.05}.phone-screen>p{min-height:38px;margin:0 auto 19px;color:#d5d9e5;font-size:.86rem;line-height:1.4;white-space:pre-line}.preview-links-live{display:grid;gap:10px}.preview-link-live{display:flex;align-items:center;gap:11px;min-height:57px;padding:10px 13px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(20,26,35,.9);box-shadow:0 10px 24px rgba(0,0,0,.18)}.preview-link-live span{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--preview-accent) 25%,transparent);font-size:1.1rem}.preview-link-live strong{flex:1;text-align:left;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}.preview-link-live i{font-style:normal;font-size:1.5rem;opacity:.5}.preview-links-live[data-style="rounded"] .preview-link-live{border-radius:18px}.preview-links-live[data-style="square"] .preview-link-live{border-radius:5px}.preview-brand-live{margin-top:22px;color:rgba(255,255,255,.55);font-size:.72rem}.preview-brand-live b{color:#fff}.preview-help{text-align:center;max-width:350px;margin:13px auto 0}.color-field{display:grid;grid-template-columns:54px 1fr;gap:9px}.color-field input[type="color"]{padding:4px;height:46px;cursor:pointer}.theme-tile{appearance:none;color:#fff;text-align:left}.theme-tile.selected{outline:3px solid var(--accent);outline-offset:2px;box-shadow:0 0 0 5px rgba(181,140,255,.12)}.theme-tile-light{color:#121722}.preview-theme-dark{background:linear-gradient(155deg,#07090d,#1a1f29)}.preview-theme-light{background:linear-gradient(155deg,#eef1f7,#fff);color:#151922}.preview-theme-light>p{color:#586174}.preview-theme-light .preview-link-live{background:rgba(255,255,255,.9);color:#151922;border-color:rgba(0,0,0,.09)}.preview-theme-light .preview-brand-live{color:#6b7280}.preview-theme-light .preview-brand-live b{color:#151922}.preview-theme-royal{background:linear-gradient(155deg,#120928,#3a176d)}.preview-theme-ocean{background:linear-gradient(155deg,#071b2a,#0a5f78)}.preview-theme-sunset{background:linear-gradient(155deg,#241020,#7d2d2b)}.preview-theme-forest{background:linear-gradient(155deg,#071912,#17412e)}.preview-theme-rose{background:linear-gradient(155deg,#25131b,#5c2d3a)}.preview-theme-mono{background:linear-gradient(155deg,#000,#151515)}.preview-theme-gold{background:linear-gradient(155deg,#090805,#2f2410)}

/* Stili dei pulsanti pubblici, condivisi con l'anteprima. */
.button-style-pill .public-link{border-radius:999px}.button-style-rounded .public-link{border-radius:18px}.button-style-square .public-link{border-radius:5px}

@media(max-width:1040px){.profile-editor-layout{grid-template-columns:minmax(0,1fr) 330px}.phone-screen{min-height:560px}.profile-live-preview{top:105px}}
@media(max-width:820px){.profile-editor-layout{grid-template-columns:1fr}.profile-live-preview{position:relative;top:auto;order:-1}.phone-frame{max-width:350px}.preview-toolbar{max-width:350px;margin-left:auto;margin-right:auto}.preview-help{margin-bottom:22px}}
@media(max-width:520px){.profile-editor-layout{display:block}.phone-frame{max-width:310px;border-radius:34px;padding:10px}.phone-screen{min-height:500px;border-radius:26px;padding:42px 15px 20px}.preview-toolbar{align-items:flex-start;flex-direction:column}.theme-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.color-field{grid-template-columns:50px 1fr}}

/* NapoLink ordinamento visuale link */
.links-list-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.links-list-heading h1{margin-bottom:7px}.links-list-heading p{margin:0;max-width:680px}.links-capacity{display:grid;min-width:118px;padding:12px 15px;border-radius:17px;background:rgba(107,231,179,.08);border:1px solid rgba(107,231,179,.2);text-align:center}.links-capacity strong{font-size:1.25rem;color:#fff}.links-capacity span{font-size:.72rem;color:var(--muted);margin-top:2px}.link-reorder-panel{position:relative;margin:18px 0 25px;padding:16px;border-radius:22px;background:rgba(11,15,22,.36);border:1px solid rgba(255,255,255,.08)}.reorder-status{display:inline-flex;margin:0 0 12px;padding:6px 10px;border-radius:999px;color:var(--muted);background:rgba(255,255,255,.05);font-size:.76rem;font-weight:800}.reorder-status[data-state="saving"]{color:#ffe8a1;background:rgba(255,209,102,.1)}.reorder-status[data-state="saved"]{color:#8ff5bd;background:rgba(89,243,169,.1)}.reorder-status[data-state="error"]{color:#ff9aad;background:rgba(255,107,138,.1)}.link-reorder-list{display:grid;gap:10px}.link-reorder-item{display:flex;align-items:center;gap:12px;min-height:70px;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);transition:transform .15s ease,border-color .15s ease,opacity .15s ease,box-shadow .15s ease;touch-action:pan-y}.link-reorder-item:hover{border-color:rgba(181,140,255,.38)}.link-reorder-item.is-dragging{opacity:.78;border-color:var(--accent);box-shadow:0 18px 42px rgba(0,0,0,.35);transform:scale(1.012);z-index:3}.drag-handle{display:grid;place-items:center;width:42px;height:46px;flex:0 0 auto;border-radius:13px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);color:#dfe5f1;font-size:1.55rem;cursor:grab;touch-action:none}.drag-handle:active{cursor:grabbing}.drag-handle:focus-visible,.reorder-buttons button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.reorder-item-copy{display:grid;gap:3px;min-width:0;flex:1}.reorder-item-copy strong{color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reorder-item-copy span{color:var(--muted);font-size:.8rem}.reorder-buttons{display:flex;gap:6px}.reorder-buttons button{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#fff;font-size:1.05rem;cursor:pointer}.reorder-buttons button:hover{border-color:var(--accent);background:rgba(181,140,255,.12)}
@media(max-width:760px){.links-list-heading{display:grid}.links-capacity{justify-self:start;display:flex;gap:7px;align-items:baseline}.link-reorder-panel{padding:11px;margin-left:-5px;margin-right:-5px}.link-reorder-item{gap:9px;padding:9px}.link-reorder-item>.status-badge{display:none}.drag-handle{width:38px}.reorder-buttons button{width:36px;height:36px}}
@media(max-width:430px){.link-reorder-item .icon-preview{display:none}.reorder-item-copy span{font-size:.72rem}.reorder-buttons{gap:4px}.reorder-buttons button{width:33px;height:34px}.drag-handle{width:35px;height:42px}}

/* Installazione PWA */
.pwa-nav-install{font:inherit;cursor:pointer}.pwa-install-button::before{content:"↓";display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(24,174,234,.18);color:#7ee2ff}.pwa-install-dialog{width:min(460px,calc(100% - 28px));padding:0;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:#151b26;color:#f4f6fb;box-shadow:0 30px 100px rgba(0,0,0,.65)}.pwa-install-dialog::backdrop{background:rgba(2,5,10,.76);backdrop-filter:blur(6px)}.pwa-install-dialog form{position:relative;padding:28px}.pwa-install-dialog img{display:block;width:86px;height:86px;border-radius:23px;margin:0 auto 16px}.pwa-install-dialog h2{text-align:center;margin:0 0 18px}.pwa-install-dialog ol{display:grid;gap:12px;margin:0 0 22px;padding-left:24px;color:#c5cedd}.pwa-install-dialog li{padding-left:5px}.pwa-install-dialog .btn{width:100%}.pwa-dialog-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;font-size:1.4rem;cursor:pointer}

/* Icone personalizzate dei link */
.custom-icon-upload{margin-top:20px;padding:18px;border-radius:20px;border:1px solid rgba(24,174,234,.22);background:linear-gradient(135deg,rgba(24,174,234,.08),rgba(181,140,255,.06))}.custom-icon-optional{margin-left:7px;color:#9be8ff;background:rgba(24,174,234,.1)}.custom-icon-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 14px}.custom-icon-rules span{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:var(--muted);font-size:.78rem}.custom-icon-rules strong{color:#fff;font-size:.74rem;text-transform:uppercase;letter-spacing:.04em}.custom-icon-preview{display:flex;align-items:center;gap:12px;margin-top:13px;padding:10px 12px;border-radius:15px;background:rgba(0,0,0,.16)}.custom-icon-preview>span{font-weight:800;color:#dce5f2}.custom-icon-remove{margin-top:12px}.custom-link-icon{object-fit:contain}.public-link-icon .custom-link-icon{width:38px;height:38px;border-radius:10px}
@media(max-width:680px){.custom-icon-rules{grid-template-columns:1fr}.custom-icon-upload{padding:14px}}

/* Workflow richieste di accesso */
.nav-notification-badge{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;margin-left:7px;border-radius:999px;background:#ff456d;color:#fff;font-size:.7rem;box-shadow:0 0 0 4px rgba(255,69,109,.12)}.access-requests-card{border-color:rgba(107,231,179,.22)}.access-pending-count{padding:8px 12px;border-radius:999px;background:rgba(255,69,109,.13);border:1px solid rgba(255,69,109,.3);color:#ff9db2;font-weight:850}.access-request-list{display:grid;gap:13px;margin-top:18px}.access-request-item{padding:18px;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.035)}.access-request-item.status-pending{border-color:rgba(255,209,102,.28);background:linear-gradient(135deg,rgba(255,209,102,.07),rgba(255,255,255,.025))}.access-request-item.status-approved{opacity:.75}.access-request-item.status-rejected{opacity:.58}.access-request-main{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.access-request-main>div{display:grid;gap:4px}.access-request-main a{color:#a9dff5}.access-request-item>p{margin:13px 0;color:#c8d0dd}.access-request-meta{display:flex;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:.76rem}.request-status{padding:3px 7px;border-radius:999px;text-transform:uppercase;font-weight:800}.request-status-pending{color:#ffe29a;background:rgba(255,209,102,.1)}.request-status-approved{color:#89f1b7;background:rgba(89,243,169,.1)}.request-status-rejected{color:#ff9aad;background:rgba(255,107,138,.1)}.access-request-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.access-request-actions form{margin:0}.generated-access-code{margin-top:18px}.generated-access-code span{display:block;color:var(--muted);margin-bottom:6px}
@media(max-width:620px){.access-request-main{display:grid}.access-request-main>.status-badge{justify-self:start}.access-request-actions{display:grid}.access-request-actions form,.access-request-actions .btn{width:100%}}

/* Selettore lingua globale */
.language-switcher{position:fixed;right:14px;bottom:14px;z-index:1000;display:flex;gap:4px;padding:5px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(11,15,25,.88);box-shadow:0 12px 35px rgba(0,0,0,.35);backdrop-filter:blur(12px)}.language-switcher a{display:grid;place-items:center;min-width:38px;height:34px;padding:0 8px;border-radius:999px;color:#cdd5e2;text-decoration:none;font-size:.76rem;font-weight:900}.language-switcher a.active{background:linear-gradient(135deg,var(--accent),#18aeea);color:#07121a}.language-switcher a:focus-visible{outline:3px solid #fff;outline-offset:2px}@media(max-width:520px){.language-switcher{right:9px;bottom:9px}.language-switcher a{min-width:35px;height:31px}}
