/**
 * NIXIE Wireframe — Chrome condiviso (header, footer, pannelli, componenti)
 * Replica FEDELE in B&W del FE blendx_website: valori (altezze, raggi, ombre,
 * dimensioni) copiati da blendx_website/static/src/scss/style.scss.
 * Ogni blocco è annotato col template/selettore Odoo di provenienza.
 */

/* =====================================================================
   HEADER — blendx_website.blendx_header_template
   Reale: nav gradient(270deg, one→two), height 80px, padding 16px,
   shadow 0 7px 14.6px 2px #00000026, logo img h34, nav gap 16px.
   ===================================================================== */
.custom-header { position: sticky; top: 0; z-index: var(--z-header); }
header.custom-header nav {
  display: flex; align-items: center;
  background: linear-gradient(270deg, rgba(26,26,26,.88) 0.1%, rgba(77,77,77,.88) 99.9%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 16px;
  box-shadow: 0px 7px 14.6px 2px #00000026;
  height: 80px;
}
.custom-header .bx_nav_inner {
  display: flex; align-items: center; width: 100%;
  max-width: var(--container-max); margin: 0 auto; gap: 16px;
}
/* Brand — .navbar-brand.logo (img h 34px, qui logo reale blendX contratto) */
.custom_header_logo { display: flex; align-items: center; color: #fff; }
.custom_header_logo .bx_logo_img { height: 44px; width: auto; display: block; }

/* Bottone feature — pattern challenge_header_menu_btn:
   .app_icon (radius 8, p-2, bg primary_color_light) + .title5 ff_ubuntu text-white */
.blendx_header_menu_sec { display: flex; align-items: center; }
.header_feature_btn { display: flex; align-items: center; gap: 8px; padding: 9px 0; color: #fff; }
.header_feature_btn .app_icon {
  width: 42px; height: 42px; border-radius: var(--radius-8); padding: 8px;
  background: var(--bx-primary-color-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--bx-primary-color);
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, .15);
}
.header_feature_btn .app_name { font-family: var(--font-ubuntu); font-size: 20px; font-weight: 700; line-height: 1.25; color: #fff; }

/* Nav destra — .navbar-nav { gap:16px } */
.bx_header_actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* Global search — .global_search_widget (reale: collassata 36px, si espande .visible) */
.global_search_widget_container { display: flex; align-items: center; gap: 8px; }
.global_search_widget {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 36px; height: 52px; border-radius: 40px; gap: 0;
  transition: all 0.7s ease;
}
.global_search_widget.visible {
  width: 300px; background: rgba(255,255,255,.14);
  padding-left: 16px; gap: 10px;
}
.global_search_widget .search_input_container { width: 0; transition: all 0.7s ease; overflow: hidden; }
.global_search_widget.visible .search_input_container { width: 100%; }
.global_search_input {
  border: none; box-shadow: none; outline: none; width: 100%;
  background: transparent; color: #fff;
  font-family: var(--font-nunito); font-size: 16px; font-weight: 400; line-height: 20px;
}
.global_search_input::placeholder { color: rgba(255, 255, 255, 0.7); }
.search_icon_container {
  z-index: 2; display: flex; width: 36px; height: 36px; flex-shrink: 0;
  justify-content: center; align-items: center;
  border-radius: 50%; background: #fff; cursor: pointer;
  transition: all 0.3s ease;
}
/* Dropdown risultati — reale: 430px, top 65, radius 12, shadow 4 4 10 .15 */
.global_search_dropdown {
  position: absolute; top: 65px; right: 0; width: 430px; max-width: 88vw;
  max-height: 480px; overflow-y: auto;
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.15);
  z-index: 1050; padding: 16px;
  opacity: 1; transition: opacity .4s, max-height .1s;
}
.global_search_dropdown.hide_dropdown { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.gs_result_row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-8); cursor: pointer; border-bottom: 1px solid var(--light-grey); }
.gs_result_row:hover { background: var(--light-grey); }
.gs_type_dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.gs_type_logo { width: 30px; height: 30px; border-radius: 7px; background: var(--light-sky-grey); color: var(--bx-primary-font-color); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.gs_see_all { display: block; text-align: center; font-size: 14px; font-weight: 800; color: var(--bx-primary-font-color); padding: 12px 8px 4px; }
.gs_see_all:hover { text-decoration: underline; }
.gs_result_name { font-size: 14px; font-weight: 600; color: var(--bx-primary-font-color); }
.gs_result_meta { font-size: 12px; color: var(--dark-grey); }
.gs_section_label { font-size: 11.5px; font-weight: 800; color: var(--dark-grey); padding: 4px 8px 6px; }

/* Icona-azione header quadrata — .accent_1_color_light_custom
   Reale: 35×35, border 1px #fff, radius 10, icona bianca */
.accent_1_color_light_custom {
  position: relative;
  font-size: 22px; color: #fff;
  border: 1px solid #fff; background: transparent;
  padding: 2px 6px; border-radius: 10px;
  width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.accent_1_color_light_custom:hover { background: rgba(255,255,255,.12); }
/* Badge — .notification_count (reale: 18px, top -8 right -8, giallo → B&W bianco) */
.notification_count {
  position: absolute; top: -8px; right: -8px;
  border-radius: 50%; height: 18px; width: 18px; font-size: 8px;
  display: flex; justify-content: center; align-items: center;
  background: #fff; color: var(--bx-primary-font-color);
  font-weight: 700; border: 1px solid var(--bx-primary-color);
}
/* Griglia app header — .app_icon_menu (solo svg bianco, no box) */
.app_icon_menu { display: flex; align-items: center; cursor: pointer; padding: 0 2px; }
.app_icon_menu:hover svg g, .app_icon_menu.active svg g { fill: var(--extra-light-grey); }

/* Avatar — portal.user_dropdown (.user_custom img 50×50, border 1px #fff) */
.user_custom { position: relative; padding-left: 8px; }
.user_custom .user_avatar {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid #FFFFFF; background: var(--bx-primary-color-light);
  color: var(--bx-primary-color);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; cursor: pointer;
}
/* Dropdown utente — .custom-header .dropdown-menu (shadow reale) */
.user_dropdown_menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  box-shadow: 1px 2px 10px 1px rgba(101, 101, 101, 0.1);
  padding: 8px 0; display: none; z-index: 1060;
}
.user_dropdown_menu.show { display: block; }
.user_dropdown_menu .dd_item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; color: var(--bx-primary-font-color); cursor: pointer; }
.user_dropdown_menu .dd_item:hover { background: var(--light-grey); }
.user_dropdown_menu .dd_divider { border-top: 1px solid var(--light-sky-grey); margin: 6px 0; }
.user_dropdown_menu .dd_head { padding: 8px 16px 10px; }
.user_dropdown_menu .dd_head b { font-family: var(--font-ubuntu); font-size: 15px; display: block; }
.user_dropdown_menu .dd_head span { font-size: 12px; color: var(--dark-grey); }
.dd_lang { display: flex; gap: 6px; padding: 6px 16px 10px; }
.dd_lang button {
  flex: 1; border: 1px solid var(--extra-light-grey); background: #fff;
  border-radius: var(--radius-8); padding: 6px 0; font-size: 12px; font-weight: 800;
}
.dd_lang button.active { background: var(--bx-primary-color); color: #fff; border-color: var(--bx-primary-color); }

/* =====================================================================
   PANNELLI — website_layout_ext (.notification_section / .app_section)
   Reale: max-width 343, radius 10, padding 18, shadow 1 2 10 1 rgba(101,101,101,.1)
   ===================================================================== */
.bx_side_panel {
  position: fixed; top: calc(var(--header-height) + 8px); right: 16px;
  width: 343px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px);
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 10px;
  box-shadow: 1px 2px 10px 1px rgba(101, 101, 101, 0.10);
  padding: 18px; z-index: var(--z-panel);
  overflow-y: auto; display: none;
}
.bx_side_panel.open { display: block; }
.bx_side_panel.panel_wide { width: 420px; }
.bx_side_panel_title { font-family: var(--font-ubuntu); font-size: 18px; font-weight: 700; color: var(--bx-primary-font-color); }
.bx_side_panel_close { background: none; border: 0; font-size: 16px; color: var(--bx-primary-font-color); cursor: pointer; }

/* Notifiche — .notification_container / .notify_box (border-bottom, no card) */
.notification_container { max-height: 420px; overflow-y: auto; }
.notify_box { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-bottom: 1px solid var(--extra-light-grey); cursor: pointer; }
.notify_box:last-child { border-bottom: none; }
.notify_box:hover { background: var(--light-grey); }
.notify_box .img_main_div {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--bx-primary-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
}
.notify_box.nx_signal .img_main_div { background: #fff; color: var(--bx-primary-color); border: 2px solid var(--bx-primary-color); }
.notification_name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.notification_description { font-size: 13px; color: #444; margin-top: 3px; }
.timeago { font-size: 12px; color: var(--dark-grey); }

/* Apps panel — "All your apps": .app_icon_box reale
   grid auto-fill 80px, gap 32, centrata; icona 80×80 r16 shadow 4 4 10 .15 */
.app_icon_box {
  display: grid; grid-template-columns: repeat(auto-fill, 80px);
  gap: 32px 24px; justify-content: center; margin-top: 20px;
}
.app_icon {
  height: 80px; width: 80px; border-radius: 16px;
  border: 0.5px solid var(--extra-light-grey);
  background: var(--bx-primary-color-light);
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
/* Il glifo riempie il riquadro e centra qualsiasi contenuto (icona font o immagine) */
.app_icon .app_glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ubuntu); font-weight: 700; font-size: 26px; color: var(--bx-primary-color);
}
.app_icon .app_glyph img { width: 56% !important; height: 56% !important; object-fit: contain; display: block; }
.app_icon .module_tooltip {
  position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 40px;
  background: var(--bx-primary-color); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  display: none; z-index: 3;
}
.app_icon:hover .module_tooltip { display: flex; }
.app_label { font-size: 11px; font-weight: 700; text-align: center; margin-top: 8px; color: var(--bx-primary-font-color); max-width: 84px; }

/* App NIXIE: prime della griglia + glow "AI" (alone pulsante + badge ✦) */
.app_icon.nx_app {
  background: var(--bx-primary-color); border-color: var(--bx-primary-color);
  animation: nx-glow 2.6s ease-in-out infinite;
}
.app_icon.nx_app .app_glyph { color: #fff; }
.app_icon.nx_app::after {
  content: ''; position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff url('img/nixie_logo.svg') center / 60% no-repeat;
  border: 1px solid var(--bx-primary-color);
}
@keyframes nx-glow {
  0%, 100% { box-shadow: 4px 4px 10px 0 rgba(0,0,0,.15), 0 0 0 0 rgba(26,26,26,.25); }
  50% { box-shadow: 4px 4px 10px 0 rgba(0,0,0,.15), 0 0 16px 3px rgba(26,26,26,.28); }
}

/* =====================================================================
   FLOATING CHAT — nei moduli (≠ /nixie): FAB solo logo in basso a destra;
   hover → etichetta "Chiedi a NIXIE"; click → pannello chat laterale
   che spinge il contenuto verso sinistra.
   ===================================================================== */
:root { --nx-panel-w: 380px; }
.nx_fab {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-panel);
  display: flex; align-items: center; padding: 5px; max-width: 48px;
  border-radius: var(--radius-pill); overflow: hidden; white-space: nowrap;
  background: rgba(255,255,255,.72); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--light-sky-grey);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  cursor: pointer;
  transition: max-width .45s cubic-bezier(.3, 1.45, .45, 1), transform .35s ease, opacity .35s ease, box-shadow .35s;
}
.nx_fab:hover { max-width: 260px; box-shadow: 0 14px 38px rgba(0,0,0,.24); }
.fab_ic { width: 36px; height: 36px; border-radius: 50%; background: var(--bx-primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.fab_ic img { width: 58%; height: 58%; object-fit: contain; }
.fab_txt { font-size: 14px; font-weight: 800; color: var(--bx-primary-font-color); white-space: nowrap; margin: 0 8px 0 10px; opacity: 0; transition: opacity .2s; }
.nx_fab:hover .fab_txt { opacity: 1; transition: opacity .3s .12s; }
.nx_fab.scrolling { opacity: 0; transform: translateY(14px); pointer-events: none; }
body.nx_panel_open .nx_fab { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* Pannello laterale: docked a destra, il contenuto scivola a sinistra */
.nx_panel {
  position: fixed; top: var(--header-height); right: 0; bottom: 0; width: var(--nx-panel-w);
  z-index: var(--z-panel); display: flex; flex-direction: column;
  background: rgba(255,255,255,.86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid var(--light-sky-grey);
  box-shadow: -12px 0 34px rgba(0,0,0,.10);
  transform: translateX(105%); visibility: hidden;
  transition: transform .4s var(--motion-ease), visibility 0s .4s;
}
body.nx_panel_open .nx_panel { transform: none; visibility: visible; transition: transform .4s var(--motion-ease), visibility 0s; }
.bx_page_main { transition: margin-right .4s var(--motion-ease); }
body.nx_panel_open .bx_page_main { margin-right: var(--nx-panel-w); }
/* Maniglia centrale (riga nera): trascina per allargare/accorciare il pannello */
.np_grip { position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 5px; height: 48px; border-radius: 3px; background: var(--bx-primary-font-color); opacity: .55; cursor: grab; z-index: 3; touch-action: none; }
.np_grip:hover { opacity: 1; }
.np_grip.dragging { opacity: 1; cursor: grabbing; }
body.nx_resizing, body.nx_resizing * { user-select: none; }
body.nx_resizing .bx_page_main, body.nx_resizing .nx_panel, body.nx_resizing .trend_overlay { transition: none !important; }
.np_head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--light-sky-grey); flex-shrink: 0; }
.np_brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-ubuntu); font-size: 15px; font-weight: 700; color: var(--bx-primary-font-color); }
.np_brand .fab_ic { width: 30px; height: 30px; }
.np_actions { display: flex; align-items: center; gap: 4px; }
.np_actions .ftool { text-decoration: none; }
.np_body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.np_msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; animation: np-in .3s var(--motion-ease); }
@keyframes np-in { from { opacity: 0; transform: translateY(6px); } }
.np_msg.a { align-self: flex-start; background: var(--light-grey); border: 1px solid var(--extra-light-grey); border-bottom-left-radius: 4px; color: var(--bx-primary-font-color); }
.np_msg.u { align-self: flex-end; background: var(--bx-primary-color); color: #fff; border-bottom-right-radius: 4px; }
.np_msg.thinking { color: var(--dark-grey); font-style: italic; animation: np-pulse 1.2s ease-in-out infinite; }
@keyframes np-pulse { 50% { opacity: .5; } }
.np_input { border-top: 1px solid var(--light-sky-grey); padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; background: rgba(255,255,255,.8); }
.np_input textarea { border: 0; outline: 0; resize: none; font-size: 13.5px; line-height: 1.4; max-height: 120px; background: transparent; font-family: var(--font-nunito); color: var(--bx-primary-font-color); }
.fab_tools { display: flex; align-items: center; gap: 6px; }
.fab_tools .fsp { flex: 1; }
.ftool { border: 0; width: 32px; height: 32px; border-radius: 9px; background: transparent; color: var(--dark-grey); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ftool:hover { background: var(--light-grey); color: var(--bx-primary-font-color); }
.ftool.miniapp_like { border: 1.5px solid var(--bx-primary-color); color: var(--bx-primary-font-color); animation: nx-glow 2.6s ease-in-out infinite; }
.fsend { border: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--bx-primary-color); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 767px) {
  .nx_panel { width: 100vw; }
  body.nx_panel_open .bx_page_main { margin-right: 0; }
}

/* ============ TOUR GUIDER: spotlight + tooltip (vive nella barra) ============ */
.nx_tour_spot {
  position: fixed; z-index: 3000; pointer-events: none;
  border: 2px solid #fff; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.5), 0 0 24px rgba(0,0,0,.35);
  transition: all .35s var(--motion-ease);
}
.nx_tour_tip {
  position: fixed; z-index: 3001; width: 300px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--light-sky-grey); border-radius: var(--radius-16);
  box-shadow: 0 16px 44px rgba(0,0,0,.35); padding: 14px 16px 12px;
  transition: left .35s var(--motion-ease), top .35s var(--motion-ease);
}
.nx_tour_tip .tt_text { font-size: 13.5px; line-height: 1.55; color: var(--bx-primary-font-color); }
.nx_tour_tip .tt_foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.nx_tour_tip .tt_count { font-size: 11px; font-weight: 800; color: var(--dark-grey); letter-spacing: 1px; }
.nx_tour_tip .tt_btns { display: flex; gap: 6px; }
.nx_tour_tip button { border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; padding: 6px 14px; cursor: pointer; font-family: var(--font-nunito); }
.nx_tour_tip .tt_skip { border: 1px solid var(--light-sky-grey); background: #fff; color: var(--dark-grey); }
.nx_tour_tip .tt_next { border: 0; background: var(--bx-primary-color); color: #fff; }

/* =====================================================================
   TOAST NOTIFICHE — arrivo simulato di nuovi segnali NIXIE
   ===================================================================== */
.nx_toast_wrap {
  position: fixed; top: calc(var(--header-height) + 12px); right: 16px;
  z-index: calc(var(--z-panel) + 10);
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.nx_toast {
  display: flex; align-items: flex-start; gap: 10px;
  width: 340px; max-width: calc(100vw - 32px);
  background: rgba(255,255,255,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--light-sky-grey); border-left: 3px solid var(--bx-primary-color);
  border-radius: var(--radius-10); padding: 12px 14px;
  box-shadow: 1px 2px 18px 1px rgba(60,60,60,.18);
  cursor: pointer; pointer-events: auto;
  animation: toast-in .45s var(--motion-ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }
.nx_toast.leaving { opacity: 0; transform: translateX(40px); transition: all .4s var(--motion-ease); }
.nx_toast .t_logo { width: 32px; height: 32px; flex-shrink: 0; border: 1.5px solid var(--bx-primary-color); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.nx_toast .t_body { flex: 1; font-size: 12.5px; line-height: 1.35; }
.nx_toast .t_body b { display: block; font-size: 13px; }
.nx_toast .t_body span { color: var(--dark-grey); }
.nx_toast .t_close { background: none; border: 0; color: var(--neutrals-normal); font-size: 12px; cursor: pointer; flex-shrink: 0; }
.nx_toast .t_close:hover { color: var(--bx-primary-font-color); }

/* =====================================================================
   BREADCRUMB — blendx_website.breadcrumb_template
   ===================================================================== */
.bx_breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0; font-size: 13px; color: var(--dark-grey); font-family: var(--font-nunito); }
.bx_breadcrumb a { color: var(--dark-grey); }
.bx_breadcrumb a:hover { color: var(--bx-primary-font-color); text-decoration: underline; }
.bx_breadcrumb .sep { color: var(--neutrals-normal); }
.bx_breadcrumb .current { color: var(--bx-primary-font-color); font-weight: 700; }

/* =====================================================================
   BOTTONI — .theme_btn_gradient (reale: gradiente, radius 10)
   ===================================================================== */
.theme_btn_gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-gradiant-green); color: #fff;
  border: 0; border-radius: var(--radius-10);
  padding: 10px 22px; font-family: var(--font-nunito); font-size: 14px; font-weight: 700;
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast);
}
.theme_btn_gradient:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.btn_outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--bx-primary-font-color);
  border: 1px solid var(--bx-primary-color); border-radius: var(--radius-10);
  padding: 9px 20px; font-size: 14px; font-weight: 700;
  transition: background var(--motion-fast) var(--motion-ease);
}
.btn_outline:hover { background: var(--light-grey); }
.btn_ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; color: var(--dark-grey);
  font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-8);
  cursor: pointer;
}
.btn_ghost:hover { background: var(--light-grey); color: var(--bx-primary-font-color); }
.disable_btn { opacity: .5; pointer-events: none; }

