/* ============================================================================
   MAFFEI LABS — WOW LAYER (FASE A "Stella Viva")
   ----------------------------------------------------------------------------
   Layer additivo on-top di style.css. NON modifica logo né colori (--accent,
   --accent-bright, --accent-glow rimangono identici). Aggiunge motion cinematico,
   sparkles, halo, letter-rise, hover lift, skeleton constellation, page
   transitions.

   Aderente a `prefers-reduced-motion`: tutti gli effetti disabilitati lì sotto.
   ============================================================================ */


/* === KEYFRAMES =========================================================== */

/* Halo pulsante intorno alla stella */
@keyframes haloPulse {
  0%   { transform: scale(0.86); opacity: 0.0; filter: blur(8px); }
  40%  { opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; filter: blur(16px); }
}
@keyframes haloPulseSlow {
  0%   { transform: scale(0.9); opacity: 0; }
  50%  { opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Stella oscilla lieve */
@keyframes starBobLuxe {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50%      { transform: translateY(-4px) rotate(0.3deg); }
}

/* Mark glow drop-shadow che respira */
@keyframes markGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 210, 26, 0.30))
                     drop-shadow(0 0 18px rgba(184, 134, 11, 0.22)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 210, 26, 0.55))
                     drop-shadow(0 0 32px rgba(184, 134, 11, 0.35)); }
}

/* Sparkles — piccoli punti dorati che brillano */
@keyframes sparkleA {
  0%, 70%, 100% { opacity: 0; transform: scale(0.6); }
  35%           { opacity: 1; transform: scale(1.2); }
}
@keyframes sparkleB {
  0%, 60%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  30%           { opacity: 0.9; transform: scale(1.1) rotate(180deg); }
}

/* Hue shift sottile entro gamma oro */
@keyframes goldShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(-8deg); }
}

/* Letter rise — lettere wordmark che salgono */
@keyframes letterRise {
  0%   { transform: translateY(110%) rotate(8deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

/* Fade in up generico per page enter */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Skeleton constellation: dots che pulsano in pattern stella */
@keyframes constellationDot {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.25); box-shadow: 0 0 8px var(--accent-bright); }
}

/* Dash flow su path SVG (rings/agents-net) */
@keyframes dashFlow {
  to { stroke-dashoffset: -80; }
}

/* Particle packet: piccola pallina dorata che fluisce lungo un path */
@keyframes packetGlide {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* Bounce sotto pressione (tactile feedback) */
@keyframes tactilePress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Constellation forming entrance */
@keyframes constellationForm {
  0%   { opacity: 0; transform: scale(0.4) rotate(-15deg); }
  60%  { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Chip glow entrance */
@keyframes chipReveal {
  0%   { opacity: 0; transform: translateY(6px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* === BRAND STAR (LOGIN + SIDEBAR + DROP OVERLAY) ========================== */
/* Animazione SEMPRE attiva sulla stella, indipendentemente dal contesto */

.brand-star,
.empty-star,
.drop-star {
  animation: starBobLuxe 4.2s ease-in-out infinite,
             markGlow 3.6s ease-in-out infinite;
  transform-origin: center;
}

/* Login: stella grande con halo radiale dietro */
.page-login .brand {
  position: relative;
  isolation: isolate;
}
.page-login .brand::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
                rgba(255, 210, 26, 0.45) 0%,
                rgba(184, 134, 11, 0.18) 35%,
                transparent 70%);
  z-index: -1;
  opacity: 0;
  animation: haloPulseSlow 3.6s ease-in-out infinite;
  pointer-events: none;
}
.page-login .brand::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
                rgba(255, 210, 26, 0.55) 0%,
                transparent 60%);
  z-index: -1;
  opacity: 0;
  animation: haloPulse 3.6s ease-in-out infinite 1.8s;
  pointer-events: none;
}

/* Login: sparkles sparsi attorno alla brand */
.page-login .brand-sparkles {
  position: absolute;
  inset: -40px 0;
  pointer-events: none;
}
.page-login .brand-sparkles .spk {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--accent-bright) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.5px);
}
.page-login .brand-sparkles .spk:nth-child(1) { top: 8%;  left: 15%; animation: sparkleA 2.8s ease-in-out infinite 0.0s; }
.page-login .brand-sparkles .spk:nth-child(2) { top: 16%; right: 18%; animation: sparkleB 3.2s ease-in-out infinite 0.8s; }
.page-login .brand-sparkles .spk:nth-child(3) { top: 60%; left: 6%;  animation: sparkleA 3.6s ease-in-out infinite 1.6s; width: 4px; height: 4px; }
.page-login .brand-sparkles .spk:nth-child(4) { top: 70%; right: 8%; animation: sparkleB 2.4s ease-in-out infinite 0.4s; }
.page-login .brand-sparkles .spk:nth-child(5) { top: 35%; right: -4%; animation: sparkleA 4.0s ease-in-out infinite 2.0s; width: 5px; height: 5px; }
.page-login .brand-sparkles .spk:nth-child(6) { top: 45%; left: -4%; animation: sparkleB 3.0s ease-in-out infinite 1.2s; width: 4px; height: 4px; }


/* === EMPTY STATE HERO === ================================================= */

.empty-state {
  position: relative;
  isolation: isolate;
}

/* Stella container — usiamo questo wrapper per applicare animazioni */
.empty-state .star-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

/* Halo pulsante: due cerchi che si espandono in sequenza */
.empty-state .star-stage::before,
.empty-state .star-stage::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 210, 26, 0.55) 0%,
      rgba(184, 134, 11, 0.20) 35%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: haloPulseSlow 3.6s ease-in-out infinite;
}
.empty-state .star-stage::after {
  animation: haloPulse 3.6s ease-in-out infinite 1.8s;
}

