/* =============================================
   PuzzleManager Guest PWA v2 - Style Sheet
   Data: 2026-07-05
   ============================================= */

:root {
  --cyan: #00E5FF;
  --purple: #7C3AED;
  --bg: #070B14;
  --bg2: #0F172A;
  --bg3: #1E293B;
  --text: #F1F5F9;
  --text2: #94A3B8;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --nav-h: 68px;
  
  /* Contextual UI Morphing Variables (Default: Neutro/Base) */
  --ctx-primary: #00E5FF;
  --ctx-accent: #7C3AED;
  --ctx-bg: #070B14;
  --ctx-gradient: radial-gradient(ellipse at top, #0a1628 0%, #070B14 60%);
  --ctx-hero-msg: "Benvenuto";
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Nascondi barra navigazione Guest nei profili speciali */
body.role-manager .bottom-nav,
body.role-staff .bottom-nav,
body.role-supplier .bottom-nav {
  display: none !important;
}

/* Nascondi Manager bottom dock nei profili non-manager */
body.role-guest .manager-bottom-dock,
body.role-staff .manager-bottom-dock,
body.role-supplier .manager-bottom-dock {
  display: none !important;
}

/* ---- SCREENS ---- */
.screen-center {
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 20px 16px 40px;
  background: radial-gradient(ellipse at top, #0a1628 0%, #070B14 60%);
}

.hidden,
.modal-overlay.hidden,
.modal.hidden,
.bottom-sheet.hidden,
[id^="modal"].hidden,
[id*="Drawer"].hidden,
[id*="subview"].hidden,
[id*="Overlay"].hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Utilità per rimuovere tutte le barre di scorrimento visibili (Windows/WebKit/Firefox) */
.no-scrollbar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar-thumb,
.no-scrollbar::-webkit-scrollbar-track {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* ---- AUTH CARD ---- */
.auth-card {
  width: 100%;
  max-width: 400px;
  padding-bottom: 30px;
}

.logo-area {
  text-align: center;
  padding: 32px 0 24px;
}

.logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 32px rgba(0,229,255,0.3);
}

.logo-area h1 {
  font-size: 22px; font-weight: 800; color: var(--text);
}
.logo-area p {
  font-size: 12px; color: var(--text2); margin-top: 4px;
}

.form-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 20px;
}

.form-section h2 {
  font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 6px;
}
.form-section .subtitle {
  font-size: 11px; color: var(--text2); text-align: center; margin-bottom: 20px; line-height: 1.5;
}

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus { border-color: var(--cyan); }

.input-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--ctx-primary, var(--cyan)), var(--ctx-accent, #0099BB));
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.1s;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.btn-primary:active::after {
  animation: ripple 0.4s ease-out;
}

@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 0.5; }
  100% { transform: scale(40, 40); opacity: 0; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--ctx-primary, rgba(0,229,255,0.4));
}
.btn-primary:active { transform: scale(0.96) translateY(0); opacity: 0.9; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.btn-primary:disabled { opacity: 0.5; pointer-events: none; }

.btn-secondary {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ctx-primary, var(--cyan));
  color: var(--ctx-primary, var(--cyan));
  border-radius: 14px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.1s;
}
.btn-secondary:hover {
  background: rgba(0,229,255,0.05); /* Fallback */
  background: color-mix(in srgb, var(--ctx-primary, var(--cyan)) 10%, transparent);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: scale(0.96) translateY(0); background: rgba(0,229,255,0.1); }
.btn-secondary:disabled { opacity: 0.5; pointer-events: none; }

.btn-outline {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  width: 100%; margin-bottom: 12px;
  transition: background 0.2s;
}
.btn-outline:active { background: rgba(255,255,255,0.08); }

.divider {
  text-align: center; font-size: 10px; color: var(--text2);
  margin: 20px 0; letter-spacing: 0.1em;
  position: relative;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%;
  width: 38%; height: 1px; background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.register-section h3 {
  font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--text2);
}

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 11px; color: var(--text2); margin-bottom: 16px; cursor: pointer; line-height: 1.5;
}
.checkbox-row input { margin-top: 2px; flex-shrink: 0; }

.error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
  font-size: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* ---- MAIN APP LAYOUT ---- */
#pwaMainContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px;
  background: #070B14;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}

.manager-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0F172A !important;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-left { display: flex; align-items: center; gap: 10px; }

.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.topbar-name { font-size: 13px; font-weight: 700; }
.topbar-level { font-size: 10px; color: var(--cyan); font-weight: 600; }

.points-badge {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}

.points-badge-sm {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px; font-weight: 700;
}