/* Badge LIVE (pattern nixie) */
.live_badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  border: 1px solid var(--bx-primary-color); border-radius: 4px; padding: 2px 7px;
}
.live_badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1a1a1a; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* Pill / chip filtro */
.bx_pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--extra-light-grey); border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: 12px; font-weight: 600; background: #fff;
  white-space: nowrap; cursor: pointer;
}
.bx_pill.selected, .bx_pill:hover { border-color: var(--bx-primary-color); }
.bx_pill.selected { background: var(--bx-primary-color); color: #fff; }

/* =====================================================================
   CARD — .common_single_card_snippet (radius 16)
   ===================================================================== */
.common_single_card_snippet {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--light-sky-grey);
  border-radius: var(--radius-16); padding: 20px;
  transition: border-color var(--motion-base), box-shadow var(--motion-base), transform var(--motion-base);
}
.card_interactive { cursor: pointer; }
.card_interactive:hover { border-color: var(--bx-primary-color); box-shadow: var(--box-shadow); }

/* KPI tile */
.kpi_tile { min-height: 110px; justify-content: center; }
.kpi_tile .kpi_value { font-family: var(--font-ubuntu); font-size: 30px; font-weight: 700; line-height: 1.1; }
.kpi_tile .kpi_label { font-size: 13px; font-weight: 700; margin-top: 2px; }
.kpi_tile .kpi_sub { font-size: 12px; color: var(--dark-grey); }

