/* =====================================================================
   ANIMAI — Sezione "Cartomanti" (annunci a pagamento)
   CSS puro, prefisso an-. Caricato solo sulle pagine della sezione.
   ===================================================================== */

:root {
  --an-ink: #0b0714;
  --an-ink-2: #150c22;
  --an-plum: #2a1440;
  --an-gold: #e8c26a;
  --an-gold-deep: #b98d3a;
  --an-lilac: #b79cff;
  --an-azure: #79d9f5;
  --an-wa: #25d366;
  --an-tg: #34a9e0;
  --an-paper: #f4effa;
  --an-paper-2: #b9aecb;
  --an-radius: 16px;
  --an-radius-sm: 12px;
  --an-hair: rgba(255, 255, 255, 0.08);
  --an-font-display: "Cinzel", Georgia, serif;
  --an-font-body: "Poppins", system-ui, sans-serif;
}

/* ---- Contenitori ---- */
.an-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.an-section { font-family: var(--an-font-body); font-weight: 300; color: var(--an-paper); }

/* ---- Sfondo notturno ---- */
.an-sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(183,156,255,0.22), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(232,194,106,0.16), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(121,217,245,0.1), transparent 65%),
    var(--an-ink);
}
.an-sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.2px 1.2px at 74% 12%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.6px 1.6px at 42% 62%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.1px 1.1px at 88% 48%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.3px 1.3px at 28% 84%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 62% 34%, rgba(255,255,255,0.5), transparent);
}

/* ---- Titolo a onda ---- */
.an-title {
  font-family: var(--an-font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; margin: 1.5rem 0 0;
}
.an-wave-char { display: inline-block; animation: an-wave 6s ease-in-out infinite; will-change: color, text-shadow; }
.an-word { display: inline-block; white-space: nowrap; }
@keyframes an-wave {
  0%, 100% { color: #fffaf0; text-shadow: 0 0 18px rgba(255,255,255,0.28); }
  25%      { color: var(--an-gold);  text-shadow: 0 0 26px rgba(232,194,106,0.55); }
  50%      { color: var(--an-lilac); text-shadow: 0 0 26px rgba(183,156,255,0.55); }
  75%      { color: var(--an-azure); text-shadow: 0 0 26px rgba(121,217,245,0.5); }
}

/* ---- Reveal ---- */
.an-reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.an-reveal.is-in { opacity: 1; transform: none; }

/* ---- Hero ---- */
.an-hero { padding: 64px 0 48px; text-align: center; }
@media (min-width: 768px) { .an-hero { padding: 96px 0 64px; } }
.an-live-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 999px; font-size: 13px; color: #8ff2b4;
  background: rgba(14,43,26,0.5); border: 1px solid rgba(37,211,102,0.35); }
.an-hero__sub { max-width: 60ch; margin: 1.1rem auto 0; font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.7; color: var(--an-paper-2); }
.an-hero__rass { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem;
  margin: 1.4rem auto 0; font-size: 13px; color: var(--an-paper-2); }
.an-hero__rass span { display: inline-flex; align-items: center; gap: 8px; }
.an-hero__rass svg { width: 15px; height: 15px; color: var(--an-lilac); }

/* ---- Filtri ---- */
.an-filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.an-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); font-size: 13px;
  color: var(--an-paper-2); text-decoration: none; transition: border-color .2s, color .2s; }
.an-pill:hover { border-color: rgba(232,194,106,0.4); color: var(--an-gold); }
.an-pill[aria-current="true"] { border-color: var(--an-gold); color: var(--an-gold); background: rgba(232,194,106,0.15); }
.an-pill--vuota { border-color: rgba(255,255,255,0.05); color: rgba(185,174,203,0.35); pointer-events: none; }
.an-pill__n { font-size: 11px; opacity: .65; }
.an-azzera { font-size: 12px; color: var(--an-lilac); text-decoration: underline; margin-left: 4px; }
.an-conteggio { margin: 14px 0 4px; font-size: 13px; color: var(--an-paper-2); }

/* ---- Lista ---- */
.an-lista { display: grid; gap: 28px; }

