:root {
  --bg: #0e0e10;
  --bg-transparent: #0e0e1038;  	
  --surface: #18181b;
  --surface-alt: #1f1f23;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f0;
  --text-muted: #8a8a9a;
  --text-dim: #55556a;
  --accent: #6822ff;
  --accent-2: #30d158;
  --accent-3: #6822ff;
  --danger: red;  
  --radius-lg: 22px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gap: 14px;
  --bg-glow: #6822ff;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6{
	color:var(--text);
}

p{
	color:var(--text-muted);
}

        /* Layout Strutturale */
        .app-container {
            padding-top: 80px; /* Spazio per l'header fisso */
            max-width: 1400px;
            margin: 0 auto;
            padding-inline: var(--gap);
        }

        /* Header & Mega Menu */
/*         header {
            position: fixed;
            top: 0; left: 0; right: 0;
            height: 70px;
            background: var(--bg);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
        } */

        .nav-links {
            display: flex;
            gap: 4px;
            list-style: none;
        }

        .nav-item { position: relative; }
        
        .nav-link {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-link:hover { color: var(--text); }










/* =========================
   HEADER MODERNO
========================= */


.logo-mobile {
    display: none;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-transparent);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
} 

/* =========================
   NAV LINKS
========================= */

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
	    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all .25s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}



/* =========================
   MEGA MENU NEXT LEVEL
========================= */

.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    padding: 60px calc((100vw - 1200px) / 2);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    background: var(--bg);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all .45s cubic-bezier(0.16,1,0.3,1);
    z-index: 999;
}

/* Glow top line */
.mega-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

/* ponte anti hover break */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    height: 30px;
}

/* attivazione */
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* =========================
   COLONNE
========================= */

.mega-menu > div {
    opacity: 0;
    transform: translateY(20px);
    transition: all .5s ease;
}

/* stagger animation */
.nav-item:hover .mega-menu > div:nth-child(1) { transition-delay: .05s; opacity:1; transform: translateY(0); }
.nav-item:hover .mega-menu > div:nth-child(2) { transition-delay: .1s; opacity:1; transform: translateY(0); }
.nav-item:hover .mega-menu > div:nth-child(3) { transition-delay: .15s; opacity:1; transform: translateY(0); }
.nav-item:hover .mega-menu > div:nth-child(4) { transition-delay: .2s; opacity:1; transform: translateY(0); }

/* =========================
   TITOLI
========================= */

.mega-menu h4 {
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* =========================
   LINK INTERNI (CARD STYLE)
========================= */

.mega-menu .nav-link {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 8px 16px !important;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.mega-menu .nav-link:hover {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);

    transform: translateY(-2px);
}

a.nav-link.not-ready {
    filter: grayscale(1);
    opacity: .8;
    pointer-events: none;
}

/* Colonna featured */

/* Card Principale */
.mega-featured-card {
  background: var(--accent);
  color: white;
  padding: 30px 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(118, 75, 162, 0.2);
  text-align: center;
}

/* Badge */
.mega-badge {
  display: inline-block;
  background: #fff;
  color: #667eea;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Avatar / Immagine di Copertina */
.avatar-container {
  margin-bottom: 6px;
}

.mega-featured-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

/* Testi */
.mega-featured-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.mega-bio {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
  color: #f0ecf9;
}

/* Lista Link Rapidi */
.mega-links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.mega-link {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  padding: 8px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Pulsante CTA Principale */
.cta-wrapper {
  margin-top: 10px;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 28px;
  border-radius: 50px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.mega-cta span {
  transition: transform 0.2s ease;
}

.mega-cta:hover {
  background: #f8f8f8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mega-cta:hover span {
  transform: translateX(4px);
}

.mega-help-box {
  background: #0e0e10;
  box-shadow: 0px 0px 62px #6822ff54;
  padding: 24px;
  border-radius: 16px;
  height: 180px;
}

.mega-help-box h5 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--text);
}

.mega-help-box p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.mega-help-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-left:0px;
}




/* =========================
   MOBILE EXPERIENCE (IMPORTANTISSIMO)
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    transition: .3s;
}

/* mobile layout */
@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;

        background: rgba(10,10,12,0.98);
        backdrop-filter: blur(20px);

        transform: translateY(-100%);
        transition: .4s ease;
    }

    nav.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        padding: 8px;
        gap: 16px;
		    font-size: 12px;
    }

    .mega-menu {
        position: relative;
        top: 0;
        padding: 20px 0;
        display: none;
        grid-template-columns: 1fr;
        background: transparent;
        border: none;
    }

    .nav-item.open .mega-menu {
        display: grid;
    }

}

