:root {
  --font-title: "Cinzel", "Times New Roman", serif;
  --font-ui: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;

  --bg-base: #03050d;
  --bg-surface: #080f1f;
  --bg-elevated: #0e1730;
  --bg-soft: #141f3f;
  --ink-strong: #f5f3f8;
  --ink-medium: #ccd3e5;
  --ink-muted: #96a0be;

  --accent-gold: #caa66a;
  --accent-violet: #7a67d4;
  --accent-silver: #a9b8d7;
  --accent-cyan: #5cc9ed;

  --border-main: rgba(166, 189, 224, 0.24);
  --border-gold: rgba(202, 166, 106, 0.5);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(122, 103, 212, 0.35), 0 12px 30px rgba(35, 59, 117, 0.45);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  --container-max: 1240px;
  --keyboard-offset: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink-strong);
  background: radial-gradient(circle at 20% 20%, rgba(24, 34, 76, 0.5), transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(38, 59, 112, 0.36), transparent 44%),
    linear-gradient(160deg, #040711 0%, #05070e 44%, #040913 100%);
  min-height: 100vh;
  position: relative;
}

.page-home {
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.58) 0%, rgba(5, 9, 18, 0.44) 38%, rgba(4, 7, 15, 0.62) 100%),
    linear-gradient(165deg, rgba(3, 6, 14, 0.45), rgba(4, 7, 15, 0.56)),
    radial-gradient(circle at 20% 20%, rgba(24, 34, 76, 0.22), transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(38, 59, 112, 0.14), transparent 44%),
    url("../img/carte.png") center top / cover no-repeat #040711;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image: radial-gradient(circle at 30% 40%, rgba(202, 166, 106, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 72%, rgba(169, 184, 215, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 44% 24%, rgba(122, 103, 212, 0.15) 0 1px, transparent 1px);
  background-size: 220px 220px, 240px 240px, 260px 260px;
  mix-blend-mode: screen;
  opacity: 0.4;
}

body::after {
  background: linear-gradient(120deg, rgba(8, 15, 30, 0.45), transparent 26%, transparent 74%, rgba(7, 12, 26, 0.48));
}

.page-home::after {
  background: linear-gradient(
    125deg,
    rgba(8, 14, 28, 0.28),
    rgba(8, 14, 28, 0.12) 35%,
    rgba(8, 14, 28, 0.12) 65%,
    rgba(8, 14, 28, 0.28)
  );
}

.page-home::before {
  opacity: 0.22;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: #fff;
  color: #000;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  top: var(--space-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-menu {
  display: inline-flex;
  align-items: center;
}

.desktop-nav .lang-menu {
  margin-left: 0.4rem;
}

.lang-menu-select {
  border-radius: 999px;
  border: 1px solid var(--border-main);
  background: rgba(8, 13, 26, 0.95);
  color: var(--ink-strong);
  padding: 0.35rem 0.7rem;
  min-height: 36px;
  min-width: 116px;
}

.mobile-menu .lang-menu {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(157, 174, 207, 0.16);
}

/* Rende visibile il label lingua nel menu mobile */
.lang-menu-mobile .sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 0 0.4rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lang-menu-mobile .sr-only::before {
  content: "🌐";
  font-size: 0.95rem;
  letter-spacing: 0;
}

.mobile-menu .lang-menu-select {
  width: 100%;
  border-radius: 12px;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-color: rgba(202, 166, 106, 0.45);
  color: var(--ink-strong);
  padding: 0.65rem 1rem;
}

.chat-controls .lang-menu-select {
  min-height: 42px;
  min-width: 104px;
  border-radius: 12px;
}

.container {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.section-starfield {
  padding-top: clamp(4.5rem, 10vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-weight: 700;
}

.section-head {
  margin-bottom: clamp(1.4rem, 2.8vw, 2rem);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.1rem;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #8f76e7 0%, #6b96f8 45%, #5ec9ed 100%);
  color: #070913;
  box-shadow: 0 10px 24px rgba(82, 130, 223, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(82, 130, 223, 0.55);
}

.btn-ghost {
  background: rgba(15, 23, 45, 0.7);
  border-color: var(--border-main);
  color: var(--ink-strong);
}

.btn-ghost:hover {
  border-color: var(--accent-silver);
}

.btn-inline {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--accent-gold);
  padding-inline: 0.95rem;
}

.btn-inline:hover {
  border-color: var(--accent-gold);
}

.icon-btn {
  min-width: 46px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(4, 8, 18, 0.88), rgba(4, 8, 18, 0.48));
  border-bottom: 1px solid rgba(157, 174, 207, 0.16);
  backdrop-filter: blur(14px);
}

.header-wrap {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  background: radial-gradient(circle at 50% 40%, rgba(122, 103, 212, 0.4), rgba(5, 8, 16, 0.95));
}

.brand-text {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.desktop-nav {
  grid-column: 2;
  display: none;
  justify-self: center;
  gap: 1.1rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--ink-medium);
  font-weight: 600;
  font-size: 0.81rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--ink-strong);
  border-color: rgba(202, 166, 106, 0.65);
}

.desktop-nav .nav-consulto,
.mobile-menu .nav-consulto {
  color: var(--accent-gold);
  border: 1px solid rgba(202, 166, 106, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav .nav-consulto:hover,
.mobile-menu .nav-consulto:hover {
  background: rgba(202, 166, 106, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-main);
  background: rgba(10, 15, 29, 0.88);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink-strong);
  border-radius: 99px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid rgba(157, 174, 207, 0.16);
  background: rgba(3, 7, 17, 0.97);
}

.mobile-menu nav {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
  padding: 1rem 0 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.mobile-menu a {
  padding: 0.62rem 0;
  color: var(--ink-medium);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--ink-strong);
}

body.menu-open {
  overflow: hidden;
}

.hero {
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.14;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0.9rem 0 1.3rem;
  color: var(--ink-medium);
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.daily-card {
  margin-top: 1.2rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-width: 450px;
  background: linear-gradient(160deg, rgba(12, 19, 40, 0.95), rgba(16, 26, 51, 0.6));
  box-shadow: var(--shadow-soft);
}

.daily-label {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 700;
}

.daily-name {
  margin: 0.35rem 0 0;
  color: var(--accent-gold);
  font-family: var(--font-title);
  font-size: 1.16rem;
}

.daily-text {
  margin: 0.4rem 0 0.9rem;
  color: var(--ink-medium);
}

.daily-feature-section {
  padding-top: clamp(2.2rem, 5vw, 3.8rem);
}

.daily-feature-card {
  display: grid;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  background: linear-gradient(160deg, rgba(10, 17, 34, 0.96), rgba(12, 20, 42, 0.66));
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.daily-feature-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(169, 184, 215, 0.3);
  background: radial-gradient(circle at 50% 20%, rgba(33, 51, 94, 0.55), rgba(8, 14, 28, 0.96));
  max-width: 320px;
}

.daily-feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 760;
  object-fit: contain;
}

.daily-feature-copy {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.daily-feature-name {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--accent-gold);
}

.daily-feature-text {
  margin: 0;
  color: var(--ink-medium);
  line-height: 1.72;
  max-width: 68ch;
  white-space: pre-line;
}

.daily-cta {
  margin-top: 0.5rem;
  align-self: start;
}

/* ── CONTACT SECTION ───────────────────────────── */
.contact-section {
  border-top: 1px solid var(--border-main);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 1rem;
}

.contact-bio {
  color: var(--ink-medium);
  line-height: 1.72;
  margin: 0;
  max-width: 42ch;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.18s;
  resize: vertical;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent-gold);
}