/* ---- Scheda ---- */
.an-card {
  overflow: hidden; border-radius: var(--an-radius);
  background: linear-gradient(140deg, rgba(42,20,64,0.85) 0%, rgba(21,12,34,0.92) 48%, rgba(11,7,20,0.95) 100%);
  border: 1px solid rgba(232,194,106,0.14); box-shadow: 0 18px 50px -28px rgba(0,0,0,0.9);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.an-card:hover { border-color: rgba(232,194,106,0.42);
  box-shadow: 0 26px 70px -30px rgba(232,194,106,0.28), 0 18px 50px -28px rgba(0,0,0,0.9); transform: translateY(-4px); }
.an-card__grid { display: grid; }
@media (min-width: 768px) { .an-card__grid { grid-template-columns: 280px 1fr; } }
.an-card__media { position: relative; aspect-ratio: 4 / 5; background: rgba(11,7,20,0.6); }
@media (min-width: 768px) { .an-card__media { aspect-ratio: auto; min-height: 340px; } }
.an-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.an-card__veil { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,7,20,0.85), rgba(11,7,20,0.1) 60%, transparent); }
@media (min-width: 768px) {
  .an-card__veil { background: linear-gradient(to right, transparent, rgba(11,7,20,0.05) 50%, rgba(11,7,20,0.7)); }
}
.an-card__badge-top { position: absolute; top: 16px; left: 16px; }
.an-card__verified { position: absolute; bottom: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; color: var(--an-gold);
  background: rgba(11,7,20,0.8); border: 1px solid rgba(232,194,106,0.3); backdrop-filter: blur(4px); }
.an-card__verified svg { width: 13px; height: 13px; }

.an-card__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
@media (min-width: 768px) { .an-card__body { padding: 28px; } }
.an-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.an-card__nome { font-family: var(--an-font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: .02em; color: var(--an-paper); margin: 0; }
.an-card__titolo { margin: 4px 0 0; font-size: 14px; color: var(--an-paper-2); }
.an-card__prezzo { font-family: var(--an-font-display); font-size: 1.25rem; color: var(--an-gold); text-align: right; }
.an-card__prezzo-u { font-family: var(--an-font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; color: var(--an-paper-2); text-align: right; margin-top: 3px; }
.an-card__promo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--an-lilac); text-align: right; }
.an-card__bio { font-size: 15px; line-height: 1.7; color: var(--an-paper-2); margin: 0; }

.an-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--an-lilac); background: rgba(183,156,255,0.05); border: 1px solid rgba(183,156,255,0.25); }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(232,194,106,0.35), transparent); }

.an-info { display: grid; gap: 8px; }
@media (min-width: 640px) { .an-info { grid-template-columns: 1fr 1fr; } }
.an-info span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--an-paper-2); }
.an-info svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--an-lilac); }

/* rating */
.an-rating { display: flex; align-items: center; gap: 10px; }
.an-stelle { display: inline-flex; gap: 2px; }
.an-star svg { width: 15px; height: 15px; color: rgba(255,255,255,0.2); fill: none; }
.an-star--on svg { color: var(--an-gold); fill: var(--an-gold); }
.an-rating__txt { font-size: 12.5px; color: var(--an-paper-2); }

/* stato */
.an-stato { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; backdrop-filter: blur(4px); }
.an-stato--online   { background: rgba(14,43,26,0.9); color: #7ff0a8; border-color: rgba(37,211,102,0.4); }
.an-stato--occupata { background: rgba(46,33,9,0.9);  color: #f0cf7f; border-color: rgba(232,194,106,0.4); }
.an-stato--offline  { background: rgba(0,0,0,0.7);    color: var(--an-paper-2); border-color: rgba(255,255,255,0.15); }
.an-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--an-paper-2); }
.an-stato--online .an-dot { background: var(--an-wa); }
.an-stato--occupata .an-dot { background: var(--an-gold); }
.an-dot--live { background: var(--an-wa); box-shadow: 0 0 0 0 rgba(37,211,102,0.75); animation: an-pulse 1.8s infinite; }
@keyframes an-pulse { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* CTA */
.an-cta { display: grid; gap: 10px; margin-top: 4px; }
@media (min-width: 640px) { .an-cta { grid-template-columns: repeat(3, 1fr); } }
.an-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px;
  border-radius: var(--an-radius-sm); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: filter .2s ease; cursor: pointer; border: 0; font-family: inherit; }
.an-btn:hover { filter: brightness(1.1); }
.an-btn svg { width: 16px; height: 16px; }
.an-btn--wa  { background: var(--an-wa);  color: #04240f; }
.an-btn--tel { background: var(--an-gold); color: #1a1004; }
.an-btn--tg  { background: var(--an-tg);  color: #03202e; }
.an-legal { font-size: 11px; color: rgba(185,174,203,0.7); margin: 0; }

/* empty */
.an-empty { text-align: center; padding: 48px 20px; color: var(--an-paper-2);
  border: 1px dashed rgba(255,255,255,0.12); border-radius: var(--an-radius); }
.an-empty__cta { display: inline-flex; margin-top: 14px; }

/* come funziona */
.an-come { margin-top: 56px; }
.an-h2 { font-family: var(--an-font-display); font-size: 1.8rem; color: var(--an-paper); text-align: center; }
.an-steps { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 768px) { .an-steps { grid-template-columns: repeat(3, 1fr); } }
.an-step { padding: 22px; border-radius: var(--an-radius); background: rgba(21,12,34,0.6); border: 1px solid var(--an-hair); }
.an-step__n { font-family: var(--an-font-display); font-size: 1.4rem; color: var(--an-gold); }
.an-step h3 { margin: 8px 0 6px; font-size: 1.05rem; color: var(--an-paper); font-weight: 600; }
.an-step p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--an-paper-2); }
.an-disclaimer { margin: 48px 0 8px; text-align: center; font-size: 11.5px; line-height: 1.7; color: rgba(185,174,203,0.7); }

/* ---- Paywall (dialog) ---- */
.an-modal { border: 1px solid rgba(232,194,106,0.25); border-radius: var(--an-radius); background: var(--an-ink-2);
  color: var(--an-paper); padding: 0; inset: 0; margin: auto;
  max-width: min(520px, calc(100vw - 32px)); width: 100%;
  max-height: min(90vh, 720px); overflow-y: auto;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.95); font-family: var(--an-font-body); }