/* Sezione con titolo */
.bx_section { margin: 28px 0; }
.bx_section_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.bx_section_title { font-family: var(--font-ubuntu); font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.bx_section_link { font-size: 13px; font-weight: 700; color: var(--dark-grey); white-space: nowrap; }
.bx_section_link:hover { color: var(--bx-primary-font-color); text-decoration: underline; }

/* Tab — .search_category_tabs / .search_tab_btn */
.search_category_tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--light-sky-grey); overflow-x: auto; scrollbar-width: none; }
.search_category_tabs::-webkit-scrollbar { display: none; }
.search_tab_btn {
  border: 0; background: transparent; padding: 10px 16px;
  font-size: 14px; font-weight: 700; color: var(--dark-grey);
  border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer;
}
.search_tab_btn:hover { color: var(--bx-primary-font-color); }
.search_tab_btn.active { color: var(--bx-primary-font-color); border-bottom-color: var(--bx-primary-color); }

/* Progress bar — blendX_progress_bar */
.bx_progress { height: 8px; background: var(--light-sky-grey); border-radius: 4px; overflow: hidden; }
.bx_progress .bar { height: 100%; background: var(--bx-primary-color); border-radius: 4px; }

/* Empty state = discovery CTA */
.bx_empty_state { text-align: center; padding: 40px 24px; border: 1px dashed var(--neutrals-normal); border-radius: var(--radius-16); color: var(--dark-grey); }