.contact-form.was-submitted .contact-field input:invalid,
.contact-form.was-submitted .contact-field textarea:invalid {
  border-color: #e07070;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.contact-privacy input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.contact-privacy-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-privacy--error {
  color: #e07070;
}

.contact-privacy--error input[type="checkbox"] {
  outline: 2px solid #e07070;
  outline-offset: 1px;
}

.contact-success {
  margin: 0;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-bio {
    max-width: none;
  }
}

.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  background: rgba(7, 11, 22, 0.9);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("../img/zodiac-ring.svg") center/520px no-repeat;
  opacity: 0.2;
  z-index: 2;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(7, 11, 22, 0.55), rgba(11, 18, 38, 0.28));
  z-index: 1;
  pointer-events: none;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slideshow img.active {
  opacity: 1;
}

.orb {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 145, 238, 0.7), rgba(80, 61, 161, 0.45), rgba(6, 8, 16, 0));
  filter: blur(6px);
  z-index: 3;
}

.showcase-card {
  position: absolute;
  width: min(280px, 75%);
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(3, 6, 14, 0.94), rgba(6, 10, 23, 0.9));
  padding: 1rem;
  box-shadow: var(--shadow-glow);
}

.showcase-card h2 {
  margin: 0.25rem 0 0.45rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.showcase-card p {
  margin: 0;
  color: var(--ink-medium);
  font-size: 0.92rem;
}

.showcase-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--accent-gold);
}

.showcase-card-left {
  left: 7%;
  top: 15%;
  transform: rotate(-7deg);
}

.showcase-card-right {
  right: 8%;
  bottom: 10%;
  transform: rotate(8deg);
}

.paths-grid {
  display: grid;
  gap: 0.95rem;
}

.path-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  background: linear-gradient(160deg, rgba(10, 17, 34, 0.95), rgba(12, 20, 42, 0.55));
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.3s ease;
}

/* Amore — rosa caldo */
.path-card:nth-child(1) {
  border-color: rgba(220, 100, 120, 0.3);
}
.path-card:nth-child(1) h3 { color: #f0b0bb; }
.path-card:nth-child(1) .path-icon {
  border-color: rgba(220, 100, 120, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(220, 100, 120, 0.45), rgba(10, 15, 30, 0.96));
  color: #f0b0bb;
}
.path-card:nth-child(1) .path-link { color: #f0b0bb; }
.path-card:nth-child(1):hover {
  border-color: rgba(220, 100, 120, 0.7);
}

/* Denaro — verde smeraldo */
.path-card:nth-child(2) {
  border-color: rgba(80, 190, 130, 0.3);
}
.path-card:nth-child(2) h3 { color: #90ddb5; }
.path-card:nth-child(2) .path-icon {
  border-color: rgba(80, 190, 130, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(80, 190, 130, 0.45), rgba(10, 15, 30, 0.96));
  color: #90ddb5;
}
.path-card:nth-child(2) .path-link { color: #90ddb5; }
.path-card:nth-child(2):hover {
  border-color: rgba(80, 190, 130, 0.7);
}

/* Lavoro — blu/viola */
.path-card:nth-child(3) {
  border-color: rgba(120, 140, 230, 0.3);
}
.path-card:nth-child(3) h3 { color: #a8b8f0; }
.path-card:nth-child(3) .path-icon {
  border-color: rgba(120, 140, 230, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(120, 140, 230, 0.45), rgba(10, 15, 30, 0.96));
  color: #a8b8f0;
}
.path-card:nth-child(3) .path-link { color: #a8b8f0; }
.path-card:nth-child(3):hover {
  border-color: rgba(120, 140, 230, 0.7);
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 23, 46, 0.78);
}

.path-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent-gold);
  border: 1px solid rgba(202, 166, 106, 0.3);
  background: radial-gradient(circle at 50% 0%, rgba(123, 101, 212, 0.55), rgba(10, 15, 30, 0.96));
  flex-shrink: 0;
}

.path-card h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-title);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.path-card p {
  margin: 0;
  color: var(--ink-medium);
  line-height: 1.65;
  flex: 1;
}

.path-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: gap 0.2s ease;
}

.path-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.path-card:hover .path-link::after {
  transform: translateX(4px);
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tarot-card {
  background: linear-gradient(180deg, rgba(12, 17, 31, 0.93), rgba(12, 20, 40, 0.72));
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
  transform-style: preserve-3d;
}

.tarot-card img {
  width: 100%;
  height: clamp(170px, 22vw, 240px);
  object-fit: cover;
}

.tarot-card:hover {
  border-color: rgba(202, 166, 106, 0.7);
  box-shadow: 0 14px 30px rgba(31, 42, 75, 0.55), 0 0 20px rgba(202, 166, 106, 0.22);
}

.tarot-card[data-tilt] {
  transform: perspective(820px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.tarot-meta {
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tarot-meta h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1rem;
}

.tag {
  border: 1px solid rgba(202, 166, 106, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.steps-grid {
  display: grid;
  gap: 0.9rem;
}

.step-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  background: linear-gradient(160deg, rgba(11, 18, 36, 0.97), rgba(12, 21, 43, 0.65));
  padding: 1.1rem;
}

.step-index {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.step-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-title);
  font-size: 1.16rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-medium);
}

.page-daily {
  min-height: 100dvh;
  display: block;
  overflow-x: hidden;
  background:
    linear-gradient(165deg, rgba(3, 6, 14, 0.72), rgba(4, 7, 15, 0.84)),
    radial-gradient(circle at 17% 16%, rgba(27, 38, 82, 0.38), transparent 44%),
    radial-gradient(circle at 82% 26%, rgba(37, 61, 114, 0.28), transparent 46%),
    url("../img/carte.png") center top / cover no-repeat #040711;
}

.page-daily #contenuto {
  height: auto;
  min-height: calc(100dvh - 72px);
  display: block;
  padding-bottom: calc(var(--composer-height, 122px) + var(--keyboard-offset, 0px) + env(safe-area-inset-bottom) + 0.75rem);
}

.page-daily #contenuto > .spread-chat-section {
  min-height: auto;
}

.page-daily .site-footer {
  display: block;
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--composer-height, 122px) + var(--keyboard-offset, 0px) + env(safe-area-inset-bottom) + 0.75rem);
}

