/* ═══════════════════════════════════════════════════════════════════════════
   KUSTOR CRM 1.0 — DESIGN SYSTEM MASTER CSS (HIGH-LEVEL PROFESSIONAL TIER)
   Linear / Apple / Stripe Inspired Dark Glassmorphism Aesthetic
   Zero Horizontal Overflow • 100% Responsive • Ultra Performant
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #050706;
    --bg-surface-1: #0a100d;
    --bg-surface-2: #0f1812;
    --bg-card: #121e17;
    --bg-card-hover: #17261d;
    --primary: #22c55e;
    --primary-light: #4ade80;
    --primary-hover: #16a34a;
    --primary-glow: rgba(34, 197, 94, 0.35);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --border-color: #1e2e23;
    --border-highlight: rgba(34, 197, 94, 0.35);
    --border-active: #22c55e;
    --accent-blue: #38bdf8;
    --accent-orange: #fbbf24;
    --accent-purple: #c084fc;
    --accent-red: #f87171;
    --accent-teal: #2dd4bf;
    --container-max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bevel: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    --glass-bevel-active: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* ─── GLOBAL VECTOR & BADGE UTILITIES (APPLE ENTERPRISE TIER) ───────────── */
.k-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}
.k-icon-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}
.k-chk-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    flex-shrink: 0;
    margin-right: 8px;
}
.k-chk-svg svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.status-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    margin-right: 6px;
    vertical-align: middle;
}
.status-badge-dot.orange {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}
.status-badge-dot.blue {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}


/* ─── RESET & PREVENT HORIZONTAL OVERFLOW ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

html, body, body.dark-theme, body.kustor-body {
    background-color: #06090e !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 8% 45%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 92% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px !important;
    background-attachment: fixed !important;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── BULLETPROOF BUTTON VECTOR ICONS (PREVENT BLACK BLOB & ACCIDENTAL SIZING) ─── */
.btn-icon-svg,
svg.btn-icon-svg,
.btn svg.btn-icon-svg,
a svg.btn-icon-svg,
button svg.btn-icon-svg {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── UTILITIES & TYPOGRAPHY ─────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #bbf7d0 40%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.green-text {
    color: var(--primary-light) !important;
}

.pulse-dot-green,
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    display: inline-block;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 16px;
    }
}

.section-header-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-pill-tag,
.hero-top-badge {
    display: none !important;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: #fff;
}