.an-modal::backdrop { background: rgba(11,7,20,0.72); backdrop-filter: blur(6px); }
/* Blocco scroll pagina senza salto di layout quando sparisce la scrollbar. */
html.an-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.an-modal__in { padding: 28px; position: relative; }
.an-modal__close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--an-paper-2);
  font-size: 18px; cursor: pointer; line-height: 1; }
.an-modal__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--an-gold);
  background: rgba(232,194,106,0.1); border: 1px solid rgba(232,194,106,0.3); }
.an-modal__tag svg { width: 13px; height: 13px; }
.an-modal__h { font-family: var(--an-font-display); font-size: 1.7rem; line-height: 1.2; margin: 20px 0 0; padding-right: 2.5rem; }
.an-modal p { font-size: 13.5px; line-height: 1.7; color: var(--an-paper-2); margin: 10px 0 0; }
.an-prezzo { display: flex; align-items: flex-end; gap: 8px; margin-top: 24px; padding: 16px 20px;
  border-radius: var(--an-radius-sm); border: 1px solid var(--an-hair); background: rgba(11,7,20,0.6); }
.an-prezzo strong { font-family: var(--an-font-display); font-size: 2.25rem; color: var(--an-gold); font-weight: 400; }
.an-prezzo span { color: var(--an-paper-2); font-size: 13px; padding-bottom: 6px; }
.an-vantaggi { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.an-vantaggi li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--an-paper-2); }
.an-vantaggi svg { width: 15px; height: 15px; color: #7ff0a8; flex: 0 0 auto; margin-top: 3px; }
.an-btn--block { width: 100%; margin-top: 28px; padding: 14px 20px; }
.an-link-secondario { display: block; width: 100%; margin-top: 12px; text-align: center; font-size: 13px;
  color: var(--an-paper-2); background: none; border: 0; cursor: pointer; text-decoration: none; }
.an-nota { margin-top: 16px; text-align: center; font-size: 11px; color: rgba(185,174,203,0.6);
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.an-nota svg { width: 12px; height: 12px; }

/* ---- Avviso pubblicazione ---- */
.an-avviso { margin-top: 20px; padding: 20px; border-radius: var(--an-radius); border: 1px solid; }
.an-avviso--giallo { border-color: rgba(232,194,106,0.35); background: rgba(232,194,106,0.06); }
.an-avviso--verde  { border-color: rgba(37,211,102,0.35);  background: rgba(14,43,26,0.4); }
.an-avviso h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; }
.an-avviso h3 svg { width: 16px; height: 16px; }
.an-avviso--giallo h3 { color: var(--an-gold); }
.an-avviso--verde h3 { color: #8ff2b4; }
.an-avviso p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--an-paper-2); }
.an-badge-admin { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px;
  border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--an-lilac);
  background: rgba(183,156,255,0.1); border: 1px solid rgba(183,156,255,0.35); }
.an-badge-admin svg { width: 13px; height: 13px; }
.an-pronto { margin-top: 16px; padding: 16px 20px; border-radius: var(--an-radius);
  border: 1px dashed rgba(37,211,102,0.3); background: rgba(14,43,26,0.25); }