/* ---- VIEWS & PANELS ARCHITECTURAL LAYOUT GUARANTEES ---- */
.view { 
  display: none;
  flex: 1 1 auto; 
  min-height: calc(100vh - 120px); 
  box-sizing: border-box; 
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
}
.view-content { 
  padding: 16px; 
  padding-bottom: calc(var(--nav-h) + 32px); 
  box-sizing: border-box; 
  width: 100%; 
  min-height: 400px; 
}
.view.hidden { display: none !important; }
.view.active {
  display: block !important;
  flex: 1 1 auto;
  min-height: calc(100vh - 120px); /* Assicurati che un minimo ci sia SEMPRE */
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ANTI-COLLAPSE NESTING RULES - Previene che l'Auditor trovi 0px sulle child view */
#view-manager.active, #view-staff.active, #view-supplier.active {
  display: block !important;
  min-height: 100dvh !important;
}

.view-content { 
  padding: 16px; 
  padding-bottom: calc(var(--nav-h) + 32px); 
  box-sizing: border-box; 
  width: 100%; 
  min-height: 400px;
  display: block !important; /* Forza sempre block sul layer intermedio */
}

/* Sub-dock and Sub-tab Container Anti-Collapse Rules */
.manager-panel:not(.hidden),
.s-tab-content:not(.hidden),
.adm-tab-content:not(.hidden),
.staff-content:not(.hidden),
.supplier-content:not(.hidden),
.staff-tab-content:not(.hidden),
.tab-pane:not(.hidden) {
  display: block !important;
  min-height: 380px !important;
  height: auto !important;
  box-sizing: border-box;
}

/* ---- REUSABLE COMPONENTS ---- */
.section-title {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin: 16px 0 10px;
}
.section-title:first-child { margin-top: 0; }

.card-list { display: flex; flex-direction: column; gap: 8px; }

.empty-state {
  text-align: center; color: var(--text2); font-size: 12px;
  padding: 32px 16px; line-height: 2;
}
.empty-state i { font-size: 24px; margin-bottom: 8px; display: block; }