.page-daily .section {
  padding: 0;
}

.page-daily::before {
  opacity: 0.2;
}

.page-daily::after {
  background: linear-gradient(
    122deg,
    rgba(8, 14, 28, 0.48),
    rgba(8, 14, 28, 0.2) 38%,
    rgba(8, 14, 28, 0.2) 62%,
    rgba(8, 14, 28, 0.5)
  );
}

.spread-hero {
  padding-bottom: 1.4rem;
}

.spread-hero-head {
  text-align: center;
  max-width: 880px;
}

.spread-hero-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.14;
}

.spread-hero-head p {
  margin: 0.9rem auto 0;
  color: var(--ink-medium);
  max-width: 66ch;
}

.spread-chat-section {
  height: auto;
  min-height: auto;
  display: block;
  padding: 0.8rem 0 0;
}

.spread-chat-section .container {
  height: auto;
  min-height: auto;
  display: block;
}

.spread-auth-meta {
  margin: 20px 0 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: var(--ink-medium);
  font-size: 0.88rem;
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 600px) {
  .spread-auth-meta {
    gap: 0.15rem 1.1rem;
  }
}

.spread-auth-meta p {
  margin: 0;
  font-style: italic;
  font-size: 0.78rem;
}

.spread-auth-meta strong {
  color: var(--ink-strong);
}

.spread-chat-shell {
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(9, 14, 28, 0.97), rgba(10, 18, 35, 0.84));
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
  height: auto;
  min-height: auto;
  display: block;
  overflow: visible;
}

.spread-topic-picker {
  margin-bottom: 0.78rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.spread-topic-label {
  margin: 0 0 0.9rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: none;
  box-shadow: none;
  padding: 0.78rem 0.92rem;
  color: var(--ink-strong);
  font-size: 0.95rem;
  line-height: 1.5;
}

.spread-topic-actions {
  display: none;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spread-topic-actions.is-visible {
  display: grid;
}

.spread-topic-btn {
  border: 1px solid rgba(169, 184, 215, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.85);
  color: var(--ink-strong);
  min-height: 42px;
  padding: 0.52rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.spread-topic-btn:hover {
  border-color: rgba(202, 166, 106, 0.5);
}

/* Amore — rosa caldo */
.spread-topic-btn[data-topic="love"] {
  border-color: rgba(220, 100, 120, 0.4);
  color: #f0b0bb;
}
.spread-topic-btn[data-topic="love"]:hover {
  border-color: rgba(220, 100, 120, 0.7);
  background: rgba(220, 100, 120, 0.1);
}
.spread-topic-btn[data-topic="love"].is-active {
  border-color: rgba(220, 100, 120, 0.85);
  background: linear-gradient(145deg, rgba(90, 30, 45, 0.85), rgba(60, 20, 35, 0.75));
  box-shadow: 0 0 0 1px rgba(220, 100, 120, 0.25) inset;
}

/* Denaro — verde smeraldo */
.spread-topic-btn[data-topic="money"] {
  border-color: rgba(80, 190, 130, 0.4);
  color: #90ddb5;
}
.spread-topic-btn[data-topic="money"]:hover {
  border-color: rgba(80, 190, 130, 0.7);
  background: rgba(80, 190, 130, 0.1);
}
.spread-topic-btn[data-topic="money"].is-active {
  border-color: rgba(80, 190, 130, 0.85);
  background: linear-gradient(145deg, rgba(20, 65, 45, 0.85), rgba(15, 50, 35, 0.75));
  box-shadow: 0 0 0 1px rgba(80, 190, 130, 0.25) inset;
}

/* Lavoro — blu/viola */
.spread-topic-btn[data-topic="work"] {
  border-color: rgba(120, 140, 230, 0.4);
  color: #a8b8f0;
}
.spread-topic-btn[data-topic="work"]:hover {
  border-color: rgba(120, 140, 230, 0.7);
  background: rgba(120, 140, 230, 0.1);
}
.spread-topic-btn[data-topic="work"].is-active {
  border-color: rgba(120, 140, 230, 0.85);
  background: linear-gradient(145deg, rgba(30, 35, 80, 0.85), rgba(25, 28, 65, 0.75));
  box-shadow: 0 0 0 1px rgba(120, 140, 230, 0.25) inset;
}

.spread-topic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spread-topic-btn.is-active:disabled {
  opacity: 0.9;
}

.spread-chat-messages {
  flex: none;
  min-height: 1px;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.2rem;
}

.spread-chat-msg {
  display: flex;
}

.spread-chat-msg.user {
  justify-content: flex-end;
}

.spread-chat-msg.assistant {
  justify-content: flex-start;
}

.spread-chat-bubble {
  max-width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  padding: 0.78rem 0.92rem;
}

.spread-chat-msg.assistant .spread-chat-bubble {
  border-color: transparent;
  box-shadow: none;
  background: none;
}

.spread-chat-msg.assistant .spread-chat-bubble.is-success {
  border-color: rgba(120, 214, 156, 0.7);
  background: linear-gradient(145deg, rgba(19, 74, 47, 0.96), rgba(16, 95, 54, 0.84));
  box-shadow: 0 10px 22px rgba(12, 92, 52, 0.34);
}

.spread-chat-msg.user .spread-chat-bubble {
  border-color: rgba(110, 157, 242, 0.5);
  background: linear-gradient(140deg, rgba(50, 83, 153, 0.92), rgba(56, 95, 169, 0.8));
}

.spread-chat-bubble p {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.5;
}

.spread-followup-bubble {
  display: grid;
  gap: 0.62rem;
}

.spread-followup-title {
  margin: 0;
  font-weight: 600;
  color: var(--ink-strong);
}

.spread-followup-inline-link {
  margin: 0.04rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: fit-content;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(220, 230, 255, 0.68);
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
}

.spread-followup-inline-link:hover {
  color: rgba(232, 240, 255, 0.86);
}

.spread-followup-inline-link.is-disabled,
.spread-followup-inline-link.is-used,
.spread-followup-inline-link:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.spread-consult-download-row {
  margin-top: -0.2rem;
}

.spread-consult-download-link {
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(220, 230, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
}

.spread-consult-download-link:hover {
  color: rgba(236, 243, 255, 0.9);
}

/* Feedback thumbs — inside bubble, prompt left, thumbs right */
.spread-feedback-thumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.spread-feedback-prompt {
  font-size: 0.85rem;
  color: rgba(236, 243, 255, 0.75);
  font-style: italic;
}

.spread-feedback-thumbs-group {
  display: flex;
  gap: 0.35rem;
}

.spread-feedback-thumbs.is-fading {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.spread-feedback-btn {
  background: transparent;
  border: none;
  padding: 0.15rem 0.25rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  filter: saturate(2) brightness(1.3);
  transition: transform 0.15s ease;
  min-height: auto;
  width: auto;
}

.spread-feedback-btn:hover {
  transform: scale(1.25);
}

/* Guest email box after consultation */
.guest-email-box {
  border: 1px solid rgba(202, 166, 106, 0.35);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(10, 18, 35, 0.92));
  padding: 1rem;
  margin-top: 0.5rem;
  max-width: 380px;
}

.guest-email-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: #f5f3f8;
}

.guest-email-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #ccd3e5;
  line-height: 1.45;
}

.guest-email-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.guest-email-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(169, 184, 215, 0.34);
  background: rgba(8, 13, 26, 0.95);
  color: #f5f3f8;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
}

.guest-email-input:focus {
  outline: none;
  border-color: rgba(110, 157, 242, 0.62);
}

.guest-email-privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
  cursor: pointer;
}