/* =====================================================================
   COMPONENTI AI (dal Design System AI Figma, resi B&W)
   ===================================================================== */
:root {
  /* Gradiente AI (originale: #C9CBFE → #E3C4F7 → #FFD0B0) reso in grigi */
  --ai-grad: linear-gradient(33deg, #cfcfcf 8.5%, #e9e9e9 44.7%, #c6c6c6 99%);
  --ai-grad-soft: linear-gradient(77deg, rgba(236,236,236,.7) 8.5%, rgba(244,244,244,.7) 44.7%, rgba(228,228,228,.7) 99%);
}

/* --- Field AI (306-11183): card risposta della chat --- */
.ai_field {
  position: relative; width: 100%;
  background: var(--ai-grad);
  border-radius: var(--radius-16);
  padding: 4px 4px 8px;
  filter: drop-shadow(4px 4px 3.35px rgba(0,0,0,.1));
}
.ai_field_content { background: #fff; border-radius: var(--radius-16); padding: 16px; font-size: 14px; line-height: 1.6; color: #272727; }
.ai_field_actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 6px 0; }
.ai_field_actions .af_copy { border: 0; background: none; color: #272727; font-size: 15px; cursor: pointer; padding: 2px; }
.ai_field_actions .af_copy:hover { opacity: .6; }
.ai_field_actions .af_plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bx-primary-color); color: #fff;
  border: 2px solid #4a4a4a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
}
.ai_field_actions .af_plus:hover { opacity: .85; }
.ai_field .af_info { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--dark-grey); font-size: 17px; cursor: pointer; }
.ai_field .af_info:hover { color: var(--bx-primary-font-color); }