/* ---- AI BANNER ---- */
.ai-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(0,229,255,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.ai-banner:active { background: rgba(124,58,237,0.3); }
.ai-banner-title { font-size: 12px; font-weight: 700; color: #D8B4FE; margin-bottom: 3px; }
.ai-banner-sub { font-size: 11px; color: var(--text2); }

/* ---- PROFILE CARD ---- */
.profile-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,58,237,0.1), rgba(0,0,0,0.5));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.profile-card::after {
  content: ''; position: absolute;
  right: -20px; bottom: -20px;
  width: 100px; height: 100px;
  background: rgba(0,229,255,0.07);
  border-radius: 50%;
}
.profile-card-level { font-size: 10px; color: var(--cyan); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-card-name { font-size: 20px; font-weight: 800; margin: 4px 0; }
.profile-card-pts { font-size: 11px; color: var(--text2); }

/* ---- FILTER CHIPS ---- */
.filter-chips { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap; cursor: pointer;
  transition: all 0.2s;
}
.chip.active {
  background: rgba(0,229,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---- LOCALE CARD ---- */
.locale-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.locale-card:active { background: rgba(255,255,255,0.08); }
.locale-card.affiliato {
  background: linear-gradient(to right, rgba(0,229,255,0.05), transparent);
  border-color: rgba(0,229,255,0.15);
}
.locale-card-info { flex: 1; min-width: 0; }
.locale-card-name { font-size: 13px; font-weight: 700; }
.locale-card-address { font-size: 10px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locale-card-meta { font-size: 10px; color: var(--text2); margin-top: 4px; }

/* ---- ID CARD ---- */
.id-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,58,237,0.1), rgba(0,0,0,0.5));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.id-card-bg {
  position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px;
  background: rgba(0,229,255,0.08);
  border-radius: 50%;
  filter: blur(20px);
}
.id-card-content { position: relative; z-index: 1; }
.id-card-logo {
  position: absolute; top: 16px; left: 20px;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.id-card-name { font-size: 22px; font-weight: 800; }
.id-card-level { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 600; margin-top: 2px; }
.id-card-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ---- MENU LIST ---- */
.menu-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.menu-item {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s;
}
.menu-item:active { background: rgba(255,255,255,0.07); }
.menu-item-danger { color: #F87171; margin-top: 12px; }

/* ---- CART ---- */
.cart-total {
  font-size: 13px; font-weight: 600;
  padding: 12px 0;
  display: flex; align-items: center; gap: 10px;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  display: flex;
  height: var(--nav-h);
  background: rgba(7,11,20,0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: none; border: none;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item i { font-size: 20px; transition: color 0.2s; }
.nav-item.active { color: var(--cyan); }
.nav-item.active i { color: var(--cyan); }

/* Centered Social Highlight item */
.nav-item-highlight {
  position: relative;
  align-self: center;
  margin-top: -24px !important;
  background: linear-gradient(135deg, #7C3AED, #00E5FF) !important;
  color: #fff !important;
  width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4), 0 0 0 5px rgba(7, 11, 20, 0.95);
  flex-grow: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 25;
}
.nav-item-highlight i {
  font-size: 24px !important;
  color: #fff !important;
  margin-bottom: 0px !important;
}
.nav-item-highlight span {
  display: none !important; /* Hide small label for highlighted button */
}
.nav-item-highlight.active {
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.55), 0 0 0 5px rgba(7, 11, 20, 0.95);
  background: linear-gradient(135deg, #00E5FF, #7C3AED) !important;
}

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 12px; font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 100;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- MAPPA LEAFLET DARK & PULSINO RADAR ---- */
.leaflet-container {
  background: #070b14 !important;
  font-family: inherit;
}
.leaflet-bar {
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}
.leaflet-bar a {
  background: #1e293b !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.leaflet-bar a:hover {
  background: #334155 !important;
}

/* Radar Pulsante */
.radar-pulse-marker {
  width: 20px;
  height: 20px;
  background: var(--cyan);
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--cyan);
}
.radar-pulse-marker::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  animation: radarWave 1.8s infinite linear;
  opacity: 0;
  box-sizing: border-box;
}
@keyframes radarWave {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Custom Marker design */
.radar-custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}


/* ---- MAPPA LEAFLET NATIVE DARK MATTER ---- */
.leaflet-container {
  background: #0B0F19 !important;
}
.leaflet-tile {
  filter: brightness(102%) contrast(105%);
}
.leaflet-marker-pane,
.leaflet-shadow-pane,
.leaflet-overlay-pane {
  filter: none !important;
}

/* ---- SEARCHBAR INTENT CHIPS (T1.C) ---- */
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  animation: fadeSlideIn 0.25s ease forwards;
}
.search-chip-geo {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid #00E5FF;
  color: #00E5FF;
}
.search-chip-cat {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid #7C3AED;
  color: #C4B5FD;
}
.search-chip-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.search-chip-btn:hover {
  opacity: 1;
}

/* ---- LOCALE DETAIL ---- */
.locale-detail-sheet {
  position: fixed; inset: 0; z-index: 99999 !important;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: flex; align-items: flex-end; justify-content: center;
  box-sizing: border-box;
}
.locale-detail-panel {
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 32px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.locale-detail-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ---- SUPPLIER PROFILE STYLE OVERRIDES ---- */
body.role-supplier {
  --cyan: #FF6B35;
}

.badge-ricevuto {
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.3);
  color: #FFC107;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-confermato {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: #3B82F6;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-spedito {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-rifiutato {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ---- GESTORE PROFILE STYLE OVERRIDES ---- */
body.role-manager {
  --cyan: #7C3AED;
}

/* ---- STAFF PROFILE STYLE OVERRIDES ---- */
body.role-staff {
  --cyan: #10B981;
}

/* ===== MARKET MODULE CSS ===== */
.market-sub-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.market-sub-btn.active {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.3);
  color: #a78bfa;
}

.market-kpi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.market-kpi-value {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.market-kpi-label {
  font-size: 9px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.badge-rincaro {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-rincaro.up {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #EF4444;
}

.badge-rincaro.down {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10B981;
}

.manager-panel {
  min-height: calc(100vh - 120px) !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  box-sizing: border-box;
}

.manager-panel:not(.hidden) {
  display: block !important;
}

.manager-panel > div:not(.hidden) {
  display: block !important;
  height: auto !important;
  min-height: 100px;
}

/* =============================================
   MANAGER PREMIUM LAYOUT (STEP 1)
   ============================================= */
:root {
  --mg-primary: #7C3AED;
  --mg-primary-glow: rgba(124, 58, 237, 0.15);
  --mg-cyan: #00E5FF;
  --mg-success: #10B981;
  --mg-warning: #F59E0B;
  --mg-danger: #EF4444;
  --mg-bg: #070B14;
  --mg-surface: rgba(255, 255, 255, 0.03);
  --mg-border: rgba(255, 255, 255, 0.08);
  --mg-border-active: rgba(124, 58, 237, 0.3);
  --mg-glass: rgba(15, 23, 42, 0.7);
}

/* Header Slim fluttuante del Gestore */
.manager-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mg-border);
}

.manager-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.manager-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 14px var(--mg-primary-glow);
  flex-shrink: 0;
}

.manager-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manager-header-subtitle {
  font-size: 10px;
  color: #64748B;
  font-family: monospace;
  margin-top: 1px;
}

/* Navigazione Bottom Dock principale per il Gestore */
.manager-bottom-dock {
  display: flex;
  height: 72px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--mg-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 999;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  justify-content: space-around;
  align-items: center;
}

.manager-dock-item {
  flex: 1;
  background: none;
  border: none;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.manager-dock-item i {
  font-size: 18px;
  transition: transform 0.2s;
}

.manager-dock-item span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manager-dock-item.active {
  color: var(--mg-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.manager-dock-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: var(--mg-cyan);
}

/* Griglia KPI Home */
.m-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.m-kpi-card {
  background: var(--mg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.m-kpi-card:active {
  transform: scale(0.98);
}

.m-kpi-card .label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.m-kpi-card .value {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
  margin-top: 8px;
  line-height: 1;
}

.m-kpi-card.glow-purple { border-color: rgba(124, 58, 237, 0.25); }
.m-kpi-card.glow-cyan { border-color: rgba(0, 229, 255, 0.25); }
.m-kpi-card.glow-warning { border-color: rgba(245, 153, 11, 0.25); }
.m-kpi-card.glow-danger { border-color: rgba(239, 68, 68, 0.25); }

.m-kpi-card.glow-purple .value { color: #a78bfa; }
.m-kpi-card.glow-cyan .value { color: var(--mg-cyan); }
.m-kpi-card.glow-warning .value { color: var(--mg-warning); }
.m-kpi-card.glow-danger .value { color: var(--mg-danger); }

/* Shortcut Home */
.m-shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.m-shortcut-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--mg-primary);
}

.m-shortcut-btn i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.m-shortcut-btn.viola i { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.m-shortcut-btn.verde i { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.m-shortcut-btn.cyan i { background: rgba(0, 229, 255, 0.15); color: var(--mg-cyan); }

/* Griglia Giacenze Prodotti (Card Grid) */
.m-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.m-product-card {
  background: var(--mg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 100px;
  transition: all 0.2s;
}

.m-product-card:active {
  transform: scale(0.97);
}

.m-product-card .sku {
  font-size: 8px;
  color: #64748B;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.m-product-card .name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-product-card .bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.m-product-card .category {
  font-size: 9px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65px;
}

.m-product-card .qty-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: monospace;
}

/* Stato SOTTO SCORTA - Glow rosso neon */
.m-product-card.alert {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.03);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.m-product-card.alert .qty-badge {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

/* Sub-navigazione scrollabile stile pill (es. per il Market) */
.m-sub-dock {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.m-sub-dock::-webkit-scrollbar {
  display: none;
}

.m-sub-dock-btn {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  color: #94A3B8;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}

.m-sub-dock-btn.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--mg-primary);
  color: #fff;
}

/* Card Fatture e Spese */
.m-invoice-card {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.m-invoice-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #64748B;
}

.m-invoice-card.tipo-fattura::before { background: var(--mg-primary); }
.m-invoice-card.tipo-ddt::before { background: var(--mg-cyan); }
.m-invoice-card.tipo-spesa::before { background: var(--mg-success); }

.m-invoice-card-left {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}

.m-invoice-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-invoice-card-subtitle {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.m-invoice-card-right {
  text-align: right;
  flex-shrink: 0;
}

.m-invoice-card-amount {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: monospace;
}

.m-invoice-card-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  background: rgba(255,255,255,0.06);
  color: #94A3B8;
}

/* Modale con layout Glassmorphism */
.m-modal-glass {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--mg-border) !important;
}

.m-modal-header {
  border-bottom: 1px solid var(--mg-border) !important;
}

/* Form Glassmorphism */
.m-form-glass {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.03);
}

.m-form-group {
  margin-bottom: 12px;
}

.m-form-group label {
  display: block;
  font-size: 9px;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.m-form-control {
  width: 100%;
  background: #1E293B !important;
  border: 1px solid var(--mg-border) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  box-sizing: border-box;
  font-family: inherit;
}

.m-form-control:focus {
  border-color: var(--mg-cyan) !important;
}

/* Bottone Premium */
.m-btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--mg-primary), #6366F1);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 14px var(--mg-primary-glow);
}

.m-btn-premium:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* BOTTOM DOCK GESTORE PREMIUM */

.m-dock-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: #94A3B8;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.m-dock-btn i {
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.m-dock-btn.active {
  color: var(--mg-primary);
}

.m-dock-btn.active i {
  color: var(--mg-primary);
  transform: translateY(-2px);
}

/* CASSA HIGHLIGHT BUTTON */
.m-dock-cassa {
  position: relative;
  overflow: visible;
}

.m-dock-cassa-circle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--mg-primary), #6366F1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--mg-primary-glow);
  border: 3px solid #070B14;
  margin-top: -24px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.m-dock-cassa-circle i {
  color: #fff !important;
  font-size: 18px !important;
}

.m-dock-btn.active .m-dock-cassa-circle {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* Marketplace Catalog Styles */
.m-market-card {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.02);
}

.m-market-card.locked {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.m-market-card.locked .m-market-icon {
  background: rgba(255, 255, 255, 0.03);
  color: #64748B;
  border-color: rgba(255, 255, 255, 0.05);
}

.m-market-card.locked h4 {
  color: #94A3B8;
}

.m-market-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* GRIGLIA MODULI HOME GESTORE */
.m-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.m-module-card {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.m-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--mod-color, var(--mg-primary));
}

.m-module-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.05);
}

.m-module-card.locked {
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none;
}

.m-module-card.locked::before {
  background: #475569 !important;
}

.m-module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.m-module-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--mod-color, #fff);
  background: var(--mod-color-bg, rgba(255,255,255,0.05));
}

.m-module-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.m-module-card.locked .m-module-card-title {
  color: #64748B;
}

.m-module-card-desc {
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.3;
}

/* Stili personalizzazione dock */
.personalizza-dock-item {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94A3B8;
  transition: all 0.2s;
  position: relative;
}

.personalizza-dock-item.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00E5FF;
  color: #00E5FF;
}

.personalizza-dock-item.fixed {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10B981;
  cursor: not-allowed;
}

.personalizza-badge-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0F172A;
}