/* SVG stella: bobble + glow */
.empty-state .star-stage svg {
  position: relative;
  z-index: 2;
  animation: starBobLuxe 4.2s ease-in-out infinite,
             markGlow 3.6s ease-in-out infinite;
  width: 96px;
  height: 96px;
}

/* Sparkles layer (5 punti dorati che brillano) */
.empty-state .sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.empty-state .sparkles .spk {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--accent-bright) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
}
.empty-state .sparkles .spk-1 { top: 10%;  left: 18%; animation: sparkleA 2.8s ease-in-out infinite 0.0s; }
.empty-state .sparkles .spk-2 { top: 22%;  right: 12%; animation: sparkleB 3.2s ease-in-out infinite 0.8s; }
.empty-state .sparkles .spk-3 { bottom: 18%; left: 8%;  animation: sparkleA 3.6s ease-in-out infinite 1.6s; width: 4px; height: 4px; }
.empty-state .sparkles .spk-4 { bottom: 12%; right: 22%; animation: sparkleB 2.4s ease-in-out infinite 0.4s; }
.empty-state .sparkles .spk-5 { top: 50%;  right: -6%; animation: sparkleA 4.0s ease-in-out infinite 2.0s; width: 5px; height: 5px; }

/* Empty state title — entra dal basso */
.empty-state .empty-title,
.empty-state .empty-sub {
  animation: fadeInUp 0.8s var(--ease) both;
}
.empty-state .empty-sub { animation-delay: 0.15s; }


/* === LETTER RISE — WORDMARK =============================================== */

/* Quando .lr-target è applicato a un elemento, le sue lettere (span.lr) entrano dal basso */
.lr-target {
  display: inline-flex;
  gap: 0;
  overflow: hidden;
  padding-bottom: 2px; /* per evitare clip su descender */
}
.lr-target .lr {
  display: inline-block;
  animation: letterRise 0.7s var(--ease) both;
  will-change: transform, opacity;
}


/* === HOVER LIFT CARDS ===================================================== */

.session-item,
.radio-card,
.stat-card,
.kb-item,
.user-row,
.dialog-card {
  transition: background 0.18s var(--ease),
              transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease),
              border-color 0.18s var(--ease);
}

.session-item:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -8px rgba(184, 134, 11, 0.35);
}
.session-item:active {
  transform: translateY(0) scale(0.99);
}
.session-item.active {
  box-shadow: inset 3px 0 0 var(--accent),
              0 6px 18px -10px rgba(184, 134, 11, 0.30);
}

.radio-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(184, 134, 11, 0.30),
              0 0 0 1px var(--accent-soft);
}