/* --- Loader "lottie" (352-913): cerchio di pallini che ruota --- */
.ai_loader_dots { position: relative; width: 84px; height: 84px; animation: ai-dots-rot 1.6s linear infinite; flex-shrink: 0; }
.ai_loader_dots span {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  background: var(--bx-primary-color);
  width: calc(6px + var(--s) * 12px); height: calc(6px + var(--s) * 12px);
  opacity: calc(.25 + var(--s) * .75);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-30px);
}
@keyframes ai-dots-rot { to { transform: rotate(360deg); } }
.ai_loader_dots.small { width: 20px; height: 20px; }
.ai_loader_dots.small span { width: calc(2px + var(--s) * 3.5px); height: calc(2px + var(--s) * 3.5px); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-7px); }

/* --- Stato di attesa pannello (352-913) --- */
.ai_wait_panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 40px 20px;
  background: var(--ai-grad-soft);
  border-radius: var(--radius-16); height: 100%;
  animation: msg-in .3s ease;
}
.ai_wait_title { font-family: var(--font-nunito); font-size: 19px; font-weight: 700; color: var(--bx-primary-font-color); }
.ai_wait_sub { font-size: 13.5px; font-weight: 500; color: var(--dark-grey); max-width: 260px; }

/* --- Chip di attesa compatta (382-482) --- */
.ai_chip_loading { display: inline-flex; align-items: center; gap: 8px; }
.ai_chip_loading .acl_orb {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--ai-grad);
  display: flex; align-items: center; justify-content: center;
}
.ai_chip_loading .acl_text { font-size: 15px; font-weight: 700; color: var(--bx-primary-font-color); animation: acl-pulse 1.6s ease-in-out infinite; }
@keyframes acl-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* --- Icone reali dei moduli blendX (rese B&W via filtro) --- */
.app_module_icon { width: 58%; height: 58%; object-fit: contain; filter: grayscale(1) contrast(1.05); }
/* su tile scuro (app AI / titolo pagina) l'icona prodotto diventa bianca */
.app_icon.nx_app .app_module_icon, .app_module_icon.inverted { filter: grayscale(1) invert(1) brightness(1.4) contrast(1.05); }