.section-desc {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #031508;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.55);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 15.5px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.glow-btn {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

/* ─── 1. NAVBAR GLASSMORPHISM UNIFICATA (HIGH LEVEL & WELL-DIVIDED) ──────── */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(7, 9, 8, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
}

body {
    padding-top: 62px;
}

.btn-nav-secondary {
    background: rgba(56, 189, 248, 0.1) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.38) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.btn-nav-secondary:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

/* BRAND (LEFT) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: contain;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title span {
    color: var(--primary-light);
}

.brand-version-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--primary-light);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 5px;
    border-radius: 5px;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
    white-space: nowrap;
}

/* NAV LINKS (CENTER) — Supports both .nav-links and .nav-links-desktop */
.nav-links,
.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.nav-links-desktop a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 8px 4px 10px 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links-desktop a:hover {
    color: #ffffff;
}

.nav-links a.active,
.nav-links-desktop a.active,
.nav-links a.nav-highlight,
.nav-links-desktop a.nav-highlight {
    color: #ffffff !important;
    font-weight: 800;
}

/* Indicatore verde sotto la scheda attiva */
.nav-links a.active::after,
.nav-links-desktop a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #22c55e;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

.nav-links a.nav-tool-btn.active::after,
.nav-links-desktop a.nav-tool-btn.active::after {
    display: none;
}

/* Modulo Offerte Tool Link in Header */
.nav-links a.nav-tool-btn,
.nav-links a.nav-tool-link,
.nav-links-desktop a.nav-tool-link,
.nav-tool-btn,
.nav-links a[href*="preventivatore"],
.nav-links-desktop a[href*="preventivatore"] {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 14px !important;
    border-radius: 20px;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-links a[href*="preventivatore"]:hover,
.nav-links-desktop a[href*="preventivatore"]:hover,
.nav-tool-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

/* Mobile nav cta NEVER displayed on desktop */
.mobile-nav-cta {
    display: none !important;
}

/* NAV ACTIONS (RIGHT) — Supports both .nav-actions and .nav-actions-desktop */
.nav-actions,
.nav-actions-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn-sm {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

.btn-trial-nav,
.btn-nav-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: 1px solid #4ade80 !important;
    color: #03200d !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.42), 0 3px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-trial-nav:hover,
.btn-nav-primary:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
    border-color: #86efac !important;
    color: #021408 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.65), 0 5px 16px rgba(0, 0, 0, 0.4) !important;
}

/* HAMBURGER BUTTON (MOBILE) */
.mobile-menu-btn {
    display: none;
    background: #111813;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn .hamburger-line,
.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
    display: block;
}

/* Progressive compact desktop navigation between 1261px and 1440px */
@media (max-width: 1440px) and (min-width: 1261px) {
    .brand-sub {
        display: none !important;
    }
    .nav-links,
    .nav-links-desktop {
        gap: 10px;
    }
    .nav-links a,
    .nav-links-desktop a {
        font-size: 12.5px;
        padding: 6px 3px;
    }
    .btn-trial-nav,
    .nav-btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Mobile Menu switch at 1260px for zoom resilience and laptops */
@media (max-width: 1260px) {
    .nav-links,
    .nav-links-desktop,
    .nav-actions,
    .nav-actions-desktop {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .brand-sub {
        display: none;
    }

    .nav-container {
        padding: 10px 16px;
    }

    /* Mobile active navigation dropdown */
    .nav-links.active,
    .nav-links-desktop.active {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: rgba(10, 15, 12, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 20px 30px;
        gap: 10px;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }

    .nav-links.active a,
    .nav-links-desktop.active a {
        font-size: 14.5px;
        padding: 11px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #e2e8f0;
    }

    .nav-links.active .mobile-nav-cta {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
}

/* ─── DRAWER MOBILE SLIDE-IN ─────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active,
.drawer-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: #0a0e0b;
    border-left: 1px solid var(--border-highlight);
    z-index: 2000;
    transform: translateX(100%);
    display: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active,
.mobile-drawer.open {
    display: flex !important;
    transform: translateX(0) !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.drawer-trial-box {
    background: #111a14;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.drawer-trial-badge {
    font-size: 10px;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 6px;
}

.drawer-trial-box strong {
    color: #fff;
    font-size: 14px;
    display: block;
}

.drawer-trial-box p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 10px;
    line-height: 1.4;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.drawer-nav a {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-light);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.drawer-nav a:hover {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.drawer-nav a.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-left: 3px solid #22c55e;
    font-weight: 800;
}

.drawer-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    margin-top: 16px;
}

.drawer-footer small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 10px;
}

/* ─── 2. HERO MASTER SECTION ─────────────────────────────────────────────── */
.hero-master {
    position: relative;
    padding: 40px 0 70px;
    text-align: center;
    overflow: hidden;
}

.hero-glow-spotlight {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.24) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-top-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5.5vw, 54px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(15px, 2.2vw, 17px);
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-light);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.hero-micro-guarantees {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-micro-guarantees span {
    color: #cbd5e1;
}

/* ─── SHOWCASE DUAL HOME SELECTOR & SLIDES ────────────────────────────────── */
.showcase-frame-wrap {
    max-width: 1060px;
    margin: 0 auto;
}

.showcase-selector-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.showcase-tab-btn {
    background: #0d1410;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.showcase-tab-btn:hover {
    background: #121c16;
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.showcase-tab-btn.active {
    background: linear-gradient(145deg, #122117, #0e1812);
    border-color: #22c55e;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(74, 222, 128, 0.2);
}

.showcase-tab-btn .tab-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.showcase-tab-btn.active .tab-icon {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.showcase-tab-btn .tab-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.showcase-tab-btn .tab-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.3px;
}

.showcase-tab-btn.active .tab-title {
    color: #fff;
}

.showcase-tab-btn .tab-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}

.showcase-tab-btn.active .tab-desc {
    color: #86efac;
}

.showcase-tab-btn .tab-active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    transition: width 0.3s ease;
}

.showcase-tab-btn.active .tab-active-indicator {
    width: 100%;
}

.showcase-window-frame {
    background: #0c120e;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 197, 94, 0.12);
    overflow: hidden;
}

/* SHOWCASE SLIDES & FADE */
.showcase-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.showcase-slide.active {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.35s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SHOWCASE DESCRIPTION BOX */
.showcase-desc-box {
    background: #0a0f0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 22px;
    text-align: left;
}

.showcase-desc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge-mode {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-mode.nexus {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.badge-mode.basis {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.badge-shortcut {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.showcase-desc-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

.showcase-desc-text strong {
    color: #fff;
}

/* SHOWCASE PROGRESS BAR (AUTOPLAY) */
.showcase-progress-wrap {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.showcase-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    transition: width 0.1s linear;
}

.showcase-window-header {
    background: #111a14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #eab308; }
.w-dot.green { background: #22c55e; }

.window-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.window-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 800;
    color: #4ade80;
}

.showcase-image-container {
    background: #070908;
    position: relative;
}

.showcase-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-tech-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #0f1611;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    gap: 12px;
    text-align: left;
}

.tech-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-icon {
    font-size: 20px;
}

.tech-badge-item strong {
    display: block;
    font-size: 12.5px;
    color: #fff;
}

.tech-badge-item small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 860px) {
    .showcase-tech-badges {
        grid-template-columns: 1fr 1fr;
    }
    .window-title {
        display: none;
    }
}

@media (max-width: 680px) {
    .showcase-selector-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .showcase-desc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .showcase-desc-box {
        padding: 14px 16px;
    }
}

@media (max-width: 540px) {
    .showcase-tech-badges {
        grid-template-columns: 1fr;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
}

/* ─── 3. I 4 PILASTRI SECTION ────────────────────────────────────────────── */
.pillars-section {
    padding: 70px 0;
    background: #090e0b;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}

.pillar-card {
    background: rgba(13, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pillar-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pillar-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.pillar-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 960px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── 4. FEATURE STUDIO PRO ──────────────────────────────────────────────── */
.feature-studio-section {
    padding: 80px 0;
    position: relative;
}

.studio-tab-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.studio-tab-btn {
    padding: 10px 20px;
    background: #111a14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.studio-tab-btn:hover {
    color: #fff;
    border-color: rgba(34, 197, 94, 0.4);
}

.studio-tab-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--primary);
    color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.studio-viewport {
    background: #0f1612;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.studio-pane {
    display: none;
    animation: fadeInPane 0.3s ease-in-out;
}

.studio-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.pane-text-col .story-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 8px;
    display: inline-block;
}

.pane-text-col h3 {
    font-size: clamp(20px, 3vw, 25px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pane-text-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.story-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.story-list li {
    font-size: 13.5px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.story-list li span {
    color: var(--primary-light);
    font-weight: bold;
}

/* CRAFTED MOCKUPS */
.crafted-card-mockup {
    background: #090e0b;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.crafted-card-mockup.purple-glow {
    border-color: rgba(192, 132, 252, 0.35);
}

.crafted-card-mockup.green-glow {
    border-color: rgba(34, 197, 94, 0.4);
}

.crafted-card-mockup.teal-glow {
    border-color: rgba(45, 212, 191, 0.35);
}

.mockup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #fff;
}

.status-stamp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
}

.mockup-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 14px;
}

.m-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 1fr 1fr;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.m-row.m-head {
    font-weight: 800;
    color: var(--text-muted);
    background: transparent;
}

.m-row strong.num {
    color: #fff;
}

.mockup-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-total strong.grand-num {
    font-size: 18px;
    color: #4ade80;
}

/* VOICE MOCKUP */
.rec-dot-animated {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: pulseGlow 1.5s infinite;
}

.waveform-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    margin: 14px 0;
}

.waveform-anim span {
    width: 4px;
    background: var(--accent-purple);
    border-radius: 4px;
    animation: waveBar 1.2s infinite ease-in-out;
}

.waveform-anim span:nth-child(2) { animation-delay: 0.1s; }
.waveform-anim span:nth-child(3) { animation-delay: 0.2s; }
.waveform-anim span:nth-child(4) { animation-delay: 0.3s; }
.waveform-anim span:nth-child(5) { animation-delay: 0.4s; }
.waveform-anim span:nth-child(6) { animation-delay: 0.2s; }
.waveform-anim span:nth-child(7) { animation-delay: 0.1s; }

@keyframes waveBar {
    0%, 100% { height: 6px; }
    50% { height: 26px; }
}

.voice-transcript-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ai-extracted-box {
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 11.5px;
    color: #c084fc;
}

/* RADAR ITEMS */
.radar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
}

.r-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.r-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.r-dot.yellow { background: #eab308; box-shadow: 0 0 8px #eab308; }
.r-dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.r-info {
    flex-grow: 1;
}

.r-info strong {
    display: block;
    font-size: 12.5px;
    color: #fff;
}

.r-info small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.btn-sollecito {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

/* STATUS BADGES & SVG CONSTRAINTS (GLOBAL) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    vertical-align: middle;
}
.status-badge.success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-badge.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.28);
}
.status-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}
.status-badge.won {
    color: #4ade80;
    font-weight: bold;
}
.status-badge svg {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    display: inline-block;
}

/* SYNC MOCKUP */
.sync-node-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
}

.sync-node-row .node-icon {
    font-size: 22px;
}

.sync-node-row strong {
    font-size: 12.5px;
    color: #fff;
}

.sync-node-row small {
    font-size: 11px;
    color: var(--text-muted);
}

.sync-stream-bar {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: var(--accent-teal);
}

.status-tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}
.status-tag.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-tag.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

@media (max-width: 860px) {
    .pane-grid {
        grid-template-columns: 1fr;
    }
    .studio-viewport {
        padding: 24px 16px;
    }
}

/* ─── 5. CALCOLATORE RISPARMIO ROI ───────────────────────────────────────── */
.roi-section {
    padding: 70px 0;
    background: #090e0b;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.roi-calc-card {
    background: #0f1612;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.roi-calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.roi-slider-header label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

.roi-slider-header strong {
    font-size: 17px;
    color: #4ade80;
}

.roi-slider {
    width: 100%;
    accent-color: #22c55e;
    height: 6px;
    background: #1e2e23;
    border-radius: 4px;
    margin-bottom: 24px;
    cursor: pointer;
}

.roi-assumptions-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.r-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.r-row:last-child { margin-bottom: 0; }
.r-row strong { color: #fff; }

.roi-result-box {
    background: #141e17;
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--radius-md);
    padding: 26px;
    text-align: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.roi-res-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.roi-res-number {
    font-size: clamp(34px, 5vw, 44px);
    font-weight: 900;
    color: #4ade80;
    margin: 8px 0;
}

.roi-res-sub {
    font-size: 12.5px;
    color: var(--text-light);
}

.roi-divider {
    height: 1px;
    background: rgba(34, 197, 94, 0.2);
    margin: 16px 0;
}

.roi-stats-mini {
    display: flex;
    justify-content: space-around;
    font-size: 12.5px;
}

.roi-stats-mini div span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 2px;
}

@media (max-width: 860px) {
    .roi-calc-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .roi-calc-card {
        padding: 24px 16px;
    }
}

/* ─── 6. CONFRONTO DIRETTO ────────────────────────────────────────────────── */
.comparison-section {
    padding: 80px 0;
}

.comp-table-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #0d140f;
}

.comp-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    text-align: left;
}

.comp-table th,
.comp-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-table thead th {
    background: #111a14;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12.5px;
}

.comp-table th.highlight-col,
.comp-table td.highlight-col {
    background: rgba(34, 197, 94, 0.08);
    border-left: 1px solid rgba(34, 197, 94, 0.2);
    border-right: 1px solid rgba(34, 197, 94, 0.2);
}

.table-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-weight: 800;
}

.badge-yes { color: #4ade80; font-weight: 700; }
.badge-warn { color: #fbbf24; }
.badge-no { color: #f87171; }

/* ─── 7. DOWNLOAD SECTION: PROVA 7 GIORNI ─────────────────────────────────── */
.download-section {
    padding: 80px 0;
    background: #090e0b;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.download-steps-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 820px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}

.d-step {
    background: #111a14;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-num {
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #000;
    font-weight: 800;
    font-size: 12px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.d-step strong {
    display: block;
    color: #fff;
    font-size: 13.5px;
}

.d-step small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.d-step-arrow {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .d-step-arrow { display: none; }
}

.download-cards-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.download-card {
    background: #0f1612;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.download-card.featured {
    border-color: var(--border-highlight);
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.12);
}

.dl-badge-top {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #22c55e;
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.dl-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.download-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.dl-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.dl-specs-list span strong {
    color: #cbd5e1;
}

.download-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.dl-cta-btn {
    font-size: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.dl-secondary-link {
    text-align: center;
    margin-top: 10px;
}

.dl-secondary-link a {
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: underline;
}

.dl-subtext {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.defender-notice {
    margin-top: 16px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.45;
    text-align: left;
}

.defender-notice strong {
    color: var(--accent-blue);
}

@media (max-width: 800px) {
    .download-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── 8. FAQ ACCORDION ────────────────────────────────────────────────────── */
.faq-section {
    padding: 80px 0;
}

.faq-accordion-wrap {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(13, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.faq-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.faq-toggle-icon {
    font-size: 20px;
    color: var(--primary-light);
    font-weight: bold;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 20px 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-body {
    display: block;
    animation: fadeInPane 0.2s ease-in-out;
}

/* ─── 9. FOOTER ──────────────────────────────────────────────────────────── */
.footer {
    background: #050806;
    border-top: 1px solid var(--border-color);
    padding: 45px 0 35px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-info {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.footer-info strong {
    color: #fff;
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

@media (max-width: 860px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        justify-content: center;
        gap: 14px;
    }
}

/* ─── COOKIE BANNER ──────────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(14, 22, 17, 0.96);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    backdrop-filter: blur(12px);
}

.cookie-banner.visible {
    display: block;
    animation: fadeInPane 0.3s ease-in-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: #cbd5e1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 11px;
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ─── MISSING UTILITY CLASSES ─── */
.brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pane-cta-wrap {
    margin-top: 14px;
}

.pane-visual-col {
    position: relative;
}

.roi-input-col,
.roi-result-col {
    position: relative;
}

.pillar-icon-box.purple {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.3);
}

.pillar-icon-box.teal {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.3);
}

.pillar-icon-box.blue {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.pillar-badge.blue { color: var(--accent-blue); }
.pillar-badge.teal { color: var(--accent-teal); }
.pillar-badge.purple { color: var(--accent-purple); }

.timer-badge {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.radar-item.alert-urgent { border-left: 2px solid #ef4444; }
.radar-item.pending { border-left: 2px solid #eab308; }
.radar-item.won { border-left: 2px solid #22c55e; }


/* ─── MODULO OFFERTE HERO BUTTON & SPOTLIGHT BANNER ────────────────────── */
.btn-tool-hero {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
    transition: all 0.25s ease;
}

.btn-tool-hero:hover {
    background: rgba(56, 189, 248, 0.24);
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.quote-spotlight-section {
    max-width: var(--container-max-width);
    margin: 40px auto 60px;
    padding: 0 24px;
    width: 100%;
}

.quote-spotlight-card {
    background: linear-gradient(135deg, rgba(14, 28, 20, 0.95) 0%, rgba(13, 23, 32, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.quote-spotlight-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.quote-spotlight-info {
    flex: 1 1 520px;
}

.quote-spotlight-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.quote-spotlight-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.quote-spotlight-desc strong {
    color: #38bdf8;
}

.quote-spotlight-perks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-light);
}

.quote-spotlight-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-tool-action {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.5);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-tool-action:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #031508;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.quote-spotlight-cta small {
    color: #64748b;
    font-size: 11.5px;
}

@media (max-width: 768px) {
    .quote-spotlight-card {
        padding: 24px 20px;
    }
    .quote-spotlight-cta {
        width: 100%;
    }
    .btn-tool-action {
        width: 100%;
        text-align: center;
    }
    .showcase-window-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px;
    }
    .window-title {
        font-size: 11px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .window-status-pill {
        font-size: 9.5px;
        white-space: normal;
        line-height: 1.3;
    }
    .showcase-tech-badges {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .d-step-arrow {
        display: none;
    }
    .d-step {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-master {
        padding: 24px 0 50px;
    }
    .hero-container {
        padding: 0 16px;
        max-width: 100%;
        overflow: hidden;
    }
    .hero-top-badge {
        font-size: 10px;
        padding: 6px 10px;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: -0.5px;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }
    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    .hero-micro-guarantees {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APPLE-STYLE INTERACTIVE HOTSPOTS (SHOWCASE HERO)
   ═══════════════════════════════════════════════════════════════════════════ */
.hotspot-point {
    position: absolute;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 20;
    transform: translate(-50%, -50%);
    outline: none;
}

.hotspot-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: pulseHalo 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes pulseHalo {
    0% { transform: scale(0.6); opacity: 0.85; }
    50% { opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

.hotspot-pin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #08100a;
    border: 2px solid #22c55e;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.8), inset 0 0 6px rgba(74, 222, 128, 0.4);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.hotspot-point:hover .hotspot-pin,
.hotspot-point:focus .hotspot-pin,
.hotspot-point.active .hotspot-pin {
    transform: scale(1.2);
    background: #15261a;
    border-color: #4ade80;
}

.hotspot-card {
    position: absolute;
    width: 270px;
    background: rgba(9, 14, 11, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(34, 197, 94, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    text-align: left;
}

.hotspot-card.pop-right {
    left: 36px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
}

.hotspot-card.pop-left {
    right: 36px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
}

.hotspot-card.pop-top {
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.hotspot-point:hover .hotspot-card.pop-right,
.hotspot-point:focus .hotspot-card.pop-right,
.hotspot-point.active .hotspot-card.pop-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.hotspot-point:hover .hotspot-card.pop-left,
.hotspot-point:focus .hotspot-card.pop-left,
.hotspot-point.active .hotspot-card.pop-left {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.hotspot-point:hover .hotspot-card.pop-top,
.hotspot-point:focus .hotspot-card.pop-top,
.hotspot-point.active .hotspot-card.pop-top {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hotspot-card-badge {
    font-size: 9px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hotspot-card h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hotspot-card p {
    font-size: 11.5px;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 8px;
}

.hotspot-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.hotspot-card-meta strong {
    color: #4ade80;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MASTER WORKSTATION KUSTOR (PC + SMARTPHONE 50/50 LIVE)
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   MASTER WORKSTATION KUSTOR CRM 1.0 (ACCOUNT DEMO COMPLETO A 6 SCHEDE)
   ═══════════════════════════════════════════════════════════════════════════ */
.master-workstation-wrap {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    background: #090e0b;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(34, 197, 94, 0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MODALITÀ SCHERMO INTERO */
.master-workstation-wrap.crm-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 999999 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.master-workstation-wrap.crm-fullscreen .crm-window-body {
    flex: 1;
    height: calc(100vh - 48px);
}

/* 1. BARRA TITOLO APPLICATIVA NATIVA DESKTOP */
/* 1. BARRA TITOLO APPLICATIVA NATIVA DESKTOP (KUSTOR 1:1 FIDELITY) */
.crm-window-topbar {
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: 48px;
    user-select: none;
}

.window-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}

.w-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.15s;
}
.w-dot:hover { transform: scale(1.15); }
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #eab308; }
.w-dot.green { background: #22c55e; }

.crm-brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.kustor-topbar-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
}

.company-demo-name {
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: -0.2px;
}

.kustor-preview-badge {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.6px;
}

/* WINDOW CONTROLS CENTER */
.window-controls-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PILLOLA NOTIFICHE INTERATTIVA (R1) */
.kustor-notif-pill-wrapper {
    position: relative;
}

.kustor-notif-pill {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.kustor-notif-pill:hover {
    background: #282828;
    border-color: rgba(255, 255, 255, 0.2);
}

.notif-bell { font-size: 11px; }
.notif-text { font-size: 11px; }

.notif-counter-badge {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.1;
}

.kustor-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: hidden;
    animation: fadeInSlide 0.2s ease-out;
}

.kustor-notif-dropdown.open {
    display: block;
}

.notif-dropdown-head {
    padding: 10px 14px;
    background: #202020;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #fff;
}

.badge-unread {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(34, 197, 94, 0.05);
}

.notif-item .n-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-item strong {
    display: block;
    font-size: 11.5px;
    color: #fff;
    line-height: 1.25;
}

.notif-item small {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* SCENARIO SELECTOR */
.crm-scenario-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 3px 8px;
}

.scen-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.scen-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.scen-btn:hover { color: #fff; }

.scen-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
    font-weight: 800;
}

/* RIGHT CONTROLS */
.window-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-engine-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 9px;
    border-radius: 14px;
}

/* PULSANTE VERDE ASSISTENTE VOCALE (R1) */
.btn-voice-assistant {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.btn-voice-assistant:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.voice-mic-icon { font-size: 12px; }
.voice-btn-label { font-size: 11px; }

.btn-topbar-tool {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-topbar-tool:hover {
    background: #2a2a2a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.spin-active {
    display: inline-block;
    animation: spinSync 0.6s ease-in-out;
}

@keyframes spinSync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-topbar-phone-discrete {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-topbar-phone-discrete:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
}

.btn-crm-fullscreen {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-crm-fullscreen:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* 2. CORPO APPLICATIVO: SIDEBAR SLIM 105PX + VIEWPORT */
.crm-window-body {
    display: grid;
    grid-template-columns: 105px 1fr;
    min-height: 700px;
    position: relative;
    background: #0d110f;
}

/* SIDEBAR SLIM DESKTOP 105PX (#161616) */
.crm-sidebar {
    width: 105px;
    background: #161616;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6px 0;
    user-select: none;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 100%;
}

.crm-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.crm-nav-item {
    width: 100%;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 5px 3px 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: #9ca3af;
    transition: all 0.15s ease-in-out;
}

.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
}

.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.09);
    border-left: 3px solid #22c55e;
    color: #ffffff;
}

.crm-nav-icon {
    font-size: 19px;
    line-height: 1;
    display: block;
    transition: transform 0.2s;
}

.crm-nav-item:hover .crm-nav-icon {
    transform: scale(1.12);
}

.crm-nav-item.active .crm-nav-icon {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.7));
}

.crm-nav-title {
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.12;
    text-align: center;
    max-width: 95px;
    word-break: break-word;
    letter-spacing: -0.1px;
}

.crm-nav-item.active .crm-nav-title {
    color: #4ade80;
    font-weight: 700;
}

.nav-tab-badge {
    position: absolute;
    top: 4px;
    right: 10px;
    background: #22c55e;
    color: #052e16;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.1;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.crm-sidebar-footer {
    padding: 8px 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.sidebar-mini-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.5px;
}

/* VIEWPORT CENTRALE MULTI-SCHEDA */
.crm-viewport {
    background: #0b110d;
    padding: 16px 20px;
    overflow-y: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.crm-tab-pane {
    display: none;
    animation: fadeInSlide 0.25s ease-out;
}

.crm-tab-pane.active {
    display: block;
}

/* GUIDA CONTESTUALE INTEGRATA ("PERCHÉ LA USI & VANTAGGIO PMI") */
.crm-context-guide {
    background: linear-gradient(145deg, #0e1a12, #09120c);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-badge {
    font-size: 10px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.5px;
    display: inline-block;
}

.guide-text {
    font-size: 11.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

.guide-text strong {
    color: #fff;
}

/* VIEW SWITCH PILLS PER HOME (NEXUS VS BASIS) */
.view-switch-pills {
    display: flex;
    gap: 6px;
}

.view-pill {
    background: #070a08;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.view-pill.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #4ade80;
    font-weight: 800;
}

.home-sub-view {
    display: none;
}

.home-sub-view.active {
    display: block;
    animation: fadeInSlide 0.25s ease-out;
}

/* KPI GRID HOME */
.crm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-card {
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

.kpi-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 700;
}

.kpi-num {
    display: block;
    font-size: 17px;
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.text-emerald {
    color: #4ade80 !important;
}

.kpi-sub {
    font-size: 9.5px;
    color: var(--text-muted);
    display: block;
}

.kpi-sub.positive {
    color: #4ade80;
    font-weight: 700;
}

/* RADAR TRATTATIVE PANEL */
.nexus-radar-panel {
    background: #080d09;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
}

.radar-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.radar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radar-title-group h3 {
    font-size: 12px;
    color: #fff;
    font-weight: 800;
    margin: 0;
}

.radar-count-tag {
    font-size: 10px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 4px;
}

.radar-deals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radar-deal-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.radar-deal-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 197, 94, 0.3);
}

.deal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.deal-status-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.deal-status-dot.yellow { background: #eab308; box-shadow: 0 0 8px #eab308; }
.deal-status-dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.deal-main-info {
    flex: 1;
    line-height: 1.25;
}

.deal-main-info strong {
    display: block;
    font-size: 12px;
    color: #fff;
}

.deal-main-info span {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
}

.deal-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.badge-wait {
    font-size: 10px;
    color: #fca5a5;
}

.badge-prob {
    font-size: 9.5px;
    color: var(--text-muted);
}

.btn-nudge-wa {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-nudge-wa:hover {
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}

/* BASIS GRID PREVIEW */
.basis-grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.basis-card {
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
}

.basis-card h4 {
    font-size: 12px;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.mini-chart-mock {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-bar-item {
    font-size: 10.5px;
    color: var(--text-muted);
}

.c-bar {
    height: 8px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    margin-top: 3px;
}

.margin-stat-center {
    text-align: center;
    padding: 20px 0;
}

.big-margin-stat {
    display: block;
    font-size: 38px;
    font-weight: 900;
    color: #4ade80;
    margin-bottom: 6px;
}

.margin-stat-center p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 280px;
}

/* SCHEDA 2: PREVENTIVI & OFFERTE (BUILDER) */
.quote-builder-box {
    background: #080d09;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.builder-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.builder-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.builder-icon {
    font-size: 22px;
}

.builder-title-group h4 {
    font-size: 13.5px;
    color: #fff;
    margin: 0;
    font-weight: 800;
}

.builder-title-group small {
    font-size: 10px;
    color: var(--text-muted);
}

.builder-actions-top {
    display: flex;
    gap: 8px;
}

.btn-builder-action {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-builder-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.btn-builder-action.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-builder-action.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #fff;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-builder-action.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.6);
}

.pc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ws-input {
    width: 100%;
    background: #050806;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ws-input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.pc-items-wrap {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #050806;
}

.pc-items-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #0e1510;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
}

.btn-add-item-sm {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-item-sm:hover {
    background: #22c55e;
    color: #000;
}

.pc-table-scroll {
    max-height: 140px;
    overflow-y: auto;
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.pc-table th {
    background: #090e0b;
    padding: 5px 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

.pc-table td {
    padding: 3px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.ws-table-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 6px;
    color: #fff;
    font-size: 11.5px;
    font-family: inherit;
    transition: all 0.2s;
}

.ws-table-input:hover,
.ws-table-input:focus {
    background: #101812;
    border-color: rgba(34, 197, 94, 0.4);
    outline: none;
}

.btn-del-ws-row {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 6px;
    transition: transform 0.2s;
}

.btn-del-ws-row:hover {
    transform: scale(1.2);
    color: #ef4444;
}

.pc-tax-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-tax-group label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ws-toggle-iva {
    display: flex;
    gap: 6px;
}

.iva-btn {
    flex: 1;
    background: #050806;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.iva-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
    font-weight: 800;
}

.ws-select {
    width: 100%;
    background: #050806;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: #fff;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.ws-select:focus {
    border-color: #22c55e;
}

.pc-totals-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #050806;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
}

.tot-unit small {
    display: block;
    font-size: 9.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.tot-unit strong {
    display: block;
    font-size: 13px;
    color: #fff;
    font-weight: 800;
}

.tot-unit.hero-unit strong {
    color: #4ade80;
    font-size: 15px;
}

.latency-val {
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

/* SCHEDA 3: RUBRICA CONTATTI */
.contacts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    width: 320px;
}

.contact-search-box {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11.5px;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.contacts-quick-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.contacts-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.contact-card {
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: #0c140e;
    transform: translateY(-2px);
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

.contact-avatar {
    font-size: 20px;
}

.contact-names {
    flex: 1;
    line-height: 1.2;
}

.contact-names strong {
    display: block;
    font-size: 11.5px;
    color: #fff;
}

.contact-names small {
    display: block;
    font-size: 9.5px;
    color: var(--text-muted);
}

.contact-tier-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 8.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.c-stat {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.c-stat strong {
    color: #fff;
}

.contact-card-actions {
    display: flex;
    gap: 6px;
}

.btn-c-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-c-action:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #86efac;
}

/* SCHEDA 4: LISTINI & MARGINI */
.pricelists-table-wrap {
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.pricelist-table td strong {
    color: #fff;
}

.cat-tag {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.cat-tag.clima { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-tag.elettro { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }
.cat-tag.termo { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }

.badge-margin {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-margin.high {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* SCHEDA 5: MAPPA GIRO VISITE */
.btn-optimize-route {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.btn-optimize-route:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.route-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #080d09;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 11px;
}

.r-stat-item span {
    color: var(--text-muted);
    font-size: 10px;
    display: block;
}

.r-stat-item strong {
    font-size: 13px;
    color: #fff;
}

.badge-route-opt {
    color: #4ade80 !important;
}

.vector-map-wrap {
    height: 280px;
    background: #060907;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.map-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.map-route-line {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 45%, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.pin-marker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #22c55e;
    color: #000;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
    border: 2px solid #fff;
    transition: transform 0.2s;
}

.map-pin:hover .pin-marker {
    transform: scale(1.2);
}

.pin-popup {
    background: rgba(14, 23, 16, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 4px;
    white-space: nowrap;
    line-height: 1.15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.pin-popup strong {
    display: block;
    font-size: 10px;
    color: #fff;
}

.pin-popup small {
    display: block;
    font-size: 8.5px;
    color: #86efac;
}

/* SCHEDA 6: CALENDARIO CANTIERE */
.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cal-day-col {
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 240px;
}

.cal-day-col.today {
    border-color: rgba(34, 197, 94, 0.4);
    background: #0a130c;
}

.cal-day-head {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
    text-align: center;
}

.cal-day-head.active-today {
    color: #4ade80;
}

.cal-event-card {
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
}

.cal-event-card strong {
    display: block;
    font-size: 9.5px;
    margin-bottom: 2px;
}

.cal-event-card span {
    display: block;
    color: #fff;
    font-weight: 700;
}

.cal-event-card small {
    display: block;
    color: var(--text-muted);
}

.cal-event-card.green { background: rgba(34, 197, 94, 0.15); border-left: 3px solid #22c55e; }
.cal-event-card.green strong { color: #86efac; }
.cal-event-card.yellow { background: rgba(234, 179, 8, 0.15); border-left: 3px solid #eab308; }
.cal-event-card.yellow strong { color: #fde047; }
.cal-event-card.blue { background: rgba(56, 189, 248, 0.15); border-left: 3px solid #38bdf8; }
.cal-event-card.blue strong { color: #7dd3fc; }
.cal-event-card.purple { background: rgba(192, 132, 252, 0.15); border-left: 3px solid #c084fc; }
.cal-event-card.purple strong { color: #e9d5ff; }

/* ════════ 3. CASSETTO DOCKING SMARTPHONE ════════ */
.smartphone-dock-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 380px;
    height: 100vh;
    background: rgba(8, 13, 9, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
    z-index: 100000;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.smartphone-dock-drawer.open {
    right: 0;
}

.dock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #4ade80;
    font-weight: 800;
}

.btn-close-dock {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #cbd5e1;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-dock:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.smartphone-chassis {
    width: 320px;
    margin: 0 auto;
    height: 540px;
    background: #000;
    border: 4px solid #1e2c22;
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-speaker {
    width: 90px;
    height: 16px;
    background: #000;
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    z-index: 30;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-camera-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f1f14;
    border: 1px solid #1b3d26;
}

.phone-push-notification {
    position: absolute;
    top: -75px;
    left: 12px;
    right: 12px;
    background: rgba(18, 30, 22, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    z-index: 50;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.phone-push-notification.show {
    transform: translateY(85px);
}

.push-app-icon {
    font-size: 18px;
}

.push-content strong {
    display: block;
    font-size: 10.5px;
    color: #4ade80;
}

.push-content p {
    font-size: 11px;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.phone-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0b141a;
    position: relative;
    overflow: hidden;
}

.wa-top-bar {
    background: #1f2c34;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e9edef;
    font-size: 11px;
    z-index: 10;
}

.wa-back-btn {
    font-size: 18px;
    color: #aebac1;
}

.wa-avatar-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wa-contact-info {
    flex: 1;
    text-align: left;
    line-height: 1.2;
}

.wa-sender-name {
    display: block;
    font-size: 11.5px;
    color: #fff;
}

.wa-sender-status {
    font-size: 9px;
    color: #8696a0;
}

.wa-chat-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    text-align: left;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wa-date-divider {
    align-self: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9.5px;
    color: #8696a0;
    margin-bottom: 4px;
}

.wa-bubble {
    max-width: 92%;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.wa-bubble.incoming {
    align-self: flex-start;
    background: #005c4b;
    color: #e9edef;
    border-top-left-radius: 0;
}

.wa-bubble.outgoing-client {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-top-right-radius: 0;
    display: none;
}

.wa-bubble.outgoing-client.show {
    display: block;
    animation: fadeInSlide 0.3s ease-out;
}

.wa-bubble.bubble-pop {
    animation: waBubbleHighlight 0.6s ease-out;
}

@keyframes waBubbleHighlight {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { transform: scale(1.02); box-shadow: 0 0 16px 3px rgba(34, 197, 94, 0.4); }
    100% { transform: scale(1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
}

.wa-pdf-attachment {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 6px;
    padding: 6px 8px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-pdf-attachment:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #22c55e;
}

.pdf-icon-sq {
    font-size: 18px;
}

.pdf-info {
    flex: 1;
}

.pdf-info strong {
    display: block;
    font-size: 10.5px;
    color: #fff;
}

.pdf-info small {
    display: block;
    font-size: 9px;
    color: #8696a0;
}

.pdf-view-badge {
    font-size: 9.5px;
    color: #4ade80;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.wa-price-pill {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 10.5px;
    color: #a7f3d0;
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}

.wa-bubble-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #8696a0;
    margin-top: 2px;
}

.wa-ticks.read {
    color: #53bdeb;
}

.wa-bottom-bar {
    padding: 8px 10px;
    background: #1f2c34;
}

.btn-simulate-client-reply {
    width: 100%;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    border-radius: 8px;
    padding: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-simulate-client-reply:hover {
    background: #22c55e;
    color: #000;
}

/* ════════ 4. MODAL ANTEPRIMA PDF UFFICIALE ════════ */
.pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-modal-overlay.open {
    display: flex;
    animation: fadeInSlide 0.25s ease-out;
}

.pdf-modal-container {
    background: #141f17;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    width: 780px;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(34, 197, 94, 0.2);
}

.pdf-modal-toolbar {
    background: #0e1711;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
}

.pdf-badge-vector {
    font-size: 9.5px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 800;
}

.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pdf-print {
    background: #22c55e;
    color: #000;
    font-weight: 800;
    font-size: 11px;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pdf-print:hover {
    background: #4ade80;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
}

.btn-pdf-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOGLIO A4 STILE DOCUMENTO VETTORIALE */
.pdf-paper-sheet {
    flex: 1;
    background: #ffffff;
    color: #1e293b;
    padding: 36px 40px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.pdf-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pdf-company-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.pdf-company-block p {
    font-size: 10px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.kustor-verified-stamp {
    border: 2px solid #16a34a;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 6px;
    text-align: center;
    transform: rotate(-4deg);
}

.kustor-verified-stamp strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.kustor-verified-stamp small {
    display: block;
    font-size: 8px;
    font-weight: 800;
}

.pdf-divider-line {
    height: 2px;
    background: #e2e8f0;
    margin-bottom: 16px;
}

.pdf-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.pdf-meta-box {
    font-size: 11px;
    line-height: 1.3;
}

.pdf-meta-box.right-align {
    text-align: right;
}

.meta-lbl {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.meta-sub {
    display: block;
    font-size: 10px;
    color: #64748b;
}

.pdf-subject-strip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 11px;
}

.pdf-subject-strip span {
    font-weight: 800;
    color: #64748b;
    margin-right: 6px;
}

.pdf-subject-strip strong {
    color: #0f172a;
    font-size: 12px;
}

.pdf-table-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 11px;
}

.pdf-table-items th {
    background: #f1f5f9;
    color: #475569;
    padding: 7px 10px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid #cbd5e1;
}

.pdf-table-items td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.pdf-totals-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.pdf-totals-table {
    width: 300px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}

.pdf-t-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
    color: #475569;
}

.pdf-t-row.grand-total-row {
    border-top: 2px solid #0f172a;
    margin-top: 6px;
    padding-top: 6px;
    font-weight: 900;
    color: #0f172a;
    font-size: 13px;
}

.pdf-t-row.grand-total-row strong {
    color: #16a34a;
    font-size: 15px;
}

.pdf-footer-terms {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.terms-copy p {
    font-size: 9px;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.signature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sig-box {
    border-top: 1px solid #94a3b8;
    padding-top: 6px;
    font-size: 10px;
    color: #64748b;
}

.sig-line {
    margin-top: 14px;
    font-size: 11px;
    color: #0f172a;
    font-weight: 700;
}

/* RESPONSIVENESS */
@media (max-width: 1080px) {
    .crm-window-body {
        grid-template-columns: 105px 1fr;
    }
    .contacts-grid-list {
        grid-template-columns: 1fr 1fr;
    }
    .crm-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .crm-window-body {
        grid-template-columns: 1fr;
    }
    .crm-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .crm-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .crm-nav-sub,
    .crm-user-profile,
    .crm-sidebar-footer {
        display: none;
    }
    .contacts-grid-list {
        grid-template-columns: 1fr;
    }
    .calendar-week-grid {
        grid-template-columns: 1fr;
    }
    .pc-form-row, .pc-tax-row {
        grid-template-columns: 1fr;
    }
    .pc-totals-strip {
        grid-template-columns: 1fr 1fr;
    }
    .basis-grid-preview {
        grid-template-columns: 1fr;
    }
    .route-stats-bar {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   KUSTOR CRM 1.0 — DESKTOP SIMULATOR EXTENSIONS & MODAL SYSTEM
   ══════════════════════════════════════════════════════════════════════════════ */

/* TopBar Sync Rotation Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-crm-sync.syncing,
.btn-crm-sync.rotating,
.btn-crm-sync.spinning {
    animation: spin 0.8s linear infinite;
    color: #10b981 !important;
}

/* ─── 1. VOICE ASSISTANT MODAL & PULSATING SOUNDWAVE ───────────────────────── */
.voice-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.voice-modal-overlay.open,
.voice-modal-overlay.active {
    display: flex !important;
}

.voice-modal-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.voice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.voice-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.voice-sparkle {
    font-size: 18px;
    color: #10b981;
}

.btn-voice-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-voice-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Soundwave animations */
@keyframes waveExpandRing {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes micCorePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
    }
}

@keyframes eqBarAnimation {
    0%, 100% {
        height: 6px;
    }
    50% {
        height: 32px;
    }
}

.voice-mic-stage {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 25px;
}

.voice-wave-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.5);
    animation: waveExpandRing 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

.voice-wave-ring.r1 { animation-delay: 0s; }
.voice-wave-ring.r2 { animation-delay: 0.8s; }
.voice-wave-ring.r3 { animation-delay: 1.6s; }

.voice-mic-core {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
    animation: micCorePulse 2s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    transition: transform 0.2s ease;
}

.voice-mic-core:hover {
    transform: scale(1.12);
}

.voice-bars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    margin-bottom: 18px;
}

.v-bar {
    width: 5px;
    background: #10b981;
    border-radius: 4px;
    animation: eqBarAnimation 1.2s ease-in-out infinite alternate;
}

.v-bar.b1 { animation-delay: 0.1s; height: 10px; }
.v-bar.b2 { animation-delay: 0.4s; height: 22px; }
.v-bar.b3 { animation-delay: 0.2s; height: 28px; }
.v-bar.b4 { animation-delay: 0.6s; height: 32px; }
.v-bar.b5 { animation-delay: 0.3s; height: 24px; }
.v-bar.b6 { animation-delay: 0.5s; height: 16px; }
.v-bar.b7 { animation-delay: 0.2s; height: 12px; }

.voice-status-text {
    font-size: 14px;
    color: #e4e4e7;
    margin-bottom: 20px;
    line-height: 1.5;
}

.voice-quick-commands {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.voice-cmd-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.voice-cmd-chip:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #ffffff;
    transform: translateX(3px);
}

.chip-mic {
    font-size: 16px;
}

/* ─── 2. SETTINGS WORKSPACE MODAL ──────────────────────────────────────────── */
.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-modal-overlay.open,
.settings-modal-overlay.active {
    display: flex !important;
}

.settings-modal-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    padding: 24px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.btn-settings-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-settings-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.set-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.set-row label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── 3. TOAST NOTIFICATION POPUP ─────────────────────────────────────────── */
.kustor-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #09090b;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kustor-toast.show,
.kustor-toast.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    width: 22px;
    height: 22px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* ─── 4. WHATSAPP TYPING INDICATOR & BLUE TICKS ────────────────────────────── */
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.wa-typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1f2c34;
    border-radius: 10px;
    max-width: 220px;
    font-size: 11px;
    color: #8696a0;
    margin: 6px 0;
}

.wa-typing-indicator.active,
.wa-typing-indicator.show {
    display: flex !important;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.t-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8696a0;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.t-dot:nth-child(1) { animation-delay: 0s; }
.t-dot:nth-child(2) { animation-delay: 0.2s; }
.t-dot:nth-child(3) { animation-delay: 0.4s; }

.wa-ticks.read {
    color: #38bdf8 !important;
}

.wa-bubble.outgoing-client {
    display: none;
}

.wa-bubble.outgoing-client.show,
.wa-bubble.outgoing-client.active {
    display: block !important;
}

.smartphone-dock-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    display: none;
}

.smartphone-dock-drawer.open + .smartphone-dock-backdrop,
.smartphone-dock-backdrop.active {
    display: block;
}

/* ─── 5. OFFERS ARCHIVE BADGES ────────────────────────────────────────────── */
.badge-status-vinta,
.badge-status.vinta {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-status-aperta,
.badge-status.aperta {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-status-inviata,
.badge-status.inviata {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-status-persa,
.badge-status.persa {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ─── 6. MANUAL ACCORDION OPEN / COLLAPSE ─────────────────────────────────── */
.manual-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.manual-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.manual-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.03);
}

.manual-card-head .m-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.manual-card-head .m-toggle-icon {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.manual-card.open .manual-card-head .m-toggle-icon {
    transform: rotate(180deg);
}

.manual-card .manual-card-body {
    padding: 18px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.manual-card:not(.open) .manual-card-body {
    display: none;
}

.manual-card.open .manual-card-body {
    display: block;
}

/* ─── 7. REPORTS FUNNEL VISUALIZATION ─────────────────────────────────────── */
.funnel-container,
.funnel-chart,
.reports-funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.funnel-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
}

.funnel-step-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.funnel-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.funnel-bar {
    height: 100%;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   8. ISOLATED BROWSER PRINT ENGINE (@media print & @page A4)
   ══════════════════════════════════════════════════════════════════════════════ */
@page {
    size: A4 portrait;
    margin: 15mm;
}

@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body, .dark-theme, body.kustor-body {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: #0f172a !important;
    }

    /* Solo se è aperto un modal PDF specifico nel simulatore nascondi il resto */
    body:has(#pdfDocumentModal) * {
        visibility: hidden !important;
    }

    body:has(#pdfDocumentModal) #pdfDocumentModal,
    body:has(#pdfDocumentModal) #pdfDocumentModal *,
    .quote-builder-wrap,
    .quote-builder-wrap *,
    .quote-editor-card,
    .quote-editor-card *,
    .quote-a4-sheet,
    .quote-a4-sheet * {
        visibility: visible !important;
    }

    #pdfDocumentModal {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    #pdfPrintArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    .pdf-modal-toolbar,
    .btn-pdf-print,
    .btn-pdf-close,
    .crm-window-topbar,
    .crm-sidebar,
    .smartphone-dock-drawer,
    #smartphoneDock,
    .top-bar,
    .header,
    footer,
    #cookie-banner {
        display: none !important;
        visibility: hidden !important;
    }
}


/* ══════════════════════════════════════════════════════════════════════════════
   KUSTOR CRM SIMULATOR: COMPLETE 1:1 STYLES FOR ALL 9 PANES & WIDGETS
   ══════════════════════════════════════════════════════════════════════════════ */

/* TopBar Utilities */
.badge-preview-demo, .demo-badge {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.6px;
}

.crm-notif-pill {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.crm-notif-pill:hover {
    background: #282828;
    border-color: rgba(255, 255, 255, 0.2);
}

.crm-notif-badge {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.1;
}

.voice-pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    animation: pulseMicRing 1.8s infinite;
    pointer-events: none;
}
@keyframes pulseMicRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.phone-badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}
.btn-phone-text { font-size: 11px; font-weight: 700; }
.fs-text { font-size: 11px; font-weight: 700; }

/* Nexus Analytics Grid */
.nexus-analytics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 900px) {
    .nexus-analytics-grid { grid-template-columns: 1fr; }
}

.analytics-card {
    background: #111613;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px;
}

.card-head-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.card-head-simple h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.badge-pill-soft {
    font-size: 10px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 10px;
}

.chart-bars-horizontal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
}
.c-month {
    width: 32px;
    color: #94a3b8;
    font-weight: 600;
}
.c-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.c-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #22c55e);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    transition: width 0.4s ease;
}
.c-val {
    width: 55px;
    text-align: right;
    color: #fff;
    font-weight: 700;
}

.conversion-channels-box, .sector-margin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.channel-metric, .sector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
}
.ch-label, .sec-lbl {
    color: #cbd5e1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ch-val {
    font-weight: 800;
    color: #fff;
}
.sec-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
}
.sec-bar-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 3px;
}

/* Home Basis Commesse */
.basis-commesse-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.commesse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.commesse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.commessa-card {
    background: #111613;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}
.commessa-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}
.comm-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}
.comm-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}
.comm-badge.active-now { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.comm-badge.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.comm-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.comm-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 3px;
}
.comm-footer-text {
    font-size: 10px;
    color: #94a3b8;
}

/* Offerte Archive & Tables */
.archive-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.archive-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.archive-title-group h3 {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.archive-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.archive-search-wrap {
    display: flex;
    align-items: center;
    background: #0d110f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 4px 10px;
    gap: 6px;
}
.archive-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 11.5px;
    width: 140px;
}
.archive-status-pills, .contacts-filter-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}
.offer-filter-btn, .c-filter-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.offer-filter-btn:hover, .c-filter-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.offer-filter-btn.active, .c-filter-chip.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}
.offers-archive-box {
    background: #0b0f0d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.archive-table-scroll {
    overflow-x: auto;
}
.archive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
}
.archive-table th {
    background: #111613;
    color: #94a3b8;
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.archive-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    white-space: nowrap;
}
.archive-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.btn-offer-pdf, .btn-offer-wa, .btn-action-view, .btn-contact-quote, .btn-load-contact {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.btn-offer-pdf:hover { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #93c5fd; }
.btn-offer-wa:hover { background: rgba(34, 197, 94, 0.2); border-color: #22c55e; color: #86efac; }
.btn-action-view:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Additional KUSTOR Utilities & Icons */
.archive-icon, .search-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}
.btn-crm-settings {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-crm-settings:hover {
    background: #2a2a2a;
    color: #fff;
}
.c-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.crm-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: hidden;
}
.crm-notif-dropdown.open {
    display: block !important;
}
.emerald { color: #22c55e !important; }
.font-bold { font-weight: 700 !important; }
.n-body {
    flex: 1;
    font-size: 11px;
    line-height: 1.3;
}
.status-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #86efac;
}
.status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.text-muted { color: #94a3b8 !important; }


/* ══════════════════════════════════════════════════════════════════════════ */
/* KUSTOR CRM FLUTTER DESKTOP 1:1 NATIVE WORKSTATION EMBEDDED STYLES        */
/* Guaranteed rendering regardless of external CSS caching                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.master-workstation-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 40px auto;
    background: #0d1310;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 1. TOPBAR APP (FLUTTER APPBAR 1:1) */
.crm-window-topbar {
    width: 100%;
    height: 54px;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.crm-window-topbar::-webkit-scrollbar { display: none; }

.window-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}
.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #22c55e; cursor: pointer; }

.crm-brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kustor-topbar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.company-demo-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}
.kustor-preview-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.window-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.crm-engine-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 11px;
    color: #4ade80;
    white-space: nowrap;
}
.pulse-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    display: inline-block;
}
.crm-scenario-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #1f1f1f;
    padding: 2px;
    border-radius: 8px;
    white-space: nowrap;
}
.scen-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scen-btn.active {
    background: #2b2b2b;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.btn-voice-assistant {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-voice-assistant:hover {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}
.btn-topbar-phone-discrete {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn-crm-fullscreen {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* 2. BODY & SIDEBAR (FLUTTER 1:1) */
.crm-window-body {
    display: flex;
    min-height: 640px;
    position: relative;
    background: #0d1310;
    box-sizing: border-box;
}
.crm-sidebar {
    width: 105px;
    min-width: 105px;
    background: #161616;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px 0;
    box-sizing: border-box;
    overflow-y: auto;
    user-select: none;
}
.crm-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}
.crm-nav-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 9px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}
.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    color: #ffffff;
}
.crm-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s;
}
.crm-nav-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.crm-nav-item:hover .crm-nav-icon {
    color: #ffffff;
}
.crm-nav-item.active .crm-nav-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}
.crm-nav-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.1px;
}
.crm-nav-item.active .crm-nav-title {
    font-weight: 700;
    color: #ffffff;
}
.crm-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 6px 4px;
    border: none;
}
.crm-nav-item-account {
    margin-top: 2px;
}
.nav-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #22c55e;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

/* 3. VIEWPORT & TABS */
.crm-viewport {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: #0d1310;
    box-sizing: border-box;
    overflow-y: auto;
}
.crm-tab-pane {
    display: none;
    width: 100%;
}
.crm-tab-pane.active {
    display: block;
}

/* 4. HOME PRESET HEADER */
.home-preset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.home-preset-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-notif-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.notif-red-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.view-switch-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111814;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #1f2923;
}
.view-pill {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.view-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.home-preset-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-home-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* 5. NEXUS COMMAND CONTAINER */
.nexus-command-container {
    background: #0d1310;
    border: 1.2px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.08);
    display: flex;
    flex-direction: column;
}
.nexus-top-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #121a15;
    border-bottom: 1px solid #1f2923;
}
.nexus-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nexus-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-red { width: 9px; height: 9px; border-radius: 50%; background: #f87171; display: inline-block; }
.dot-yellow { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; display: inline-block; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; display: inline-block; }

.nexus-console-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
}
.nexus-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 4px 10px;
}
.nexus-db-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #4ade80;
}

/* 6. NEXUS 4 KPI ROW */
.nexus-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.nexus-kpi-card {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.kpi-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}
.kpi-card-body {
    display: flex;
    flex-direction: column;
}
.kpi-val {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}
.kpi-trend {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.kpi-trend.purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}
.kpi-badge-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-badge-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-target {
    font-size: 10.5px;
    color: #4ade80;
}
.kpi-subtext {
    font-size: 10.5px;
    color: #64748b;
}
.nexus-kpi-card.highlight-yellow {
    border-color: rgba(251, 191, 36, 0.4);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.nexus-kpi-card.highlight-yellow:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

/* 7. NEXUS SPLIT ROW */
.nexus-split-row {
    display: flex;
    gap: 16px;
    padding: 0 18px 18px 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-split-row { flex-direction: column; }
}
.nexus-offers-box {
    flex: 7;
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.nexus-growth-voice-col {
    flex: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.box-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.live-sync-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.nexus-offers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}
.nexus-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.nexus-offer-row:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
}
.offer-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}
.offer-client {
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-sub {
    color: #94a3b8;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-amount {
    color: #ffffff;
    font-weight: 800;
    font-size: 12.5px;
    margin: 0 12px;
    white-space: nowrap;
}
.offer-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-vinta {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-aperta {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-inviata {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-persa {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.box-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1f2923;
    padding-top: 10px;
    margin-top: auto;
}
.btn-create-mini-offer {
    background: transparent;
    border: none;
    color: #eab308;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-view-all-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-view-all-link:hover { color: #ffffff; }

/* 8. GROWTH CHART & VERTICAL BARS */
.growth-chart-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.vertical-bars-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 120px;
    padding: 12px 0 4px 0;
    box-sizing: border-box;
}
.v-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
    width: 48px;
}
.v-bar-val {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}
.v-bar-track {
    width: 24px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.v-bar-fill {
    width: 100%;
    background: #38bdf8;
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease-out;
}
.v-bar-fill.emerald {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.v-bar-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* 9. COPILOT CARD */
.voice-ai-copilot-card {
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-ai-copilot-card:hover {
    border-color: #22c55e;
    background: #16241b;
}
.voice-copilot-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.voice-copilot-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 10px;
}
.btn-trigger-voice-copilot {
    background: #22c55e;
    color: #000000;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* 10. BOTTOM INTELLIGENCE BAR */
.nexus-bottom-sentinel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #111814;
    border-top: 1px solid #1f2923;
    font-size: 11px;
    color: #94a3b8;
    box-sizing: border-box;
}
.sentinel-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.sentinel-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* 11. BASIS VIEW & DORMANTS */
.basis-dormant-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 18px;
}
.dormant-total-val {
    color: #fbbf24;
    font-weight: 700;
    font-size: 12px;
}
.basis-sub-p {
    color: #94a3b8;
    font-size: 12px;
    margin: 8px 0 14px 0;
    line-height: 1.4;
}
.dormant-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .dormant-offers-grid { grid-template-columns: 1fr; }
}
.dormant-card {
    background: #161e19;
    border: 1px solid #233227;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dormant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 12.5px;
}
.dormant-days {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.dormant-desc {
    color: #94a3b8;
    font-size: 11px;
}
.btn-nudge-wa {
    margin-top: 8px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* KUSTOR CRM FLUTTER DESKTOP 1:1 NATIVE WORKSTATION EMBEDDED STYLES        */
/* Guaranteed rendering regardless of external CSS caching                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.master-workstation-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 40px auto;
    background: #0d1310;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 1. TOPBAR APP (FLUTTER APPBAR 1:1) */
.crm-window-topbar {
    width: 100%;
    height: 54px;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.crm-window-topbar::-webkit-scrollbar { display: none; }

.window-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}
.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #22c55e; cursor: pointer; }

.crm-brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kustor-topbar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.company-demo-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}
.kustor-preview-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.window-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.crm-engine-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 11px;
    color: #4ade80;
    white-space: nowrap;
}
.pulse-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    display: inline-block;
}
.crm-scenario-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #1f1f1f;
    padding: 2px;
    border-radius: 8px;
    white-space: nowrap;
}
.scen-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scen-btn.active {
    background: #2b2b2b;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.btn-voice-assistant {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-voice-assistant:hover {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}
.btn-topbar-phone-discrete {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn-crm-fullscreen {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* 2. BODY & SIDEBAR (FLUTTER 1:1) */
.crm-window-body {
    display: flex;
    min-height: 640px;
    position: relative;
    background: #0d1310;
    box-sizing: border-box;
}
.crm-sidebar {
    width: 105px;
    min-width: 105px;
    background: #161616;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6px 0;
    box-sizing: border-box;
    overflow-y: auto;
    user-select: none;
}
.crm-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
.crm-nav-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 5px 3px 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}
.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    color: #ffffff;
}
.crm-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s;
}
.crm-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.crm-nav-item:hover .crm-nav-icon {
    color: #ffffff;
}
.crm-nav-item.active .crm-nav-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}
.crm-nav-title {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.1px;
}
.crm-nav-item.active .crm-nav-title {
    font-weight: 700;
    color: #ffffff;
}
.crm-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 4px;
    border: none;
}
.crm-nav-item-account {
    margin-top: 1px;
}
.nav-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #22c55e;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

/* 3. VIEWPORT & TABS */
.crm-viewport {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: #0d1310;
    box-sizing: border-box;
    overflow-y: auto;
}
.crm-tab-pane {
    display: none;
    width: 100%;
}
.crm-tab-pane.active {
    display: block;
}

/* 4. HOME PRESET HEADER */
.home-preset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.home-preset-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-notif-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.notif-red-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.view-switch-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111814;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #1f2923;
}
.view-pill {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.view-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.home-preset-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-home-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* 5. NEXUS COMMAND CONTAINER */
.nexus-command-container {
    background: #0d1310;
    border: 1.2px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.08);
    display: flex;
    flex-direction: column;
}
.nexus-top-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #121a15;
    border-bottom: 1px solid #1f2923;
}
.nexus-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nexus-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-red { width: 9px; height: 9px; border-radius: 50%; background: #f87171; display: inline-block; }
.dot-yellow { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; display: inline-block; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; display: inline-block; }

.nexus-console-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
}
.nexus-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 4px 10px;
}
.nexus-db-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #4ade80;
}

/* 6. NEXUS 4 KPI ROW */
.nexus-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.nexus-kpi-card {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.kpi-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}
.kpi-card-body {
    display: flex;
    flex-direction: column;
}
.kpi-val {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}
.kpi-trend {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.kpi-trend.purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}
.kpi-badge-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-badge-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-target {
    font-size: 10.5px;
    color: #4ade80;
}
.kpi-subtext {
    font-size: 10.5px;
    color: #64748b;
}
.nexus-kpi-card.highlight-yellow {
    border-color: rgba(251, 191, 36, 0.4);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.nexus-kpi-card.highlight-yellow:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

/* 7. NEXUS SPLIT ROW */
.nexus-split-row {
    display: flex;
    gap: 16px;
    padding: 0 18px 18px 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-split-row { flex-direction: column; }
}
.nexus-offers-box {
    flex: 7;
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.nexus-growth-voice-col {
    flex: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.box-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.live-sync-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.nexus-offers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}
.nexus-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.nexus-offer-row:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
}
.offer-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}
.offer-client {
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-sub {
    color: #94a3b8;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-amount {
    color: #ffffff;
    font-weight: 800;
    font-size: 12.5px;
    margin: 0 12px;
    white-space: nowrap;
}
.offer-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-vinta {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-aperta {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-inviata {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-persa {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.box-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1f2923;
    padding-top: 10px;
    margin-top: auto;
}
.btn-create-mini-offer {
    background: transparent;
    border: none;
    color: #eab308;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-view-all-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-view-all-link:hover { color: #ffffff; }

/* 8. GROWTH CHART & VERTICAL BARS */
.growth-chart-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.vertical-bars-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 120px;
    padding: 12px 0 4px 0;
    box-sizing: border-box;
}
.v-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
    width: 48px;
}
.v-bar-val {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}
.v-bar-track {
    width: 24px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.v-bar-fill {
    width: 100%;
    background: #38bdf8;
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease-out;
}
.v-bar-fill.emerald {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.v-bar-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* 9. COPILOT CARD */
.voice-ai-copilot-card {
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-ai-copilot-card:hover {
    border-color: #22c55e;
    background: #16241b;
}
.voice-copilot-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.voice-copilot-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 10px;
}
.btn-trigger-voice-copilot {
    background: #22c55e;
    color: #000000;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* 10. BOTTOM INTELLIGENCE BAR */
.nexus-bottom-sentinel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #111814;
    border-top: 1px solid #1f2923;
    font-size: 11px;
    color: #94a3b8;
    box-sizing: border-box;
}
.sentinel-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.sentinel-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* 11. BASIS VIEW & DORMANTS */
.basis-dormant-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 18px;
}
.dormant-total-val {
    color: #fbbf24;
    font-weight: 700;
    font-size: 12px;
}
.basis-sub-p {
    color: #94a3b8;
    font-size: 12px;
    margin: 8px 0 14px 0;
    line-height: 1.4;
}
.dormant-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .dormant-offers-grid { grid-template-columns: 1fr; }
}
.dormant-card {
    background: #161e19;
    border: 1px solid #233227;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dormant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 12.5px;
}
.dormant-days {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.dormant-desc {
    color: #94a3b8;
    font-size: 11px;
}
.btn-nudge-wa {
    margin-top: 8px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* KUSTOR CRM FLUTTER DESKTOP 1:1 NATIVE WORKSTATION EMBEDDED STYLES        */
/* Guaranteed rendering regardless of external CSS caching                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.master-workstation-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 40px auto;
    background: #0d1310;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 1. TOPBAR APP (FLUTTER APPBAR 1:1) */
.crm-window-topbar {
    width: 100%;
    height: 54px;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.crm-window-topbar::-webkit-scrollbar { display: none; }

.window-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}
.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #22c55e; cursor: pointer; }

.crm-brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kustor-topbar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.company-demo-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}
.kustor-preview-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.window-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.crm-engine-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 11px;
    color: #4ade80;
    white-space: nowrap;
}
.pulse-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    display: inline-block;
}
.crm-scenario-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #1f1f1f;
    padding: 2px;
    border-radius: 8px;
    white-space: nowrap;
}
.scen-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scen-btn.active {
    background: #2b2b2b;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.btn-voice-assistant {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-voice-assistant:hover {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}
.btn-topbar-phone-discrete {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn-crm-fullscreen {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* 2. BODY & SIDEBAR (FLUTTER 1:1) */
.crm-window-body {
    display: flex;
    min-height: 640px;
    position: relative;
    background: #0d1310;
    box-sizing: border-box;
}
.crm-sidebar {
    width: 105px;
    min-width: 105px;
    background: #161616;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4px 0;
    box-sizing: border-box;
    overflow-y: auto;
    user-select: none;
}
.crm-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
.crm-nav-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid transparent;
    border-radius: 9px;
    padding: 4px 2px 3px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5px;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}
.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    color: #ffffff;
}
.crm-nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s;
}
.crm-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.crm-nav-item:hover .crm-nav-icon {
    color: #ffffff;
}
.crm-nav-item.active .crm-nav-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}
.crm-nav-title {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.1px;
}
.crm-nav-item.active .crm-nav-title {
    font-weight: 700;
    color: #ffffff;
}
.crm-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 3px 4px;
    border: none;
}
.crm-nav-item-account {
    margin-top: 1px;
}
.nav-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #22c55e;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

/* 3. VIEWPORT & TABS */
.crm-viewport {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: #0d1310;
    box-sizing: border-box;
    overflow-y: auto;
}
.crm-tab-pane {
    display: none;
    width: 100%;
}
.crm-tab-pane.active {
    display: block;
}

/* 4. HOME PRESET HEADER */
.home-preset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.home-preset-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-notif-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.notif-red-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.view-switch-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111814;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #1f2923;
}
.view-pill {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.view-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.home-preset-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-home-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1b261e;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* 5. NEXUS COMMAND CONTAINER */
.nexus-command-container {
    background: #0d1310;
    border: 1.2px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.08);
    display: flex;
    flex-direction: column;
}
.nexus-top-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #121a15;
    border-bottom: 1px solid #1f2923;
}
.nexus-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nexus-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-red { width: 9px; height: 9px; border-radius: 50%; background: #f87171; display: inline-block; }
.dot-yellow { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; display: inline-block; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; display: inline-block; }

.nexus-console-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
}
.nexus-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 4px 10px;
}
.nexus-db-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #4ade80;
}

/* 6. NEXUS 4 KPI ROW */
.nexus-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.nexus-kpi-card {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.kpi-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}
.kpi-card-body {
    display: flex;
    flex-direction: column;
}
.kpi-val {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}
.kpi-trend {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.kpi-trend.purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}
.kpi-badge-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-badge-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}
.kpi-target {
    font-size: 10.5px;
    color: #4ade80;
}
.kpi-subtext {
    font-size: 10.5px;
    color: #64748b;
}
.nexus-kpi-card.highlight-yellow {
    border-color: rgba(251, 191, 36, 0.4);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.nexus-kpi-card.highlight-yellow:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

/* 7. NEXUS SPLIT ROW */
.nexus-split-row {
    display: flex;
    gap: 16px;
    padding: 0 18px 18px 18px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .nexus-split-row { flex-direction: column; }
}
.nexus-offers-box {
    flex: 7;
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.nexus-growth-voice-col {
    flex: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.box-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.live-sync-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.nexus-offers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}
.nexus-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.nexus-offer-row:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
}
.offer-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}
.offer-client {
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-sub {
    color: #94a3b8;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-amount {
    color: #ffffff;
    font-weight: 800;
    font-size: 12.5px;
    margin: 0 12px;
    white-space: nowrap;
}
.offer-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-vinta {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-aperta {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-inviata {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-persa {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.box-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1f2923;
    padding-top: 10px;
    margin-top: auto;
}
.btn-create-mini-offer {
    background: transparent;
    border: none;
    color: #eab308;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-view-all-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-view-all-link:hover { color: #ffffff; }

/* 8. GROWTH CHART & VERTICAL BARS */
.growth-chart-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.vertical-bars-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 120px;
    padding: 12px 0 4px 0;
    box-sizing: border-box;
}
.v-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
    width: 48px;
}
.v-bar-val {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}
.v-bar-track {
    width: 24px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.v-bar-fill {
    width: 100%;
    background: #38bdf8;
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease-out;
}
.v-bar-fill.emerald {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.v-bar-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* 9. COPILOT CARD */
.voice-ai-copilot-card {
    background: #141c16;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-ai-copilot-card:hover {
    border-color: #22c55e;
    background: #16241b;
}
.voice-copilot-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.voice-copilot-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 10px;
}
.btn-trigger-voice-copilot {
    background: #22c55e;
    color: #000000;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* 10. BOTTOM INTELLIGENCE BAR */
.nexus-bottom-sentinel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #111814;
    border-top: 1px solid #1f2923;
    font-size: 11px;
    color: #94a3b8;
    box-sizing: border-box;
}
.sentinel-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.sentinel-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* 11. BASIS VIEW & DORMANTS */
.basis-dormant-box {
    background: #111814;
    border: 1px solid #1f2923;
    border-radius: 14px;
    padding: 18px;
}
.dormant-total-val {
    color: #fbbf24;
    font-weight: 700;
    font-size: 12px;
}
.basis-sub-p {
    color: #94a3b8;
    font-size: 12px;
    margin: 8px 0 14px 0;
    line-height: 1.4;
}
.dormant-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .dormant-offers-grid { grid-template-columns: 1fr; }
}
.dormant-card {
    background: #161e19;
    border: 1px solid #233227;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dormant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 12.5px;
}
.dormant-days {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.dormant-desc {
    color: #94a3b8;
    font-size: 11px;
}
.btn-nudge-wa {
    margin-top: 8px;
    background: #22c55e;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}


/* ════════ GROUND TRUTH FLUTTER 1:1 STYLES ════════ */

/* ============================================================
   KUSTOR CRM - FLUTTER DESKTOP NATIVE THEME (1:1 PIXEL PERFECT)
   Paletta: Primary #22C55E | Background #121212 | Surface #1E1E1E | Sidebar #161616
   ============================================================ */

/* TOPBAR PULSANTI */
.btn-topbar-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 8px;
    color: #22C55E;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-topbar-outline:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22C55E;
}

.btn-topbar-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
}
.topbar-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
}

/* SIDEBAR 105PX NATIVA FLUTTER */
.crm-sidebar {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    background: #161616 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 4px !important;
    box-sizing: border-box;
}

.crm-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.crm-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 10px 4px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative;
    box-sizing: border-box;
}

.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.22) !important;
    border: 1.5px solid #22C55E !important;
    color: #FFFFFF !important;
}

.crm-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    margin-bottom: 4px;
}
.crm-nav-item.active .crm-nav-icon {
    color: #22C55E;
}

.crm-nav-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.crm-nav-item.active .crm-nav-title {
    color: #fff !important;
    font-weight: 700 !important;
}

.nav-tab-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 6px;
}

.crm-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.crm-sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 6px 0;
}

.crm-nav-logout {
    color: #9CA3AF !important;
}
.crm-nav-logout:hover {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

/* VIEWPORT CONTAINER */
.crm-viewport-area {
    flex: 1;
    background: #121212;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* NEXUS DASHBOARD (01_home_nexus.png) */
.nexus-workspace-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #121212;
}

.nexus-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 16px;
}

.nexus-dots-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #4ade80; }

.nexus-title-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #E5E7EB;
    letter-spacing: 0.5px;
}

.nexus-right-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
}

/* 4 KPI CARDS */
.nexus-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.nexus-kpi-card {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-card-label {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.kpi-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.kpi-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.kpi-badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.kpi-card-value {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.kpi-card-sub {
    font-size: 11px;
    color: #6B7280;
}

/* MIDDLE ROW: 2/3 + 1/3 */
.nexus-middle-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.nexus-panel-card {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexus-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-icon { font-size: 16px; }
.panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #F3F4F6;
    margin: 0;
}
.badge-live-sync {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
}

.nexus-recent-offers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nexus-offer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.nexus-offer-row:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.offer-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}
.circle-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.circle-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.offer-details-col {
    flex: 1;
    min-width: 0;
}
.offer-client-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-subject-text {
    font-size: 11px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-amount-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.offer-amount-val {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}
.offer-pill-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
}
.offer-pill-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
}

.nexus-offers-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.btn-nexus-new-offer {
    background: #F59E0B;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}
.btn-nexus-see-all {
    background: transparent;
    color: #9CA3AF;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-nexus-see-all:hover {
    color: #fff;
}

/* BAR CHART */
.nexus-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 32px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.bar-fill {
    width: 22px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}
.bar-fill.fill-green {
    background: #22C55E;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
.bar-label {
    font-size: 11px;
    color: #6B7280;
}
.bar-label.bold-green {
    color: #22C55E;
    font-weight: 700;
}
.bar-tooltip {
    position: absolute;
    top: -6px;
    background: #22C55E;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

/* AI BANNER GEMINI */
.nexus-ai-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.nexus-ai-banner:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22C55E;
}
.ai-mic-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-title-gold {
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
}
.ai-subtitle-quote {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
}

/* PANORAMICA MODULARE */
.nexus-modular-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modular-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modular-controls-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon-refresh, .btn-icon-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modular-title {
    font-size: 16px;
    font-weight: 700;
    color: #E5E7EB;
    margin: 0;
}

/* BOX 46 OFFERTE DORMIENTI */
.nexus-dormant-box {
    background: #1E1E1E;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dormant-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dormant-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dormant-lightning {
    font-size: 20px;
    color: #F59E0B;
}
.dormant-headline {
    font-size: 13px;
    font-weight: 800;
    color: #F59E0B;
}
.dormant-sub {
    font-size: 11px;
    color: #9CA3AF;
}
.btn-gold-see-all {
    background: transparent;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    color: #F59E0B;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
}

.dormant-cards-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.dormant-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 170px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.dormant-card:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}
.dormant-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dormant-tag-offer {
    font-size: 10px;
    font-weight: 700;
    color: #22C55E;
}
.dormant-tag-days {
    font-size: 10px;
    color: #F59E0B;
    font-weight: 600;
}
.dormant-card-client {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dormant-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.dormant-card-val {
    font-size: 12px;
    font-weight: 700;
    color: #D1D5DB;
}
.dormant-card-actions {
    display: flex;
    gap: 6px;
}
.act-icon { font-size: 12px; }

/* 3 DONUT CHARTS */
.nexus-donuts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.nexus-donut-card {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.donut-card-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.donut-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}
.donut-center-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.donut-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.donut-count {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}
.donut-sublabel {
    font-size: 10px;
    color: #9CA3AF;
}
.donut-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.legend-item {
    font-size: 10px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 4px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.green { background: #22C55E; }
.legend-dot.gray { background: #4B5563; }
.legend-dot.cyan { background: #06B6D4; }
.legend-dot.amber { background: #F59E0B; }
.legend-dot.red { background: #EF4444; }

/* FLUTTER VIEW CONTAINER & LISTS */
.flutter-view-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flutter-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flutter-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px;
}
.search-lens-icon {
    color: #9CA3AF;
    font-size: 14px;
}
.flutter-input-clean {
    width: 100%;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
}
.flutter-input-clean::placeholder {
    color: #6B7280;
}

.flutter-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tool-square {
    width: 36px;
    height: 36px;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}
.btn-tool-square:hover {
    background: rgba(255, 255, 255, 0.08);
}
.btn-tool-square.red-tool {
    color: #EF4444;
}
.btn-tool-square.green-tool {
    color: #22C55E;
}

.btn-flutter-primary-pill {
    background: #22C55E;
    color: #000000;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-flutter-primary-pill:hover {
    background: #16a34a;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}
.btn-flutter-danger-pill {
    background: #EF4444;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* CARDS LIST ROWS (OFFERS, CONTACTS, PRODUCTS) */
.flutter-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flutter-card-row {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    cursor: pointer;
}
.flutter-card-row:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.card-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.card-code-cyan {
    font-size: 12px;
    font-weight: 700;
    color: #60A5FA;
    font-family: monospace;
}
.card-title-bold {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}
.card-subtitle-grey {
    font-size: 12px;
    color: #9CA3AF;
}

.card-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.card-amount-bold {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.card-action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.badge-tag-pill {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}
.badge-tag-pill.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}
.badge-tag-pill.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #FB923C;
}
.badge-tag-pill.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}
.badge-tag-pill.red {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* CALENDARIO */
.calendar-top-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calendar-segmented-switch {
    display: inline-flex;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px;
}
.cal-seg-btn {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
}
.cal-seg-btn.active {
    background: #22C55E;
    color: #000;
    font-weight: 700;
}
.calendar-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.calendar-month-headline {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}
.calendar-full-grid {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}
.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
}
.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.cal-day-cell {
    min-height: 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-day-num {
    font-size: 11px;
    color: #6B7280;
    font-weight: 600;
}
.cal-event-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-event-pill.green {
    background: #22C55E;
    color: #000;
}
.cal-event-pill.amber {
    background: #F59E0B;
    color: #000;
}



/* MODALI E DIALOGHI (1:1 FLUTTER) */
.kustor-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.kustor-modal-overlay.active {
    display: flex !important;
}

.kustor-modal-window {
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.kustor-modal-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E1E1E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
}
.appbar-left-action {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.back-arrow {
    font-size: 18px;
    color: #FFFFFF;
}
.modal-title-bold {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}
.btn-appbar-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kustor-modal-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-contact-picker-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
}
.picker-label-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.picker-title {
    font-size: 11px;
    color: #9CA3AF;
    display: block;
    margin-bottom: 4px;
}
.btn-green-add-contact {
    background: #22C55E;
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.modal-section-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}
.section-group-title.text-cyan {
    color: #06B6D4;
}
.btn-green-add-item {
    background: #22C55E;
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.modal-items-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.offer-item-row-edit {
    display: grid;
    grid-template-columns: 100px 1fr 60px 80px 60px 90px 30px;
    gap: 8px;
    align-items: center;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.modal-fields-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.modal-fields-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.modal-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-field-box label {
    font-size: 11px;
    color: #9CA3AF;
}
.flutter-select-dark, .flutter-textarea-dark {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #FFFFFF;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
}
.flutter-select-dark:focus, .flutter-input-clean:focus {
    border-color: #22C55E;
}

/* TOTALS GREEN BOX (1:1 CON SCREENSHOT) */
.modal-totals-green-box {
    background: #161F1A;
    border: 1px solid #22C55E;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.totals-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #D1D5DB;
}
.totals-grand-line {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    color: #22C55E;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(34, 197, 94, 0.3);
}

.btn-save-offer-bottom {
    width: 100%;
    background: #22C55E;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-save-offer-bottom:hover {
    background: #16a34a;
}

/* DIALOG BOXES (IMPOSTAZIONI HOME, VOICE, LAN) */
.kustor-dialog-box {
    width: 90%;
    max-width: 580px;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}
.dialog-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dialog-icon-sliders { font-size: 24px; color: #22C55E; }
.dialog-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}
.dialog-subtitle {
    font-size: 12px;
    color: #9CA3AF;
    margin: 2px 0 0;
}
.dialog-group-title {
    font-size: 11px;
    font-weight: 700;
    color: #22C55E;
    letter-spacing: 0.5px;
    margin: 6px 0;
}

.home-layout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.layout-card-option {
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.layout-card-option.active {
    border: 1.5px solid #22C55E;
    background: rgba(34, 197, 94, 0.12);
}
.layout-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}
.layout-check {
    margin-left: auto;
    color: #22C55E;
    font-weight: bold;
}
.layout-desc {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.3;
}

.dialog-buttons-row {
    display: flex;
    gap: 10px;
}
.btn-outline-green {
    background: transparent;
    border: 1px solid #22C55E;
    border-radius: 10px;
    color: #22C55E;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-outline-grey {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #9CA3AF;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ai-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #262626;
    border-radius: 12px;
    padding: 10px 14px;
}
.ai-provider-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}
.ai-provider-sub {
    font-size: 10px;
    color: #9CA3AF;
}
.btn-green-pill-sm {
    background: #22C55E;
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.w-full { width: 100% !important; }


/* ════════ WORKSTATION DESKTOP SIZING & CONTAINMENT ════════ */
.master-workstation-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #121212 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(34, 197, 94, 0.15) !important;
}

.crm-window-body {
    display: flex !important;
    height: 720px !important;
    max-height: 720px !important;
    background: #121212 !important;
    overflow: hidden !important;
    position: relative !important;
}

.crm-viewport-area {
    flex: 1 !important;
    background: #121212 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    position: relative !important;
}

.crm-tab-pane {
    display: none;
    height: 100%;
}
.crm-tab-pane.active {
    display: block !important;
}

.kustor-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 9999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
}
.kustor-modal-overlay.active {
    display: flex !important;
}

.kustor-modal-window {
    width: 95% !important;
    max-width: 920px !important;
    max-height: 90% !important;
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95) !important;
}

.kustor-dialog-box {
    position: relative !important;
    z-index: 10001 !important;
    margin: auto !important;
}


/* ════════ PIXEL-PERFECT COMPACT FLUTTER LAYOUT ════════ */

/* ============================================================
   KUSTOR CRM - 1:1 EXACT COMPACT DESKTOP PROPORTIONS
   Fits the entire Nexus dashboard (KPIs, Recent Offers, Growth, 
   Dormant Offers, 3 Donuts) on ONE screen with ZERO vertical stretch!
   ============================================================ */

/* WORKSTATION CONTAINER */
.master-workstation-wrap {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    height: 740px !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #121212 !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(34, 197, 94, 0.12) !important;
}

.master-workstation-wrap.crm-fullscreen {
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

/* 1. TOPBAR COMPATTA (44px) */
.crm-window-topbar {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    background: #161616 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.window-controls-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
.window-traffic-lights {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.w-dot {
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
}
.crm-brand-identity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.kustor-topbar-icon {
    width: 22px !important;
    height: 22px !important;
}
.company-demo-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    white-space: nowrap !important;
}
.kustor-preview-badge {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    color: #F59E0B !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
}

.window-controls-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}
.crm-engine-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 12px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    color: #4ade80 !important;
    font-family: monospace !important;
    font-weight: 700 !important;
}
.btn-topbar-outline, .btn-voice-assistant, .btn-topbar-phone-discrete, .btn-crm-fullscreen {
    padding: 3px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    height: 28px !important;
}
.btn-topbar-icon {
    padding: 3px 8px !important;
    height: 28px !important;
}

/* 2. BODY APPLICATIVO */
.crm-window-body {
    flex: 1 !important;
    display: flex !important;
    height: calc(100% - 44px) !important;
    overflow: hidden !important;
    position: relative !important;
    background: #121212 !important;
}

/* 3. SIDEBAR 105PX (NATIVA FLUTTER) */
.crm-sidebar {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    height: 100% !important;
    background: #161616 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 6px 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.crm-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.crm-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 6px 2px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    cursor: pointer !important;
    position: relative !important;
}

.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #FFFFFF !important;
}

.crm-nav-item.active {
    background: rgba(34, 197, 94, 0.22) !important;
    border: 1.5px solid #22C55E !important;
    color: #FFFFFF !important;
}

.crm-nav-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.crm-nav-title {
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    max-width: 88px !important;
}

.nav-tab-badge {
    top: 2px !important;
    right: 4px !important;
    font-size: 8px !important;
    padding: 1px 3px !important;
}

.crm-sidebar-bottom {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.crm-sidebar-divider {
    margin: 4px 0 !important;
}

/* 4. VIEWPORT */
.crm-viewport-area {
    flex: 1 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #121212 !important;
    position: relative !important;
}

/* ════════ NEXUS COMMAND CENTER: COMPACT PIXEL-PERFECT (1:1 CON 01_home_nexus.png) ════════ */
.nexus-workspace-container {
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #121212 !important;
    box-sizing: border-box !important;
}

/* Status Header */
.nexus-status-header {
    padding: 6px 12px !important;
    border-radius: 8px !important;
}
.nexus-title-text {
    font-size: 11px !important;
}
.nexus-right-pill {
    padding: 2px 8px !important;
    font-size: 10px !important;
}

/* 4 KPI Cards */
.nexus-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
}
.nexus-kpi-card {
    padding: 8px 12px !important;
    border-radius: 10px !important;
    gap: 3px !important;
}
.kpi-card-label {
    font-size: 10px !important;
}
.kpi-badge-green, .kpi-badge-blue, .kpi-badge-gold {
    font-size: 9px !important;
    padding: 1px 6px !important;
}
.kpi-card-value {
    font-size: 16px !important;
    font-weight: 800 !important;
}
.kpi-card-sub {
    font-size: 9px !important;
}

/* Middle Row: 2/3 + 1/3 */
.nexus-middle-row {
    display: grid !important;
    grid-template-columns: 1.8fr 1fr !important;
    gap: 8px !important;
}
.nexus-panel-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    gap: 8px !important;
}
.panel-title {
    font-size: 12px !important;
}
.badge-live-sync {
    font-size: 9px !important;
    padding: 1px 6px !important;
}

/* Ultime Offerte List */
.nexus-recent-offers-list {
    gap: 5px !important;
}
.nexus-offer-row {
    padding: 5px 10px !important;
    border-radius: 8px !important;
    gap: 8px !important;
}
.offer-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
}
.offer-client-name {
    font-size: 12px !important;
}
.offer-subject-text {
    font-size: 10px !important;
}
.offer-amount-val {
    font-size: 12px !important;
}
.offer-pill-green, .offer-pill-amber {
    font-size: 9px !important;
    padding: 1px 5px !important;
}

.nexus-offers-footer {
    margin-top: 2px !important;
}
.btn-nexus-new-offer {
    padding: 4px 10px !important;
    font-size: 11px !important;
}
.btn-nexus-see-all {
    font-size: 11px !important;
}

/* Bar Chart */
.nexus-bar-chart {
    height: 70px !important;
    padding: 4px 0 !important;
}
.bar-fill {
    width: 16px !important;
}
.bar-label {
    font-size: 9px !important;
}
.bar-tooltip {
    font-size: 8px !important;
    padding: 1px 3px !important;
    top: -12px !important;
}

/* AI Copilot Card */
.nexus-ai-banner {
    padding: 6px 10px !important;
    border-radius: 8px !important;
    gap: 8px !important;
}
.ai-mic-circle {
    width: 26px !important;
    height: 26px !important;
}
.ai-mic-circle svg {
    width: 15px !important;
    height: 15px !important;
}
.ai-title-gold {
    font-size: 11px !important;
}
.ai-subtitle-quote {
    font-size: 9px !important;
}

/* Panoramica Modulare */
.nexus-modular-section {
    gap: 6px !important;
}
.modular-section-header {
    height: 22px !important;
}
.modular-title {
    font-size: 13px !important;
}
.btn-icon-refresh, .btn-icon-filter {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
}

/* 46 Offerte Dormienti */
.nexus-dormant-box {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 6px !important;
}
.dormant-headline {
    font-size: 11px !important;
}
.dormant-sub {
    font-size: 9px !important;
}
.btn-gold-see-all {
    font-size: 10px !important;
    padding: 2px 8px !important;
}
.dormant-card {
    padding: 6px 8px !important;
    min-width: 150px !important;
    border-radius: 8px !important;
    gap: 4px !important;
}
.dormant-tag-offer, .dormant-tag-days {
    font-size: 9px !important;
}
.dormant-card-client {
    font-size: 11px !important;
}
.dormant-card-val {
    font-size: 11px !important;
}

/* 3 Donut Charts */
.nexus-donuts-row {
    gap: 8px !important;
}
.nexus-donut-card {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 6px !important;
}
.donut-card-title {
    font-size: 11px !important;
}
.donut-center-wrap {
    width: 70px !important;
    height: 70px !important;
}
.donut-count {
    font-size: 15px !important;
}
.donut-sublabel {
    font-size: 8px !important;
}
.legend-item {
    font-size: 9px !important;
}

/* ════════ FLUTTER LISTS (OFFERTE, CONTATTI, PRODOTTI) ════════ */
.flutter-view-container {
    padding: 10px 14px !important;
    gap: 10px !important;
}
.flutter-toolbar-row {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #121212 !important;
    padding: 4px 0 !important;
    gap: 8px !important;
}
.flutter-search-field {
    padding: 6px 12px !important;
    border-radius: 8px !important;
}
.flutter-input-clean {
    font-size: 12px !important;
}
.btn-tool-square {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}
.btn-flutter-primary-pill {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 16px !important;
}
.flutter-cards-list {
    gap: 6px !important;
}
.flutter-card-row {
    padding: 8px 12px !important;
    border-radius: 8px !important;
}
.card-code-cyan {
    font-size: 11px !important;
}
.card-title-bold {
    font-size: 13px !important;
}
.card-subtitle-grey {
    font-size: 11px !important;
}
.card-amount-bold {
    font-size: 13px !important;
}

/* CALENDAR COMPACT */
.calendar-top-controls {
    margin-bottom: 6px !important;
}
.calendar-month-headline {
    font-size: 15px !important;
    margin: 4px 0 !important;
}
.cal-day-cell {
    min-height: 52px !important;
    padding: 4px !important;
}
.cal-day-num {
    font-size: 9px !important;
}
.cal-event-pill {
    font-size: 8px !important;
    padding: 1px 3px !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   HOME DASHBOARD: NEXUS vs BASIS SEPARATION & COMPACT PROPORTIONS (R2)
   ═══════════════════════════════════════════════════════════════════════ */

/* TopBar Quick Switcher Pill */
.home-preset-toggle {
    display: flex;
    align-items: center;
    background: #141C16;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}
.preset-tab-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.preset-tab-btn:hover {
    color: #FFFFFF;
}
.preset-tab-btn.active {
    background: #22C55E;
    color: #000000;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Home Subviews Visibility */
.home-subview {
    display: none;
    width: 100%;
}
.home-subview.active {
    display: block;
}

/* Nexus Performance Box in Right Column */
.nexus-performance-box {
    margin-top: 10px;
    background: #111814;
    border: 1px solid #1F2923;
    border-radius: 10px;
    padding: 8px 10px;
}
.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}
.perf-total {
    font-size: 10px;
    color: #94A3B8;
}
.perf-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.perf-metric-card {
    background: #162019;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.perf-label {
    font-size: 9px;
    color: #94A3B8;
}
.perf-val {
    font-size: 13px;
    font-weight: 800;
}
.perf-val.val-green { color: #4ADE80; }
.perf-val.val-blue { color: #38BDF8; }
.perf-val.val-purple { color: #C084FC; }

/* KUSTOR SENTINEL Bar */
.nexus-bottom-sentinel-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 14px !important;
    background: #111814 !important;
    border: 1px solid #1F2923 !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    font-size: 10.5px !important;
    color: #94A3B8 !important;
}
.sentinel-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.sentinel-shield-icon {
    font-size: 14px;
}
.sentinel-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #4ADE80;
}

/* ════════ BASIS WORKSPACE STYLING ════════ */
.basis-workspace-container {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #121212;
}
.basis-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #1F2923;
}
.basis-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.basis-icon {
    font-size: 24px;
}
.basis-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}
.basis-sub {
    font-size: 11px;
    color: #94A3B8;
    margin: 2px 0 0 0;
}
.basis-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.basis-card {
    background: #111814;
    border: 1px solid #1F2923;
    border-radius: 12px;
    padding: 12px 14px;
}
.basis-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.basis-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}
.basis-card-badge {
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    padding: 2px 6px;
    border-radius: 4px;
}
.basis-categories-row, .basis-geo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.basis-bar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.basis-bar-item .bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #E2E8F0;
    margin-bottom: 3px;
}
.basis-bar-item .progress-track {
    width: 100%;
    height: 6px;
    background: #1F2923;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
}
.progress-bar-fill.fill-green { background: #22C55E; }
.progress-bar-fill.fill-blue { background: #38BDF8; }
.progress-bar-fill.fill-amber { background: #F59E0B; }
.progress-bar-fill.fill-purple { background: #A855F7; }
.progress-bar-fill.fill-cyan { background: #06B6D4; }

.geo-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.geo-pill {
    background: #162019;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: #E2E8F0;
}
.basis-events-list, .birthdays-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #162019;
    border: 1px solid #1F2923;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.event-row:hover {
    background: #1C2B22;
}
.event-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.event-badge.badge-blue { background: rgba(56, 189, 248, 0.2); color: #38BDF8; }
.event-badge.badge-green { background: rgba(74, 222, 128, 0.2); color: #4ADE80; }
.event-badge.badge-amber { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.event-title {
    font-size: 11.5px;
    color: #FFFFFF;
}
.event-sub {
    font-size: 10px;
    color: #94A3B8;
}
.birthday-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #162019;
    border: 1px solid #1F2923;
    border-radius: 8px;
}
.bday-avatar {
    font-size: 18px;
    margin-right: 8px;
}
.bday-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}
.bday-info strong {
    font-size: 11.5px;
    color: #FFFFFF;
}
.bday-info span {
    font-size: 10px;
    color: #94A3B8;
}
.btn-wa-followup {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid #22C55E;
    color: #4ADE80;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-wa-followup:hover {
    background: #22C55E;
    color: #000000;
}
.btn-link-action {
    background: transparent;
    border: none;
    color: #4ADE80;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.basis-donuts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   REQUIREMENT R3: FLUTTER WORKSTATION DETAIL ROUTE VIEWPORT (1:1 FLUTTER)
   ═══════════════════════════════════════════════════════════════════════ */

.crm-detail-route-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    z-index: 45;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    animation: flutterSlideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.crm-detail-route-viewport.closing {
    animation: flutterSlideOutRight 0.18s ease-in forwards;
}

@keyframes flutterSlideInRight {
    from { transform: translateX(28px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes flutterSlideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(28px); opacity: 0; }
}

/* FLUTTER DETAIL APPBAR */
.flutter-detail-appbar {
    height: 48px;
    min-height: 48px;
    background: #1E1E1E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.flutter-detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.flutter-detail-back-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22C55E;
    color: #22C55E;
}

.flutter-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.flutter-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FLUTTER DETAIL BODY */
.flutter-detail-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* CUBI MODULARI FLUTTER */
.flutter-cube-card {
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.flutter-cube-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2C2C2C;
    padding-bottom: 10px;
}

.flutter-cube-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.flutter-cube-title svg, .flutter-cube-title .cube-icon {
    color: #22C55E;
    font-size: 16px;
}

/* KEYPAD ACTIONS BAR */
.flutter-keypad-matrix {
    display: flex;
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333333;
}

.flutter-keypad-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: transparent;
    border: none;
    border-right: 1px solid #333333;
    color: #E5E7EB;
    cursor: pointer;
    transition: all 0.2s;
}

.flutter-keypad-btn:last-child {
    border-right: none;
}

.flutter-keypad-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.flutter-keypad-btn .k-icon {
    font-size: 18px;
    margin-bottom: 3px;
}

.flutter-keypad-btn .k-label {
    font-size: 10px;
    font-weight: 700;
}

/* 2x2 CONNECTED OFFERS GRID */
.connected-offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.connected-stat-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.connected-stat-tile:hover {
    transform: translateY(-2px);
}

.connected-stat-tile.green { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.06); }
.connected-stat-tile.blue { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.06); }
.connected-stat-tile.red { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.06); }
.connected-stat-tile.amber { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.06); }

.stat-tile-val { font-size: 20px; font-weight: 800; }
.stat-tile-lbl { font-size: 11px; font-weight: 700; opacity: 0.9; margin-top: 2px; }

/* TABELLE DETTAGLIO RIGHE ARTICOLI */
.detail-items-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-items-table th {
    background: #262626;
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px;
    border-bottom: 1px solid #333333;
}

.detail-items-table td {
    padding: 10px;
    font-size: 13px;
    color: #E5E7EB;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-items-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Ensure .crm-nav-logout has styling */
.crm-nav-logout {
    width: 100%;
    background: transparent;
    border: none;
    padding: 5px 3px 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    text-align: center;
    color: #9ca3af;
    transition: all 0.15s ease-in-out;
}
.crm-nav-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* NOTIFICATIONS DROPDOWN PANEL */
.crm-notif-dropdown {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 320px;
    background: #141b16;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: hidden;
}
.crm-notif-dropdown.open,
.crm-notif-dropdown.active {
    display: block !important;
}



/* ══════════════════════════════════════════════════════════════════════════ */
/* ENTERPRISE WORKFLOW SHOWCASE (ROBOTIZED DEMONSTRATIONS & MANAGERIAL TOUR)  */
/* ══════════════════════════════════════════════════════════════════════════ */

.enterprise-showcase-container {
    margin-top: 45px;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.showcase-header {
    text-align: center;
    margin-bottom: 34px;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.showcase-badge .pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseGlow 2s infinite ease-in-out;
}

.showcase-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.showcase-subtitle {
    font-size: 16.5px;
    color: #94a3b8;
    max-width: 840px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* PERSONA FILTER BAR */
.persona-filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.persona-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.persona-chips-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.persona-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.persona-chip:hover {
    border-color: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.persona-chip.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.persona-chip .chip-sub {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
    opacity: 0.85;
}

.persona-chip.active .chip-sub {
    color: #86efac;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APPLE-GRADE UNIFIED WORKSTATION SHOWCASE & 60FPS MOTION SYSTEM
   100% Real Software Interface • Zero Vertical Cuts • Connected Stepper Rail
   ═══════════════════════════════════════════════════════════════════════════ */

.workstation-section {
    width: min(94%, 1120px);
    margin: 20px auto 60px;
    box-sizing: border-box;
    position: relative;
}

/* ── 1. Connected Stepper Rail (01 > 02 > 03 > 04 > 05) ── */
.stage-stepper-rail {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto 26px;
}
.stage-stepper-line {
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}
.stage-stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    transition: none !important;
}
.stage-stepper-nodes {
    display: grid;
    position: relative;
    z-index: 2;
    gap: 12px;
}
.stage-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.stage-step-item:hover {
    transform: translateY(-2px);
}
.stage-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b111c;
    border: 2px solid rgba(255, 255, 255, 0.12);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.stage-step-item:hover .stage-step-circle {
    border-color: rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
}
.stage-step-item.active .stage-step-circle {
    border-color: #10b981;
    color: #ffffff;
    background: linear-gradient(135deg, #064e3b, #065f46);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
/* Concentric Breathing Pulse Ring on Active Step */
.stage-step-item.active .stage-step-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.45);
    animation: stepperPulseRing 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}
@keyframes stepperPulseRing {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
.stage-step-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stage-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.25s ease;
}
.stage-step-item.active .stage-step-title {
    color: #ffffff;
}
.stage-step-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.25s ease;
}
.stage-step-item.active .stage-step-sub {
    color: #10b981;
}

/* ── 2. Workstation Window Chassis & 3D Breathing Aura ── */
.workstation-wrap {
    position: relative;
    width: 100%;
}
.workstation-aura {
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.12), transparent 70%);
    filter: blur(48px);
    z-index: 0;
    opacity: 0.85;
    transition: background 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
    border-radius: 32px;
}
.workstation-window {
    position: relative;
    z-index: 1;
    background: #0a0f19;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 32px rgba(16, 185, 129, 0.08);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Top macOS-Grade Navigation Bar */
.window-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(180deg, #131b2a 0%, #0c121e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    user-select: none;
}
.window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.window-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.window-dots .d-red { background: #ff5f56; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.window-dots .d-yellow { background: #ffbd2e; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.window-dots .d-green { background: #27c93f; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.window-app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}
.window-logo {
    border-radius: 4px;
}
.window-app-title {
    letter-spacing: -0.01em;
}
.window-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
}
.window-status-pill .status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}
.window-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.window-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
}
.hud-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}

/* ── 3. Showcase Stage & Slides (100% Real Software View, Zero Cuts) ── */
.showcase-stage {
    background: #080c14;
    position: relative;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}
.showcase-slide {
    display: none;
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.988);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.showcase-slide.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}
.workstation-real-capture {
    position: relative;
    width: 100%;
    background: #080c14;
    display: flex;
    flex-direction: column;
}
.stage-canvas-inner {
    position: relative;
    width: 100%;
    line-height: 0;
}
.showcase-real-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* ── 4. Interactive Radar Hotspots (Animation 4) ── */
.stage-radar-beacon {
    position: absolute;
    z-index: 15;
    cursor: pointer;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-beacon-dot {
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease, background 0.2s ease;
}
.stage-radar-beacon:hover .radar-beacon-dot {
    transform: scale(1.3);
    background: #4ade80;
    box-shadow: 0 0 14px #4ade80;
}
.radar-beacon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    animation: beaconPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes beaconPing {
    0% { transform: scale(0.6); opacity: 0.9; }
    80%, 100% { transform: scale(2.2); opacity: 0; }
}
.radar-callout-card {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(11, 17, 28, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 8px 14px;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(56, 189, 248, 0.2);
    z-index: 20;
}
.stage-radar-beacon:hover .radar-callout-card,
.stage-radar-beacon.active .radar-callout-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── 5. Showcase Bottom Live Metric Caption Bar ── */
.showcase-caption-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    background: #0c121e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    user-select: none;
}
.showcase-caption-bar .caption-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.showcase-caption-bar .caption-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.showcase-caption-bar .caption-badge.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.showcase-caption-bar .caption-badge.blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.showcase-caption-bar .caption-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.showcase-caption-bar .caption-badge.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.showcase-caption-bar .caption-title {
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 700;
}
.showcase-caption-bar .caption-metrics {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    flex-wrap: wrap;
}

/* ── 6. Dynamic Skill Triptych (3 Cards Under Workstation) ── */
.stage-skill-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}
.stage-skill-card {
    background: rgba(13, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-bevel), 0 8px 24px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}
.stage-skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: var(--glass-bevel-active), 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 197, 94, 0.12);
}
.stage-skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stage-skill-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}
.stage-skill-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.stage-skill-badge.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.stage-skill-badge.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.stage-skill-badge.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.stage-skill-badge.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.stage-skill-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 2px;
}
.stage-skill-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
}

/* Responsive Breakpoints for Workstation & Stepper */
@media (max-width: 860px) {
    .stage-stepper-nodes {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }
    .stage-step-circle {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    .stage-step-title {
        font-size: 11px;
    }
    .stage-step-sub {
        display: none;
    }
    .stage-stepper-line {
        top: 19px;
    }
    .stage-skill-triptych {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 640px) {
    .stage-stepper-nodes {
        gap: 4px !important;
    }
    .stage-step-circle {
        width: 32px;
        height: 32px;
        font-size: 11px;
        margin-bottom: 4px;
    }
    .stage-step-title {
        font-size: 9.5px;
        max-width: 58px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .stage-stepper-line {
        top: 16px;
    }
    .showcase-caption-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
    }
    .showcase-caption-bar .caption-metrics {
        gap: 10px;
        font-size: 11.5px;
    }
    .window-app-title {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }
    .window-status-pill {
        display: none !important;
    }
    .window-view-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}


.logic-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.35;
}

.logic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logic-list li {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.55;
    position: relative;
    padding-left: 20px;
}

.logic-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.logic-card.problem .logic-list li::before {
    color: #f87171;
}

.logic-list strong {
    color: #f1f5f9;
}

.roi-metric-callout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.roi-kpi-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #1e293b;
}

.roi-number {
    font-size: 26px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    min-width: 105px;
}

.roi-label {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    line-height: 1.4;
}

.roi-summary-note {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.5;
    margin-top: auto;
}

/* HIGH CONVERTING ACTION BANNER */
.showcase-conversion-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    border-radius: 22px;
    padding: 44px 30px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
    margin-bottom: 60px;
}

.conversion-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    margin-bottom: 16px;
}

.conversion-heading {
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.conversion-text {
    font-size: 15.5px;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.conversion-actions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.conversion-micro-guarantees {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1160px) {
    .enterprise-logic-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .showcase-title {
        font-size: 26px;
    }
    .conversion-heading {
        font-size: 23px;
    }
    .persona-chips-group {
        flex-direction: column;
        width: 100%;
    }
    .persona-chip {
        width: 100%;
        justify-content: center;
    }
    .conversion-actions-row {
        flex-direction: column;
    }
    .conversion-actions-row .btn {
        width: 100%;
    }
    .conversion-micro-guarantees {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
}

/* ─── FLUID RESPONSIVE UTILITIES FOR FLUID ZOOM SCALING ──────────────────── */
.fluid-container {
    width: min(94%, 1160px);
    margin: 0 auto;
}

.fluid-container-narrow {
    width: min(94%, 840px);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .window-status-pill {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .window-dots {
        display: none !important;
    }
}


/* ─── KUSTOR REFINED SECTIONS (HOME POLISH) ────────────────────────── */
.metrics-strip {
    width: min(92%, 1160px);
    margin: 44px auto 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
    box-sizing: border-box;
}
.metric-box {
    background: rgba(13, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.metric-box:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(34, 197, 94, 0.1);
}
.metric-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.metric-val.green { color: #4ade80; text-shadow: 0 0 20px rgba(74, 222, 128, 0.25); }
.metric-val.cyan { color: #38bdf8; text-shadow: 0 0 20px rgba(56, 189, 248, 0.25); }
.metric-val.amber { color: #fbbf24; text-shadow: 0 0 20px rgba(251, 191, 36, 0.25); }
.metric-val.purple { color: #c084fc; text-shadow: 0 0 20px rgba(192, 132, 252, 0.25); }
.metric-label {
    font-size: 13.5px;
    line-height: 1.5;
    color: #94a3b8;
    font-weight: 500;
}

.workflow-3steps {
    padding: 70px 0 80px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}
.steps-container {
    width: min(92%, 1160px);
    margin: 0 auto;
    box-sizing: border-box;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin-top: 48px;
    box-sizing: border-box;
}
.step-card {
    background: rgba(13, 20, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 34px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.12);
}
.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.step-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}
.step-card p {
    font-size: 14.5px;
    line-height: 1.62;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

.bridge-section {
    padding: 24px 0 44px;
    width: 100%;
    box-sizing: border-box;
}
.bridge-grid {
    width: min(92%, 1160px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 24px;
    box-sizing: border-box;
}
.bridge-card {
    background: rgba(13, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.bridge-card.green {
    border: 1px solid rgba(34, 197, 94, 0.22);
}
.bridge-card.green:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 197, 94, 0.15);
}
.bridge-card.blue {
    border: 1px solid rgba(56, 189, 248, 0.22);
}
.bridge-card.blue:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.15);
}
.bridge-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.bridge-tag {
    display: inline-flex;
    margin: 0 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
}
.bridge-tag.green {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.bridge-tag.blue {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
}
.bridge-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 8px 0;
    letter-spacing: -0.015em;
    text-align: left;
}
.bridge-desc {
    font-size: 13.5px;
    line-height: 1.52;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
    text-align: left;
}
.bridge-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 4px auto 0;
    align-self: center;
}
.bridge-link-btn.green {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.bridge-link-btn.green:hover {
    background: #22c55e;
    color: #052e16;
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
}
.bridge-link-btn.blue {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.bridge-link-btn.blue:hover {
    background: #38bdf8;
    color: #082f49;
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.solutions-grand-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.solutions-grand-sub {
    font-size: clamp(15px, 1.3vw, 18px);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTORS GRID (PENSATO PER LA TUA PROFESSIONE) - APPLE GRADE
   ══════════════════════════════════════════════════════════════════════════ */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 36px;
    margin-bottom: 60px;
}
@media (max-width: 1080px) {
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 680px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }
}

.sector-box {
    background: rgba(15, 21, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 24px 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.sector-box > * {
    position: relative;
    z-index: 2;
}
.sector-box .sector-watermark-svg {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 56px;
    height: 56px;
    opacity: 0.11;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.sector-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.12);
}
.sector-box:hover .sector-watermark-svg {
    opacity: 0.25 !important;
    transform: scale(1.08) rotate(-2deg) !important;
}
.sector-box.officine .sector-watermark-svg { color: #fbbf24; }
.sector-box.installatori .sector-watermark-svg { color: #38bdf8; }
.sector-box.agenti .sector-watermark-svg { color: #4ade80; }
.sector-box.studi .sector-watermark-svg { color: #c084fc; }
.sector-box.salute .sector-watermark-svg { color: #2dd4bf; }
.sector-box.negozi .sector-watermark-svg { color: #38bdf8; }

.sector-box.officine:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(251, 191, 36, 0.14); }
.sector-box.installatori:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(56, 189, 248, 0.14); }
.sector-box.agenti:hover { border-color: rgba(74, 222, 128, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(74, 222, 128, 0.14); }
.sector-box.studi:hover { border-color: rgba(192, 132, 252, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(192, 132, 252, 0.14); }
.sector-box.salute:hover { border-color: rgba(45, 212, 191, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(45, 212, 191, 0.14); }
.sector-box.negozi:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px rgba(56, 189, 248, 0.14); }

.sector-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sector-tag {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
}
.sector-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.015em;
}

/* Problem Section */
.sector-critique {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sector-critique-label {
    font-size: 11px;
    font-weight: 700;
    color: #f87171;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sector-critique p {
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
}
.sector-critique p strong {
    color: #cbd5e1;
}

/* Real-World Use Case Box */
.sector-scenario {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scenario-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.scenario-header svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}
.scenario-story {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}
.scenario-story strong.accent {
    color: #ffffff;
}

/* Resolution Pills Row */
.sector-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 4px;
}
.sector-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARCHITECTURAL COMPARISON VISUAL (SICUREZZA & CONFRONTO)
   ══════════════════════════════════════════════════════════════════════════ */
.arch-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
@media (max-width: 900px) {
    .arch-showcase-grid {
        grid-template-columns: 1fr;
    }
}
.arch-card {
    background: rgba(15, 21, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}
.arch-card.kustor {
    border-color: rgba(34, 197, 94, 0.3);
}
.arch-card.cloud {
    border-color: rgba(239, 68, 68, 0.25);
}
.arch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.arch-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.arch-card-img-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #090c13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.arch-card-img-frame img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.arch-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}
.arch-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.arch-card-list li {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}
.arch-card-list li strong {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   APPLE & AUTODESK QUALITY TRANSFORMATION (INDEX.HTML SHOWCASE)
   ══════════════════════════════════════════════════════════════════════════ */

/* Macro Section Spacing */
.macro-section {
    padding: 100px 0;
    position: relative;
    box-sizing: border-box;
}

/* Monumental Typography */
.tech-mono-pill {
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-monument-title {
    font-size: clamp(36px, 5.2vw, 64px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}
.hero-monument-sub {
    font-size: clamp(16px, 1.5vw, 19px);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 28px;
    font-weight: 400;
}

/* 3-Metric High Contrast Strip */
.hero-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 860px;
    margin: 32px auto 0;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .hero-metrics-strip {
        grid-template-columns: 1fr;
        max-width: 420px;
        padding: 0 12px;
        gap: 12px;
    }
}
.hero-metric-cell {
    background: rgba(15, 21, 32, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.hero-metric-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.35);
}
.metric-cell-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 8px;
}
.metric-cell-val span {
    text-align: center !important;
    margin: 0 auto !important;
    display: inline-block !important;
}
.metric-cell-val span.accent-green { color: #4ade80; }
.metric-cell-val span.accent-blue { color: #38bdf8; }
.metric-cell-val span.accent-amber { color: #fbbf24; }
.metric-cell-lbl {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
    font-weight: 500;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Watermark numeri giganti semi-trasparenti nel flusso in 3 passi */
.step-card {
    position: relative;
    overflow: hidden;
}
.step-card-num-watermark {
    position: absolute;
    top: 6px;
    right: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.step-card:hover .step-card-num-watermark {
    opacity: 0.36;
    transform: scale(1.08);
}
.step-card.step-cyan .step-card-num-watermark { color: #38bdf8; }
.step-card.step-green .step-card-num-watermark { color: #4ade80; }
.step-card.step-purple .step-card-num-watermark { color: #c084fc; }
.step-card > *:not(.step-card-num-watermark) {
    position: relative;
    z-index: 2;
}

/* Watermark icone SVG semi-trasparenti nei 6 Pilastri */
.pillar-card {
    position: relative;
    overflow: hidden;
}
.pillar-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.pillar-watermark-svg {
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 140px;
    height: 140px;
    stroke: currentColor;
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.pillar-card:hover .pillar-watermark-svg {
    opacity: 0.40;
    transform: scale(1.14) rotate(-3deg);
}
.pillar-card.p-green .pillar-watermark-svg { color: #4ade80; }
.pillar-card.p-blue .pillar-watermark-svg { color: #38bdf8; }
.pillar-card.p-teal .pillar-watermark-svg { color: #2dd4bf; }
.pillar-card.p-amber .pillar-watermark-svg { color: #fbbf24; }
.pillar-card.p-purple .pillar-watermark-svg { color: #c084fc; }
.pillar-card > *:not(.pillar-watermark-svg) {
    position: relative;
    z-index: 2;
}

/* Watermark icone SVG semi-trasparenti nelle 4 Card di Migrazione */
.import-feature-card {
    position: relative;
    overflow: hidden;
}
.import-card-watermark-svg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 82px;
    height: 82px;
    stroke: currentColor;
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.import-feature-card.ic-green .import-card-watermark-svg { color: #4ade80; }
.import-feature-card.ic-cyan .import-card-watermark-svg { color: #38bdf8; }
.import-feature-card.ic-amber .import-card-watermark-svg { color: #fbbf24; }
.import-feature-card.ic-purple .import-card-watermark-svg { color: #c084fc; }
.import-feature-card:hover .import-card-watermark-svg {
    opacity: 0.40;
    transform: scale(1.16) rotate(-2deg);
}
.import-feature-card > *:not(.import-card-watermark-svg) {
    position: relative;
    z-index: 2;
}

/* Watermark icone SVG semi-trasparenti nello Showcase 3-card triptych */
.stage-skill-card {
    position: relative;
    overflow: hidden;
}
.stage-skill-watermark-svg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 96px;
    height: 96px;
    stroke: currentColor;
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.stage-skill-card:hover .stage-skill-watermark-svg {
    opacity: 0.40;
    transform: scale(1.14) rotate(-3deg);
}
.stage-skill-card > *:not(.stage-skill-watermark-svg) {
    position: relative;
    z-index: 2;
}

/* ════ UNIVERSAL SITE-WIDE WATERMARK & CARD MOTION ENGINE ════ */
.dl-spec-card,
.step-tile {
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.dl-spec-card:hover,
.step-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 197, 94, 0.15);
}

.dl-spec-watermark,
.hash-box-watermark,
.alt-banner-watermark {
    opacity: 0.20 !important;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}

.bridge-watermark-svg {
    position: absolute;
    top: 20px;
    left: 24px;
    width: 56px;
    height: 56px;
    stroke: currentColor;
    fill: none;
    opacity: 0.13 !important;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}
.bridge-card.green .bridge-watermark-svg { color: #4ade80; }
.bridge-card.blue .bridge-watermark-svg { color: #38bdf8; }

.dl-spec-card:hover .dl-spec-watermark {
    opacity: 0.40 !important;
    transform: scale(1.16) rotate(-3deg) !important;
}
.bridge-card:hover .bridge-watermark-svg {
    opacity: 0.26 !important;
    transform: scale(1.08) rotate(-2deg) !important;
}

.hash-box:hover .hash-box-watermark,
.alt-banner:hover .alt-banner-watermark {
    opacity: 0.40 !important;
    transform: translateY(-50%) scale(1.15) rotate(-3deg) !important;
}

.step-card-num-watermark,
.step-watermark-num {
    opacity: 0.20 !important;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}

.step-card:hover .step-card-num-watermark,
.step-tile:hover .step-watermark-num {
    opacity: 0.42 !important;
    transform: scale(1.12) translateY(-3px) !important;
}

.dl-spec-card > *:not(.dl-spec-watermark),
.step-tile > *:not(.step-watermark-num) {
    position: relative;
    z-index: 2;
}

/* ════ GEMINI/AUTODESK INTERACTIVE FEATURE SHOWCASE ════ */
.feature-showcase-section {
    padding: 120px 0 100px;
    width: 100%;
    position: relative;
}
.feature-stage-container {
    width: min(92%, 1160px);
    margin: 0 auto;
}
.feature-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .feature-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .feature-tabs-nav {
        grid-template-columns: 1fr;
    }
}
.feature-tab-btn {
    background: rgba(15, 21, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
    width: 100%;
}
.feature-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}
.feature-tab-btn.active {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(34, 197, 94, 0.12);
}
.feature-tab-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-tab-btn.active .feature-tab-icon {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}
.feature-tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feature-tab-tag {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}
.feature-tab-btn.active .feature-tab-tag {
    color: #4ade80;
}
.feature-tab-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* Feature Display Stage */
/* ════ MONUMENTAL FULL-WIDTH FEATURE STAGE (APPLE / LINEAR GRADE) ════ */
.feature-display-stage {
    background: rgba(15, 21, 32, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 32px 80px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Header & Stepper Tier */
.stage-header-monumental {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stage-monumental-title {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    text-align: center;
}
.stage-monumental-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 28px;
    max-width: 720px;
    text-align: center;
}

/* Connected Stepper Rail (1 > 2 > 3 > 4) */
.stage-stepper-rail {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 10px;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
}
.stage-stepper-line {
    position: absolute;
    top: 19px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}
.stage-stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    width: 100%;
}
.stage-stepper-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
    gap: 16px;
}
.stage-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.stage-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0d141e;
    border: 2px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-step-item.active .stage-step-circle,
.stage-step-item:hover .stage-step-circle {
    background: radial-gradient(circle at 50% 30%, #153223, #0a1711);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), inset 0 0 8px rgba(34, 197, 94, 0.3);
    transform: scale(1.08);
}
.stage-step-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.stage-step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.stage-step-sub {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 200px;
}

/* 2. Full-Width Hardware Chassis */
.stage-hardware-chassis {
    width: 100%;
    background: #070b12;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 32px 80px -15px rgba(0, 0, 0, 0.85),
        0 0 60px -20px rgba(34, 197, 94, 0.15);
    overflow: hidden;
    position: relative;
}
.stage-chassis-bar {
    height: 40px;
    background: #0b111a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.stage-chassis-traffic {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stage-chassis-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
}
.stage-hardware-chassis:hover .stage-chassis-dot.r { background: #ef4444; }
.stage-hardware-chassis:hover .stage-chassis-dot.y { background: #f59e0b; }
.stage-hardware-chassis:hover .stage-chassis-dot.g { background: #10b981; }
.stage-chassis-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stage-chassis-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stage-chassis-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.stage-screen-view {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #040609;
}
.stage-screen-view::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, transparent 40%);
    pointer-events: none;
}
.stage-hardware-img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: top center;
}

/* 3. Three-Column Skill Cards (Trittico) */
.stage-skill-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.stage-skill-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 197, 94, 0.15);
}
.stage-skill-icon-well {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    flex-shrink: 0;
}
.stage-skill-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.stage-skill-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    flex-grow: 1;
}
.stage-skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stage-skill-tag strong {
    color: #4ade80;
}

/* Responsive queries */
@media (max-width: 960px) {
    .stage-stepper-nodes {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stage-stepper-line {
        display: none;
    }
    .stage-skill-triptych {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
@media (max-width: 580px) {
    .stage-stepper-nodes {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: flex-start;
    }
    .stage-step-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
    }
    .stage-step-body {
        align-items: flex-start;
    }
    .stage-step-sub {
        max-width: none;
    }
    .stage-chassis-meta {
        display: none;
    }
}

section[id] { scroll-margin-top: 72px; }



/* ═══════════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE ENGINE (ZERO OVERFLOW, PERFECT FIT)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .section-header-center {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    .tech-mono-pill {
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
        font-size: 9.5px !important;
        padding: 4px 10px !important;
        letter-spacing: 0.4px !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    .section-title {
        font-size: clamp(21px, 6vw, 28px) !important;
        line-height: 1.22 !important;
        word-break: break-word !important;
    }
    .section-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 0 4px !important;
    }
    .workstation-section {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 15px auto 40px !important;
        box-sizing: border-box !important;
    }
    .stage-stepper-rail {
        width: 100% !important;
        padding: 0 4px !important;
        margin-bottom: 18px !important;
        box-sizing: border-box !important;
    }
    .stage-stepper-line {
        top: 16px !important;
        left: 8% !important;
        right: 8% !important;
    }
    .stage-stepper-nodes {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 2px !important;
    }
    .stage-step-item {
        padding: 2px !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    .stage-step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    .stage-step-title {
        font-size: 10px !important;
        line-height: 1.2 !important;
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .stage-step-sub {
        display: none !important;
    }
    .workstation-window {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .window-nav-bar {
        padding: 8px 10px !important;
    }
    .window-app-title {
        max-width: 140px !important;
        font-size: 10.5px !important;
    }
    .window-view-badge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }
    .showcase-caption-bar {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .showcase-caption-bar .caption-title {
        font-size: 12px !important;
    }
    .showcase-caption-bar .caption-metrics {
        font-size: 11px !important;
        gap: 8px !important;
    }
    .stage-skill-triptych {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .stage-skill-card {
        padding: 16px 16px !important;
    }
}



/* Mobile Grid Clamping & Zero-Overflow Guard */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .workstation-section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    .stage-stepper-rail {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }
    .stage-stepper-nodes {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 2px !important;
        width: 100% !important;
    }
    .stage-step-item {
        min-width: 0 !important;
        padding: 2px 1px !important;
        overflow: hidden !important;
    }
    .stage-step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    .stage-step-title {
        font-size: 9.5px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    .stage-step-sub {
        display: none !important;
    }
    .tech-mono-pill {
        font-size: 9px !important;
        padding: 3px 8px !important;
        letter-spacing: 0.3px !important;
    }
    .section-title {
        font-size: clamp(20px, 5.8vw, 26px) !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }
    .section-desc {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }
}



/* ═══════════════════════════════════════════════════════════════════
   GLOBAL ROOT ZERO-OVERFLOW ENFORCER & TABLE SCROLL CONTAINER
   ═══════════════════════════════════════════════════════════════════ */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

#hero {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero-glow-soft {
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Comparison Table Horizontal Scroll Wrapper */
.comp-table-container,
.comparison-section .table-wrap,
.comp-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 860px) {
    .radar-callout-card {
        display: none !important;
    }
    .comp-table {
        min-width: 600px !important;
    }
}



/* ─── Apple-Grade Mobile Stepper & Title Layout ─── */
.stage-mobile-active-label {
    display: none;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
    .section-title {
        font-size: clamp(20px, 5.6vw, 24px) !important;
        line-height: 1.25 !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
    .stage-step-body {
        display: none !important;
    }
    .stage-stepper-rail {
        width: 100% !important;
        max-width: 290px !important;
        margin: 0 auto 20px !important;
        position: relative !important;
    }
    .stage-stepper-nodes {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2 !important;
    }
    .stage-step-item {
        padding: 0 !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }
    .stage-step-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
        margin-bottom: 0 !important;
    }
    .stage-stepper-line {
        top: 17px !important;
        left: 17px !important;
        right: 17px !important;
        width: calc(100% - 34px) !important;
        margin: 0 !important;
    }
    .stage-mobile-active-label {
        display: block !important;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #4ade80;
        margin-top: 10px;
        font-family: 'JetBrains Mono', monospace;
        letter-spacing: -0.01em;
        transition: color 0.3s ease;
    }
    .workstation-wrap {
        overflow: hidden !important;
    }
    .workstation-aura {
        inset: 0 !important;
        filter: blur(20px) !important;
    }
}


.stage-radar-beacon { display: none !important; }