.an-pronto h3 { margin: 0; font-size: 13.5px; color: #8ff2b4; }
.an-pronto p { margin: 6px 0 0; font-size: 12.5px; color: var(--an-paper-2); line-height: 1.6; }

/* ---- Badge abbonamento (admin) ---- */
.an-abb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid; font-size: 11px; }
.an-abb--attivo  { border-color: rgba(37,211,102,0.4); background: rgba(14,43,26,0.6); color: #8ff2b4; }
.an-abb--scaduto { border-color: rgba(255,179,122,0.4); background: rgba(43,26,14,0.6); color: #ffc79a; }
.an-abb--mai     { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: var(--an-paper-2); }
.an-sospesa { border-color: rgba(255,138,138,0.4); background: rgba(43,14,14,0.6); color: #ff9f9f; }

/* =====================================================================
   ADMIN — specifico sezione schede (dentro il layout /w3admin)
   ===================================================================== */
.an-admin { font-family: var(--an-font-body); max-width: 1240px; }
.an-admin .an-title, .an-admin .an-modal__h { font-family: var(--an-font-display); }

/* contatori */
.an-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 4px 0 20px; }
@media (min-width: 900px) { .an-stats { grid-template-columns: repeat(4, 1fr); } }
.an-stat { padding: 16px 18px; border-radius: var(--an-radius-sm); background: rgba(21,12,34,0.6); border: 1px solid var(--an-hair); }
.an-stat__n { display: block; font-family: var(--an-font-display); font-size: 1.9rem; color: var(--an-gold); }
.an-stat__l { display: block; font-size: 12px; color: var(--an-paper-2); margin-top: 2px; }

/* card riga admin */
.an-admin-card { padding: 18px; margin-bottom: 16px; }
.an-admin-card__top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.an-admin-card__id { display: flex; gap: 14px; align-items: flex-start; }
.an-admin-thumb { width: 60px; height: 75px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.6rem; background: rgba(183,156,255,0.1); }
.an-admin-thumb--empty { border: 1px solid var(--an-hair); }
.an-admin-card__nome { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--an-paper); }
/* Nella riga del nome i badge sono figli flex allineati al centro: azzera il
   margin-top di .an-badge-admin (serve solo nella scheda form standalone). */
.an-admin-card__nome .an-badge-admin { margin-top: 0; }
/* Contatori click sui contatti (WhatsApp / Chiama / Telegram) sulla riga nome */
.an-clicks { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.an-clicks__lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: rgba(185,174,203,0.6); margin-right: 2px; }
.an-click { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid var(--an-hair); background: rgba(255,255,255,0.04); color: var(--an-paper-2); }
.an-click b { font-weight: 700; color: var(--an-paper); }
.an-click--wa  { border-color: rgba(37,211,102,0.35); }
.an-click--wa b  { color: #8ff2b4; }
.an-click--tel { border-color: rgba(232,194,106,0.35); }
.an-click--tel b { color: #f0cf7f; }
.an-click--tg  { border-color: rgba(122,178,255,0.35); }
.an-click--tg b  { color: #9ac4ff; }
.an-click--zero { opacity: .55; }
.an-admin-card__titolo { font-size: 13px; color: var(--an-paper-2); margin-top: 3px; }
.an-admin-card__meta { font-size: 11.5px; color: rgba(185,174,203,0.7); margin-top: 4px; }
.an-admin-card__stato { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.an-visibile { font-size: 11px; }
.an-visibile.is-on { color: #8ff2b4; }
.an-visibile.is-off { color: rgba(185,174,203,0.7); }

.an-admin-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--an-hair); }
.an-svuota-label { font-size: 11px; color: rgba(185,174,203,0.6); margin-left: 6px; }
.an-svuota { opacity: .85; }
.an-btn-forza { border-color: rgba(183,156,255,0.4) !important; color: var(--an-lilac) !important; }

/* elimina 2 passaggi */
.an-elimina { margin-top: 12px; }
.an-elimina > summary { display: inline-flex; list-style: none; cursor: pointer; }
.an-elimina > summary::-webkit-details-marker { display: none; }
.an-elimina__box { margin-top: 10px; padding: 14px 16px; border-radius: var(--an-radius-sm);
  border: 1px solid rgba(255,138,138,0.3); background: rgba(43,14,14,0.4); }
.an-elimina__box p { font-size: 12.5px; color: #ffc0c0; margin: 0 0 10px; }
.an-btn-elimina-conferma { border: 0; border-radius: var(--an-radius-sm); padding: 10px 18px; cursor: pointer;
  font-weight: 700; font-family: inherit; background: #ff6b6b; color: #2b0808; }
.an-admin-nota { margin-top: 18px; font-size: 12px; color: rgba(185,174,203,0.7); }

/* ---- Registrazione cartomanti: mailing + form inline per-account ---- */
/* Barra "Scrivi a tutte le cartomanti": call-to-action ben visibile. */
.an-mailing { margin-bottom: 18px; padding: 0; overflow: hidden;
  border: 1px solid rgba(183,156,255,0.45); background: rgba(183,156,255,0.06); }
.an-mailing > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer;
  list-style: none; font-size: 15px; font-weight: 700; color: #efe9ff; padding: 16px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(183,156,255,0.14)); }
.an-mailing > summary:hover { background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(183,156,255,0.22)); }
.an-mailing > summary::-webkit-details-marker { display: none; }
.an-mailing[open] > summary { border-bottom: 1px solid rgba(183,156,255,0.35); }
.an-mailing__hint { font-size: 12px; font-weight: 400; color: rgba(224,214,255,0.85); }
.an-mailing__form { margin-top: 0; padding: 18px 20px; }
.an-mailing__nota { font-size: 11.5px; color: rgba(185,174,203,0.7); align-self: center; }

.an-inline-form { position: relative; }
.an-inline-form > summary { display: inline-flex; list-style: none; cursor: pointer; }
.an-inline-form > summary::-webkit-details-marker { display: none; }
/* Quando un form inline è aperto, occupa tutta la riga: i pulsanti vicini
   vanno a capo e non "stringono" più il pannello ai lati. */
.an-inline-form[open] { flex: 1 1 100%; }
.an-inline-form[open] > summary { margin-bottom: 4px; }
.an-inline-form__box { margin-top: 10px; padding: 18px 20px; border-radius: var(--an-radius-sm);
  border: 1px solid var(--an-hair); background: rgba(255,255,255,0.03); width: 100%; max-width: 760px; }
.an-inline-form__box textarea.adm-input { min-height: 200px; }
.an-inline-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-inline-row .adm-input { flex: 1 1 260px; }
.an-inline-form__nota { margin: 10px 0 0; font-size: 11.5px; color: rgba(185,174,203,0.7); line-height: 1.5; }
/* Opzione "scrivi in HTML" */
.an-html-tog { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--an-paper-2);
  cursor: pointer; user-select: none; }
.an-html-tog input { width: 16px; height: 16px; accent-color: var(--an-lilac); cursor: pointer; }
.an-html-hint { font-size: 11.5px; color: rgba(185,174,203,0.7); margin: 6px 0 0; line-height: 1.5; }

/* ---- Editor 2 colonne ---- */
.an-editor { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .an-editor { grid-template-columns: 1fr 440px; } }
.an-editor__preview { position: sticky; top: 16px; }
.an-preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--an-gold); margin-bottom: 10px; }
.an-preview-head span { display: inline-flex; align-items: center; gap: 6px; }
.an-preview-head svg { width: 13px; height: 13px; }
.an-preview-head__r { color: var(--an-paper-2); letter-spacing: .02em; text-transform: none; }
.an-preview-card { font-family: var(--an-font-body); container-type: inline-size; }

/* L'anteprima si adatta alla LARGHEZZA DELLA SUA COLONNA (non del viewport):
   sotto ~520px di contenitore passa a layout verticale, fedele alla vista mobile. */
.an-preview-card .an-card__grid { grid-template-columns: 1fr; }
.an-preview-card .an-card__media { aspect-ratio: 4 / 5; min-height: 0; }
.an-preview-card .an-info,
.an-preview-card .an-cta { grid-template-columns: 1fr; }
@container (min-width: 520px) {
  .an-preview-card .an-card__grid { grid-template-columns: 280px 1fr; }
  .an-preview-card .an-card__media { aspect-ratio: auto; min-height: 340px; }
  .an-preview-card .an-info { grid-template-columns: 1fr 1fr; }
  .an-preview-card .an-cta { grid-template-columns: repeat(3, 1fr); }
}
/* Niente elementi che sforano: figli comprimibili + a-capo su parole lunghe. */
.an-card__body, .an-card__media { min-width: 0; max-width: 100%; }
.an-card__nome, .an-card__bio, .an-card__titolo { overflow-wrap: anywhere; }

/* fieldset e input */
.an-fs { border: 1px solid var(--an-hair); border-radius: var(--an-radius); background: rgba(21,12,34,0.6);
  padding: 18px; margin: 0 0 16px; }
.an-fs legend { padding: 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--an-gold); }
.an-lbl { display: block; font-size: 12.5px; color: var(--an-paper-2); margin-bottom: 12px; }
.an-lbl small { color: rgba(185,174,203,0.6); }
.an-in { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: var(--an-radius-sm);
  background: rgba(11,7,20,0.6); border: 1px solid rgba(255,255,255,0.12); color: var(--an-paper);
  font-family: inherit; font-size: 14px; }
.an-in:focus { outline: none; border-color: rgba(232,194,106,0.5); box-shadow: 0 0 0 3px rgba(232,194,106,0.12); }
.an-ta { resize: vertical; min-height: 110px; line-height: 1.6; }
.an-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .an-row { grid-template-columns: 1fr 1fr; } }
.an-hint { font-size: 11.5px; color: rgba(185,174,203,0.7); margin: 0 0 10px; }
.an-count { float: right; font-size: 11px; color: rgba(185,174,203,0.6); }