.sku-badge {
    background: rgba(104, 34, 255, 0.1);
    color: #8b5cf6;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(104, 34, 255, 0.2);
}

.sku-badge-marketplace {
    background: linear-gradient(45deg, #E91E63, #673AB7);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 6px;
    font-family:
    'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(104, 34, 255, 0.2);
}

.sku-badge-marketplace {
    padding: 8px !important;
}
		
		
.notifications-trigger:hover {
    color: var(--accent) !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger); /* Il rosso che usi per Delete */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface); /* Stacca dal fondo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}		










/* DASHBOARD CORE */
.app-container {
    padding: var(--gap);
    max-width: 1400px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    /* 4 colonne fisse su desktop, si adattano su tablet/mobile */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: var(--gap);
    margin-top: 30px;
}

/* WIDGET BASE */
.bento-item {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Per i bagliori/glow interni */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    background: var(--surface-alt);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* LOGICA DELLE DIMENSIONI (Adattiva) */
.bento-item.large {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-item.full {
    grid-column: span 4;
}

/* TIPOGRAFIA WIDGET */
.widget-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.widget-value {
    font-size: 42px;
    font-weight: 800;
    margin: 10px 0;
    /* background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.widget-sub {
    font-size: 13px;
    font-weight: 500;
    color: #2ecc71; /* Verde crescita */
    display: flex;
    align-items: center;
    gap: 5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
    }
    .bento-item.full {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
        grid-auto-rows: auto;
    }
    .bento-item.large, .bento-item.tall, .bento-item.full {
        grid-column: span 1;
        grid-row: span 1;
    }
}















        /* Varianti Bento */
        .large { grid-column: span 2; grid-row: span 2; }
        .tall { grid-row: span 2; }

        .widget-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
        .widget-value { font-size: 42px; font-weight: 700; margin-top: 10px; color: var(--text); }
        .widget-sub { color: var(--accent-2); font-size: 14px; }

.user-badge {
    /* background: var(--surface-alt); */
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    transition:.3s;
}

.user-badge:hover {
box-shadow:0px 0px 32px #6822ff45;
	transition:.3s;
}
		
		.user-info{
			display: flex;
    align-items: center;
	gap:12px;
		}
		
        .btn-primary {
			font-family: var(--font-body);
            background: var(--accent);
            color: var(--text);
            border: none;
            padding: 12px 24px;
            border-radius: var(--radius-md);
			text-decoration:none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
			justify-content: center;
            gap: 8px;
            transition: var(--transition);
        }
		
		.btn-secondary{
			font-family: var(--font-body);
            background: transparent;
            color: var(--accent)!important;
            border: 1px solid var(--accent)!important;
            padding: 12px 16px;
            border-radius: var(--radius-md);
			text-decoration:none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
			justify-content: center;
            gap: 8px;
            transition: var(--transition);
		}
		
        .btn-outline-danger {
			font-family: var(--font-body);
            background: red;
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: var(--radius-md);
			text-decoration:none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
			justify-content: center;
            gap: 8px;
            transition: var(--transition);
        }	

.btn-outline-widget {
    background: var(--accent);
font-family: var(--font-body);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}		

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
	    background: transparent;
    border: none;
	cursor:pointer;
}

.btn-icon:hover {
    background: var(--surface)!important;
    color: var(--accent) !important;
}

/* Animazione per i nuovi lead */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lead-card {
    animation: fadeIn 0.3s ease-out;
}		

/* Esempio di Bento Grid per la Dashboard */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--gap);
  padding: var(--gap);
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.bento-item:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
}
















/* =========================
MODAL OVERLAY
========================= */