/* =====================================================================
   LAYER COMMENTI (review del wireframe)
   ===================================================================== */
html.cmt_dropping, html.cmt_dropping * { cursor: crosshair !important; }
.cmt_layer { position: absolute; top: 0; left: 0; width: 100%; z-index: 1900; pointer-events: none; }
.cmt_layer.hidden .cmt_pin, .cmt_layer.hidden .cmt_bubble { display: none; }
.cmt_pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50% 50% 50% 4px;
  background: var(--bx-primary-color); color: #fff;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35);
  font-size: 12px; font-weight: 800; cursor: pointer; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
  font-family: var(--font-nunito);
}
.cmt_pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.cmt_bubble {
  position: absolute; transform: translateX(-50%);
  width: 280px; max-width: calc(100vw - 24px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--light-sky-grey); border-radius: var(--radius-10);
  box-shadow: 0 8px 28px rgba(0,0,0,.25); padding: 12px 14px;
  pointer-events: auto; z-index: 5; animation: msg-in .2s ease;
  font-family: var(--font-nunito);
}
.cmt_b_head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.cmt_b_date { color: var(--dark-grey); font-size: 11px; }
.cmt_b_del, .cmt_b_x { border: 0; background: none; color: var(--dark-grey); cursor: pointer; font-size: 13px; padding: 2px; }
.cmt_b_del { margin-left: auto; }
.cmt_b_del:hover, .cmt_b_x:hover { color: var(--bx-primary-font-color); }
.cmt_b_text { font-size: 13px; line-height: 1.5; }
.cmt_editor .cmt_e_name, .cmt_editor .cmt_e_text {
  width: 100%; border: 1px solid var(--extra-light-grey); border-radius: var(--radius-8);
  padding: 7px 10px; font-size: 13px; font-family: var(--font-nunito); outline: none; margin-bottom: 8px;
  background: #fff; resize: vertical;
}
.cmt_editor .cmt_e_name:focus, .cmt_editor .cmt_e_text:focus { border-color: var(--bx-primary-color); }
.cmt_e_actions { display: flex; justify-content: flex-end; gap: 8px; }
.cmt_e_cancel { border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--dark-grey); cursor: pointer; padding: 6px 10px; }
.cmt_e_save { border: 0; background: var(--btn-gradiant-green); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: var(--radius-8); padding: 6px 16px; cursor: pointer; }