.guest-email-check {
  accent-color: #caa66a;
}

.guest-email-btn {
  width: auto;
  justify-self: start;
  border: none;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.guest-email-btn:hover {
  background: #15803d;
}

.guest-email-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.guest-email-msg {
  margin: 0;
  font-size: 0.78rem;
  min-height: 1rem;
}

.guest-email-msg.is-success {
  color: #8be6b8;
}

.guest-email-msg.is-error {
  color: #f6c5c5;
}

.spread-followup-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.46rem;
}

.spread-followup-btn {
  border: 1px solid rgba(169, 184, 215, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.85);
  color: var(--ink-strong);
  min-height: 40px;
  padding: 0.46rem 0.66rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.spread-followup-btn:hover {
  border-color: rgba(202, 166, 106, 0.56);
}

.spread-followup-btn.is-active {
  border-color: rgba(202, 166, 106, 0.78);
  background: linear-gradient(145deg, rgba(32, 49, 86, 0.92), rgba(33, 54, 96, 0.82));
}

.spread-followup-actions.is-locked .spread-followup-btn:not(.is-used) {
  opacity: 0.46;
}

.spread-followup-btn.is-used {
  opacity: 0.32;
  border-color: rgba(169, 184, 215, 0.24);
  background: rgba(8, 14, 28, 0.5);
}

.spread-followup-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.spread-followup-btn.is-used:disabled {
  opacity: 0.32;
}

.spread-chat-composer {
  margin-top: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--keyboard-offset, 0px);
  z-index: 45;
  display: block;
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
  padding: 0.58rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(9, 14, 28, 0.96), rgba(10, 18, 35, 0.92));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.spread-chat-field {
  display: block;
}

#spreadChatInput {
  width: 100%;
  min-height: 56px;
  max-height: 140px;
  resize: none;
  border-radius: 15px;
  border: 1px solid var(--border-main);
  background: rgba(8, 13, 26, 0.95);
  color: var(--ink-strong);
  padding: 0.82rem 3.9rem 0.82rem 0.95rem;
  line-height: 1.4;
}

#spreadChatInput::placeholder {
  color: #7f8aac;
}

.spread-chat-composer .icon-btn {
  position: absolute;
  right: 1.14rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  z-index: 2;
}

.spread-chat-composer.is-locked #spreadChatInput {
  opacity: 0.7;
  cursor: not-allowed;
}

.spread-chat-composer.is-locked .icon-btn {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.spread-section {
  padding-top: 1.6rem;
}

.page-daily .spread-section {
  padding-top: 0.9rem;
}

.page-daily .spread-section-inline {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.page-daily .spread-layout {
  gap: 0.5rem;
}

.page-daily .spread-guidance {
  margin-inline: 0;
}

.page-daily .spread-board-featured {
  width: 100%;
  margin-left: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-daily .spread-board-inner {
  width: 100%;
}

.page-daily .spread-board {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-daily .spread-deck-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.page-daily .spread-deck {
  --fan-step: 22px;
  --fan-rot: 3deg;
  --fan-card-width: clamp(84px, 9.8vw, 132px);
  width: 100%;
  min-height: clamp(300px, 40vh, 450px);
}

.page-daily .spread-results {
  margin-top: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 0;
}

.page-daily .result-slot {
  flex: 0 0 auto;
  width: min(29vw, 140px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.page-daily .slot-body {
  min-height: 0;
  margin-top: 0;
  display: block;
}

.page-daily .slot-label,
.page-daily .slot-placeholder {
  display: none;
}

.page-daily .picked-card-3d {
  width: min(100%, 126px);
}

.page-daily .picked-card-name {
  margin-top: 0.28rem;
  font-size: 0.76rem;
}

.page-daily .spread-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.25rem 0 0;
}

.page-daily .spread-counter {
  font-size: 0.82rem;
}

.page-daily .spread-counter strong {
  font-size: 0.92rem;
}

.page-daily .spread-status {
  margin: 0.22rem 0 0;
  padding-left: 0;
  border-left: 0;
  color: var(--ink-medium);
  font-size: 0.82rem;
}

.page-daily .spread-summary .spread-actions {
  display: none !important;
}

.spread-post-consult-bubble {
  display: grid;
  gap: 0.62rem;
}

.spread-post-consult-title {
  margin: 0;
  font-weight: 600;
  color: var(--ink-strong);
}

.spread-post-consult-note {
  margin: 0;
  color: var(--ink-medium);
  font-size: 0.9rem;
  line-height: 1.5;
}

.spread-post-consult-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.spread-post-consult-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(169, 184, 215, 0.34);
  background: rgba(8, 14, 28, 0.85);
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.spread-post-consult-btn:hover {
  border-color: rgba(202, 166, 106, 0.56);
}

.spread-post-consult-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #caa66a;
  font-weight: 600;
}

.spread-post-consult-btn.is-buy {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.spread-post-consult-btn.is-buy:hover {
  background: #15803d;
  border-color: #15803d;
}

.spread-post-consult-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.spread-credit-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.spread-credit-modal[hidden] {
  display: none;
}

.spread-credit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(3px);
}

.spread-credit-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: 16px;
  border: 1px solid rgba(169, 184, 215, 0.34);
  background: linear-gradient(160deg, rgba(9, 14, 28, 0.98), rgba(10, 18, 35, 0.95));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  padding: 1rem;
}

.spread-credit-modal-panel h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.spread-credit-modal-x {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 184, 215, 0.3);
  border-radius: 50%;
  background: rgba(8, 14, 28, 0.7);
  color: var(--ink-strong);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-height: auto;
  width: 36px;
}

.spread-credit-modal-x:hover {
  border-color: rgba(202, 166, 106, 0.6);
  background: rgba(20, 30, 55, 0.9);
}

.spread-credit-modal-panel h2 {
  padding-right: 2rem;
}

.spread-credit-modal-panel p {
  margin: 0.65rem 0 0;
  color: var(--ink-medium);
  line-height: 1.5;
}

/* Coupon input row (consulto modal) */
.spread-credit-coupon-row {
  margin-top: 0.7rem;
}

.spread-credit-coupon-row .spread-credit-field {
  margin-top: 0;
}

.spread-credit-coupon-input-wrap {
  display: flex;
  gap: 0.4rem;
}

.spread-credit-coupon-input-wrap input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spread-credit-coupon-btn {
  border: 1px solid rgba(202, 166, 106, 0.5);
  border-radius: 10px;
  background: rgba(202, 166, 106, 0.15);
  color: #caa66a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  min-height: auto;
  width: auto;
}

.spread-credit-coupon-btn:hover {
  background: rgba(202, 166, 106, 0.25);
}

.spread-credit-coupon-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.spread-credit-coupon-msg {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  min-height: 0.9rem;
  color: var(--ink-medium);
}

.spread-credit-coupon-msg.is-success {
  color: #8be6b8;
}

.spread-credit-coupon-msg.is-error {
  color: #f6c5c5;
}

.spread-credit-coupon-msg.is-info {
  color: var(--ink-medium);
}

.spread-credit-form-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.spread-credit-field {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.58rem;
}

.spread-credit-field span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-medium);
  font-weight: 600;
}