/* === BUTTONS WOW STATES =================================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.12s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 210, 26, 0.18) 50%,
    transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.btn-primary:hover:not(:disabled)::before { transform: translateX(120%); }
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 26px -10px rgba(184, 134, 11, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  animation: tactilePress 0.18s var(--ease);
  transform: translateY(0);
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}


/* === ATTACHMENT CHIP CON PREVIEW IMMAGINE ================================= */

.attachment-chip {
  animation: chipReveal 0.32s var(--ease) both;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.22s;
}
.attachment-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(184, 134, 11, 0.40);
}

/* Preview immagine: chip diventa più alto con miniatura 56x56 */
.attachment-chip.has-preview {
  padding: 6px 10px 6px 6px;
}
.attachment-chip .att-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-hover);
  flex-shrink: 0;
  border: 1px solid var(--rule);
  transition: box-shadow 0.22s var(--ease);
}
.attachment-chip.has-preview:hover .att-thumb {
  box-shadow: 0 0 0 2px var(--accent-glow);
}


/* === DROP OVERLAY ANIMATO ================================================= */

.drop-overlay {
  transition: opacity 0.22s var(--ease);
  opacity: 0;
}
.drop-overlay.active {
  display: flex;
  opacity: 1;
}
.drop-overlay.active .drop-card {
  animation: constellationForm 0.4s var(--ease) both;
}
.drop-card::before,
.drop-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
}
.drop-card {
  position: relative;
}
.drop-card::before { top: -4px; left: 20%; animation: sparkleA 2.4s ease-in-out infinite; }
.drop-card::after  { bottom: -4px; right: 22%; animation: sparkleB 2.8s ease-in-out infinite 1s; }


/* === SKELETON CONSTELLATION =============================================== */

.skel-constellation {
  display: grid;
  place-items: center;
  padding: var(--space-8) 0;
  min-height: 160px;
}
.skel-constellation .stars {
  position: relative;
  width: 120px;
  height: 80px;
}
.skel-constellation .stars i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: constellationDot 1.6s ease-in-out infinite;
}
.skel-constellation .stars i:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.skel-constellation .stars i:nth-child(2) { top: 30%; left: 55%; animation-delay: 0.15s; }
.skel-constellation .stars i:nth-child(3) { top: 60%; left: 30%; animation-delay: 0.30s; }
.skel-constellation .stars i:nth-child(4) { top: 70%; left: 75%; animation-delay: 0.45s; }
.skel-constellation .stars i:nth-child(5) { top: 45%; left: 12%; animation-delay: 0.60s; }
.skel-constellation .label {
  margin-top: var(--space-3);
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-faint);
  font-size: 0.875rem;
}


/* === SIDEBAR / LOGO LIFT ================================================== */

.sidebar-header .logo-wordmark {
  transition: color 0.2s var(--ease);
}
.sidebar-header .logo-wordmark .dot {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sidebar-header:hover .logo-wordmark .dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px var(--accent-glow);
}


/* === BRAND HEADER LOGIN GLOW ============================================== */

.page-login .brand h1 {
  animation: fadeInUp 0.8s var(--ease) both;
}
.page-login .brand h1 em {
  position: relative;
  display: inline-block;
}
.page-login .brand h1 em::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  animation: haloPulseSlow 4s ease-in-out infinite;
}
.page-login .card {
  animation: constellationForm 0.55s var(--ease) both;
}


/* === SESSION LIST ITEM — micro-marker oro =================================== */

.session-item {
  position: relative;
}
.session-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: fadeInUp 0.4s var(--ease) both;
}


/* === MSG ENTER ANIMATION ================================================== */

.msg {
  animation: fadeInUp 0.32s var(--ease) both;
}


/* === TOAST IMPROVEMENTS =================================================== */

#toast {
  z-index: 99999;
}
.toast {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* === PAGE TRANSITIONS (View Transitions API) ============================== */

@supports (view-transition-name: root) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  ::view-transition-old(root) {
    animation-name: vt-fade-out;
  }
  ::view-transition-new(root) {
    animation-name: vt-fade-in;
  }
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: scale(0.99); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(1.005); }
}


/* === CURSOR GLOW (sottile, solo desktop) ================================== */

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    pointer-events: none;
    background: radial-gradient(circle at center,
                  rgba(255, 210, 26, 0.08) 0%,
                  transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.25s var(--ease);
    opacity: 0;
    mix-blend-mode: multiply;
  }
  body.cg-on .cursor-glow { opacity: 1; }
}