/* Toolbar commenti (in basso a sinistra) */
.cmt_toolbar {
  position: fixed; left: 16px; bottom: 16px; z-index: 2000;
  display: flex; flex-direction: column; gap: 6px; padding: 6px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--light-sky-grey); border-radius: var(--radius-pill);
  box-shadow: var(--box-shadow);
}
.cmt_t_btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; color: var(--bx-primary-font-color);
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cmt_t_btn:hover { background: rgba(0,0,0,.07); }
.cmt_t_btn.active { background: var(--bx-primary-color); color: #fff; }
.cmt_t_btn.off { color: var(--neutrals-normal); }
.cmt_badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--bx-primary-color); color: #fff; border: 1.5px solid #fff;
  font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Pannello lista commenti (si apre dalla toolbar) */
.cmt_panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 2001;
  width: min(340px, calc(100vw - 32px)); max-height: min(480px, 72vh);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--light-sky-grey); border-radius: var(--radius-16);
  box-shadow: 0 16px 44px rgba(0,0,0,.25);
  animation: cmt-panel-in .25s var(--motion-ease);
}
@keyframes cmt-panel-in { from { opacity: 0; transform: translateY(10px); } }
.cmt_p_head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--light-sky-grey); font-size: 14px; }
.cmt_p_body { overflow-y: auto; padding: 6px; }
.cmt_p_empty { text-align: center; color: var(--dark-grey); font-size: 12.5px; padding: 26px 14px; }
.cmt_p_page { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--dark-grey); padding: 10px 8px 4px; }
.cmt_p_item {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: var(--radius-10);
  padding: 8px; cursor: pointer; font-family: inherit;
}
.cmt_p_item:hover { background: var(--light-grey); }
.cmt_p_pin {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: var(--bx-primary-color); color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.cmt_p_main { min-width: 0; }
.cmt_p_main b { font-size: 12px; }
.cmt_p_date { font-size: 10.5px; color: var(--dark-grey); margin-left: 6px; }
.cmt_p_text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: var(--dark-grey); line-height: 1.45; margin-top: 1px;
}
/* pin evidenziato quando lo si raggiunge dalla lista */
.cmt_pin.flash { animation: cmt-flash 1.6s var(--motion-ease); }
@keyframes cmt-flash {
  0%, 40% { box-shadow: 0 0 0 6px rgba(26,26,26,.25), var(--box-shadow); transform: translate(-50%, -50%) scale(1.35); }
  100% { box-shadow: var(--box-shadow); transform: translate(-50%, -50%) scale(1); }
}

/* =====================================================================
   GATE PASSWORD (accesso al wireframe pubblicato)
   ===================================================================== */