.spread-credit-field input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(169, 184, 215, 0.34);
  background: rgba(8, 13, 26, 0.95);
  color: var(--ink-strong);
  padding: 0.56rem 0.75rem;
  font: inherit;
}

.spread-credit-field input:focus {
  outline: none;
  border-color: rgba(110, 157, 242, 0.62);
  box-shadow: 0 0 0 2px rgba(110, 157, 242, 0.18);
}

.spread-credit-field input.is-invalid {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.spread-credit-modal-actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.spread-credit-option-btn,
.spread-credit-modal-close {
  border: 1px solid rgba(169, 184, 215, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.85);
  color: var(--ink-strong);
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.spread-credit-option-btn:hover,
.spread-credit-modal-close:hover {
  border-color: rgba(202, 166, 106, 0.56);
}

.spread-credit-option-btn.is-selected {
  border-color: rgba(202, 166, 106, 0.8);
  background: linear-gradient(145deg, rgba(32, 49, 86, 0.92), rgba(33, 54, 96, 0.82));
}

.spread-credit-validation {
  margin: 0.7rem 0 0;
  min-height: 1.15rem;
  font-size: 0.82rem;
  color: #f6c5c5;
}

.spread-credit-validation.is-info {
  color: var(--ink-medium);
}

.spread-credit-validation.is-success {
  color: #8be6b8;
}

.spread-paypal-container {
  margin-top: 0.75rem;
  min-height: 46px;
}

.paypal-button-container {
  background: transparent !important;
  padding: 0 !important;
}

.paypal-button-container .paypal-button {
  background: transparent !important;
}

.spread-paypal-container div,
.spread-paypal-container span,
.spread-paypal-container [class*="paypal"],
.spread-credit-modal-panel [class*="paypal"] {
  background-color: transparent !important;
  background: transparent !important;
  color: var(--ink-medium) !important;
}

.spread-credit-modal-close {
  margin-top: 0.82rem;
  width: 100%;
}

body.spread-credit-modal-open {
  overflow: hidden;
}

body.spread-card-lightbox-open {
  overflow: hidden;
}

.spread-card-lightbox {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.spread-card-lightbox[hidden] {
  display: none;
}

.spread-card-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.84);
  backdrop-filter: blur(5px);
}

.spread-card-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
}

.spread-card-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 106, 0.32);
  background: linear-gradient(145deg, rgba(22, 34, 63, 0.62), rgba(14, 24, 45, 0.58));
  color: rgba(238, 245, 255, 0.84);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0.68;
  transition: opacity 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.spread-card-lightbox-nav:hover {
  opacity: 0.92;
  border-color: rgba(202, 166, 106, 0.5);
}

.spread-card-lightbox-nav:focus-visible {
  outline: 2px solid rgba(106, 208, 255, 0.86);
  outline-offset: 2px;
}

.spread-card-lightbox-nav-prev {
  left: -0.95rem;
}

.spread-card-lightbox-nav-next {
  right: -0.95rem;
}

.spread-card-lightbox-figure {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(202, 166, 106, 0.36);
  overflow: hidden;
  background: #060d1f;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.56);
}

.spread-card-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.spread-card-lightbox-caption {
  margin: 0;
  padding: 0.7rem 0.85rem 0.8rem;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.94rem;
  line-height: 1.35;
  color: var(--accent-gold);
}

.spread-card-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.2rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 106, 0.5);
  background: linear-gradient(145deg, rgba(22, 34, 63, 0.95), rgba(14, 24, 45, 0.92));
  color: var(--ink-bright);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.spread-card-lightbox-close:focus-visible {
  outline: 2px solid rgba(106, 208, 255, 0.86);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .spread-card-lightbox-nav-prev {
    left: 0.28rem;
  }

  .spread-card-lightbox-nav-next {
    right: 0.28rem;
  }
}

#spreadExperience[hidden] {
  display: none;
}

.spread-section.is-visible {
  animation: revealUp 0.65s ease both;
}

.spread-layout {
  display: grid;
  gap: 1.1rem;
}

.spread-info {
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(11, 18, 36, 0.95), rgba(12, 20, 41, 0.64));
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.spread-info h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.spread-info p {
  margin: 0.75rem 0 0;
  color: var(--ink-medium);
}

.spread-guidance {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid rgba(169, 184, 215, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 18, 36, 0.86), rgba(11, 19, 38, 0.54));
  padding: 0.9rem 1rem;
}

.spread-guidance-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.22rem, 2.4vw, 1.62rem);
  line-height: 1.2;
  color: var(--ink-strong);
  text-wrap: balance;
}