.dk-crm-modal-overlay-fs-99 {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(8, 8, 12, 0.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 999999999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all .25s ease;
}

/* OPEN STATE */

.dk-crm-modal-overlay-fs-99.dk-crm-modal-open-99 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================
WINDOW
========================= */

.dk-crm-modal-window-ios-99 {
width: 92%;
    max-width: 680px;
    max-height: 88vh;
    overflow: hidden;
    border-radius: 32px;
    background: /* Bagliore leggero in alto a sinistra */ radial-gradient(circle at top left, rgb(104 34 255 / 13%) 0%, transparent 45%), /* Il tuo gradiente originale sullo sfondo */ linear-gradient(180deg, rgba(35, 35, 42, .96), rgba(22, 22, 28, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
    color: white;
    font-family: Inter, system-ui, sans-serif;
    transform: scale(.96) translateY(10px);
    transition: all .25s ease;
}

/* ANIMATION OPEN */

.dk-crm-modal-open-99 .dk-crm-modal-window-ios-99 {
    transform: scale(1) translateY(0);
}

/* =========================
TOPBAR
========================= */

.dk-crm-modal-topbar-99 {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 28px 10px 28px;
}

.dk-crm-modal-title-wrap-99 h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.dk-crm-modal-title-wrap-99 p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 14px;
}

/* =========================
CLOSE BUTTON
========================= */

.dk-crm-btn-close-modal-99 {
    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all .18s ease;
}

.dk-crm-btn-close-modal-99:hover {
    background: rgba(255,255,255,.15);
    transform: scale(1.08);
}

/* =========================
SEARCH BAR
========================= */

.dk-crm-search-form-modern-99 {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 14px 28px 24px;
    padding: 10px 14px;
    border-radius: 24px;
    background:var(--bg);
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s ease;
}

.dk-crm-search-form-modern-99:focus-within {
    border-color: var(--accent);
    box-shadow:
    0 0 0 4px rgba(85,155,255,.15);
}

.dk-crm-search-icon-99 {
    color: rgba(255,255,255,.55);
    font-size: 24px;
}

.dk-crm-search-input-modern-99 {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 18px;
    font-family: inherit;
}

.dk-crm-search-input-modern-99::placeholder {
    color: rgba(255,255,255,.35);
}

.dk-crm-search-submit-btn-99 {
        font-family: var(--font-display);
        border: none;
        padding: 8px 16px;
        border-radius: 13px;
        background:
 var(--accent);
        color: var(--text);
        font-weight: 600;
        cursor: pointer;
        transition: all .2s ease;
}

.dk-crm-search-submit-btn-99:hover {
    transform: translateY(-1px);

    box-shadow:
    0 10px 25px rgba(0,110,255,.35);
}

/* =========================
RESULTS
========================= */

.dk-crm-results-wrapper-modern-99 {
    padding: 0 28px 28px;
    overflow-y: auto;
    max-height: 60vh;
}

/* CUSTOM SCROLL */

.dk-crm-results-wrapper-modern-99::-webkit-scrollbar {
    width: 10px;
}

.dk-crm-results-wrapper-modern-99::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.12);
    border-radius: 30px;
}

/* =========================
RESULT HEADER
========================= */

.dk-crm-result-header-99{display: flex;align-items: flex-start;gap: 14px;}

/* RESULT ITEM */

.dk-crm-result-card-modern-99 {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.05);
    transition: all .18s ease;
}

.dk-crm-result-card-modern-99:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.08);
}

.dk-crm-result-card-modern-99 a {
    color: var(--accent);
    text-decoration: none;
    font-size: 21px;
    font-weight: 600;
    display: block;
    /* margin-bottom: 10px; */
}

.dk-crm-result-card-modern-99 p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
    font-size: 15px;
}

/* =========================
RECENT SEARCHES
========================= */

.dk-crm-recent-searches-wrap-99{

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    padding:
    0 28px 18px 28px;
}

.dk-crm-recent-chip-99{

    display:flex;
    align-items:center;
    gap:8px;

    padding:6px 10px;

    border-radius:999px;

    background:
    rgba(255,255,255,.06);

    border:
    1px solid rgba(255,255,255,.06);

    color:
    rgba(255,255,255,.78);

    font-size:13px;

    cursor:pointer;

    transition:all .18s ease;
}

.dk-crm-recent-chip-99:hover{

    background:
    rgba(255,255,255,.12);

    transform:translateY(-1px);
}

/* =========================
DOMAIN
========================= */