/* toggle chips */
.an-toggle-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.an-toggle { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; color: var(--an-paper-2); background: rgba(183,156,255,0.05);
  border: 1px solid rgba(183,156,255,0.25); user-select: none; transition: all .15s ease; }
.an-toggle.is-on { color: var(--an-lilac); background: rgba(183,156,255,0.16); border-color: rgba(183,156,255,0.7); }
.an-toggle--gold { background: rgba(232,194,106,0.05); border-color: rgba(232,194,106,0.25); color: var(--an-paper-2); }
.an-toggle--gold.is-on { color: var(--an-gold); background: rgba(232,194,106,0.16); border-color: rgba(232,194,106,0.7); }
.an-toggle.is-disabled { opacity: .4; cursor: not-allowed; }

/* completezza */
.an-compl { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--an-radius-sm);
  border: 1px solid var(--an-hair); background: rgba(21,12,34,0.6); }
.an-compl__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.an-compl__bar span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--an-lilac), var(--an-gold)); transition: width .3s ease; }
.an-compl__txt { margin-top: 8px; font-size: 12.5px; color: var(--an-paper); }
.an-compl__manca { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #ffc79a; }
.an-compl__manca li { margin: 2px 0; }

/* pagina abbonamento fallback */
.an-abb-page { max-width: 620px; }
.an-abb-page__card { margin-top: 16px; border: 1px solid rgba(232,194,106,0.25); border-radius: var(--an-radius);
  background: var(--an-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .an-wave-char { animation: none !important; color: #fffaf0; }
  .an-reveal { opacity: 1 !important; transform: none !important; }
  .an-dot--live { animation: none; }
}

/* =====================================================================
   FASE 2 — Area cartomante, pagina "Diventa cartomante", CTA reclutamento
   ===================================================================== */

/* CTA reclutamento in fondo a /cartomanti */
.an-recluta { margin: 72px 0 8px; padding: 44px 28px; text-align: center; border-radius: var(--an-radius);
  border: 1px solid rgba(232,194,106,0.3); background: rgba(232,194,106,0.06); }
.an-recluta .an-h2 { margin: 0 0 12px; }
.an-recluta p { max-width: 62ch; margin: 0 auto 28px; color: var(--an-paper-2); font-size: 14.5px; line-height: 1.75; }

/* Pulsante CTA largo con gradiente animato (cambia colore da solo) */
.an-btn--cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: min(460px, 100%); padding: 17px 44px; font-size: 16px; font-weight: 700; border-radius: 999px;
  color: #1a1004; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(90deg, #e8c26a, #f0d68e, #b79cff, #79d9f5, #e8c26a);
  background-size: 300% 100%; animation: an-cta-flow 7s linear infinite;
  box-shadow: 0 14px 34px -12px rgba(232,194,106,0.55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.an-btn--cta:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.05);
  box-shadow: 0 20px 44px -14px rgba(183,156,255,0.6); }
.an-btn--cta svg { width: 18px; height: 18px; }
@keyframes an-cta-flow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@media (prefers-reduced-motion: reduce) { .an-btn--cta { animation: none; } }

/* Pagina "Diventa cartomante" */
.an-cta-box { margin-top: 40px; text-align: center; }
.an-cta-box__login { margin-top: 14px; font-size: 13px; color: var(--an-paper-2); }
.an-cta-box__login a { color: var(--an-lilac); }

/* Pannello cartomante */
.an-panel__bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end;
  padding: 24px 0 16px; }
.an-panel__title { font-family: var(--an-font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; color: var(--an-paper); }
.an-panel__sub { margin: 4px 0 0; color: var(--an-paper-2); font-size: 14px; }
.an-panel__bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.an-btn--ghost-line { border: 1px solid rgba(255,255,255,0.16); color: var(--an-paper-2); background: none;
  padding: 10px 14px; font-size: 13px; }
.an-btn--ghost-line:hover { border-color: rgba(232,194,106,0.4); color: var(--an-gold); }
.an-btn--ghost-line svg { width: 15px; height: 15px; }
.an-stats-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; }
@media (min-width: 720px) { .an-stats-box { grid-template-columns: repeat(4, 1fr); } }
.an-stats-box .an-stat { background: rgba(21,12,34,0.6); }
.an-doc-stato { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12.5px; color: #8ff2b4; }
.an-doc-stato svg { width: 15px; height: 15px; }

/* FAQ landing "Diventa cartomante" — due colonne, card accordion */
.an-faq { margin: 56px auto 48px; max-width: 900px; }
.an-faq .an-h2 { text-align: center; margin: 0; }
.an-faq__sub { text-align: center; margin: 8px 0 0; font-size: 14px; color: var(--an-paper-2); }
.an-faq__cols { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
@media (min-width: 900px) { .an-faq__cols { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.an-faq__col { display: grid; gap: 14px; align-content: start; }

.an-faq__item { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  background: rgba(255,255,255,0.035); padding: 16px 18px;
  transition: border-color .16s ease, background .16s ease; }
.an-faq__item:hover { border-color: rgba(232,194,106,0.35); background: rgba(255,255,255,0.05); }

.an-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none; }
.an-faq__item summary::-webkit-details-marker { display: none; }
.an-faq__item summary:focus-visible { outline: 2px solid var(--an-gold); outline-offset: 3px; border-radius: 6px; }
.an-faq__q { font-family: var(--an-font-body); font-weight: 600; font-size: 15.5px; color: var(--an-paper);
  line-height: 1.4; }
.an-faq__icon { flex: 0 0 auto; font-size: 20px; line-height: 1; color: var(--an-gold);
  transition: transform .2s ease; }
.an-faq__item[open] .an-faq__icon { transform: rotate(45deg); }

.an-faq__a { margin-top: 10px; padding-top: 10px; font-family: var(--an-font-body); font-weight: 400;
  font-size: 14.5px; line-height: 1.65; color: var(--an-paper-2);
  border-top: 1px solid rgba(232,194,106,0.18); }
@media (prefers-reduced-motion: reduce) { .an-faq__icon { transition: none; } }

/* Selettore foto demo (editor) */
.an-demo { margin-top: 10px; }
.an-demo__lbl { margin: 0 0 8px; font-size: 13px; color: var(--an-paper-2); }
.an-demo__lbl small { color: var(--an-paper-2); opacity: .8; }
.an-demo__grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-demo__thumb { padding: 0; border: 2px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden;
  background: none; cursor: pointer; line-height: 0; transition: border-color .15s ease, transform .15s ease; }
.an-demo__thumb img { width: 72px; height: 90px; object-fit: cover; display: block; }
.an-demo__thumb:hover { transform: translateY(-1px); border-color: rgba(232,194,106,0.5); }
.an-demo__thumb.is-on { border-color: var(--an-gold); box-shadow: 0 0 0 3px rgba(232,194,106,0.22); }
.an-demo__clear { align-self: stretch; padding: 0 12px; border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px; background: none; color: var(--an-paper-2); font-size: 12px; cursor: pointer; }
.an-demo__clear:hover { border-color: rgba(232,194,106,0.4); color: var(--an-gold); }

/* Micro-dicitura "Foto illustrativa" sulla card pubblica */
.an-card__illustrativa { position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500;
  color: #f4effa; background: rgba(11,7,20,0.62); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.14); }

/* =====================================================================
   Pannello cartomante — semplificazione MOBILE (solo <= 768px).
   Desktop invariato. Un unico tasto grande "Pubblica il tuo annuncio";
   nascoste anteprima live, avvisi laterali e disclaimer.
   ===================================================================== */
.an-pub-mobile { display: none; }
@media (max-width: 768px) {
  .an-pub-mobile {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin: 22px 0 0; padding: 17px 20px;
    border: 0; border-radius: var(--an-radius); cursor: pointer;
    font-family: var(--an-font-body); font-size: 16px; font-weight: 600; letter-spacing: .01em;
    color: #1a1004; background: linear-gradient(90deg, var(--an-lilac), var(--an-gold));
    box-shadow: 0 14px 34px -12px rgba(183,156,255,0.55); }
  .an-pub-mobile:active { filter: brightness(1.05); transform: translateY(1px); }
  .an-pub-mobile svg { width: 19px; height: 19px; }
  /* Via il secondo "Salva scheda" e la sua toolbar (restano su desktop) */
  .an-panel .an-only-desktop { display: none; }
  /* Via anteprima live + card OFFLINE + avvisi laterali */
  .an-editor__preview { display: none; }
  /* Sotto il bottone: niente altro */
  .an-panel .an-disclaimer { display: none; }
  /* Il tasto non deve toccare il footer */
  .an-panel { padding-bottom: 34px; }
}

/* =====================================================================
   /diventa-cartomante — blocchi "Cosa ottieni / Cosa NON e" + "Il conto in chiaro".
   Riusa la ricetta card della pagina (bg plum, hair border, radius, font display).
   ===================================================================== */
.an-chiaro-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 992px) { .an-chiaro-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.an-chiaro { padding: 24px 26px; border-radius: var(--an-radius); background: rgba(21,12,34,0.6); border: 1px solid var(--an-hair); }
.an-chiaro--si { --c: #8fe0b0; }
.an-chiaro--no { --c: #e3a2a9; }
.an-chiaro__t { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--an-font-display);
  font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--c, var(--an-paper)); }
.an-chiaro__badge { display: inline-flex; flex: 0 0 auto; color: var(--c); font-size: 22px; line-height: 1; }
.an-chiaro__badge svg { width: 22px; height: 22px; }
.an-chiaro__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.an-chiaro__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--an-paper-2); }
.an-chiaro__list li strong { color: var(--an-paper); font-weight: 600; }
.an-chiaro__ico { flex: 0 0 auto; margin-top: 1px; color: var(--c, var(--an-lilac)); }
.an-chiaro__ico svg { width: 18px; height: 18px; }
.an-chiaro__x { flex: 0 0 auto; color: var(--c); font-size: 16px; font-weight: 700; line-height: 1.5; }

.an-conto { margin-top: 22px; padding: 26px 28px; border-radius: var(--an-radius); background: rgba(21,12,34,0.6); border: 1px solid var(--an-hair); }
.an-conto__t { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-family: var(--an-font-display); font-size: 1.5rem; color: var(--an-paper); }
.an-conto__badge { font-family: var(--an-font-body); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--an-lilac); background: rgba(183,156,255,0.14); border: 1px solid rgba(183,156,255,0.30); padding: 3px 9px; border-radius: 999px; }
.an-conto__rows { margin: 12px 0 0; }
.an-conto__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--an-hair); }
@media (min-width: 640px) { .an-conto__row { grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 22px; align-items: baseline; } }
.an-conto__row dt { margin: 0; color: var(--an-paper-2); font-size: 14px; }
.an-conto__row dd { margin: 0; color: var(--an-paper); font-size: 14.5px; line-height: 1.6; }
.an-conto__gold { color: var(--an-gold); font-weight: 700; }
.an-conto__green { color: #8fe0b0; font-weight: 700; }
.an-conto__note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--an-hair); font-size: 12.5px; line-height: 1.6; color: var(--an-paper-2); }