.nx_gate {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--bx-primary-color);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.nx_gate_card {
  width: 360px; max-width: 100%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-20);
  padding: 34px 30px; text-align: center; color: #fff;
}
.nx_gate_card img { height: 54px; margin-bottom: 18px; }
.nx_gate_card h2 { font-family: var(--font-ubuntu); font-size: 20px; margin-bottom: 4px; }
.nx_gate_card p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.nx_gate_card input {
  width: 100%; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-10);
  background: rgba(255,255,255,.12); color: #fff; padding: 11px 14px; font-size: 14px;
  outline: none; text-align: center; margin-bottom: 12px; font-family: var(--font-nunito);
}
.nx_gate_card input::placeholder { color: rgba(255,255,255,.55); }
.nx_gate_card input.error { border-color: #fff; animation: gate-shake .3s; }
@keyframes gate-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.nx_gate_card button {
  width: 100%; border: 0; border-radius: var(--radius-10); padding: 11px;
  background: #fff; color: var(--bx-primary-color); font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: var(--font-nunito);
}

/* =====================================================================
   PROVENIENZA DATI — distinzione dato originale vs generato da AI
   ===================================================================== */
.data_badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  border-radius: 4px; padding: 2px 7px; white-space: nowrap; vertical-align: middle;
}
/* Badge AI: solo il logo NIXIE in un quadrato, padding identico sui 4 lati (il testo "AI" è azzerato) */
.data_badge.ai { background: var(--bx-primary-color); color: #fff; font-size: 0; letter-spacing: 0; width: 22px; height: 22px; padding: 0; border-radius: 6px; position: relative; }
.data_badge.ai::after { content: ''; position: absolute; inset: 5px; background: url('img/nixie_logo_white.svg') center / contain no-repeat; }
.data_badge.orig { background: #fff; border: 1px solid var(--neutrals-normal); color: var(--dark-grey); }
.data_badge.orig::before { content: '●'; font-size: 7px; }
/* Sezione interamente AI: bordo distintivo tratteggiato + glow leggero */
.ai_section { border: 1.5px dashed var(--bx-primary-color); position: relative; }
.ai_section::after {
  content: ''; position: absolute; top: -11px; right: 16px;
  width: 22px; height: 22px;
  background: var(--bx-primary-color) url('img/nixie_logo_white.svg') no-repeat center / 12px 12px;
  border-radius: 6px;
}

/* =====================================================================
   FOOTER — blendx_website.footer_custom_ext (.bx_footer)
   ===================================================================== */
.bx_footer { background: var(--bx-primary-color); color: #fff; margin-top: 56px; }
.bx_footer_container { max-width: var(--container-max); margin: 0 auto; padding: 40px 24px 24px; }
.bx_footer_top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bx_footer_brand { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.bx_footer_logo_img { height: 52px; width: auto; align-self: flex-start; }
.bx_footer_tagline { font-size: 14px; color: rgba(255,255,255,.75); margin: 0; font-family: var(--font-nunito); }
.bx_footer_socials { display: flex; gap: 12px; }
.bx_footer_social_link { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; }
.bx_footer_social_link:hover { background: rgba(255,255,255,.15); }
.bx_footer_social_icon { width: 16px; height: 16px; fill: #fff; }
.bx_footer_separator { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 24px 0 16px; }
.bx_footer_bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bx_footer_bottom_left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); }
.bx_footer_copyright, .bx_footer_company { margin: 0; }
.bx_footer_powered_by { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bx_footer_blendx_link { font-family: var(--font-ubuntu); font-weight: 700; color: #fff; }
.bx_footer_legal_links { display: flex; gap: 18px; font-size: 13px; }
.bx_footer_legal_links a { color: rgba(255,255,255,.75); }
.bx_footer_legal_links a:hover { color: #fff; text-decoration: underline; }

/* =====================================================================
   PAGE SCAFFOLD
   ===================================================================== */
.bx_page_main { min-height: calc(100vh - var(--header-height) - 300px); }
.bx_page_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.bx_page_title { font-family: var(--font-ubuntu); font-size: 32px; font-weight: 700; display: flex; align-items: center; gap: 14px; }
.bx_page_title .page_icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; background: var(--bx-primary-color); color: #fff; display: flex; align-items: center; justify-content: center; }
.bx_page_title .page_icon.lite { background: #fff; border: 1.5px solid var(--bx-primary-color); }
.bx_page_subtitle { font-size: 15px; color: var(--dark-grey); margin-top: 4px; font-family: var(--font-nunito); }

.bx_overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: calc(var(--z-panel) - 1); display: none; }
.bx_overlay.open { display: block; }

/* =====================================================================
   RESPONSIVE (breakpoint reali: 767 / 991)
   ===================================================================== */
@media (max-width: 991px) {
  .global_search_widget.visible { width: 220px; }
  .global_search_dropdown { width: 350px; }
}
@media (max-width: 767px) {
  header.custom-header nav { padding: 8px 20px; }
  .custom_header_logo .bx_logo_name { display: none; }
  .header_feature_btn .app_name { display: none; }
  .bx_header_actions { gap: 10px; }
  .user_custom .user_avatar { width: 42px; height: 42px; }
  .global_search_widget.visible { position: fixed; top: 12px; left: 12px; right: 68px; width: auto; background: #fff; border: 1px solid var(--bx-secondary-color); z-index: var(--z-modal); }
  .global_search_widget.visible .global_search_input { color: var(--bx-primary-font-color); }
  .global_search_widget.visible .global_search_input::placeholder { color: var(--dark-grey); }
  .global_search_dropdown { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
  .bx_side_panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; max-height: 78vh; border-radius: var(--radius-20) var(--radius-20) 0 0; }
  .bx_side_panel::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--neutrals-normal); margin: 0 auto 14px; }
  .bx_page_title { font-size: 24px; }
  .bx_page_title .page_icon { width: 38px; height: 38px; }
  .bx_footer_top, .bx_footer_bottom { flex-direction: column; align-items: flex-start; }
  .nx_fab { right: 14px; bottom: 14px; }
}