.spread-guidance-sub {
  margin: 0.45rem 0 0;
  color: var(--ink-medium);
  font-size: 0.92rem;
  line-height: 1.45;
}

.spread-counter {
  font-size: 0.92rem;
  color: var(--ink-strong);
  margin: 0;
}

.spread-counter strong {
  color: var(--accent-gold);
  font-family: var(--font-title);
  font-size: 1.07rem;
}

.spread-status {
  border-left: 2px solid rgba(202, 166, 106, 0.55);
  padding-left: 0.7rem;
}

.spread-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.spread-actions .btn {
  width: 100%;
}

.spread-board {
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(9, 14, 28, 0.96), rgba(10, 18, 36, 0.82));
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
}

.spread-board-featured {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 1.15rem 0;
}

.spread-board-inner {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.spread-deck-wrap {
  border: 1px solid rgba(202, 166, 106, 0.24);
  border-radius: var(--radius-md);
  padding: 1rem 0.9rem 0.7rem;
  background: linear-gradient(150deg, rgba(7, 12, 25, 0.92), rgba(10, 17, 34, 0.74));
  overflow: hidden;
}

.spread-deck-wrap[hidden] {
  display: none;
}

.spread-kicker {
  margin: 0;
  color: var(--accent-gold);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.spread-deck {
  --fan-step: 18px;
  --fan-rot: 3.5deg;
  --fan-card-width: clamp(92px, 10.5vw, 136px);
  position: relative;
  min-height: clamp(280px, 36vw, 420px);
  margin-top: 0.55rem;
}

.deck-card-btn {
  --tx: calc(-50% + (var(--offset, 0) * var(--fan-step, 18px)));
  --ty: calc(-50% + (var(--depth, 0) * 1.3px));
  --rot: calc(var(--offset, 0) * var(--fan-rot, 3.5deg));
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--fan-card-width, clamp(92px, 10.5vw, 136px));
  aspect-ratio: 5 / 8;
  border-radius: 12px;
  border: 1px solid var(--border-main);
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.62);
  transform-origin: center 88%;
  filter: saturate(0.78) brightness(0.9);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.34);
  transition: box-shadow 0.28s ease, filter 0.28s ease;
  will-change: transform, opacity;
}

.deck-card-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spread-deck.is-ready .deck-card-btn {
  pointer-events: auto;
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  filter: saturate(1) brightness(1);
  animation: deckFanSpread 0.72s cubic-bezier(0.2, 0.78, 0.2, 1) both;
  animation-delay: var(--entry-delay, 0ms);
}

.spread-deck.is-ready .deck-card-btn:hover {
  box-shadow: 0 14px 24px rgba(28, 45, 92, 0.52);
  transform: translate(var(--tx), calc(var(--ty) - 12px)) rotate(var(--rot));
}

.spread-deck.is-ready .deck-card-btn:focus-visible {
  transform: translate(var(--tx), calc(var(--ty) - 12px)) rotate(var(--rot));
}

.spread-deck.is-ready .deck-card-btn.is-picked {
  opacity: 0;
  transform: translate(var(--tx), calc(var(--ty) - 120px)) rotate(var(--rot)) scale(0.86);
}

.spread-deck.is-complete .deck-card-btn:not(.is-picked) {
  filter: saturate(0.35) brightness(0.7);
  opacity: 0.5;
  pointer-events: none;
}

@keyframes deckFanSpread {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.62);
  }
  62% {
    opacity: 1;
    transform: translate(var(--tx), calc(var(--ty) - 10px)) rotate(var(--rot)) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1);
  }
}

.spread-results {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.spread-results-block {
  display: grid;
  gap: 1rem;
}

.spread-summary {
  border: 1px solid rgba(169, 184, 215, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 18, 36, 0.9), rgba(11, 19, 38, 0.62));
  padding: 0.9rem;
}

.result-slot {
  border-radius: var(--radius-md);
  border: 1px solid rgba(169, 184, 215, 0.27);
  background: linear-gradient(155deg, rgba(12, 20, 39, 0.93), rgba(11, 18, 34, 0.68));
  padding: 0.75rem;
}

.slot-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-silver);
  font-size: 0.72rem;
  font-weight: 700;
}

.slot-body {
  min-height: 270px;
  display: grid;
  place-items: center;
  margin-top: 0.55rem;
}

.slot-placeholder {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.picked-card-3d {
  width: min(100%, 280px);
  perspective: 1400px;
}

.picked-card-3d.is-clickable {
  cursor: zoom-in;
}

.picked-card-3d.is-clickable:focus-visible {
  outline: 2px solid rgba(106, 208, 255, 0.86);
  outline-offset: 4px;
  border-radius: 12px;
}

.picked-card-inner {
  position: relative;
  min-height: 0;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform 0.76s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.picked-card-3d.is-revealed .picked-card-inner {
  transform: rotateY(180deg);
}

.picked-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(202, 166, 106, 0.38);
}

.picked-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picked-front {
  transform: rotateY(180deg);
  background: #0b1225;
}

.picked-front-image {
  padding: 0;
  display: block;
}

.picked-front-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picked-card-name {
  margin: 0.45rem 0 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--accent-gold);
  text-wrap: balance;
}