/* ============================================================
   Freccia "apri scheda" nella card lista + pagina profilo
   /cartomanti/{slug} (aggiunte fase schede dedicate)
   ============================================================ */
.an-card__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.an-card__apri{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--an-hair);color:var(--an-paper-2);background:rgba(21,12,34,.5);transition:transform .18s ease,color .18s ease,border-color .18s ease}
.an-card__apri:hover{color:var(--an-gold);border-color:var(--an-gold);transform:translateX(2px)}
.an-card__apri svg{width:20px;height:20px}

.an-profilo{max-width:1000px;margin:0 auto;padding:clamp(28px,5vw,64px) clamp(16px,4vw,28px)}
.an-profilo__crumbs{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;font-size:.85rem;color:var(--an-paper-2);margin:0 0 18px}
.an-profilo__crumbs a{color:var(--an-lilac);text-decoration:none}
.an-profilo__crumbs a:hover{text-decoration:underline}
.an-profilo__crumbs span[aria-current]{color:var(--an-paper)}
.an-profilo__card{display:grid;grid-template-columns:minmax(0,360px) 1fr;gap:clamp(18px,4vw,36px);align-items:start;padding:clamp(22px,3.5vw,34px);border-radius:var(--an-radius);background:rgba(21,12,34,.6);border:1px solid var(--an-hair)}
.an-profilo__media{position:relative;border-radius:calc(var(--an-radius) - 4px);overflow:hidden;aspect-ratio:4/5;background:var(--an-ink-2)}
.an-profilo__media img{width:100%;height:100%;object-fit:cover;display:block}
.an-profilo__badges{position:absolute;left:12px;top:12px;right:12px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}
.an-profilo__illustrativa{position:absolute;left:12px;bottom:12px;font-size:.72rem;padding:.25rem .5rem;border-radius:8px;background:rgba(11,7,20,.7);color:var(--an-paper-2)}
.an-profilo__nome{font-family:var(--an-font-display);font-size:clamp(1.7rem,4vw,2.3rem);margin:0 0 .15rem;color:var(--an-paper)}
.an-profilo__titolo{color:var(--an-lilac);margin:0 0 1rem;font-size:1.05rem}
.an-profilo__verified{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;color:var(--an-gold);margin:0 0 1.1rem}
.an-profilo__verified svg{width:16px;height:16px}
.an-profilo__prezzo{display:flex;align-items:baseline;gap:.4rem;margin:.3rem 0 .8rem}
.an-profilo__prezzo b{font-size:1.35rem;color:var(--an-paper)}
.an-profilo__prezzo small{color:var(--an-paper-2)}
.an-profilo__promo{display:inline-block;font-size:.82rem;color:var(--an-gold);border:1px solid var(--an-hair);border-radius:999px;padding:.2rem .6rem;margin:0 0 1.1rem}
.an-profilo__bio{color:var(--an-paper);line-height:1.75;white-space:pre-line;margin:1.2rem 0 1.4rem}
.an-profilo__back{display:inline-flex;align-items:center;gap:.4rem;margin-top:1.6rem;color:var(--an-lilac);text-decoration:none;font-size:.9rem}
.an-profilo__back:hover{text-decoration:underline}
.an-profilo__back svg{width:18px;height:18px;transform:scaleX(-1)}
.an-profilo__h2{font-family:var(--an-font-display);font-size:.9rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--an-lilac);margin:1.4rem 0 .7rem}
.an-profilo__body .an-rating{margin:.4rem 0 1rem}
.an-profilo__body .an-chips{margin:.4rem 0 1.2rem}
.an-profilo__body .an-hairline{margin:1.3rem 0}
.an-profilo__body .an-info{margin:0 0 1.4rem;gap:.6rem 1rem}
.an-profilo__body .an-cta{margin:.3rem 0 .6rem}
.an-profilo__body .an-legal{margin:.2rem 0 0}
@media (max-width:720px){.an-profilo__card{grid-template-columns:1fr}.an-profilo__media{max-width:340px;margin:0 auto}}
