/* ==========================================================================
   MASTER CUSTOM CSS · ECOSYSTEM MIRCO PREGNOLATO (FOUNDER OS)
   Stile Luxury Dark Obsidian, Imperial Gold & Neurale per Header, Chat e Legali
   ========================================================================== */

:root {
  --gold-primary: #d4af37;
  --gold-light: #f5de88;
  --gold-dark: #997a15;
  --bg-obsidian: #080a10;
  --bg-surface: #0f1422;
  --bg-surface-elevated: #151c2e;
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --green-live: #00e676;
}

/* ==========================================================================
   HEADER A 3 COLONNE (SINISTRA: TOTALI | CENTRO: LOGO MP-AI | DESTRA: LIVE)
   ========================================================================== */
.master-header-3col {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(8, 10, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 8px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-3col-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Colonna Sinistra & Destra: Counter Box */
.header-counter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(15, 20, 34, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.header-counter-box:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.header-counter-total {
  justify-self: start;
}

.header-counter-live {
  justify-self: end;
}

.counter-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.header-counter-live .counter-indicator {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
}

/* Animazione spia live verde */
.live-dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 10px var(--green-live);
  animation: liveBlink 1.8s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.counter-data {
  display: flex;
  flex-direction: column;
}

.counter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.header-counter-total .counter-num {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.header-counter-live .counter-num {
  color: #a7f3d0;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.35);
}

.counter-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Micro animazione di oscillazione cifre */
.num-tick {
  color: #34d399 !important;
  transform: scale(1.06);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Colonna Centrale: Logo MP-AI con Pulsazione */
.header-center-logo-wrap {
  display: flex;
  justify-content: center;
}

.header-logo-home-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.header-logo-home-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.header-logo-home-btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.logo-pulse-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Effetto di Pulsazione Dorata/Neurale */
.header-mp-ai-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  animation: logoPulse 2.8s infinite ease-in-out;
}

.logo-pulse-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(0, 255, 163, 0.25) 50%, transparent 75%);
  z-index: 1;
  animation: ringPulse 2.8s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.85)) drop-shadow(0 0 10px rgba(0, 255, 163, 0.7));
  }
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.95;
  }
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hl-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hl-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ==========================================================================
   BARRA DI NAVIGAZIONE ORIZZONTALE A VISTA (ZERO HAMBURGER MENU)
   ========================================================================== */
.master-nav-strip {
  background: rgba(11, 14, 22, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 14px;
}

.nav-strip-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) transparent;
  padding-bottom: 2px;
}

.nav-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.nav-strip-link:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.nav-strip-link.active,
.nav-strip-link.highlight {
  color: #080a10;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-primary);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.nav-strip-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ==========================================================================
   WIDGET CHAT AI GROQ (FLUTTUANTE & INTERATTIVO)
   ========================================================================== */
.chat-widget-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
}

.chat-floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #151c2e, #0a0d16);
  border: 1.5px solid var(--gold-primary);
  border-radius: 40px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-floating-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.6);
  border-color: #f5de88;
}

.chat-btn-icon-pulse {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 255, 163, 0.2) 0%, rgba(212, 175, 55, 0.3) 100%);
  border-radius: 50%;
}

.chat-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cbt-main {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.cbt-sub {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Finestra Chat Dialogo */
.chat-window-modal {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #0d111b;
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 10001;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, #161e30, #0f1523);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  background: #080a10;
  padding: 3px;
}

.chat-title-group h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}

.chat-title-group span {
  font-size: 0.65rem;
  color: var(--green-live);
  font-weight: 600;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: #ffffff;
}

/* Messaggi Body */
.chat-messages-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05), transparent 70%), #0a0d16;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #151b2a;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d4af37, #997a15);
  color: #080a10;
  font-weight: 600;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.chat-cta-banner {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  text-align: center;
}

.chat-cta-banner p {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 700;
}

.chat-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #d4af37, #f5de88);
  color: #080a10;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
}

/* Quick Prompts Pills */
.chat-quick-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: #0e1320;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.cqp-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #cbd5e1;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.cqp-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff;
  border-color: var(--gold-primary);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 12px;
  background: #111624;
  border-top: 1px solid var(--border-gold);
  display: flex;
  gap: 8px;
}

