/*
 * Consolidated with Premium Module for strict Cache Busting.
 */
@import url("modules/concierge-rich-results.css");



 :root {
     --box-bg-color:#f8f8f8;
     --box-bg:#f8f8f8;
     --zen-bg: #fbfbfb;
     --zen-panel: #f9f9f9;
     --zen-card: #ffffff;
     --zen-hover: #fff9f0;
     --zen-bg-btn: #6975bd;
     --zen-text: #343739;
     --zen-text-btn: #f8f8f8;
     --zen-dim: #6b7280;
     --zen-accent: #c5a059;
     --zen-text-tippy: #c5a059;
     --zen-text-strong: #1c74b9;
     --zen-text-span: #2196F3;
     --zen-border: rgba(197, 160, 89, 0.25);
     --zen-glass: rgba(255, 255, 255, 0.8);
     --zen-shadow: rgba(4, 56, 98, 0.08);
     --zen-error: #ef4444;
     --zen-warn: #FFEB3B;
 }

 [data-theme="dark"] {
     --box-bg-color:#091118;
     --box-bg: #091118;
     --zen-bg: #050a0e;
     --zen-panel: #0a111a;
     --zen-card: #141c26;
     --zen-hover: #1e293b;
     --zen-bg-btn: #00d4ff;
     --zen-text: #f0f4f8;
     --zen-text-btn: #050a0e;
     --zen-dim: #9ca3af;
     --zen-accent: #00d4ff;
     --zen-text-tippy: #00d4ff;
     --zen-text-strong: #00d4ff;
     --zen-text-span: #7c3aed;
     --zen-border: rgba(0, 212, 255, 0.2);
     --zen-glass: rgba(10, 17, 26, 0.8);
     --zen-shadow: rgba(0, 0, 0, 0.5);
     --zen-error: #f87171;
     --zen-warn: #fbbf24;
 }

 @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
         --zen-bg: #14232f;
         --zen-panel: #0a111a;
         --zen-card: #141c26;
         --zen-hover: #1e293b;
         --zen-bg-btn: #00d4ff;
         --zen-text: #f0f4f8;
         --zen-text-btn: #2c8edc;
         --zen-dim: #9ca3af;
         --zen-accent: #00d4ff;
         --zen-text-tippy: #00d4ff;
         --zen-text-strong: #00d4ff;
         --zen-text-span: #7c3aed;
         --zen-border: rgba(0, 212, 255, 0.2);
         --zen-glass: rgba(10, 17, 26, 0.8);
         --zen-shadow: rgba(0, 0, 0, 0.5);
    }
 }

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

 body {
     background-color: var(--zen-bg);
     color: var(--zen-text);
     font-family: 'Inter', sans-serif;
     display: flex;
     flex-direction: column;
     min-height: 100vh;
 }

 .concierge-canvas {
     flex: 1;
     padding: 2rem;
     max-width: 800px;
     margin: 0 auto;
     width: 100%;
     padding-bottom: 250px;
 }

 .concierge-header {
     text-align: center;
     margin-bottom: 0rem;
     margin-top: 4rem;
     animation: fadeIn 1.5s ease-out;
 }

 .concierge-logo {
     width: 60px;
     height: 60px;
     margin-bottom: 1.5rem;
     color: var(--zen-accent);
 }

 .concierge-title {
     font-family: 'Outfit', sans-serif;
     font-size: 1.25rem;
     font-weight: 300;
     letter-spacing: 0.35rem;
     text-transform: uppercase;
     color: var(--zen-accent);
 }

 .dialog-terminal {
     width: 100%;
     display: flex;
     flex-direction: column;
     gap: 4.5rem;
 }

 /* CONCIERGE APP LAYOUT (v2) */
 .concierge-app-container {
     display: flex;
     height: 100vh;
     overflow: hidden;
     background-color: var(--zen-bg);
 }

 /* SIDEBAR STYLING */
 .chat-sidebar {
     width: 280px;
     background-color: var(--zen-panel);
     border-right: 1px solid var(--zen-border);
     display: flex;
     flex-direction: column;
     padding: 24px 16px;
     transition: all 0.3s ease;
 }

 .sidebar-link-home {
     text-decoration: none;
     color: inherit;
     transition: opacity 0.2s;
 }

 .sidebar-link-home:hover {
     opacity: 0.7;
 }

 .sidebar-header {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 32px;
     padding: 0 8px;
 }

 .sidebar-logo {
     color: var(--zen-accent);
     width: 24px;
     height: 24px;
 }

 .sidebar-title {
     font-size: 1.1rem;
     font-weight: 600;
     color: var(--zen-text);
     letter-spacing: -0.02rem;
 }

 .sidebar-new-chat {
     background: var(--zen-card);
     border: 1px solid var(--zen-border);
     border-radius: 12px;
     padding: 12px;
     font-weight: 500;
     display: flex;
     align-items: center;
     gap: 10px;
     cursor: pointer;
     margin-bottom: 24px;
     transition: all 0.2s;
 }

 .sidebar-new-chat:hover {
     border-color: var(--zen-accent);
     background-color: var(--zen-hover);
 }

 .history-list {
     flex: 1;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .history-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     padding: 12px 16px;
     border-radius: 12px;
     color: var(--zen-dim);
     cursor: pointer;
     transition: all 0.3s ease;
     font-size: 0.95rem;
     margin-bottom: 4px;
     border: 1px solid transparent;
 }

 .history-item-info {
     display: flex;
     align-items: center;
     gap: 12px;
     flex: 1;
     overflow: hidden;
 }

 .history-item-title {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .delete-chat-btn {
     background: transparent;
     border: none;
     color: var(--zen-dim);
     padding: 4px;
     opacity: 0;
     transition: all 0.2s ease;
     cursor: pointer;
     display: flex;
     align-items: center;
     border-radius: 6px;
 }

 .history-item:hover .delete-chat-btn {
     opacity: 0.6;
 }

 .delete-chat-btn:hover {
     opacity: 1 !important;
     background: rgba(239, 68, 68, 0.1);
     color: var(--zen-error); /* Alert color for deletion */
 }

 .history-item:hover {
     background: var(--zen-glass);
     color: var(--zen-text);
 }

 .history-item.active {
     background: var(--zen-glass);
     color: var(--zen-text-strong);
     border-color: var(--zen-accent);
 }

 .sidebar-footer {
     padding-top: 20px;
     border-top: 1px solid var(--zen-border);
 }

 .user-pill {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 0.85rem;
     color: var(--zen-accent);
     background-color: var(--zen-card);
     padding: 10px;
     border-radius: 10px;
 }

 .login-invite {
     color: var(--zen-accent);
     text-decoration: none;
     font-weight: 600;
     transition: opacity 0.2s;
 }

 .login-invite:hover {
     text-decoration: underline;
     opacity: 0.8;
 }

 /* MAIN CHAT AREA */
 .chat-main-area {
     flex: 1;
     display: flex;
     flex-direction: column;
     position: relative;
     padding: 1px;
     max-width: 1000px;
     margin: 0 auto;
     background-color: var(--zen-glass);
 }

 .concierge-header {
     background-color: var(--zen-glass);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid var(--zen-border);
     padding: 16px 40px;
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .header-identity {
     display: flex;
     align-items: center;
     gap: 16px;
 }

 .brand-avatar {
     width: 48px;
     height: 48px;
     background-color: var(--zen-card);
     border: 1px solid var(--zen-border);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .brand-title {
     font-size: 1.2rem;
     font-weight: 600;
     color: var(--zen-text);
     margin: 0;
     text-align: left;
 }

 .brand-subtitle {
     font-size: 0.8rem;
     color: var(--zen-accent);
     text-transform: uppercase;
     letter-spacing: 0.05rem;
     margin: 0;
 }

 .dialog-terminal {
     flex: 1;
     padding: 40px;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
     gap: 32px;
     margin-bottom: 8rem;
     /* Ensure space above fixed input */
 }

 .message-row {
     display: flex;
     flex-direction: column;
     gap: 1.2rem;
     opacity: 0;
     transform: translateY(20px);
     animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
 }

 .message-identity {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 2px;
 }

 .identity-icon {
     width: 32px;
     height: 32px;
     color: var(--zen-accent);
     stroke-width: 1.5;
 }

 .message-label {
     font-size: 0.95rem;
     text-transform: uppercase;
     letter-spacing: 0.25rem;
     color: var(--zen-accent);
     font-weight: 600;
     border-bottom: 1px solid var(--zen-accent);
     padding-bottom: 6px;
     display: inline-block;
 }

 .message-content {
     font-size: 1.35rem;
     line-height: 1.9;
     font-weight: 300;
     color: var(--zen-text);
 }

 a .technical-term {
     color: var(--zen-text-btn);
     border-bottom: 2px solid var(--zen-warn);
 }

 .technical-term {
     border-bottom: 2px solid rgba(197, 160, 89, 0.2);
     cursor: help;
     color: var(--zen-text-span);
     font-weight: 500;
     transition: border-color 0.3s ease;
 }

 .technical-term:hover {
     border-bottom-color: var(--zen-accent);
 }

 .input-chamber-fixed {
     position: absolute;
     bottom: 40px;
     width: -webkit-fill-available;
     display: flex;
     justify-content: flex-start;
     z-index: 1000;
     padding: 0 20px;
 }

 .input-chamber {
     width: 100%;
     background: var(--zen-glass);
     border: 1px solid var(--zen-border);
     padding: 1.3rem 1.6rem;
     border-radius: 12px;
     display: flex;
     gap: 1.2rem;
     backdrop-filter: blur(25px);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 15px 50px var(--zen-shadow);
 }

 .input-chamber:focus-within {
     border-color: var(--zen-accent);
     box-shadow: 0 10px 40px rgba(197, 160, 89, 0.12);
     transform: translateY(-5px);
 }

 .concierge-input {
     background: transparent;
     border: none;
     color: var(--zen-text);
     flex: 1;
     font-size: 1.15rem;
     font-family: inherit;
     outline: none;
 }

 .btn-send {
     background: transparent;
     border: none;
     color: var(--zen-accent);
     cursor: pointer;
     transition: transform 0.3s ease;
     display: flex;
     align-items: center;
 }

 .btn-send:hover {
     transform: scale(1.15);
 }

 .typing-indicator {
     display: flex;
     gap: 8px;
     margin-top: 20px;
 }

 .dot {
     width: 6px;
     height: 6px;
     background: var(--zen-accent);
     border-radius: 50%;
     opacity: 0.3;
     animation: pulse 1.5s infinite;
 }

 .dot:nth-child(2) {
     animation-delay: 0.2s;
 }

 .dot:nth-child(3) {
     animation-delay: 0.4s;
 }

 .indicator-box {
     display: flex;
     gap: 8px;
     margin-top: 10px;
 }

 /* RICH PRODUCT BOXES (NPSP v64.13.20) */
 /* Rich Results are now handled by modules/concierge-rich-results.css */

 @keyframes pulse {

     0%,
     100% {
         opacity: 0.2;
     }

     50% {
         opacity: 1;
     }
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes slideUp {
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .cta-link {
     display: inline-block;
     margin-top: 2rem;
     padding: 4px 19px 4px 19px;
     background: var(--zen-bg-btn);
     color: var(--zen-text-btn);
     text-decoration: none;
     text-transform: uppercase;
     letter-spacing: 1px;
     font-size: 13px;
     border-radius: 24px;
     transition: all 0.3s ease;
     border: 1px solid transparent;
     display: flex;
     gap: 10px;
     width: max-content;
 }

 .cta-link:hover {
     background: transparent;
     color: var(--zen-accent);
     border-color: var(--zen-accent);
 }
.cta-link svg{
    padding: unset;
    margin: unset;
    width: 18px !important;
    height: 18px;
}
 /* =========================================
   NEXUS CONCIERGE PREMIUM MODULE (Isolato)
   ========================================= */
 :root {
     --concierge-gold: #ffd700;
     --concierge-bubble-bg: rgba(255, 255, 255, 0.02);
     --concierge-accent-bg: #03a9f40f;
     --concierge-border: rgba(255, 255, 255, 0.05);
     --laura-aura: 0 0 15px rgba(255, 215, 0, 0.2);
 }

 .avatar-container {
     position: relative;
     display: inline-block;
     padding: 3px;
     border-radius: 50%;
     background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
     margin-right: -1px;
 }

 .avatar-container.admin-vibe {
     /* Brand Avatar o Default - no specifiche auree unless required */
 }

 .avatar-container.laura-vibe {
     background: linear-gradient(135deg, var(--concierge-gold), transparent);
     box-shadow: var(--laura-aura);
 }

 .avatar-chat {
     width: 42px;
     height: 42px;
     border-radius: 50%;
     display: block;
     object-fit: cover;
     background: var(--zen-glass);
     border: 1px solid var(--zen-border);
 }

 .message-row {
     margin-bottom: 32px;
     animation: fadeInSlide 0.4s ease-out forwards;
 }

 @keyframes fadeInSlide {
     from {
         opacity: 0;
         transform: translateY(15px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .message-identity {
     display: flex;
     align-items: center;
     margin-bottom: 10px;
     font-size: 0.75rem;
     color: var(--zen-dim);
     font-weight: 600;
     letter-spacing: 0.08rem;
     text-transform: uppercase;
 }

 .message-bubble {
     background: var(--concierge-bubble-bg);
     padding: 18px 24px;
     border-radius: 0 20px 20px 20px;
     border: 1px solid var(--zen-border);
     max-width: 85%;
     line-height: 1.6;
     position: relative;
     backdrop-filter: blur(8px);
     box-shadow: 0 4px 23px rgba(0, 0, 0, 0.04);
 }

 .message-row.concierge .message-bubble {
     background: var(--concierge-accent-bg);
     border-left: 1px solid var(--concierge-gold);
     border-radius: 20px 20px 20px 0;
 }

 .message-content {
     margin: 0;
     color: var(--zen-text);
     font-size: 1rem;
 }

 .message-content strong {
     color: var(--zen-text-strong);
     font-weight: 400;
     background: var(--zen-glass);
     border: 1px dashed var(--zen-border);
     padding: 3px 12px;
     border-radius: 11px;
 }

 .radar-trigger {
     padding: 7px 17px;
     background: transparent;
     color: var(--zen-accent);
     border: 2px solid var(--zen-accent);
     border-radius: 40px;
     cursor: pointer;
     font-weight: 800;
     font-size: 0.75rem;
     text-transform: uppercase;
     letter-spacing: 1px;
     transition: all 0.3s ease;
     margin-top: 15px;
     text-wrap-mode: nowrap;
     display: flex;
     gap: 10px;
 }

 .radar-trigger:hover {
     background: var(--zen-accent);
     color: var(--zen-bg);
     box-shadow: 0 5px 20px var(--zen-shadow);
 }

 /* Base Tippy Tooltip Classes included explicitly to override or stabilize */
 .tippy-box {
     background-color: var(--zen-text);
     color: var(--zen-bg);
     border-radius: 4px;
     font-size: 12px;
     line-height: 1.4;
 }

 .tippy-arrow {
     color: var(--zen-text);
 }
.galia-vibe{
    border: unset;
    padding: unset;
    margin: unset;
}

.galia-vibe svg,.galia-vibe img{
    border: unset;
    margin: unset;
    padding: unset;
}

/* RESPONSIVE CHAT SIDEBAR */
.mobile-sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--zen-text);
    cursor: pointer;
    margin-right: 15px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-sidebar-toggle:hover {
    background: var(--zen-border);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .chat-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        z-index: 1001;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        width: 280px;
    }
    
    .chat-sidebar.active {
        left: 0;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .dialog-terminal {
        gap: 2rem;
        margin: auto;
        padding: 0 20px 99px 20px;
        padding-top: 1rem;
    }
    
    .concierge-header {
        padding: 6px;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--zen-border);
        margin-bottom: 1rem;
    }
    .message-bubble{
        max-width: -webkit-fill-available;
    }
    .concierge-items-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .input-chamber{
        margin-left: 2%;
        margin-right: 2%;
    }
}

/* ELITE MATRIX RESPONSE STYLING (v64.19.5) */
.gi-matrix-response {
    background: var(--zen-glass);
    border: 1px solid var(--zen-accent);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px var(--zen-shadow);
    color: var(--zen-text-strong);
    font-weight: 500;
    line-height: 1.8;
    position: relative;
}

.gi-matrix-response::before {
    content: "STRATEGIA NEXUS";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--zen-accent);
    color: var(--zen-bg-btn);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
}

.gi-intelligence-context {
    font-size: 0.85rem;
    color: var(--zen-dim);
    border-top: 1px dashed var(--zen-border);
    padding-top: 20px;
    margin-top: 20px;
    line-height: 1.6;
}

.gi-intelligence-context .radar-trigger {
    margin-top: 10px;
    font-size: 0.65rem;
    padding: 5px 12px;
}