/* === GLOW PER FOCUS (FORM INPUT POTENZIATO) =============================== */

.form input:focus,
.composer textarea:focus,
.kb-search input:focus,
.dialog input:focus {
  box-shadow: 0 0 0 3px var(--accent-glow),
              0 8px 24px -12px rgba(184, 134, 11, 0.35);
}


/* === RADIO CARD selected glow ============================================== */

.radio-card:has(input:checked),
.radio-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 210, 26, 0.06), transparent);
  box-shadow: inset 0 0 0 1px var(--accent),
              0 8px 22px -14px rgba(184, 134, 11, 0.35);
}


/* === SCROLLBAR CUSTOM (sottile, oro on hover) ============================= */

.sessions-list,
.messages,
.kb-list,
.memories-list {
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.sessions-list::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.kb-list::-webkit-scrollbar,
.memories-list::-webkit-scrollbar {
  width: 8px;
}
.sessions-list::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.kb-list::-webkit-scrollbar-thumb,
.memories-list::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
  transition: background 0.2s;
}
.sessions-list::-webkit-scrollbar-thumb:hover,
.messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}


/* === LOADING SHIMMER ELEGANTE (per memories/kb/sessions list) ============= */

.skel-line {
  height: 12px;
  background: linear-gradient(90deg,
    var(--bg-hover) 0%,
    var(--bg-alt) 50%,
    var(--bg-hover) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skelShimmer 1.3s ease-in-out infinite;
}


/* === AVATAR — USER + AI MINI-STELLA ====================================== */

.maffei-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--accent-hover);
  background: radial-gradient(circle at 30% 25%,
                rgba(255, 210, 26, 0.35) 0%,
                rgba(184, 134, 11, 0.18) 50%,
                rgba(184, 134, 11, 0.04) 100%);
  border: 1px solid rgba(184, 134, 11, 0.22);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.maffei-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.maffei-avatar .photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}
.maffei-avatar.size-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.maffei-avatar.size-md { width: 34px; height: 34px; font-size: 0.8125rem; }
.maffei-avatar.size-lg { width: 48px; height: 48px; font-size: 1rem; }

/* AI Mini-stella avatar: usato accanto a msg.assistant */
.maffei-avatar.ai {
  background: radial-gradient(circle at 30% 25%,
                rgba(255, 210, 26, 0.85) 0%,
                rgba(184, 134, 11, 0.45) 50%,
                rgba(184, 134, 11, 0.08) 100%);
  border: 1px solid rgba(184, 134, 11, 0.4);
  color: transparent;
  animation: markGlow 4s ease-in-out infinite;
}
.maffei-avatar.ai::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.maffei-avatar.ai.thinking::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sidebar user block: foto + nome */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-1);
  border-radius: var(--radius-md);
  transition: background 0.18s var(--ease);
  cursor: pointer;
  margin-bottom: 4px;
}
.sidebar-user:hover {
  background: var(--bg-hover);
}
.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-user .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  font-size: 0.6875rem;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--serif);
  font-style: italic;
}


/* === LOCAL AGENT STATUS BADGE (preparazione FASE C) ====================== */

.local-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--sans);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  transition: all 0.22s var(--ease);
}
.local-agent-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
}
.local-agent-badge.online {
  border-color: rgba(46, 125, 90, 0.4);
  color: var(--success);
  background: var(--success-bg);
}
.local-agent-badge.online .pulse {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(46, 125, 90, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(46, 125, 90, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 125, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 90, 0); }
}


/* === REDUCED MOTION (rispetto utenti sensibili) =========================== */

@media (prefers-reduced-motion: reduce) {
  .empty-state .star-stage svg,
  .empty-state .star-stage::before,
  .empty-state .star-stage::after,
  .empty-state .sparkles .spk,
  .page-login .brand h1 em::after,
  .drop-card::before,
  .drop-card::after,
  .skel-constellation .stars i {
    animation: none !important;
  }
  .session-item:hover,
  .radio-card:hover,
  .stat-card:hover,
  .btn-primary:hover:not(:disabled),
  .attachment-chip:hover {
    transform: none;
  }
  .lr-target .lr { animation: none; }
  .msg { animation: none; }
}