.dk-crm-result-domain-99{font-size:12px;color: var(--text-muted);margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* =========================
RESULT TOP
========================= */

.dk-crm-result-top-row-99{

    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:10px;
}

/* =========================
FAVICON
========================= */

.dk-crm-result-favicon-99{

    width:24px;
    height:24px;

    border-radius:7px;

    flex-shrink:0;

    background:white;

    object-fit:cover;

    margin-top:2px;
}

/* =========================
META
========================= */

.dk-crm-result-meta-99{

    flex:1;
    min-width:0;
}

/* =========================
SKELETON
========================= */

.dk-crm-skeleton-card-99{

    height:120px;

    border-radius:24px;

    margin-bottom:16px;

    background:
    linear-gradient(
        90deg,
        rgba(255,255,255,.04),
        rgba(255,255,255,.09),
        rgba(255,255,255,.04)
    );

    background-size:200% 100%;

    animation:
    dkcrmshimmer99 1.2s linear infinite;
}

@keyframes dkcrmshimmer99{

    0%{
        background-position:200% 0;
    }

    100%{
        background-position:-200% 0;
    }
}

/* =========================
LOADING
========================= */

.dk-crm-loading-search-99 {
    text-align: center;
    padding: 50px;
    color: rgba(255,255,255,.65);
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {
    .dk-crm-modal-window-ios-99 {
        width: 96%;
        border-radius: 24px;
    }
    .dk-crm-search-form-modern-99 {
        flex-wrap: wrap;
    }
    .dk-crm-search-submit-btn-99 {
        width: 100%;
    }
}


/* =========================
99 Browser
========================= */
/* MICRO BROWSER */
.dk-crm-micro-browser-99 {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 55vh;
        width: 820px;
        max-width: 100%;
    margin: 0 auto;
    min-height: 320px;
    background: #1a1b1e;
    border-top: 1px solid #333;
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1111111111;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(.22,.68,0,1.2);
  /*box-shadow: 0 -8px 140px rgb(0 0 0);*/
}
.dk-crm-micro-browser-99.dk-crm-mb-open-99 {
    transform: translateY(0);
}

.dk-crm-mb-drag-99 {
    width: 44px; height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 8px auto 4px;
    cursor: grab;
}

.dk-crm-mb-bar-99 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #2a2b2e;
    background: #16171a;
    border-radius: 14px 14px 0 0;
}

.dk-crm-mb-logo-99 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dk-crm-mb-logo-99 img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.dk-crm-mb-dots-99 {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.dk-crm-mb-dot-99 {
    width: 12px; height: 12px;
    border-radius: 50%;
    cursor: pointer;
}
.dk-crm-mb-dot-99.r { background: #ff5f57; }

.dk-crm-mb-dot-99.g { background: #28c840; }

.dk-crm-mb-urlbar-99 {
    flex: 1;
    background: #0f1012;
    border: 1px solid #2e2f33;
    border-radius: 7px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #8a8b90;
    min-width: 0;
    overflow: hidden;
}
.dk-crm-mb-urlbar-99 .material-symbols-outlined {
    font-size: 14px;
    flex-shrink: 0;
    color: #28c840;
}
.dk-crm-mb-urlbar-99 span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #d0d1d5;
}

.dk-crm-mb-actions-99 {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.dk-crm-mb-actions-99 button {
    background: transparent;
    border: 1px solid #2e2f33;
    border-radius: 6px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #8a8b90;
    transition: background 0.15s, color 0.15s;
}
.dk-crm-mb-actions-99 button:hover {
    background: #2a2b2e;
    color: #d0d1d5;
}
.dk-crm-mb-actions-99 button .material-symbols-outlined {
    font-size: 16px;
}

.dk-crm-micro-browser-99 iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
    border-radius: 0;
}

/* Risultato: pulsante apri esterno */
.dk-crm-ext-link-99 {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #888;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dk-crm-ext-link-99:hover { color: #fff; background: #333; }
.dk-crm-ext-link-99 .material-symbols-outlined { font-size: 16px; }














.email-composer {
    position: fixed;
    bottom: -800px; /* Nascosto */
left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: #1f1f2352;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
}

.email-composer.active { bottom: 12px; }

.composer-header {
    padding: 15px 25px;
    /* border-bottom: 1px solid var(--border); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 22px;
}

.field input, .field select, .field textarea {
    font-family: var(--font-body);
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    color: var(--text);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-top: 15px;
}

.editor-toolbar button, .editor-toolbar select {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.editor-toolbar button:hover {
    background: var(--surface);
    color: var(--accent);
}

#editor-content {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 15px;
    color: var(--text);
    outline: none;
}

#editor-content:focus {
    border-color: var(--accent);
}

.btn-close {
    background: transparent;
    border: none;
    color: #f8f8f8;
	cursor:pointer;
}

/* Posizionamento footer e bottoni */
.composer-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

.btn-ai {
    background: linear-gradient(48deg, #6822ff, #6822ff, #a855f7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}


/* Emoji Picker Dropdown */
.toolbar-dropdown { position: relative; }

.dropdown-content {
    display: none; /* Di base ÃƒÂ¨ nascosto */
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 10px;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    border-radius: var(--radius-sm);
    z-index: 3100;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    max-height: 250px;
    overflow-y: auto;
    width: 320px;
}

/* Usa !important per essere sicuro di sovrascrivere il display:none */
.dropdown-content.active { 
    display: grid !important; 
}

.dropdown-content span { 
    cursor: pointer; 
    font-size: 22px; 
    padding: 5px; 
    text-align: center;
    transition: transform 0.1s;
}

.dropdown-content span:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* Personalizzazione scrollbar per renderla sottile (Dark Mode style) */
.dropdown-content::-webkit-scrollbar {
    width: 5px;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Email Editor Suggestions Autocomplete */
.suggestions-menu {
    transition: all 0.3s ease;
}
.suggestion-item {
    transition: background 0.2s, transform 0.1s;
    border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: var(--surface);
    transform: translateX(3px);
}



/* Stili Footer Minimal */
.site-footer {
    width: 100%;
    padding: 40px 20px;
    background-color: var(--bg-transparent);
    font-family: var(--font-display);
    backdrop-filter: blur(20px) saturate(180%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* Spazio tra logo e link */
}

.footer-logo svg {
    display: block;
    color: #333333; /* Colore dell'SVG */
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Spazio tra i link */
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent); /* Colore al passaggio del mouse */
}

.footer-meta {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px; /* Distanza minima dai link */
}

.meta-separator {
    color: var(--text-muted);
}

/* === Settings dropdown === */
.settings-dropdown {
    position: relative;
}

.settings-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.settings-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    padding: 3px;
    border: 2px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-dropdown-trigger:hover .settings-dropdown-avatar,
.settings-dropdown.open .settings-dropdown-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.settings-dropdown-caret {
    font-size: 18px !important;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.settings-dropdown-trigger:hover .settings-dropdown-caret,
.settings-dropdown.open .settings-dropdown-caret {
    color: var(--accent);
    transform: rotate(180deg);
}

/* Menu a tendina */
.settings-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 250px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 8px;
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Piccola freccetta che punta verso l'avatar */
.settings-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 32px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Apertura: on-hover (desktop) o classe .open (click/tastiera) */
.settings-dropdown:hover .settings-dropdown-menu,
.settings-dropdown.open .settings-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.settings-dropdown-header {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    align-items: flex-start;
}

.settings-dropdown-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.settings-dropdown-role {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.settings-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.settings-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.settings-dropdown-item:hover {
    background: var(--surface-alt);
    color: var(--accent);
}

.settings-dropdown-item svg,
.settings-dropdown-item i {
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    stroke: currentColor;
    transition: color 0.15s ease;
}

.settings-dropdown-item:hover svg,
.settings-dropdown-item:hover i {
    color: var(--accent);
}

.settings-dropdown-badge {
    margin-left: auto;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    padding: 2px 6px;
    border-radius: 6px;
}

.settings-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}

/* Riga toggle tema, iniettata da BlendLighter dentro #themeToggleSlot */
.settings-dropdown-theme-toggle {
    cursor: pointer;
}

.settings-dropdown-theme-label {
    font-size: 14px;
}





/* funzioni Leaflet personalizzate*/
.leaflet-popup-content-wrapper {
    background: #1e1e2e !important;
    color: #ffffff !important;
    border: 1px solid var(--accent, #00ffcc);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2)!important;
    border-radius: 8px!important;
}

.leaflet-popup-tip {
    background: #1e1e2e !important;
    border-left: 1px solid var(--accent, #00ffcc);
    border-bottom: 1px solid var(--accent, #00ffcc);
}











/* Loader bar in cima all'iframe */
.dk-crm-mb-loader-99 {
    height: 3px;
    background: transparent;
    overflow: hidden;
    flex-shrink: 0;
}
.dk-crm-mb-loader-bar-99 {
    height: 100%;
    width: 0%;
    background: #28c840;
    transition: width 0.2s;
}
.dk-crm-mb-loader-99.dk-crm-mb-loading-99 .dk-crm-mb-loader-bar-99 {
    animation: dk-crm-progress-99 2s ease-in-out infinite;
}
@keyframes dk-crm-progress-99 {
    0%   { width: 0%;   margin-left: 0%; }
    50%  { width: 60%;  margin-left: 20%; }
    100% { width: 0%;   margin-left: 100%; }
}

/* Dot giallo → spinner durante caricamento */
.dk-crm-mb-dot-99.y {
    background: #febc2e;
    cursor: default;  /* non cliccabile */
    transition: transform 0.3s;
}
.dk-crm-mb-dot-99.dk-crm-mb-dot-spin-99 {
    animation: dk-crm-dot-pulse-99 0.8s ease-in-out infinite alternate;
}
@keyframes dk-crm-dot-pulse-99 {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0.3; transform: scale(0.7); }
}

/* Massimizza: occupa tutto lo schermo sopra tutto */
.dk-crm-micro-browser-99.dk-crm-mb-maximized-99 {
    height: 100vh !important;
    border-radius: 0 !important;
        width: 100%;
}

/* Security badge nella url bar */
.dk-crm-mb-sec-badge-99 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 4px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    cursor: default;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}
.dk-crm-mb-sec-badge-99 .material-symbols-outlined {
    font-size: 13px;
    line-height: 1;
}

/* Stati */
.dk-crm-mb-sec-safe-99     { background: #0a2a0f; color: #28c840; border: 1px solid #28c84033; }
.dk-crm-mb-sec-warning-99  { background: #2a1f00; color: #febc2e; border: 1px solid #febc2e33; }
.dk-crm-mb-sec-danger-99   { background: #2a0a0a; color: #ff5f57; border: 1px solid #ff5f5733; }
.dk-crm-mb-sec-unknown-99  { background: #1e1e22; color: #666;    border: 1px solid #33333355; }
.dk-crm-mb-sec-checking-99 { background: #1a1f2a; color: #5a8fd4; border: 1px solid #5a8fd433; }

/* Icona che pulsa durante il check */
.dk-crm-mb-sec-checking-99 .material-symbols-outlined {
    animation: dk-crm-sec-pulse-99 1.2s ease-in-out infinite alternate;
}
@keyframes dk-crm-sec-pulse-99 {
    from { opacity: 1; }
    to   { opacity: 0.35; }
}











/* Central Messages Dropdown */
.blend-ext-msg-wrapper {
    position: relative;
    display: inline-block;
}

.blend-ext-msg-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: -7px;
    width: 350px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 60px #6822ff59;
    z-index: 1000;
    display: none;
    margin-top: 0;
}

.blend-ext-msg-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    border-radius: 2px;
    z-index: -1;
}

.blend-ext-msg-wrapper.open .blend-ext-msg-menu {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.blend-ext-msg-header {
    padding: 15px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.blend-ext-msg-new-label {
    background: #ef4444;
    color: var(--text);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.blend-ext-msg-list {
    max-height: 400px;
    overflow-y: auto;
}

.blend-ext-msg-item {
    padding: 15px;
    display: flex;
    gap: 12px;
    /* border-bottom: 1px solid var(--border); */
    cursor: pointer;
    transition: background 0.2s;
}

.blend-ext-msg-item:hover {
    background: var(--surface-alt);
}

.blend-ext-msg-item.read {
    opacity: 0.75;
}

.blend-ext-msg-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.blend-ext-msg-btn-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.blend-ext-msg-btn-delete:hover {
    color: #ef4444;
}

.blend-ext-msg-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.blend-ext-msg-icon.type-info {background: var(--accent);}
.blend-ext-msg-icon.type-tutorial { background:var(--accent); }
.blend-ext-msg-icon.type-update { background: var(--accent); }
.blend-ext-msg-icon.type-instruction { background:var(--accent); }

.blend-ext-msg-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.blend-ext-msg-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--text);
}

.blend-ext-msg-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blend-ext-msg-time {
    font-size: 11px;
    color: var(--text);
}

.blend-ext-msg-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .blend-ext-msg-menu {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}


.mobile-only-btn{
    display:none;
}