/* Animazioni ed Edit Mode sul dock reale */
.manager-bottom-dock.edit-mode {
  border-color: #00E5FF !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  animation: pulseBorder 1.5s infinite alternate;
}

@keyframes pulseBorder {
  from { border-color: rgba(0, 229, 255, 0.3); }
  to { border-color: rgba(0, 229, 255, 0.8); }
}
/* HAMBURGER MENU DRAWER CLASSES */
#guestHamburgerDrawer,
#managerHamburgerDrawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: flex-start !important;
  pointer-events: auto !important;
}

#guestHamburgerDrawer.hidden,
#managerHamburgerDrawer.hidden {
  display: none !important;
  pointer-events: none !important;
}

#guestHamburgerDrawer > div:first-child,
#managerHamburgerDrawer > div:first-child {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  pointer-events: auto !important;
}

#guestHamburgerDrawerContent,
#managerHamburgerDrawerContent {
  position: relative !important;
  z-index: 2 !important;
  width: 300px !important;
  max-width: 85vw !important;
  height: 100% !important;
  flex-shrink: 0 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: auto !important;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.85) !important;
}

#guestHamburgerDrawer.active #guestHamburgerDrawerContent,
#managerHamburgerDrawer.active #managerHamburgerDrawerContent {
  transform: translateX(0) !important;
}