.chat-input-field {
  flex: 1;
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-field:focus {
  border-color: var(--gold-primary);
}

.chat-send-btn {
  background: var(--gold-primary);
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
  color: #080a10;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: var(--gold-light);
}

/* ==========================================================================
   MODALI LEGALI A COMPARSA IMMEDIATA (PRIVACY, CGV, DISCLAIMER, COOKIES)
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-box {
  background: #0f1422;
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  width: 860px;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-backdrop.active .legal-modal-box {
  transform: translateY(0);
}

.legal-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141b2c;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.legal-modal-header h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
}

.legal-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.legal-close-btn:hover {
  background: var(--gold-primary);
  color: #080a10;
  border-color: var(--gold-primary);
}

.legal-modal-content {
  padding: 24px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-modal-content h4 {
  color: #ffffff;
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

.legal-modal-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.legal-modal-content li {
  margin-bottom: 6px;
}

.legal-modal-content a {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .header-3col-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .header-center-logo-wrap {
    grid-column: 1 / -1;
    order: -1;
  }
  .header-counter-total {
    justify-self: stretch;
  }
  .header-counter-live {
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .counter-num {
    font-size: 0.95rem;
  }
  .counter-lbl {
    font-size: 0.58rem;
  }
  .hl-name {
    font-size: 0.95rem;
  }
  .chat-window-modal {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
    height: 80vh;
  }
}

/* ==========================================================================
   SEZIONE MAGIC OFFER · METODO F.A.R.O.™ (FONDATORE AUTONOMO A RISCHIO ZERO)
   ========================================================================== */
.section-magic-offer {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.12), transparent 60%), #06080e;
  border-top: 1.5px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.magic-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.magic-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 50px;
}

.magic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold-primary);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.magic-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.magic-sub {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

.magic-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .magic-grid {
    grid-template-columns: 1fr;
  }
}

.magic-card {
  background: rgba(14, 19, 32, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: all 0.3s ease;
}

.magic-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.2);
}

.magic-card.featured {
  background: linear-gradient(180deg, rgba(22, 30, 52, 0.9), rgba(11, 15, 26, 0.95));
  border: 2px solid var(--gold-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.35);
}

.magic-card-tag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: linear-gradient(90deg, #d4af37, #f5de88);
  color: #080a10;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.magic-card-head h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: #ffffff;
  margin: 0 0 10px;
}

.magic-card-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.magic-price-box {
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mpb-val {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mpb-old {
  color: #64748b;
  text-decoration: line-through;
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
}

.mpb-now {
  color: var(--gold-light);
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.mpb-split {
  font-size: 0.8rem;
  color: #a7f3d0;
  font-weight: 700;
}

.magic-stack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.magic-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.msi-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-primary);
  margin-top: 2px;
}

.msi-text strong {
  color: #ffffff;
}

.msi-val {
  display: inline-block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Bonus Box */
.magic-bonus-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.mbb-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mbb-item {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Scarsità Reale */
.magic-scarcity-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
}

.scarcity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: liveBlink 1.4s infinite ease-in-out;
}

/* Garanzia Patti Chiari */
.magic-guarantee-box {
  background: rgba(15, 20, 34, 0.8);
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .magic-guarantee-box {
    flex-direction: column;
    text-align: center;
  }
}

.mgb-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(8, 10, 16, 0.9) 100%);
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.mgb-text h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0 0 6px;
}

.mgb-text p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   TICKER CARDS SCORREVOLI · 110 LIBRI AMAZON · MIRCO PREGNOLATO
   ========================================================================== */
.section-books-ticker {
  padding: 85px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%), #080a10;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.ticker-header-wrap {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 35px;
  padding: 0 20px;
}

.ticker-track-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-marquee {
  display: flex;
  width: max-content;
  gap: 20px;
  user-select: none;
}

.ticker-cards-batch {
  display: flex;
  gap: 20px;
}

.marquee-left {
  animation: marqueeScrollLeft 120s linear infinite;
}

.marquee-right {
  animation: marqueeScrollRight 120s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.book-ticker-card {
  width: 240px;
  flex-shrink: 0;
  background: rgba(13, 17, 28, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.book-ticker-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.btc-cover-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 10px;
  overflow: hidden;
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.btc-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.book-ticker-card:hover .btc-cover-img {
  transform: scale(1.05);
}

.btc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(8, 10, 16, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}

.btc-content {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.btc-collana {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cyan-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btc-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 5px 0 4px;
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btc-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 10px;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
}

.btc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 10px;
}

.btc-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btc-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

.btc-btn {
  background: linear-gradient(90deg, #d4af37, #f5de88);
  color: #080a10;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btc-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.ticker-author-cta {
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
}



/* ==========================================================================
   PUBBLICAZIONI MIRCO PREGNOLATO · RESTYLE & PROTOCOLLO SIC-ID (2026)
   ========================================================================== */

/* PROMO BANNER TOP WITH LIVE COUNTDOWN */
.promo-countdown-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(10, 10, 14, 0.95));
  border: 1px solid rgba(255, 107, 0, 0.4);
  border-radius: 14px;
  padding: 16px 24px;
  margin: 20px auto 30px auto;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.12);
  backdrop-filter: blur(12px);
}

.promo-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.promo-pulse-icon {
  font-size: 28px;
  animation: pulsePromo 1.8s infinite ease-in-out;
}

@keyframes pulsePromo {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px #ff6b00); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 16px #ff7700); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px #ff6b00); }
}

.promo-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.promo-banner-title span {
  color: #ff7700;
  text-shadow: 0 0 10px rgba(255, 119, 0, 0.5);
}

.promo-banner-desc {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-top: 2px;
}

.promo-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-timer-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 107, 0, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-timer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-countdown-val {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff8c00;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

/* PROTOCOLLO SIC-ID STYLING */
.book-protocol-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff9933;
  letter-spacing: 0.8px;
}

.book-protocol-tag code {
  font-family: monospace;
  font-size: 0.78rem;
  color: #ffab40;
}

/* NEURO-COPY PERSUASIVE BLOCK */
.book-neuro-block {
  background: rgba(10, 10, 16, 0.7);
  border-left: 3px solid #ff7700;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.book-neuro-block .neuro-point {
  margin-bottom: 6px;
}

.book-neuro-block .neuro-point:last-child {
  margin-bottom: 0;
}

.book-neuro-block strong {
  color: #ff9933;
}

/* PRICING & PROMO DISPLAY */
.book-pricing-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}