.picked-position {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.picked-front h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.picked-front .tag {
  width: fit-content;
}

.picked-front p {
  margin: 0;
  color: var(--ink-medium);
  font-size: 0.9rem;
  line-height: 1.45;
}

.picked-front .picked-position {
  color: var(--accent-gold);
  font-size: 0.7rem;
  line-height: 1.2;
}

/* ── TESTIMONIANZE CAROSELLO ─────────────────────────────── */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  background: linear-gradient(145deg, rgba(18, 25, 46, 0.9), rgba(15, 20, 37, 0.7));
  border: 1px solid rgba(202, 166, 106, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-topic {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}

.testimonial-topic--amore  { background: rgba(220, 100, 130, 0.18); color: #e88fa8; border: 1px solid rgba(220, 100, 130, 0.3); }
.testimonial-topic--denaro { background: rgba(100, 200, 130, 0.18); color: #7dd4a0; border: 1px solid rgba(100, 200, 130, 0.3); }
.testimonial-topic--lavoro { background: rgba(100, 150, 240, 0.18); color: #8ab4f8; border: 1px solid rgba(100, 150, 240, 0.3); }

.testimonial-text {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-strong);
  font-style: italic;
}

.testimonial-author {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-medium);
  letter-spacing: 0.03em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.carousel-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-medium);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: rgba(202, 166, 106, 0.18);
  color: var(--ink-strong);
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.is-active {
  background: rgba(202, 166, 106, 0.8);
  transform: scale(1.2);
}

@media (min-width: 640px) {
  .testimonial-card { flex: 0 0 calc(50% - 0.625rem); }
}

@media (min-width: 1024px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 0.834rem); }
}
/* ─────────────────────────────────────────────────────────── */

.cta-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(170, 187, 223, 0.3);
  background: linear-gradient(120deg, rgba(16, 26, 54, 0.96), rgba(21, 33, 62, 0.7));
  padding: clamp(1.1rem, 3vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cta-panel h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.site-footer {
  border-top: 1px solid rgba(157, 174, 207, 0.2);
  padding-top: 1.5rem;
  background: rgba(3, 7, 16, 0.78);
}

.footer-wrap {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.footer-copy {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  max-width: 48ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-links a {
  color: var(--ink-medium);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--ink-strong);
}

.disclaimer {
  margin: 1rem 0 0;
  border-top: 1px solid rgba(157, 174, 207, 0.16);
  padding: 0.85rem 1rem 0.4rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.footer-legal {
  margin: 0;
  padding: 0.4rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.65rem;
  opacity: 0.6;
  line-height: 1.5;
}

.page-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 100dvh;
  overflow-x: hidden;
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(157, 174, 207, 0.17);
  background: linear-gradient(160deg, rgba(4, 9, 20, 0.93), rgba(8, 15, 31, 0.82));
  backdrop-filter: blur(12px);
}

.chat-header-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding-block: 0.35rem;
}

.chat-title-wrap {
  grid-column: 1 / -1;
}

.chat-title-wrap h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.22rem, 2.8vw, 1.65rem);
}

.status {
  margin: 0.25rem 0 0;
  color: var(--ink-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45de94;
  box-shadow: 0 0 0 4px rgba(69, 222, 148, 0.2);
}

.chat-controls {
  display: inline-flex;
  gap: 0.5rem;
  justify-self: end;
}

.chat-controls .btn {
  padding-inline: 0.9rem;
}

.chat-main {
  min-height: 0;
  width: min(100%, var(--container-max));
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem 1rem;
}

.chat-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(8, 13, 26, 0.96), rgba(11, 18, 35, 0.88));
  box-shadow: var(--shadow-soft);
}

.chat-page-head .chat-title-wrap {
  grid-column: auto;
}

.chat-page-head .chat-controls {
  justify-self: end;
}

.chat-shell {
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: linear-gradient(170deg, rgba(9, 14, 28, 0.98), rgba(10, 18, 35, 0.84));
  box-shadow: var(--shadow-soft);
}

.messages {
  height: 100%;
  overflow-y: auto;
  padding: 1.2rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-padding-bottom: 140px;
}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.bubble {
  max-width: min(760px, 100%);
  border-radius: 18px;
  padding: 0.82rem 0.95rem;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.message.user .bubble {
  border-color: rgba(110, 157, 242, 0.52);
  background: linear-gradient(140deg, rgba(50, 83, 153, 0.9), rgba(56, 95, 169, 0.78));
  color: #f6f9ff;
}

.message.assistant .bubble {
  border-color: rgba(202, 166, 106, 0.36);
  background: linear-gradient(145deg, rgba(18, 25, 46, 0.96), rgba(15, 20, 37, 0.84));
}

.bubble p {
  margin: 0;
  line-height: 1.55;
  color: var(--ink-strong);
}

.message-time {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: block;
}

.inline-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.inline-card img {
  width: 76px;
  height: 112px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
}

.inline-card h4 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-size: 1rem;
}

.inline-card p {
  margin-top: 0.3rem;
  color: var(--ink-medium);
}

.astro-profile {
  border: 1px solid rgba(169, 184, 215, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: rgba(14, 23, 45, 0.8);
}

.astro-profile h4 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--accent-silver);
  font-size: 1rem;
}

.astro-profile ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--ink-medium);
}

.typing {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(212, 221, 241, 0.84);
  animation: pulseDots 1s ease infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulseDots {
  0%,
  80%,
  100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 55;
  border-top: 1px solid rgba(157, 174, 207, 0.2);
  background: linear-gradient(180deg, rgba(7, 12, 25, 0.86), rgba(7, 12, 24, 0.95));
  backdrop-filter: blur(10px);
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom));
}

.page-chat .site-footer {
  position: relative;
  z-index: 1;
}

.composer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.composer-field {
  display: block;
}

#chatInput {
  width: 100%;
  min-height: 56px;
  max-height: 160px;
  resize: none;
  border-radius: 16px;
  border: 1px solid var(--border-main);
  background: rgba(8, 13, 26, 0.95);
  color: var(--ink-strong);
  padding: 0.85rem 0.95rem;
  line-height: 1.4;
}

#chatInput::placeholder {
  color: #7f8aac;
}

.settings-modal {
  border: 1px solid var(--border-main);
  border-radius: 16px;
  max-width: 420px;
  width: min(92vw, 420px);
  padding: 0;
  background: linear-gradient(170deg, rgba(11, 17, 34, 0.98), rgba(11, 16, 30, 0.95));
  color: var(--ink-strong);
}

.settings-modal::backdrop {
  background: rgba(3, 6, 12, 0.7);
  backdrop-filter: blur(3px);
}

.settings-content {
  padding: 1rem;
}

.settings-content h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-size: 1.28rem;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(157, 174, 207, 0.2);
  border-radius: 12px;
  padding: 0.72rem 0.75rem;
  margin-bottom: 0.65rem;
}