.m-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.m-drawer-item:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.06);
}

.m-drawer-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mod-color, #fff);
  background: var(--mod-color-bg, rgba(255,255,255,0.05));
}

.m-drawer-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

/* Forzatura Permanent Container Height Correction */
.manager-panel, 
div[id^="mPanel_"] {
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
}

.manager-panel.hidden,
div[id^="mPanel_"].hidden {
  display: none !important;
}

/* =============================================
   💎 PUZZLEMANAGER GLASSMORPHISM SKELETON LOADERS
   ============================================= */

@keyframes pm-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(0, 229, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: pm-shimmer 1.6s infinite ease-in-out !important;
}

.skeleton-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-box {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skeleton-box::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 229, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: pm-shimmer 1.5s infinite linear;
}

.skeleton-text {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.skeleton-text::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 229, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: pm-shimmer 1.5s infinite linear;
}

.skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.skeleton-avatar::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 229, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: pm-shimmer 1.5s infinite linear;
}


/* Banner Gestore B2B Link */
.banner-b2b-link {
  display: inline-flex;
  margin: 4px 0;
  font-size: 12px;
  color: #FCD34D;
  opacity: 0.85;
  text-decoration: none;
  transition: all 0.2s ease;
}
.banner-b2b-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== CONSULENTE AI NIGHTLIFE - MOOD CHIPS ===== */
.mood-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mood-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.25);
}
.mood-chip.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00E5FF;
  color: #00E5FF;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