.price-details {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 0.78rem;
  color: #71717a;
  text-decoration: line-through;
}

.price-promo {
  font-size: 1.05rem;
  color: #f8fafc;
}

.price-promo strong {
  color: #22c55e;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.promo-timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: #ff9933;
}

.timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b00;
  box-shadow: 0 0 8px #ff6b00;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* CARD ACTION BUTTONS: PAYPAL & AMAZON */
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.btn-paypal-buy {
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #ffffff !important;
  text-decoration: none;
  border: 1px solid #ff7700;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-paypal-buy:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.btn-amazon-buy {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9 !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-amazon-buy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* BUNDLE SPECIAL CARDS */
.bundle-card-special {
  background: linear-gradient(145deg, rgba(20, 16, 28, 0.8), rgba(10, 10, 14, 0.95)) !important;
  border: 1px solid rgba(255, 107, 0, 0.4) !important;
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.15) !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bundle-top-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge-discount {
  background: #22c55e;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-protocol code {
  color: #ff9933;
  font-family: monospace;
  font-size: 0.75rem;
}

.bundle-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.bundle-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.bundle-desc {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 12px;
  line-height: 1.5;
}

.bundle-includes {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff9933;
  margin-bottom: 12px;
}

/* SECONDARY ECOSYSTEM WRAPPER */
.ecosistema-secondario-wrapper {
  opacity: 0.92;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 60px;
  padding-top: 40px;
  background: rgba(5, 5, 8, 0.6);
}

.ecosistema-secondario-header {
  text-align: center;
  margin-bottom: 30px;
}

.ecosistema-secondario-header .badge-sec {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.ecosistema-secondario-header h2 {
  font-size: 1.4rem;
  color: #e2e8f0;
}


/* ==========================================================================
   MODALE CASSA UNIFICATA · CARTA, PAYPAL & CRYPTO MULTICHAIN
   ========================================================================== */

.mp-checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mp-checkout-modal-box {
  background: #0d0f17;
  border: 1px solid rgba(255, 107, 0, 0.4);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 107, 0, 0.2);
  color: #f1f5f9;
  max-height: 90vh;
  overflow-y: auto;
}

.mp-checkout-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mp-checkout-close-btn:hover {
  background: #ff6b00;
  color: #fff;
}

.mp-checkout-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mp-checkout-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mp-brand-logo {
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
}

#modal-book-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.modal-sic-badge code {
  color: #ff9933;
  font-size: 0.8rem;
  background: rgba(255, 107, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.mp-checkout-price-tag {
  text-align: right;
  flex-shrink: 0;
}

.mp-checkout-price-tag .price-label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

.mp-checkout-price-tag .price-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.mp-pay-methods-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.pay-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pay-tab-btn.active {
  background: rgba(255, 107, 0, 0.15);
  border-color: #ff7700;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

.mp-pay-tab-content {
  display: none;
}

.mp-pay-tab-content.active {
  display: block;
}

.pay-info-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-group-email label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.mp-input-field, .mp-select-field {
  width: 100%;
  background: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.mp-input-field:focus, .mp-select-field:focus {
  border-color: #ff7700;
}

.btn-checkout-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  padding: 14px;
  border-radius: 10px;
  margin-top: 18px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-checkout-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.security-guarantee {
  font-size: 0.75rem;
  color: #71717a;
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

/* CRYPTO BOX STYLES */
.crypto-wallet-box {
  background: #050609;
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.cw-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cw-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

.cw-address-row code {
  color: #ff9933;
  font-size: 0.82rem;
  font-family: monospace;
}

.btn-copy-addr {
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid #ff7700;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.crypto-action-box {
  margin-top: 18px;
}

.btn-web3-action {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-web3-action:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.crypto-manual-verify-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.cm-title {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.cm-row {
  display: flex;
  gap: 8px;
}

.btn-verify-tx {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-verify-tx:hover {
  background: #ff7700;
  border-color: #ff7700;
}

.crypto-tx-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.crypto-tx-status.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.crypto-tx-status.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.crypto-tx-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-download-now {
  display: inline-block;
  margin-top: 10px;
  background: #22c55e;
  color: #000 !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
}