.settings-content menu {
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.reveal-up {
  animation: revealUp 0.8s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .daily-feature-card {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    align-items: start;
  }

  .footer-wrap {
    grid-template-columns: 1fr auto;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .paths-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chat-header-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .chat-title-wrap {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }

  .spread-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-body {
    min-height: 290px;
  }

  .spread-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
  }

  .spread-actions {
    margin-top: 0;
    grid-template-columns: auto auto;
  }

  .spread-actions .btn {
    width: auto;
  }
}

@media (min-width: 992px) {
  .desktop-nav {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .header-wrap {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .hero-visual {
    grid-column: 7 / -1;
    min-height: 460px;
  }

  .spread-layout {
    grid-template-columns: 1fr;
  }

  .spread-deck {
    --fan-step: 22px;
    --fan-card-width: clamp(104px, 9vw, 144px);
    min-height: 430px;
  }
}

@media (max-width: 991px) {
  .header-actions .btn-primary {
    display: none;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .daily-feature-media {
    max-width: 280px;
  }

  .page-chat {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-bottom: 0;
  }

  .chat-main {
    padding-bottom: calc(var(--composer-height, 124px) + var(--keyboard-offset, 0px) + env(safe-area-inset-bottom));
  }

  .chat-page-head {
    grid-template-columns: 1fr;
    padding: 0.85rem 0.9rem;
  }

  .chat-page-head .chat-controls {
    justify-self: start;
    flex-wrap: wrap;
  }

  .chat-composer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--keyboard-offset, 0px);
  }

  .composer-inner {
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
  }

  .page-chat .site-footer {
    padding-bottom: calc(var(--composer-height, 124px) + env(safe-area-inset-bottom) + 0.85rem);
  }

  #drawCardBtn {
    grid-column: 1 / -1;
    justify-self: flex-start;
    padding-inline: 0.8rem;
  }

  .messages {
    padding-bottom: 2rem;
  }

  .lang-menu-select {
    min-height: 34px;
    min-width: 100px;
    padding: 0.3rem 0.6rem;
  }

  .chat-controls .lang-menu-select {
    min-height: 38px;
    min-width: 96px;
  }

  .spread-chat-shell {
    padding: 0.66rem;
  }

  .spread-topic-actions {
    grid-template-columns: 1fr;
  }

  .spread-followup-actions {
    grid-template-columns: 1fr;
  }

  .spread-credit-form-grid {
    grid-template-columns: 1fr;
  }

  .spread-chat-messages {
    min-height: 1px;
  }

  .spread-board {
    padding: 0.62rem;
  }

  .spread-deck-wrap {
    padding: 0.8rem 0.45rem 0.55rem;
  }

  .spread-deck {
    --fan-step: 12.5px;
    --fan-rot: 2.7deg;
    --fan-card-width: clamp(84px, 23.5vw, 104px);
    min-height: 286px;
  }

  .slot-body {
    min-height: 170px;
  }

  .spread-board-featured {
    padding: 0.9rem;
  }

  .spread-board-inner {
    width: 100%;
  }

  .page-daily .spread-chat-section {
    padding-top: 0.56rem;
  }

  .page-daily .spread-chat-shell {
    border-radius: 15px;
  }

  .page-daily .spread-chat-composer {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    margin-inline: 0;
    padding-bottom: calc(0.52rem + env(safe-area-inset-bottom));
  }

  .page-daily .spread-section-inline {
    padding: 0;
  }

  .page-daily .spread-layout {
    gap: 0.45rem;
  }

  .page-daily .spread-results-block {
    gap: 0.55rem;
  }

  .page-daily .spread-results {
    margin-top: 0.2rem;
  }

  .page-daily .spread-deck {
    --fan-step: 9px;
    --fan-card-width: clamp(58px, 16.5vw, 80px);
    min-height: clamp(220px, 38vh, 280px);
  }

  .page-daily .spread-results {
    gap: 0.42rem;
  }

  .page-daily .slot-label {
    font-size: 0.64rem;
  }

  .page-daily .slot-body {
    min-height: 0;
  }

  .page-daily .picked-card-3d {
    width: min(100%, 92px);
  }

  .page-daily .picked-card-name {
    font-size: 0.68rem;
  }

  .page-daily .spread-summary {
    padding: 0.22rem 0 0;
  }

  .spread-post-consult-actions {
    grid-template-columns: 1fr;
  }

  .page-daily .spread-actions {
    gap: 0.5rem;
  }

  .page-daily .spread-actions .btn {
    min-height: 38px;
    font-size: 0.8rem;
    padding-inline: 0.7rem;
  }
}

@media (max-width: 640px) {
  .chat-header .brand-text {
    display: none;
  }

  .chat-controls .btn {
    padding-inline: 0.72rem;
    font-size: 0.82rem;
  }

  .chat-controls .lang-menu-select {
    min-width: 88px;
    font-size: 0.78rem;
  }

  .spread-hero-head p {
    max-width: 42ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tarot-card[data-tilt] {
    transform: none !important;
  }
}

/* ── Lenormand section ──────────────────────────────────── */
.lenormand-section {
  text-align: center;
}

.lenormand-head {
  margin-bottom: var(--space-3);
}

.lenormand-text {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-medium);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Consulto page — no footer ──────────────────────────── */
.page-consulto .site-footer {
  display: none;
}

/* ── Legal pages (.page-terms, .page-privacy) ────────────── */
.legal-banner {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  border-bottom: 1px solid var(--border-main);
}

.legal-banner h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--ink-strong);
}

.legal-banner .legal-updated {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.legal-intro {
  margin: 0 0 2.5rem;
  color: var(--ink-medium);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.93rem;
  color: var(--ink-medium);
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

.legal-doc ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.4rem;
}

.legal-doc a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- About page ---- */
.about-body {
  max-width: 680px;
  margin: 3rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin: 0 0 0.75rem;
}

.about-section p {
  font-size: 0.95rem;
  color: var(--ink-medium);
  line-height: 1.8;
  margin: 0 0 0.6rem;
}

.about-cta {
  border-top: 1px solid rgba(202, 166, 106, 0.25);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-cta h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-strong);
  margin: 0;
}

.about-cta p {
  font-size: 0.95rem;
  color: var(--ink-medium);
  line-height: 1.8;
  margin: 0;
}

/* ── Question Intro Overlay ─────────────────────────────────── */
.spread-question-intro {
  display: none;
}

.spread-question-intro.is-visible {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #090e1c;
  padding: 2rem;
  text-align: center;
  gap: 2rem;
}

.spread-question-intro.is-submitted {
  display: none !important;
}

.spread-question-title {
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #d4a857;
  font-weight: 400;
  letter-spacing: 0.03em;
  max-width: 640px;
  line-height: 1.35;
  margin: 0;
}

.spread-question-intro .spread-chat-composer {
  position: static;
  width: min(100%, 660px);
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.spread-question-sublabel {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 190, 220, 0.45);
  margin-bottom: 0.7rem;
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
}

.spread-question-intro .spread-chat-field {
  width: 100%;
  display: block;
}

.spread-question-intro #spreadChatInput {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #c87941;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  padding: 0.5rem 0.2rem;
  font-size: 1.4rem;
  color: #e8eaf6;
  text-align: center;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  width: 100%;
}

.spread-question-intro #spreadChatInput:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: #c87941;
}

.spread-question-intro #spreadChatInput::placeholder {
  color: rgba(180, 190, 220, 0.32);
  font-style: italic;
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1rem;
}

.spread-question-btn {
  border-radius: 50px;
  padding: 0.95rem 2.6rem;
}

.spread-question-intro .spread-chat-composer.is-locked #spreadChatInput {
  opacity: 0.7;
  cursor: not-allowed;
}

.spread-question-intro .spread-chat-composer.is-locked .spread-question-btn {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}


