/* --- WEBLOW COMMERCE OS STYLES v4.0 (Final Visuals) --- */

.app-container {
    /* DARK MODE */
    --bg-main: #09090b; --bg-side: #18181b; --bg-panel: #27272a;
    --border: #3f3f46; --text-main: #f4f4f5; --text-dim: #a1a1aa;
    --accent: #8b5cf6; --accent-glow: rgba(139, 92, 246, 0.4);
    --input-bg: #18181b;
    
    width: 95%; max-width: 1600px; min-height: 80vh; height: auto;
    margin: 40px auto; margin-bottom: 150px;
    display: flex; flex-direction: column;
    background: var(--bg-main); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
    color: var(--text-main); font-family: 'Inter', sans-serif;
    position: relative; z-index: 10;
    color-scheme: dark;
}

/* Light Mode */
.app-container.light-theme {
    --bg-main: #fdf2f8; --bg-side: #fff; --bg-panel: #fff; --border: #e5e7eb;
    --text-main: #1f2937; --text-dim: #6b7280; --accent: #7c3aed; --input-bg: #fff;
    color-scheme: light;
}

/* --- LAYOUT & UTILS --- */
.app-toolbar { height: 60px; background: var(--bg-side); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.app-brand { color: var(--text-main); font-weight: bold; font-family: 'Rajdhani'; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.badge-v { padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
.btn-exit { color: #ff5555; border: 1px solid #ff5555; padding: 5px 15px; border-radius: 4px; text-decoration: none; font-size: 0.8rem; }
.erp-workspace { flex: 1; display: flex; }
.erp-sidebar { width: 260px; background: var(--bg-side); border-right: 1px solid var(--border); padding: 20px; }
.erp-content { flex: 1; padding: 30px; background: var(--bg-main); }
.erp-header { display: flex; justify-content: space-between; margin-bottom: 30px; align-items: center; }
.erp-header h2 { margin: 0; color: var(--text-main); font-family: 'Rajdhani'; text-transform: uppercase; letter-spacing: 1px; }

/* Profilo */
.user-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid var(--accent); background: rgba(139, 92, 246, 0.1); color: var(--accent); }
.u-name { color: var(--text-main); font-weight: bold; }

/* Nav */
.erp-nav a { display: block; color: var(--text-dim); padding: 12px 15px; margin-bottom: 5px; text-decoration: none; border-radius: 6px; transition: 0.2s; }
.erp-nav a:hover, .erp-nav a.active { background: linear-gradient(90deg, rgba(139,92,246,0.1), transparent); color: var(--accent); border-left: 3px solid var(--accent); }
.pulsate { animation: pulse 2s infinite; background: #ef4444; color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.6rem; float: right; }

/* --- DASHBOARD WIDGETS --- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card.shop-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 25px; position: relative; overflow: hidden; }
.s-label { color: var(--text-dim); font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.s-val { font-size: 2.2rem; font-weight: 800; margin: 10px 0; color: var(--text-main); font-family: 'Rajdhani'; }
.s-trend.up { color: #00ff88; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #00ff88; font-weight: bold; background: rgba(0,255,136,0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; }
.dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; animation: blink 1s infinite; }

/* Dashboard Split */
.dashboard-split { display: grid; gap: 40px !important; }
.panel-box { background: var(--bg-panel); border: 1px solid var(--border); padding: 25px; border-radius: 12px; }
.panel-box h3 { margin-top:0; color:var(--text-main); font-size:1.1rem; border-bottom:1px solid var(--border); padding-bottom:15px; margin-bottom:20px; }

/* --- FUNNEL --- */
.funnel-container { display: flex; flex-direction: column; gap: 15px; }
.funnel-step { display: flex; flex-direction: column; gap: 5px; }
.f-label { font-size: 0.8rem; color: var(--text-dim); }
.f-bar { height: 24px; background: var(--accent); border-radius: 4px; display: flex; align-items: center; padding-left: 10px; min-width: 40px; }
.f-val { color: white; font-weight: bold; font-size: 0.8rem; }
.funnel-step.success .f-bar { background: #00ff88; }

/* --- TOP SELLERS LEADERBOARD (FIXED) --- */
.cyber-leaderboard { display: flex; flex-direction: column; gap: 15px; }
.leader-item { display: flex; align-items: center; gap: 15px; padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; transition: 0.3s; }
.leader-item.rank-1 { background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent); border-color: var(--accent); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15); }

/* Medaglie */
.rank-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; color: #000; flex-shrink: 0; }
.rank-badge.gold { background: #ffd700; box-shadow: 0 0 10px #ffd700; }
.rank-badge.silver { background: #c0c0c0; }
.rank-badge.bronze { background: #cd7f32; }

/* Immagini Quadrate */
.prod-img { width: 50px; height: 50px; background: var(--bg-side); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; padding:0; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }

/* Info & Barre */
.prod-info { flex: 1; }
.prod-info h4 { margin: 0 0 5px 0; font-size: 0.95rem; color: var(--text-main) !important; font-weight: 600; }
.prod-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.prod-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; }
.prod-rev { font-weight: bold; font-family: 'Rajdhani'; color: #00ff88; font-size: 1rem; margin-left: 10px; }

/* --- PRODUCT TABLE (IMPROVED) --- */
.product-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.product-table th { text-align: left; color: var(--text-dim); padding: 15px; border-bottom: 1px solid var(--border); font-size: 0.8rem; text-transform: uppercase; }
.product-table td { padding: 15px; border-bottom: 1px solid var(--border); color: var(--text-main); vertical-align: middle; }
.product-table tr:hover { background: rgba(255,255,255,0.02); }

.tbl-img { width: 60px; height: 60px; background: var(--bg-side); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.tbl-img img { width: 100%; height: 100%; object-fit: cover; }

.p-title { font-size: 1rem; color: var(--text-main); }
.p-sku { font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono'; }
.p-price { font-weight: bold; font-family: 'Rajdhani'; font-size: 1.1rem; }

.stock-badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; display: inline-block; }
.stock-badge.high { background: rgba(0,255,136,0.1); color: #00ff88; border: 1px solid #00ff88; }
.stock-badge.med { background: rgba(255,165,0,0.1); color: orange; border: 1px solid orange; }
.stock-badge.low { background: rgba(255,85,85,0.1); color: #ff5555; border: 1px solid #ff5555; }

.tag { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
.tag.success { background: rgba(0,255,136,0.1); color: #00ff88; }
.tag.warning { background: rgba(255,165,0,0.1); color: orange; }

/* --- MARKETING & ANALYTICS --- */
.analytics-split { gap: 40px !important; }
.marketing-list { display: flex; flex-direction: column; gap: 20px; }
.mkt-item { display: flex; flex-direction: column; gap: 8px; }
.mkt-head { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-main); }
.mkt-track { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.mkt-fill { height: 100%; border-radius: 4px; box-shadow: 0 0 10px rgba(255,255,255,0.2); animation: slideRight 1.5s ease-out; }
.device-bars { display: flex; flex-direction: column; gap: 15px; }
.d-bar-row { display: flex; align-items: center; gap: 10px; }
.d-label { width: 60px; font-size: 0.8rem; color: var(--text-dim); }
.d-track { flex: 1; height: 10px; background: var(--bg-side); border-radius: 5px; overflow: hidden; }
.d-fill { height: 100%; background: var(--accent); }
.d-val { font-size: 0.8rem; font-weight: bold; color: var(--text-main); }

/* --- LIVE FEED --- */
.live-feed { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; }
.feed-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--border); animation: slideIn 0.5s ease; }
.feed-time { font-family: 'JetBrains Mono'; font-size: 0.8rem; color: var(--text-dim); }
.feed-content { color: var(--text-main); font-size: 0.9rem; }
.feed-content span { color: var(--accent); font-weight: bold; }
.feed-amt { font-weight: bold; color: #00ff88; }
.feed-amt.pending { color: orange; animation: blink 1s infinite; }
.live-dot { display: inline-block; width: 10px; height: 10px; background: #ef4444; border-radius: 50%; margin-left: 10px; animation: pulse 1s infinite; }

/* --- MODALE --- */
.erp-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(5px); }
.erp-overlay.active { display: flex; animation: fadeIn 0.3s; }
.luxury-shop-modal { width: 700px; background: var(--bg-panel); border: 1px solid var(--accent); padding: 30px; border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.modal-head { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.modal-head h3 { color: var(--text-main); margin: 0; font-size: 1.2rem; }
.shop-grid-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 25px; }
.erp-input.dark-input { background: #111; border: 1px solid #333; color: white; padding: 12px; border-radius: 6px; width: 100%; margin-top: 5px; }
.erp-input.dark-input:focus { border-color: var(--accent); }
.erp-btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
.erp-btn.primary { background: var(--accent); color: white; }
.upload-area { height: 150px; border: 2px dashed var(--border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; background: var(--input-bg); }
.upload-area:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.05); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.inp-group label { color: var(--text-dim); font-size: 0.8rem; font-weight: bold; }
.inp-row { display: flex; gap: 15px; margin-bottom: 15px; }
.inp-group { margin-bottom: 15px; }
.inp-group.half { width: 50%; }

@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideIn { from{transform:translateY(10px); opacity:0;} to{transform:translateY(0); opacity:1;} }
@keyframes slideRight { from { width: 0%; } }

.erp-view { display: none; animation: fadeIn 0.3s ease; }
.erp-view.active { display: block; }

@media (max-width: 992px) {
    .dashboard-split { grid-template-columns: 1fr !important; gap: 30px !important; }
}
/* ========================================= */
/* === AI CHAT WIDGET (FIXED INPUT) === */
/* ========================================= */

.chat-trigger-btn { 
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; 
    border-radius: 50%; background: var(--accent); color: #fff; border: none; 
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.3s; z-index: 990; 
}
.chat-trigger-btn:hover { transform: scale(1.1) rotate(5deg); }
.chat-trigger-btn svg { width: 28px; height: 28px; stroke: #fff; }

.erp-chat-widget { 
    position: fixed; bottom: 100px; right: 30px; width: 350px; height: 450px; 
    background: #111; border: 1px solid var(--border); border-radius: 12px; 
    display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    z-index: 999; opacity: 0; pointer-events: none; transform: translateY(20px); 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.erp-chat-widget.active { opacity: 1; pointer-events: all; transform: translateY(0); }

.chat-header { 
    padding: 15px; background: linear-gradient(90deg, var(--accent), #4c1d95); 
    border-bottom: 1px solid var(--border); display: flex; 
    justify-content: space-between; align-items: center; 
    border-radius: 11px 11px 0 0; color: white; font-weight: bold;
}
.ch-info { display: flex; align-items: center; gap: 8px; font-family: 'Rajdhani'; letter-spacing: 1px; }
.status-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px #00ff88; animation: blink 1s infinite; }
.close-chat-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }

.chat-body { 
    flex: 1; padding: 15px; overflow-y: auto; 
    display: flex; flex-direction: column; gap: 10px; background: #09090b;
}

.msg-bubble { 
    max-width: 80%; padding: 10px 14px; border-radius: 12px; 
    font-size: 0.9rem; line-height: 1.4; position: relative; animation: slideIn 0.3s ease;
}
.msg-row.bot .msg-bubble { 
    background: #27272a; border: 1px solid var(--border); color: var(--text-main); border-bottom-left-radius: 2px;
}
.msg-row.user { justify-content: flex-end; display: flex; }
.msg-row.user .msg-bubble { 
    background: var(--accent); color: white; border-bottom-right-radius: 2px; 
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* --- FIX INPUT AREA (ALLINEAMENTO PERFETTO) --- */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center; /* Fondamentale per l'allineamento verticale */
    gap: 10px;
    background: #111;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.chat-input-area input {
    flex: 1;
    background: #18181b !important;
    border: 1px solid var(--border) !important;
    color: #ffffff !important;
    border-radius: 20px;
    outline: none;
    
    /* FIX DIMENSIONI */
    height: 40px !important;       /* Altezza fissa */
    line-height: 40px !important;  /* Centra il testo verticalmente */
    padding: 0 15px !important;    /* Solo laterale */
    box-sizing: border-box !important; 
    margin: 0 !important;
    font-family: inherit;
}

.chat-input-area input:focus {
    border-color: var(--accent) !important;
}

.chat-input-area button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    
    /* FIX DIMENSIONI IDENTICHE ALL'INPUT */
    width: 40px !important;       
    height: 40px !important;      
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* Centratura Icona */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    transition: 0.2s;
    font-size: 1.1rem;
}

.chat-input-area button:hover {
    transform: scale(1.1);
    background: #7c3aed;
}
/* ============================================================ */
/* === MOBILE SHOP APP: V12 (LIGHT MODE & MODAL FIX) === */
/* ============================================================ */

@media (max-width: 900px) {

    /* 1. SBLOCCO SCROLL & TEMA */
    html, body { overflow-y: auto !important; height: auto !important; }

    .app-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        border: none !important;
        /* USA VARIABILE TEMA (Così cambia colore da solo) */
        background: var(--bg-main) !important; 
        display: block !important;
        
        padding-top: 220px !important; 
        padding-bottom: 200px !important;
        z-index: 10;
        overflow: visible !important;
    }

    /* 2. TOOLBAR APP */
    .app-toolbar {
        position: fixed !important;
        top: 80px !important; left: 0 !important; width: 100% !important; height: 60px !important;
        
        /* Background Dinamico */
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--border) !important;
        
        display: flex !important; align-items: center; justify-content: space-between;
        padding: 0 15px; z-index: 9999 !important; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    
    .app-brand { font-size: 1rem; color: var(--text-main) !important; }

    /* 3. MENU DI NAVIGAZIONE */
    .erp-sidebar {
        position: fixed !important;
        top: 140px !important; left: 0 !important; width: 100vw !important; height: 60px !important;
        
        display: flex !important; flex-direction: row !important; align-items: center !important;
        padding: 0 10px !important;
        
        /* Background Dinamico */
        background: var(--bg-main) !important; 
        border-bottom: 1px solid var(--border) !important;
        
        overflow-x: auto !important; white-space: nowrap !important;
        z-index: 9998 !important;
    }
    .erp-sidebar::-webkit-scrollbar { display: none; }
    .user-profile { display: none !important; }

    /* PULSANTI MENU (Adattivi al tema) */
    .erp-nav { display: flex !important; gap: 10px !important; width: auto !important; margin: 0 !important; }
    
    .erp-nav a {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
        
        background: var(--bg-panel) !important;
        border: 1px solid var(--border) !important;
        color: var(--text-main) !important; /* Testo cambia col tema */
        
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center; justify-content: center;
        margin-bottom: 0 !important;
    }
    
    /* Stato Attivo (Resta viola) */
    .erp-sidebar .erp-nav a.active {
        background: var(--accent) !important;
        color: #fff !important;
        font-weight: 800 !important;
        border-color: var(--accent) !important;
        opacity: 1 !important;
        box-shadow: 0 0 15px var(--accent-glow) !important;
    }

    /* 4. CONTENUTO & GRIGLIE */
    .erp-content { padding: 15px !important; margin: 0 !important; height: auto !important; overflow: visible !important; }

    .stats-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-bottom: 20px !important; }
    
    .stat-card { 
        padding: 15px !important; min-height: 100px; text-align: center; 
        display: flex; flex-direction: column; justify-content: center;
        background: var(--bg-panel) !important; /* Card dinamica */
        border: 1px solid var(--border) !important;
    }
    .s-val { font-size: 1.4rem !important; color: var(--text-main) !important; } 

    .dashboard-split, .analytics-split { display: flex !important; flex-direction: column !important; gap: 20px !important; }

    /* 5. FIX ORDINI LIVE (TESTI SCHIACCIATI) */
    .live-feed { max-height: 300px !important; }
    
    .feed-item {
        /* Impiliamo tutto verticalmente per dare spazio */
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 15px !important;
        background: rgba(255,255,255,0.02);
    }
    
    .feed-time { 
        font-size: 0.7rem !important; 
        opacity: 0.7; 
        margin-bottom: 2px; 
    }
    
    .feed-content { 
        font-size: 0.95rem !important; 
        line-height: 1.4 !important;
        width: 100%;
    }
    
    .feed-amt { 
        align-self: flex-end; /* Mette il prezzo a destra */
        font-size: 1.1rem !important;
        margin-top: 5px;
    }

    /* 6. TABELLA PRODOTTI -> CARD */
    .product-table thead { display: none !important; }
    .product-table, .product-table tbody, .product-table tr, .product-table td { display: block !important; width: 100% !important; }

    .product-table tr {
        background: var(--bg-panel) !important;
        border: 1px solid var(--border) !important;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .product-table td {
        display: flex !important; justify-content: space-between; align-items: center;
        padding: 8px 0 !important; border: none !important;
        border-bottom: 1px solid var(--border) !important;
        text-align: right; color: var(--text-main) !important;
    }
    .product-table td:last-child { border-bottom: none !important; }

    /* Campi specifici */
    .product-table td:first-child { justify-content: center !important; padding-bottom: 15px !important; }
    .tbl-img { width: 80px !important; height: 80px !important; }
    .product-table td:nth-child(2) { flex-direction: column !important; align-items: flex-start !important; text-align: left !important; }
    .product-table td:nth-child(2)::before { content: "Prodotto"; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 2px;}
    .product-table td:nth-child(3)::before { content: "Disponibilità"; font-weight: bold; color: var(--text-dim); font-size: 0.8rem; }
    .product-table td:nth-child(4) { font-size: 1.2rem; color: var(--accent); font-weight: bold; }
    .product-table td:nth-child(4)::before { content: "Prezzo"; font-weight: normal; color: var(--text-dim); font-size: 0.8rem; margin-right: 10px;}

    /* 7. FIX MODALE "AGGIUNGI PRODOTTO" (Il problema della tendina) */
    
    .luxury-shop-modal {
        width: 95% !important; /* Quasi tutto lo schermo */
        max-width: 95% !important;
        padding: 20px !important;
        /* La alziamo un po' per sicurezza */
        top: 20px !important; 
        transform: none !important;
        left: 2.5% !important;
        position: fixed !important;
        max-height: 85vh !important;
        overflow-y: auto !important; /* SCROLL INTERNO ATTIVO */
    }
    
    /* Layout interno Modale: Tutto in colonna */
    .shop-grid-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Area Upload più piccola */
    .upload-area { height: 80px !important; }
    
    /* Input raggruppati */
    .inp-row { 
        display: flex !important; 
        gap: 10px !important; 
    }
    .inp-group.half { width: 50% !important; }
    
    /* Dropdown più alti per il dito */
    select.erp-input {
        height: 45px !important;
        background-color: var(--input-bg) !important; /* Colore tema */
        color: var(--text-main) !important;
    }
    
    /* Pulsanti in fondo */
    .modal-foot {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--border);
    }

    .chat-trigger-btn { bottom: 100px !important; right: 20px !important; }
    
    /* FIX Toggle Impostazioni */
    .toggle { background: var(--border); }
    .toggle.active { background: var(--accent); }
}