/* =====================================================================
   FUTmarket — foglio di stile v2
   Sostituisce bootstrap.css + tema "kode" + plugin per le pagine migrate.
   Regola della casa: niente !important (unica eccezione: utility .sr-only).
   ===================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* superfici */
  --bg: #0A0D12;
  --bg-deep: #080B0F;
  --surface: #11161E;
  --surface-2: #0F141C;
  --surface-sunken: #0A0E14;
  --surface-accent: #0D1D2A;

  /* bordi */
  --line: #1C232E;
  --line-2: #252D3A;
  --line-strong: #2A3341;
  --line-accent: #1E3A52;

  /* testo */
  --text: #E8EDF3;
  --text-2: #C9D2DE;
  --text-muted: #A9B4C4;
  --text-faint: #8B97A8;

  /* brand */
  --accent: #2EA8E6;
  --accent-hover: #4DB8EE;
  --accent-ink: #06121B;      /* testo sopra l'accento */
  --accent-soft: #9FD3F2;
  --link: #7CC8F0;
  --link-hover: #B5E0F7;
  --accent-rgb: 46, 168, 230;  /* per rgba(var(--accent-rgb), .x) */
  --accent-deep: #1B7FB8;     /* inizio dei gradienti */
  --accent-light: #6CCBF5;    /* fine dei gradienti */

  /* stati */
  --ok: #3FCF8E;
  --fc-green: #4BE37A;       /* verde "FC" del logo, coerente col gioco */
  --warn: #E8B04A;
  --low: #F08A4B;
  --danger: #F07A7A;
  --gold: #E2B65A;
  --trust: #1FA971;

  /* tipografia */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* forma e spazi */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1240px;
  --gutter: 32px;
  --header-h: 76px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px rgba(var(--accent-rgb), 0.55);
}
/* ==========================================================================
   Tema futmarket.co.uk (verde): stessi componenti, cambiano solo i token del brand.
   <html data-site="uk"> è impostato in v2/layout.php.
   ========================================================================== */
html[data-site="uk"] {
  --accent: #13E08B;
  --accent-hover: #3CEBA3;
  --accent-ink: #04140D;
  --accent-soft: #A8F5D2;
  --accent-rgb: 19, 224, 139;
  --accent-deep: #0B9E62;
  --accent-light: #7DF5C2;
  --link: #5EEBB0;
  --link-hover: #A8F5D2;
  --surface-accent: #0B2219;
  --line-accent: #154A35;
}


/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--accent); }

/* ---------- 3. Componenti base ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn--social { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }
.btn--social:hover { border-color: var(--accent); color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 17px; letter-spacing: .02em; border-radius: var(--radius); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { background: var(--line-strong); color: var(--text-muted); cursor: not-allowed; }

.link-btn {
  padding: 0; border: 0; background: none;
  color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--link-hover); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; color: var(--text);
}
.icon-btn:hover { border-color: var(--accent); color: var(--text); }
.icon-btn .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #1A0606;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid #23415A; background: #0E1A25;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-soft);
}

.dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot--medium { background: var(--warn); }
.dot--low { background: var(--low); }
.dot--verylow { background: var(--danger); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.card {
  padding: 28px;
  border: 1px solid #1F2733; border-radius: var(--radius-lg);
  background: var(--surface);
}
.card--accent { background: var(--surface-accent); border-color: var(--line-accent); }
.card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.05;
  text-transform: uppercase;
}
.card__title--sm { font-family: var(--font-body); font-size: 18px; text-transform: none; }
.card > * + * { margin-top: 12px; }
.card--accent p { color: #B4C3D3; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 13, 18, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.site-header .container { max-width: 1440px; }
/* con il saldo crediti in testata (da 1680px) serve più spazio: menu, saldo, campanella e icone non si sovrappongono */
@media (min-width: 1680px) { .site-header .container { max-width: 1680px; } }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); flex-shrink: 0; }
.brand:hover { color: var(--accent); }
/* logo e link della testata: mai sottolineati, anche se una pagina carica stili vecchi */
.site-header a, .site-header a:hover, .site-header a:focus, .site-header a:active,
.brand, .brand:hover, .brand:focus, .brand * { text-decoration: none !important; }
/* I bottoni non si sottolineano mai, nemmeno se un CSS legacy sottolinea a:hover */
.btn, .btn:hover, .btn:focus, .btn:active, .btn * { text-decoration: none !important; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .02em;
  color: var(--text);
}
.brand__fut { color: var(--accent); }
.brand__edition { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--text-faint); }
.brand__fc { color: var(--fc-green); font-weight: 700; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav__list { display: flex; justify-content: center; gap: 2px; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.main-nav__link:hover { color: var(--text); background: #141A23; }
.main-nav__link.is-active { color: var(--text); font-weight: 600; background: #141A23; }
.main-nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 10;
  min-width: 220px; padding: 8px; margin-top: 6px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav__item:hover > .main-nav__sub,
.main-nav__item:focus-within > .main-nav__sub { opacity: 1; visibility: visible; transform: none; }
.main-nav__sub a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); }
.main-nav__sub a:hover { background: #141A23; color: var(--text); }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; }

.wallet { display: none; gap: 6px; }
@media (min-width: 1680px) { .wallet { display: flex; } }
.wallet__item {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px;
}
.wallet__tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-faint); }

/* ---------- 5. Hero + configuratore ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; border-bottom: 1px solid var(--line); } /* clip: non crea un contenitore di scroll, serve allo sticky */
.hero__pitch {
  position: absolute; right: -180px; top: -40px;
  width: 1100px; height: 780px; max-width: none;
  color: rgba(var(--accent-rgb), 0.09);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 64px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
/* Desktop: il testo parte allineato in alto alla card e la accompagna nello scroll fino alla base della sezione */
@media (min-width: 1025px) {
  .hero__grid { align-items: start; }
  .hero__copy { position: sticky; top: calc(var(--header-h) + 48px); padding-top: 32px; }
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: .98;
  text-transform: uppercase;
}
.hero__title .accent { display: block; }
.hero__lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 15px; color: var(--text-2); }
.hero__trust li { display: flex; align-items: center; gap: 12px; }
.hero__trust li + li { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.hero__trust strong { color: var(--text); }

.stars { display: flex; gap: 3px; }
.stars i { position: relative; width: 22px; height: 22px; border-radius: 3px; background: var(--trust); }
.stars i::after {
  content: ""; position: absolute; inset: 4px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.order-card {
  display: flex; flex-direction: column; gap: 24px;
  margin: 0; padding: 28px;
  border: 1px solid #222B38; border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.order-card__head { display: flex; align-items: baseline; justify-content: space-between; }
.order-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: .01em;
}
.order-card__meta { font-size: 13px; color: var(--text-faint); white-space: nowrap; }
.order-card__cta { display: flex; flex-direction: column; gap: 12px; }
.order-card__secure {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--text-faint);
}

.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step__label {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}

.tiles { display: grid; gap: 10px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 100%; min-height: 44px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); text-align: left;
  transition: border-color .15s, background-color .15s;
}
.tile:hover { border-color: #3A4658; }
.tile__title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tile__sub { font-size: 12px; color: var(--text-faint); }
.tile__stock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }

/* stato selezionato: classi scritte da index.js */
#console_buttons li.active .tile,
.mthd_buttn .tile.selected {
  border-color: var(--accent);
  background: var(--surface-accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.amount {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-sunken);
}
.amount:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.amount__input:focus-visible { box-shadow: none; }
.amount__icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.amount__input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text);
  -moz-appearance: textfield; appearance: textfield;
}
.amount__input::-webkit-outer-spin-button,
.amount__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount__unit { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }

.slider { margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface-2); color: var(--text-2);
  font-weight: 700; font-size: 14px;
}
.chip:hover { border-color: #3A4658; color: var(--text); }
.chip.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-sunken);
}
.summary { flex-wrap: wrap; }
.summary__col { display: flex; flex-direction: column; min-width: 0; }
.summary__eta { flex: 1 0 100%; display: flex; align-items: center; gap: 6px; margin: 2px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.summary__eta svg { color: var(--accent); flex-shrink: 0; }
.summary__eta strong { color: var(--text); font-weight: 600; }
.summary__col--end { align-items: flex-end; text-align: right; }
.summary__label, .summary__hint { font-size: 13px; color: var(--text-faint); }
.summary__value { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.summary__value--accent { color: var(--accent); }

.form__error { min-height: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.form__error:empty { display: none; }

/* ---------- 6. Cursore dell'importo (input range nativo, partials/order-slider) ----------
   Stessa geometria del vecchio ion.rangeSlider: etichette in alto, linea a 26px, maniglia da 22px, scala in basso.
   --pos (0-1) = posizione del valore sulla scala; il centro della maniglia va da 11px a (100% - 11px). */
.range { position: relative; height: 74px; --thumb: 22px; }
.range__edge, .range__bubble {
  position: absolute; top: 0; white-space: nowrap; line-height: 18px;
}
.range__edge { font-size: 11px; color: var(--text-faint); }
.range__edge--min { left: 0; }
.range__edge--max { right: 0; }
.range__bubble { /* order.js la centra sulla maniglia senza farla uscire dai bordi; questo è il punto di partenza */
  left: calc(var(--pos) * 100%); transform: translateX(calc(var(--pos) * -100%));
  padding: 1px 6px; border-radius: 6px; line-height: 16px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
}
.range__input {
  position: absolute; left: 0; top: 18px; width: 100%; height: var(--thumb); margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
  --fill: calc(var(--pos) * (100% - var(--thumb)) + var(--thumb) / 2);
}
.range__input:focus { outline: none; }
.range__input::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), var(--line-strong) var(--fill) 100%);
}
.range__input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.range__input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: var(--thumb); height: var(--thumb); margin-top: -8px; border-radius: 50%; cursor: grab;
  background: var(--text); border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.range__input::-moz-range-thumb {
  box-sizing: border-box; width: var(--thumb); height: var(--thumb); border-radius: 50%; cursor: grab;
  background: var(--text); border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.range__input:hover::-webkit-slider-thumb { background: #fff; }
.range__input:hover::-moz-range-thumb { background: #fff; }
.range__input:active::-webkit-slider-thumb { cursor: grabbing; }
.range__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.range__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.range__grid { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.range__grid::before { /* tacche piccole: 20 intervalli */
  content: ""; position: absolute; top: 0; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); height: 3px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 5%);
}
.range__tick {
  position: absolute; bottom: 0; white-space: nowrap; font-size: 10px; line-height: 9px; color: var(--text-faint);
  left: calc(var(--pos) * (100% - var(--thumb)) + var(--thumb) / 2); transform: translateX(-50%);
}
.range__tick::before { /* tacca grande sul valore */
  content: ""; position: absolute; bottom: 14px; left: 50%; width: 1px; height: 6px; background: var(--line-strong);
}

/* ---------- 7. Sezioni ---------- */
.section { padding: 88px 0 24px; }
.section--tight { padding-top: 40px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__title {
  margin-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; text-transform: uppercase;
}
.section__link { font-weight: 600; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-card > * + * { margin-top: 0; }
.step-card__num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.step-card__title { font-size: 20px; font-weight: 700; }
.step-card p { color: var(--text-muted); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #1F2733; border-radius: var(--radius-lg); background: #0E1219;
}
.stats__item { display: flex; flex-direction: column-reverse; gap: 8px; padding: 28px; }
.stats__item + .stats__item { border-left: 1px solid #1F2733; }
.stats dt { color: var(--text-muted); }
.stats dd { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }
.stats dd small { font-size: 24px; color: var(--text-faint); }

.reviews { padding: 24px; min-height: 120px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.faq-links { margin: 24px 0 20px; border-top: 1px solid #1F2733; }
.faq-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid #1F2733;
  font-size: 17px; font-weight: 600; color: var(--text);
}
.faq-links a::after { content: "→"; color: var(--text-faint); }
.faq-links a:hover { color: var(--accent); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 8. Footer ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { max-width: 300px; font-size: 14px; color: var(--text-faint); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col a { color: var(--text-2); }
.site-footer__col a:hover { color: var(--text); }
.site-footer__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-faint);
}
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { color: var(--text-muted); }

.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li {
  padding: 6px 10px; border-radius: 6px;
  background: #151B24; border: 1px solid #232B38;
  font-size: 12px; font-weight: 700; color: var(--text-2);
}

.back-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--accent); }

/* overlay di caricamento usato dagli script esistenti */
.divLoading { display: none; }
.divLoading.show {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 12, .6);
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--line-strong); border-top-color: var(--accent);
  animation: fm-spin .8s linear infinite;
}
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* ---------- 9. Modali (markup Bootstrap 3, stile nostro) ---------- */
.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 1050;
  display: none; overflow-x: hidden; overflow-y: auto;
  outline: 0; /* niente -webkit-overflow-scrolling: su iOS blocca i tocchi negli iframe (reCAPTCHA) */
}
.modal-dialog { position: relative; width: auto; max-width: 460px; margin: 48px auto; padding: 0 16px; }
.modal.fade .modal-dialog { transform: translateY(-16px); opacity: 0; transition: transform .25s ease-out, opacity .25s; }
.modal.in .modal-dialog { transform: none; opacity: 1; }
.modal-content {
  border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px 0;
}
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
}
.modal-close:hover { border-color: var(--accent); }
.modal-body { padding: 20px 24px 24px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(4, 6, 10, .75); }
.modal-backdrop.fade { opacity: 0; transition: opacity .2s; }
.modal-backdrop.in { opacity: 1; }
.modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }

/* tooltip Bootstrap 3 */
.tooltip { position: absolute; z-index: 1070; display: block; font-size: 13px; line-height: 1.4; opacity: 0; }
.tooltip.in { opacity: 1; }
.tooltip.top { padding: 6px 0; margin-top: -3px; }
.tooltip-inner { max-width: 260px; padding: 8px 10px; border-radius: var(--radius-sm); background: #E8EDF3; color: #0A0D12; text-align: left; }
.tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; }
.tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #E8EDF3; }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.form__divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-faint); }
.form__divider::before, .form__divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.form__switch { font-size: 14px; color: var(--text-muted); text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field__input {
  height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface-sunken); color: var(--text);
}
.field__input:focus { outline: 0; border-color: var(--accent); box-shadow: var(--focus); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.g-recaptcha { min-height: 78px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1440px) {
  .main-nav__link { padding: 10px 9px; font-size: 14px; }
}

@media (max-width: 1360px) {
  /* backdrop-filter crea un containing block: il menu fixed resterebbe chiuso dentro l'header */
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 999;
    padding: 16px var(--gutter) 32px; overflow-y: auto;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav:not(.is-open) .main-nav__sub,
  .main-nav:not(.is-open) .main-nav__item:hover > .main-nav__sub,
  .main-nav:not(.is-open) .main-nav__item:focus-within > .main-nav__sub { visibility: hidden; }
  .main-nav__list { flex-direction: column; gap: 4px; }
  .main-nav__link { padding: 14px 12px; font-size: 18px; }
  .main-nav__sub {
    position: static; margin: 0 0 8px 12px; padding: 0; min-width: 0;
    border: 0; background: none; box-shadow: none;
    /* inherit, non visible: un figlio "visible" resterebbe cliccabile col menu chiuso */
    opacity: 1; visibility: inherit; transform: none;
  }
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 480px; gap: 40px; }
  .hero__title { font-size: 60px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --header-h: 68px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero__copy { max-width: 640px; }
  .order-card { max-width: 640px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid #1F2733; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand__name { font-size: 24px; }
  .brand__edition { display: none; }
  /* su mobile resta solo "Accedi" (dalla finestra si passa alla registrazione) */
  .site-header__actions .btn--ghost, .site-header__actions #head_reg { display: none; }
  .site-header__actions #head_login { display: inline-flex; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

  .hero__pitch { right: -520px; top: 20px; }
  .hero__grid { padding-top: 28px; padding-bottom: 32px; gap: 28px; }
  .hero__copy { gap: 16px; }
  .hero__title { font-size: 46px; }
  .hero__lead { font-size: 16px; }
  .pill { font-size: 11px; }
  .hero__trust { font-size: 14px; }
  .hero__trust li + li { padding-left: 0; border-left: 0; }

  .order-card { padding: 20px 16px; gap: 20px; border-radius: 18px; }
  .order-card__title { font-size: 24px; }
  .order-card__meta { display: none; }
  .tiles--3 { gap: 8px; }
  .tile { padding: 12px 10px; }
  .tile__title { font-size: 14px; }
  .tile__sub { display: none; }
  .tile__stock { font-size: 11px; }
  .tiles--2 { grid-template-columns: minmax(0, 1fr); }
  .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip { padding: 0; }
  .range { height: 58px; }
  .range__grid { display: none; }
  .summary { padding: 14px 16px; }
  .summary__value { font-size: 30px; }

  .section { padding-top: 56px; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .section__title { font-size: 34px; }
  .card { padding: 20px; }
  .stats__item { padding: 18px; }
  .stats dd { font-size: 32px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; }
  .site-footer__bottom { flex-direction: column; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .modal-dialog { margin: 16px auto; }
}

/* ---------- 11. Home: metodo fisso ---------- */
.fixed-method {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px dashed var(--line-2);
  font-size: 14px; color: var(--text-muted);
}
.fixed-method svg { color: var(--ok); flex-shrink: 0; }
.fixed-method strong { color: var(--text); }

/* ---------- 12. Checkout ---------- */
.checkout { padding: 40px 0 80px; }
.checkout__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
  margin-top: 32px;
}
.checkout__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
form.checkout__main, .checkout__main > .card { display: flex; flex-direction: column; gap: 20px; }
.checkout__main > .card > * + * { margin-top: 0; }
.checkout__head { display: flex; flex-direction: column; gap: 8px; }
.checkout__title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.05; text-transform: uppercase;
}
.checkout__lead { color: var(--text-muted); font-size: 16px; }
.checkout__lead span[style], .checkout__lead font { display: block; margin-top: 4px; }
.checkout__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.checkout__actions .btn--lg { flex: 1 1 auto; max-width: 320px; margin-left: auto; }
.checkout__privacy { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-faint); }
.checkout__privacy li { display: flex; align-items: center; gap: 8px; }
.checkout__privacy svg { color: var(--ok); flex-shrink: 0; }
.checkout__note { font-size: 13px; color: var(--text-faint); text-align: right; }

.stepper__list { display: flex; gap: 8px; }
.stepper__item {
  flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding-bottom: 12px; border-bottom: 3px solid var(--line-2);
  color: var(--text-faint); font-size: 14px; font-weight: 600;
}
.stepper__item.is-done { border-color: var(--accent); color: var(--text-muted); }
.stepper__item.is-current { border-color: var(--accent); color: var(--text); }
.stepper__dot {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line-strong); font-size: 13px; font-weight: 700;
}
.stepper__item.is-done .stepper__dot { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.stepper__item.is-current .stepper__dot { border-color: var(--accent); color: var(--accent); }
.stepper__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .field__input { flex: 1 1 auto; min-width: 0; padding-right: 44px; }
.input-wrap--action .field__input { padding-right: 84px; }
.field-check { position: absolute; right: 14px; color: #3A4554; pointer-events: none; display: flex; transition: color .2s; }
.field-check.is-filled { color: #8AFE7C; }
/* campo con spunta + occhio (step 2): la spunta resta allineata a quelle degli altri campi, l'occhio alla sua sinistra */
.input-wrap--action .field-check { right: 14px; }
.input-wrap--action .field-check ~ .input-wrap__btn { right: 40px; }
.input-wrap__btn {
  position: absolute; right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-muted);
}
.input-wrap__btn:hover, .input-wrap__btn[aria-pressed="true"] { color: var(--text); background: #1A212C; }
.field__input.formInvalid { border-color: var(--danger); }
.field__input.formInvalid::placeholder { color: var(--danger); }
.field__input::placeholder { color: var(--text-faint); }
.field__input--code { -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.field__input--code::-webkit-outer-spin-button, .field__input--code::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.field__warn { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--warn); }
.field__help { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.verify-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.status-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ok); }

.consent {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface-2);
}
.consent.is-invalid { border-color: var(--danger); }
.consent__label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; }
.consent__label input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.consent__link { margin-left: 32px; font-size: 14px; }

/* riepilogo laterale */
.summary-card {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border: 1px solid #222B38; border-radius: var(--radius-xl);
  background: var(--surface);
}
.summary-card__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.summary-card__coins { display: flex; align-items: center; gap: 14px; }
.summary-card__coins img { width: 40px; height: 40px; object-fit: contain; }
.summary-card__big { display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; }
.summary-card__hint { font-size: 13px; color: var(--text-faint); }
.summary-card__rows { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-card__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary-card__rows dt { color: var(--text-faint); }
.summary-card__rows dd { font-weight: 600; text-align: right; }
.summary-card__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-card__total span { color: var(--text-muted); }
.summary-card__total strong { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; color: var(--accent); }
.summary-card__amounts { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.summary-card__old { color: var(--text-muted); font-size: 16px; text-decoration-thickness: 1.5px; }
.summary-card__old[hidden], .summary-card__discount[hidden] { display: none; }
.summary-card__discount { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--text-muted); }
.summary-card__discount span:last-child { color: var(--accent); font-weight: 600; }
.summary-card__edit { font-size: 14px; font-weight: 600; }

/* step 3: riepilogo account */
.review { display: flex; flex-direction: column; gap: 14px; }
.review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.review__edit { font-size: 14px; font-weight: 600; }
.review__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review__list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; }
.review__list > div + div { border-top: 1px solid var(--line); }
.review__list dt { font-size: 14px; color: var(--text-faint); }
.review__mono { font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.review__secret { display: flex; align-items: center; gap: 8px; }
.review__secret-input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--text); font-weight: 600; outline: 0; }
.review__secret .input-wrap__btn { position: static; }
.review__codes { display: flex; flex-wrap: wrap; gap: 8px; }
.review__code {
  padding: 4px 10px; border-radius: 6px; background: var(--surface-sunken); border: 1px solid var(--line-2);
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em;
}

/* step 3: pagamento */
.pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-option {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer;
}
.pay-option:hover { border-color: #3A4658; }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--surface-accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-option input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.pay-option__body { display: flex; flex-direction: column; gap: 4px; padding-right: 28px; }
.pay-option__title { font-weight: 700; }
.pay-option__sub { font-size: 13px; color: var(--text-muted); }
.pay-option__help { position: absolute; top: 12px; right: 12px; color: var(--text-faint); }
.pay-option__help:hover { color: var(--text); }

.coupon { display: flex; flex-direction: column; gap: 6px; }
.coupon__row { display: flex; gap: 10px; }
.coupon__row .field__input { flex: 1 1 auto; min-width: 0; }
.coupon__result { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ok); }
.coupon__result a { color: var(--danger); font-weight: 600; }

/* contenuti HTML dall'admin nei modali */
.prose { color: var(--text-2); line-height: 1.6; }
.prose > * + * { margin-top: 12px; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 20px; list-style: revert; }
.modal-dialog--wide { max-width: 720px; }
.modal-dialog--sm { max-width: 380px; }

/* popup verifica (pilotato da comfort.js) */
.verify { position: relative; padding: 24px; text-align: center; }
.verify__x { position: absolute; top: 12px; right: 12px; }
.verify__body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 36px; } /* spazio per la X di chiusura sopra l'immagine */
.verify__img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); border: 1px solid var(--line-2); }
.verify__img--ok { max-width: 140px; border: 0; }
.verify__text { font-weight: 600; color: var(--text-2); }
.verify__text:empty { display: none; }
.verify__progress { width: 100%; }
.progress { height: 8px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width .9s linear; }
.verify__actions { margin-top: 18px; }
.verify__actions--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verify__extra { margin-top: 16px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.verify--ok { border-color: var(--ok); }
.verify--ok .verify__body { gap: 0; padding-top: 8px; }
.verify--ok #verify_actions { display: none; }

/* esito positivo della verifica (verify.js, success) */
.verify-ok { display: flex; flex-direction: column; align-items: center; }
.verify-ok__badge { width: 76px; height: 76px; margin-bottom: 14px; --ok-rgb: 63, 207, 142; }
.verify-ok__halo { fill: rgba(var(--ok-rgb), .12); stroke: rgba(var(--ok-rgb), .22); stroke-width: 1; }
.verify-ok__ring { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 158; stroke-dashoffset: 158; transform: rotate(-90deg); transform-origin: 36px 36px;
  animation: verify-draw .6s cubic-bezier(.65, 0, .35, 1) forwards; }
.verify-ok__tick { fill: none; stroke: var(--ok); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34;
  animation: verify-draw .35s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.verify-ok__halo { transform-origin: 36px 36px; animation: verify-pop .5s ease-out .75s both; }
@keyframes verify-draw { to { stroke-dashoffset: 0; } }
@keyframes verify-pop { 0% { transform: scale(.82); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .verify-ok__ring, .verify-ok__tick, .verify-ok__halo { animation: none; stroke-dashoffset: 0; } }
.verify-ok__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .01em; color: var(--text); }
.verify-ok__text { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); max-width: 30ch; }
.verify-ok__facts { width: 100%; margin: 18px 0 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-sunken, var(--surface-2)); text-align: left; }
.verify-ok__fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.verify-ok__fact + .verify-ok__fact { border-top: 1px solid var(--line); }
.verify-ok__fact dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.verify-ok__fact dd { margin: 0; min-width: 0; font-weight: 700; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.verify-ok__coins { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.verify-ok__coins img { width: 20px; height: 20px; flex: none; }
.verify-ok__ask { margin: 18px 0 0; font-weight: 600; color: var(--text-2); }
.verify-ok + .verify__actions { margin-top: 12px; }

/* HTML iniettato da comfort.js nel popup di esito (classi Bootstrap/tema vecchio) */
.legacy-popup { width: 100%; }
.legacy-popup [class*="col-"] { display: block; width: 100%; }
.legacy-popup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.legacy-popup .method-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 700;
}
.legacy-popup .verycom + .verycom .method-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.legacy-popup .fa { display: none; }

@media (max-width: 1024px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; order: -1; }
  .summary-card__rows { display: none; }
  .summary-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; }
  .summary-card__title { width: 100%; }
  .summary-card__head .summary-card__title { width: auto; flex: 1 1 auto; min-width: 0; }
  .summary-card__total { flex-direction: column; align-items: flex-end; gap: 4px; }
  .summary-card__edit { width: 100%; }
}

@media (max-width: 640px) {
  .checkout { padding: 24px 0 56px; }
  .checkout__grid { margin-top: 20px; gap: 16px; }
  .checkout__title { font-size: 28px; }
  .stepper__label { display: none; }
  .stepper__item.is-current .stepper__label { display: inline; }
  .stepper__item { flex: 0 0 auto; }
  .stepper__item.is-current { flex: 1 1 auto; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .pay-options { grid-template-columns: minmax(0, 1fr); }
  .review__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 14px; }
  .checkout__actions { flex-direction: column-reverse; align-items: stretch; }
  .checkout__actions .btn--lg { max-width: none; margin-left: 0; }
  .checkout__actions .btn--ghost { width: 100%; }
  /* dettaglio ordine: l'azione principale (Correggi i dati) in alto, tutti i pulsanti a tutta larghezza */
  .checkout__actions .actions-row { flex-direction: column-reverse; }
  .checkout__actions .actions-row > .btn { width: 100%; }
  .checkout__note { text-align: center; }
  .summary-card__big { font-size: 32px; }
  .summary-card__total strong { font-size: 30px; }
}

/* ---------- 13. Pagine interne ---------- */
.container--narrow { max-width: 880px; }
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head__pitch { position: absolute; right: -320px; top: -260px; width: 1100px; height: 780px; max-width: none; color: rgba(var(--accent-rgb), 0.07); pointer-events: none; }
.page-head__inner { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 56px; padding-bottom: 48px; }
.page-head__title { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; text-transform: uppercase; }
.page-head__lead { max-width: 640px; font-size: 18px; color: var(--text-muted); }
.section--page { padding-top: 40px; padding-bottom: 80px; }
.split--aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; padding-bottom: 0; }

.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 15px; }
.alert--ok { border-color: rgba(63, 207, 142, .5); background: rgba(63, 207, 142, .08); color: #B7F0D3; }
.alert--error { border-color: rgba(240, 122, 122, .5); background: rgba(240, 122, 122, .08); color: #F7C4C4; }
.alert--warn { border-color: rgba(232, 176, 74, .5); background: rgba(232, 176, 74, .08); color: #F3DDB0; }

.form--plain { margin: 0; padding: 0; border: 0; min-width: 0; }
.form--plain[disabled] { opacity: .55; }
.field__input--area { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.field__input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238B97A8' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-control { width: 100%; }
.link-card { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--text); }
.link-card:hover { border-color: var(--accent); color: var(--text); }
.mini-steps { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: decimal; color: var(--text-muted); }
.page-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.page-adv { margin-bottom: 20px; }
.page-adv__img { margin: 0 auto 20px; height: auto; border-radius: var(--radius); }
.empty { color: var(--text-muted); text-align: center; }

/* contenuti HTML dell'admin: compatibilità minima con il markup del vecchio tema */
.prose--page { padding: 36px; font-size: 17px; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.prose h1 { font-size: 34px; } .prose h2 { font-size: 28px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose * + h1, .prose * + h2, .prose * + h3 { margin-top: 28px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose iframe, .prose video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.prose .row { display: flex; flex-wrap: wrap; gap: 20px; }
.prose [class*="col-"] { flex: 1 1 260px; min-width: 0; }
.prose .img-responsive { max-width: 100%; height: auto; }
.prose .text-center { text-align: center; }
.prose .text-right { text-align: right; }
.prose [style*="color: white"], .prose [style*="color:#fff"], .prose [style*="color: #fff"] { color: var(--text); }

/* ---------- Contenuti dall'admin (classi fm-*, vedi docs/contenuti-admin) ---------- */
.prose .fm-lead { font-size: 1.08em; color: var(--text); }
.prose .fm-muted { color: var(--text-muted); font-size: .92em; }
.prose .fm-center { text-align: center; }
.prose h2.fm-title, .prose h3.fm-title { margin-top: 32px; }
.prose .fm-note { padding: 14px 16px 14px 44px; position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2, rgba(255,255,255,.03)); color: var(--text-2); }
.prose .fm-note::before { content: "i"; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(var(--accent-rgb), .16); color: var(--accent); font: 700 12px/1 var(--font-body); }
.prose .fm-note--warn { border-color: rgba(245, 166, 35, .35); background: rgba(245, 166, 35, .07); }
.prose .fm-note--warn::before { content: "!"; background: rgba(245, 166, 35, .18); color: #F5A623; }
.prose .fm-note--ok { border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .07); }
.prose .fm-note--ok::before { content: "✓"; }
.prose .fm-note > :first-child { margin-top: 0; }
.prose .fm-note > * + * { margin-top: 8px; }
.prose ol.fm-steps { list-style: none; padding: 0; counter-reset: fmstep; display: grid; gap: 14px; }
.prose ol.fm-steps > li { counter-increment: fmstep; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.prose ol.fm-steps > li::before { content: counter(fmstep); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(var(--accent-rgb), .14); color: var(--accent); font: 700 15px/1 var(--font-display); }
.prose ol.fm-steps > li > * + * { margin-top: 10px; }
.prose .fm-step-title { display: block; color: var(--text); font-weight: 700; }
.prose ul.fm-checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul.fm-checks > li { position: relative; padding-left: 28px; }
.prose ul.fm-checks > li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.prose .fm-figure { margin: 0; text-align: center; }
.prose .fm-figure img { display: block; width: 100%; max-width: 520px; margin: 0 auto; border: 1px solid var(--line-2); }
.prose .fm-figure figcaption { margin-top: 8px; font-size: .88em; color: var(--text-muted); }
.prose .fm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.prose .fm-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.prose .fm-tile > * { margin: 0; }
.prose .fm-tile .fm-pill { margin-bottom: 2px; }
.prose .fm-tile > p:last-child:has(> a:only-child) { margin-top: auto; padding-top: 2px; } /* link in fondo: stessa altezza nelle schede vicine */
.prose .fm-tile__title { display: block; color: var(--text); font-weight: 700; }
.prose .fm-tile__big { display: block; font: 700 26px/1.1 var(--font-display); color: var(--accent); }
.prose .fm-tier { border-top: 3px solid var(--line-2); }
.prose .fm-tier--bronze { border-top-color: #D66935; } .prose .fm-tier--bronze .fm-tile__big { color: #E08A5C; }
.prose .fm-tier--silver { border-top-color: #C1B8B3; } .prose .fm-tier--silver .fm-tile__big { color: #D6D0CC; }
.prose .fm-tier--gold { border-top-color: #E0B533; } .prose .fm-tier--gold .fm-tile__big { color: #F0C94D; }
.prose .fm-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: .82em; font-weight: 700; letter-spacing: .02em; }
.prose .fm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prose .fm-actions.fm-center { justify-content: center; }
.prose a.btn { text-decoration: none; }
.prose .fm-success { text-align: center; }
.prose .fm-success__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 30px no-repeat;
  box-shadow: inset 0 0 0 2px var(--accent); }
.prose .fm-success--error .fm-success__icon { background: rgba(240, 122, 122, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: inset 0 0 0 2px var(--danger); }
.prose .fm-success__title { margin-top: 14px; font: 700 26px/1.15 var(--font-display); text-transform: uppercase; color: var(--text); }
.prose .fm-contacts { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .fm-contacts a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; color: var(--text); }
.prose .fm-contacts a:hover { border-color: rgba(var(--accent-rgb), .5); }
.prose .fm-contacts small { display: block; color: var(--text-muted); font-size: .85em; }
@media (max-width: 640px) {
  .prose ol.fm-steps > li { padding: 16px 14px 16px 54px; }
  .prose ol.fm-steps > li::before { left: 12px; width: 30px; height: 30px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid #1F2733; border-radius: var(--radius); background: var(--surface); }
.faq__item[open] { border-color: var(--line-2); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--text-faint); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); color: var(--accent); }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 20px 20px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #1F2733; border-radius: var(--radius-lg); background: var(--surface); }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
/* copertina intera (16:9, come la carica il blog): niente tagli ai lati; se il testo è più alto, sopra e sotto
   resta il fondo scuro, che si fonde con quello delle copertine */
.post-card--featured .post-card__media { aspect-ratio: auto; display: flex; align-items: center; background: var(--bg-deep); }
.post-card--featured .post-card__media img { height: auto; object-fit: contain; }
.post-card--featured .post-card__body { padding: 28px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.post-card__date { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.post-card--featured .post-card__title { font-size: 34px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; font-weight: 600; }

.blog-aside { display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--header-h) + 16px); }
.blog-aside__title { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.mini-posts { display: flex; flex-direction: column; gap: 12px; }
.mini-post { display: flex; gap: 12px; align-items: center; color: var(--text); }
.mini-post:hover { color: var(--accent); }
.mini-post__img { flex-shrink: 0; width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.mini-post__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-post__title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-post__date { font-size: 12px; color: var(--text-faint); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.tag:hover { border-color: var(--accent); color: var(--text); }

/* paginazione di CodeIgniter: <div class="pagination"><a>…<span>corrente</span></div> */
.pager { margin-top: 32px; }
.pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager .pagination a, .pager .pagination span, .pager .pagination strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-weight: 600;
}
.pager .pagination a:hover { border-color: var(--accent); color: var(--text); }
.pager .pagination span, .pager .pagination strong { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.post__head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.post__head .container { display: flex; flex-direction: column; gap: 12px; }
.post__back { font-weight: 600; font-size: 14px; }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.02; text-transform: uppercase; }
.post .blog-grid { padding-top: 32px; padding-bottom: 80px; }
.post__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.post__media { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); }
.post__media img { width: 100%; height: auto; }
.post__media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post__comments { min-height: 120px; }

@media (max-width: 1024px) {
  .split--aside, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-aside { position: static; }
  .page-head__title { font-size: 46px; }
  .post__title { font-size: 42px; }
}
@media (max-width: 640px) {
  .page-head__inner { padding-top: 36px; padding-bottom: 32px; }
  .page-head__title { font-size: 36px; }
  .page-head__lead { font-size: 16px; }
  .section--page { padding-top: 24px; padding-bottom: 56px; }
  .prose--page { padding: 22px 18px; font-size: 16px; }
  .post-cards { grid-template-columns: minmax(0, 1fr); }
  .post-card--featured { display: flex; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card--featured .post-card__media img { height: 100%; object-fit: cover; }
  .post-card__title, .post-card--featured .post-card__title { font-size: 24px; }
  .post__title { font-size: 32px; }
  .faq__q { padding: 16px; font-size: 16px; }
  .faq__a { padding: 0 16px 16px; }
}

/* ---------- 14. FUTmarket Coins ---------- */
.page-head--coins .page-head__inner { gap: 14px; padding-bottom: 0; }
.balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 8px; }
.balance { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.balance dt { font-size: 13px; color: var(--text-faint); }
.balance dd { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.balance dd small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--text-faint); }
.balances--card { max-width: none; margin-top: 0; gap: 10px; }
.balances--card .balance { padding: 14px; background: var(--bg); }
.balances--card .balance dd { font-size: 26px; }
.balances__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subnav { display: flex; gap: 4px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav__item {
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
  padding: 12px 18px 14px; border-bottom: 3px solid transparent; color: var(--text-muted);
}
.subnav__item:hover { color: var(--text); }
.subnav__item.is-active { border-color: var(--accent); color: var(--text); }
.subnav__title { font-weight: 700; }
.subnav__item--count { flex-direction: row; align-items: center; gap: 6px; }
.subnav__item--count .subnav__count { margin-left: 0; vertical-align: 0; }
.subnav__sub { font-size: 12px; color: var(--text-faint); }

.pay-option--compact { align-items: center; padding: 14px; }
.code-groups { display: flex; align-items: center; gap: 8px; }
.code-group { flex: 1 1 0; min-width: 0; text-align: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .12em; text-transform: lowercase; padding: 0 6px; }
.code-groups__sep { color: var(--text-faint); }
.field__hint { margin-top: 8px; font-size: 13px; color: var(--text-faint); }

@media (max-width: 640px) {
  .balances { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .balance { padding: 12px; }
  .balance dd { font-size: 24px; }
  .balance dd small { display: none; }
  .subnav__sub { display: none; }
  .subnav__item { padding: 10px 12px 12px; }
  .code-groups { display: grid; grid-template-columns: 1fr 1fr; }
  .pay-option--compact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .pay-option--compact .pay-option__title { font-size: 13px; }
  /* tre riquadri stretti (Riscatta codice): icona sopra il nome, così "PlayStation" non viene tagliato */
  .tiles--3 .pay-option--compact { padding: 12px 10px; }
  .tiles--3 .pay-option--compact .plat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .code-groups__sep { display: none; }
}

/* ---------- 15. Il mio account ---------- */
.page-head--account .page-head__inner { padding-bottom: 0; }
.subnav--account { margin-top: 12px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-narrow { max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card > .card-head + * { margin-top: 0; }
.card-head--bare { margin-bottom: 20px; }
.card-head__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.card-head__link { font-size: 14px; font-weight: 600; }
.kv { display: flex; flex-direction: column; }
.kv > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--text-faint); font-size: 14px; }
.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.level { --lvl: var(--text-faint); --lvl-rgb: 139, 151, 168; }
.level--bronze, .level-coupon--bronze { --lvl: #D9965B; --lvl-rgb: 217, 150, 91; }
.level--silver, .level-coupon--silver { --lvl: #C9D2DE; --lvl-rgb: 201, 210, 222; }
.level--gold, .level-coupon--gold { --lvl: #E2B65A; --lvl-rgb: 226, 182, 90; }
.level__row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.level__icon { flex: none; color: var(--lvl); }
.level__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; }
.level:not(.level--basic) .level__name { color: var(--lvl); }
/* codice sconto del livello, attaccato sotto la scheda */
.level-wrap { display: flex; flex-direction: column; }
.level--has-coupon { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.level-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 20px;
  border: 1px solid rgba(var(--lvl-rgb), .45); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(90deg, rgba(var(--lvl-rgb), .16), rgba(var(--lvl-rgb), .06)); }
.level-coupon__icon { flex: none; color: var(--lvl); }
.level-coupon__text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.level-coupon__text strong { color: var(--text); font-size: 15px; }
.level-coupon__text span { color: var(--text-muted); font-size: 13px; }
.level-coupon__code { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.level-coupon__code code { padding: 7px 12px; border: 1px dashed rgba(var(--lvl-rgb), .7); border-radius: 8px; background: rgba(0, 0, 0, .25);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--lvl); }
.level-coupon__copy { background: var(--lvl); border-color: var(--lvl); color: #11161E; font-weight: 700; }
.level-coupon__copy:hover { filter: brightness(1.08); color: #11161E; }
@media (max-width: 520px) { .level-coupon__code { margin-left: 0; width: 100%; } .level-coupon__code code { flex: 1; text-align: center; } }
.level__spent, .level__hint { color: var(--text-muted); font-size: 14px; }
.meter { height: 8px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.status-list { display: flex; flex-direction: column; margin-top: 8px; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.badge-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status--ok { color: #7FE3B5; background: rgba(63, 207, 142, .1); border-color: rgba(63, 207, 142, .3); }
.badge-status--pending { color: #F3CF8A; background: rgba(232, 176, 74, .1); border-color: rgba(232, 176, 74, .3); }
/* "in corso" sempre azzurro su entrambi i siti, come il badge "processing" delle email (sul .co.uk l'accento è verde e si confondeva con "ok") */
.badge-status--processing { color: #9FD3F2; background: rgba(46, 168, 230, .1); border-color: rgba(46, 168, 230, .3); }
.badge-status--error { color: #F7B0B0; background: rgba(240, 122, 122, .1); border-color: rgba(240, 122, 122, .3); }
.badge-status--muted { color: var(--text-muted); background: var(--surface-2); border-color: var(--line-2); }
.file { display: flex; flex-direction: column; gap: 6px; }
.file input { font-size: 14px; color: var(--text-muted); }
.file input::file-selector-button { margin-right: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; }
.field__static { font-weight: 600; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row-link { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #1F2733; border-radius: var(--radius); background: var(--surface); color: var(--text); }
.row-link:hover { border-color: var(--accent); color: var(--text); }
.row-link__main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.row-link__title { font-weight: 700; }
.row-link__sub { font-size: 13px; color: var(--text-faint); }
.row-link__go { color: var(--text-faint); }

.ticket { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); }
.msg--me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--surface-accent); border-color: var(--line-accent); }
.msg--support { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg__who { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.msg__body { overflow-wrap: anywhere; }
.ticket__actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid #1F2733; border-radius: var(--radius-lg); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.data-table .actions { text-align: right; }

/* compatibilità per le view originali dell'account (ordini e dettagli) */
.legacy { color: var(--text-2); }
.legacy .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.legacy [class*="col-"] { flex: 1 1 100%; max-width: 100%; padding: 0 8px; min-width: 0; }
.legacy .col-xs-6 { flex-basis: 50%; max-width: 50%; }
@media (min-width: 576px) { .legacy .col-sm-6 { flex-basis: 50%; max-width: 50%; } .legacy .col-sm-4 { flex-basis: 33.333%; max-width: 33.333%; } }
@media (min-width: 992px) {
  .legacy .col-md-3, .legacy .col-lg-3 { flex-basis: 25%; max-width: 25%; }
  .legacy .col-md-4, .legacy .col-lg-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .legacy .col-md-6, .legacy .col-lg-6 { flex-basis: 50%; max-width: 50%; }
  .legacy .col-md-8 { flex-basis: 66.666%; max-width: 66.666%; }
  .legacy .col-md-9 { flex-basis: 75%; max-width: 75%; }
  .legacy .col-lg-2 { display: none; }
}
.legacy .method { display: flex; flex-direction: column; gap: 16px; }
.legacy .f3, .legacy .f31 { margin-top: 16px; }
.legacy .ma-tbl { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid #1F2733; border-radius: var(--radius-lg); background: var(--surface); font-size: 14px; }
.legacy .ma-tbl caption { caption-side: top; padding: 0 0 14px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--text); }
.legacy .ma-tbl thead td { padding: 12px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--line-2); background: transparent; }
.legacy .ma-tbl tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.legacy .ma-tbl td[style*="background: white"] { background: var(--surface-sunken); color: var(--text); }
.legacy .mobile_table { display: none; }
.legacy .paol-l { display: block; padding: 10px 0 2px; font-size: 13px; color: var(--text-faint); font-weight: 600; }
.legacy .paol-lv { display: block; padding: 2px 0 10px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.legacy .paol-lv a { color: var(--link); }
.legacy .label { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.legacy .label-pending, .legacy .label-warning { color: #F3CF8A; background: rgba(232, 176, 74, .1); border-color: rgba(232, 176, 74, .3); }
.legacy .label-processing, .legacy .label-info, .legacy .label-primary { color: var(--accent-soft); background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .3); }
.legacy .label-success, .legacy .label-complete { color: #7FE3B5; background: rgba(63, 207, 142, .1); border-color: rgba(63, 207, 142, .3); }
.legacy .label-refunded, .legacy .label-default { color: var(--text-muted); background: var(--surface-2); border-color: var(--line-2); }
.legacy .label-danger { color: #F7B0B0; background: rgba(240, 122, 122, .1); border-color: rgba(240, 122, 122, .3); }
.legacy .progress { height: 22px; margin: 0; border-radius: 999px; background: var(--line-strong); }
.legacy .progress-bar { width: 0; height: 100%; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; color: var(--accent-ink); background: var(--accent); white-space: nowrap; }
.legacy .method-btn, .legacy .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.legacy .method-btn:hover, .legacy .btn:hover { border-color: var(--accent); }
.legacy .btn-xs { min-width: 40px; min-height: 36px; padding: 0 10px; }
.legacy .btn-danger { border-color: rgba(240, 122, 122, .5); color: #F7B0B0; }
.legacy .btn-warning { border-color: var(--line-strong); }
.legacy button[type="submit"].method-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.legacy .buy_buttons, .legacy #bs { margin-top: 20px; text-align: center; }
.legacy .form-control, .legacy input[type="text"], .legacy input[type="number"], .legacy input[type="email"], .legacy textarea, .legacy select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-sunken); color: var(--text); font: inherit;
}
.legacy textarea { height: auto; padding: 10px 12px; }
.legacy .form-control[readonly], .legacy .form-control[disabled] { opacity: .6; }
.legacy .kode-loginform p { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.legacy .kode-loginform p span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.legacy .alert { margin-bottom: 16px; }
.legacy .text-center { text-align: center; }
.legacy a { color: var(--link); }
.legacy .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.legacy .pagination a, .legacy .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text-2); }
.legacy .pagination span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 1024px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .legacy .desktop_table { display: none; }
  .legacy .mobile_table { display: table; }
  .legacy .mobile_table tr { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); padding: 6px 0; }
  .legacy .mobile_table td { border-bottom: 0; padding: 6px 14px; }
  .legacy .mobile_table td:nth-child(odd) { color: var(--text-faint); font-size: 13px; }
}
@media (max-width: 640px) {
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .msg { max-width: 92%; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; border: 0; text-align: right; }
  .data-table td[data-label]::before { content: attr(data-label); color: var(--text-faint); font-size: 13px; text-align: left; }
  .data-table td.actions { justify-content: flex-end; }
  .card-head--bare { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; }
}

/* ==========================================================================
   16. Ordini Deposito Crediti / prelievi
   ========================================================================== */
.muted { color: var(--text-faint); font-size: 14px; }
.status-live { display: block; margin-top: 4px; font-size: 12px; }
.status-live:empty { display: none; }
.live-text { color: var(--accent); font-size: 14px; font-weight: 600; }
.card-title { margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--danger { color: #2A0A0A; background: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: #D85F5F; border-color: #D85F5F; }

.orders-table .col-progress { width: 26%; min-width: 180px; }
.orders-table .actions { white-space: nowrap; text-align: right; }
.orders-table .actions .btn + .btn { margin-left: 6px; }
.order-id { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-sub { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-faint); }

/* barra: la percentuale viene scritta dagli script di polling (width inline + testo) */
.progress { position: relative; }
.progress .progress-bar { display: flex; align-items: center; justify-content: flex-end; min-width: 0; padding: 0 6px; font-size: 0; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.orders-table .progress, .order-progress .progress { height: 18px; }
.orders-table .progress .progress-bar, .order-progress .progress .progress-bar { font-size: 11px; }
.progress-bar.order_complete_bar { background: var(--ok); }
.progress-text { display: block; margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
/* finché lo script non imposta una larghezza, la barra mostra un'animazione indeterminata */
.progress--live .progress-bar.is-live:not([style*="width"]) { width: 35%; animation: fm-indeterminate 1.4s ease-in-out infinite; }
@keyframes fm-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .progress--live .progress-bar.is-live:not([style*="width"]) { animation: none; width: 100%; opacity: .35; } }

.order-detail { display: flex; flex-direction: column; gap: 20px; }
.order-detail .card-head { align-items: flex-end; }
.order-detail__status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-progress { margin-bottom: 8px; }
.alert--icon { display: flex; align-items: flex-start; gap: 12px; }
.alert--icon svg { flex-shrink: 0; margin-top: 2px; }
.field__input.is-flagged { border-color: var(--danger); }
.field__input:disabled { opacity: .5; cursor: not-allowed; }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .orders-table .col-progress { width: 100%; min-width: 0; align-items: center; }
  .orders-table .col-progress .progress { flex: 0 0 60%; }
  .order-cell { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
  .order-sub { max-width: 200px; }
  .orders-table .actions { text-align: left; white-space: normal; }
  .order-detail .card-head { flex-direction: column; align-items: flex-start; }
  .order-detail__status { align-items: flex-start; }
  .form__grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   17. Icone monocromatiche (fm_icon) e loghi pagamento
   ========================================================================== */
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.btn .icon { margin-left: -2px; }
.social-login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-list li { display: inline-flex; align-items: center; gap: 6px; }
.pay-marks { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); }
.pay-marks--sm { gap: 8px; margin-top: 6px; color: var(--text-faint); }
.order-card__secure { flex-wrap: wrap; gap: 8px 14px; }
.order-card__secure-text { display: inline-flex; align-items: center; gap: 6px; }
.pay-option__mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text-muted); }
.pay-option input:checked ~ .pay-option__mark { color: var(--accent); }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: var(--text-faint); }
.footer-contact:hover .icon { color: var(--accent); }

/* ==========================================================================
   18. Registrazione: nazione con bandiera, prefisso telefonico
   ========================================================================== */
.flag { display: block; flex-shrink: 0; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.select-flag { position: relative; }
.select-flag__flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.select-flag__select { width: 100%; padding-left: 46px; }
.select-flag__select option { background: var(--surface); color: var(--text); }

.phone { position: relative; display: flex; gap: 8px; }
.phone__number { flex: 1 1 auto; min-width: 0; }
.phone__prefix {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 48px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface-sunken); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.phone__prefix:hover { border-color: var(--text-faint); }
.phone__prefix:focus-visible { outline: 0; border-color: var(--accent); box-shadow: var(--focus); }
.phone__prefix[aria-expanded="true"] { border-color: var(--accent); }
.phone__prefix svg { color: var(--text-faint); }
.phone__prefix .phone__dial { min-width: 38px; text-align: left; font-variant-numeric: tabular-nums; }
.phone__pop {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  padding: 8px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.phone__search { width: 100%; height: 40px; margin-bottom: 6px; }
.phone__list { max-height: 220px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.phone__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.phone__opt[hidden] { display: none; }
.phone__opt:hover, .phone__opt.is-active { background: var(--surface-accent); }
.phone__opt[aria-selected="true"] .phone__name { color: var(--accent-soft); font-weight: 600; }
.phone__name { flex: 1 1 auto; min-width: 0; }
.phone__opt .phone__dial { color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   19. Loghi piattaforma, step 2 (consegna, privacy sotto il pulsante)
   ========================================================================== */
.plat { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.plat .icon { color: var(--text-muted); }
.plat--fit .plat__short { display: none; }
.balance dt { min-width: 0; }
.balance .plat { max-width: 100%; }
@media (max-width: 560px) {
  .balances .plat--fit .plat__long { display: none; }
  .balances .plat--fit .plat__short { display: inline; }
}
.tile .plat .icon { color: currentColor; opacity: .85; }
.wallet__tag { display: inline-flex; align-items: center; }
.wallet__tag .icon { color: var(--text-faint); }

.checkout__primary { display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex: 1 1 auto; max-width: 320px; margin-left: auto; }
.checkout__primary .btn--lg { max-width: none; margin-left: 0; }
.checkout__primary .checkout__privacy { align-items: center; text-align: center; }
.tp-badge { align-self: flex-start; display: inline-flex; align-items: stretch; height: 30px; border-radius: 4px; overflow: hidden;
  background: #fff; color: #191919; font-size: 13px; line-height: 1; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.tp-badge:hover { color: #191919; text-decoration: none; filter: brightness(.95); }
.tp-badge__brand { display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; font-weight: 700; letter-spacing: -.01em; }
.tp-badge__star { display: inline-grid; place-items: center; width: 18px; height: 18px; background: #00b67a; color: #fff; }
.tp-badge__count { display: inline-flex; align-items: center; padding: 0 10px; border-left: 1px solid #dcdce6; color: #191919; }
.tp-badge--footer { height: 28px; font-size: 12px; opacity: .92; }
.tp-badge--footer:hover { opacity: 1; }
.checkout__actions--stack { align-items: flex-start; }
.checkout__actions--stack > .btn--ghost { margin-top: 6px; }

.status-ok.is-manual { color: var(--warn); }
.status-ok.is-manual .dot { background: var(--warn); }

@media (max-width: 760px) {
  .checkout__primary { max-width: none; margin-left: 0; }
  .checkout__actions--stack { align-items: stretch; }
  .checkout__actions--stack > .btn--ghost { margin-top: 0; }
}

/* ==========================================================================
   20. Slideshow recensioni (home)
   ========================================================================== */
.reviews-slider { display: flex; flex-direction: column; gap: 18px; }
.reviews-slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 2px; margin: -2px;
}
.reviews-slider__track::-webkit-scrollbar { display: none; }
.reviews-slider__track:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: var(--radius); }
.review {
  display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px;
  scroll-snap-align: start; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.review__stars { display: flex; gap: 3px; }
.tp-star { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px; background: var(--trust); color: #fff; }
.tp-star--off { background: var(--line-strong); }
/* colori di Trustpilot per numero di stelle: 5 verde, 4 verde chiaro, 3 giallo, 2 arancione, 1 rosso */
.review__stars--4 .tp-star:not(.tp-star--off) { background: #73CF11; }
.review__stars--3 .tp-star:not(.tp-star--off) { background: #FFCE00; }
.review__stars--2 .tp-star:not(.tp-star--off) { background: #FF8622; }
.review__stars--1 .tp-star:not(.tp-star--off) { background: #FF3722; }
.review__text { flex: 1 1 auto; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.review__text--short { flex: 1 1 auto; font-size: 14px; color: var(--text-3, var(--text-2)); }
.review__text p { margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-faint); }
.review__name { color: var(--text); font-weight: 600; }
.reviews-slider__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reviews-slider__source { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.reviews-slider__source:hover { color: var(--text); }
.reviews-slider__source .tp-star { width: 18px; height: 18px; }
.reviews-slider__nav { display: flex; align-items: center; gap: 12px; }
.reviews-slider__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.reviews-slider__dots { display: flex; gap: 6px; }
.reviews-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width .2s, background .2s; }
.reviews-slider__dot[aria-current="true"] { width: 22px; background: var(--accent); }
@media (max-width: 1024px) { .reviews-slider__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px)  { .reviews-slider__track { grid-auto-columns: 88%; gap: 12px; } .review { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .reviews-slider__track { scroll-behavior: auto; } }

.visa-mark { display: inline-flex; align-items: center; gap: 5px; }
.visa-mark__word { font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: .92em; line-height: 1; }

/* pulsante mostra/nascondi password con due icone: occhio barrato quando la password è visibile */
[data-toggle-password] .ico-hide { display: none; }
[data-toggle-password][aria-pressed="true"] .ico-hide { display: block; }
[data-toggle-password][aria-pressed="true"] .ico-show { display: none; }
.brand__mark { display: block; width: auto; height: 38px; }

/* schede piattaforma su schermi stretti: logo sopra il nome, così "PlayStation" non esce dalla scheda */
@media (max-width: 640px) {
  .tile .plat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tile__title { min-width: 0; font-size: clamp(12px, 3.6vw, 14px); white-space: nowrap; letter-spacing: -.01em; }
  .tiles--3 .tile { padding: 12px 8px; }
  .brand__mark { height: 34px; }
}

/* ==========================================================================
   21. Step 2 mobile, accesso all'account da mobile, barre con gradiente
   ========================================================================== */
/* il form del checkout è una .card: senza questo i blocchi avevano 12px in più (spazio irregolare tra email e password) */
form.checkout__main > * + * { margin-top: 0; }
.checkout__tools { flex-wrap: nowrap; }
.checkout__tools .btn { white-space: nowrap; }

.summary-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-card__plat { display: none; font-size: 14px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }

.account-icon { display: inline-flex; }
.account-icon.is-active { border-color: var(--accent); color: var(--text); }
.main-nav__account { display: none; }
.badge--inline { position: static; display: inline-flex; margin-left: 6px; }

@media (max-width: 1360px) {
  .main-nav__account { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .main-nav__list--account .main-nav__link { display: flex; align-items: center; gap: 12px; font-size: 16px; }
  .main-nav__list--account svg { color: var(--text-faint); flex-shrink: 0; }
  .main-nav__wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
  .main-nav__wallet > div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
  .main-nav__wallet dt { display: flex; color: var(--text-faint); }
  .main-nav__wallet dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
  .main-nav__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 1024px) {
  .summary-card__head { width: 100%; }
  .summary-card__plat { display: inline-flex; }
}
@media (max-width: 640px) {
  .account-icon { display: inline-flex; }
  .logout-icon { display: none; }
  .checkout__tools .btn { padding: 0 12px; font-size: 13px; gap: 6px; }
  .checkout__tools .btn:first-child { flex: 1 1 auto; }
}

/* barre di avanzamento: gradiente sull'azzurro del brand e leggero rilievo */
.progress { background: linear-gradient(180deg, #161D27, #1E2632); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); }
.progress-bar, .legacy .progress-bar {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent-light) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 10px rgba(var(--accent-rgb), .25);
}
.progress-bar.order_complete_bar { background: linear-gradient(90deg, #22A06B 0%, var(--ok) 60%, #7FE3B4 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 10px rgba(63, 207, 142, .2); }
.range__input::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-light)) 0 0 / var(--fill) 100% no-repeat, var(--line-strong);
}
.range__input::-moz-range-progress { background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-light)); }
.stepper__item.is-done, .stepper__item.is-current { border-image: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-light)) 1; }
.checkout__tools .btn svg { flex-shrink: 0; }
@media (max-width: 400px) {
  .site-header__actions { gap: 6px; }
  .site-header__actions .icon-btn { width: 38px; height: 38px; }
  .brand { gap: 8px; }
  .brand__mark { height: 30px; }
  .brand__name { font-size: 20px; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .checkout__tools .btn { padding: 0 10px; }
}
@media (max-width: 340px) {
  .brand__name { font-size: 18px; }
  .brand__mark { height: 28px; }
  .site-header__actions .icon-btn { width: 36px; height: 36px; }
}

/* ==========================================================================
   22. Icone nelle statistiche, controlli slideshow su mobile, riga consegna
   ========================================================================== */
.stats__icon {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  width: 40px; height: 40px; margin-bottom: 6px; border-radius: 10px;
  background: var(--surface-accent); border: 1px solid var(--line-accent); color: var(--accent);
}
.verify-row { flex-wrap: nowrap; }
.verify-row .check, .verify-row .status-ok { white-space: nowrap; }
@media (max-width: 640px) {
  .stats__icon { width: 34px; height: 34px; }
  .stats__icon svg { width: 18px; height: 18px; }
  .reviews-slider__bar { flex-direction: column; justify-content: center; text-align: center; }
  .reviews-slider__source { justify-content: center; }
  .reviews-slider__nav { justify-content: center; }
}
@media (max-width: 400px) {
  .verify-row { font-size: 14px; gap: 8px; }
  .verify-row .status-ok { font-size: 13px; }
}
@media (max-width: 400px) {
  /* su schermi stretti resta solo "Rapida" / "Manuale" per stare sulla stessa riga della casella */
  .delivery-mode__value { text-transform: capitalize; }
}
.stats__item { justify-content: flex-end; } /* column-reverse: allinea in alto icona e numero anche con etichette su 1 o 2 righe */

/* ---------- Checkout "paga prima, dati dopo" ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: var(--radius); background: rgba(var(--accent-rgb), .07); font-size: 15px; line-height: 22px; /* intero: con 1.5 (22,5px) le righe si arrotondavano a 22 e 23px */ }
.notice > svg { flex: none; margin-top: 2px; color: var(--accent); }
.notice strong { color: var(--text); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
/* titolo in grassetto su una riga sua, il testo sotto */
.notice > div > strong:first-child, .alert > strong:first-child { display: block; margin-bottom: 2px; }
.next-steps__warn { margin: 16px 0 0; }
.notice--warn { border-color: rgba(232, 176, 74, .45); background: rgba(232, 176, 74, .08); }
.notice--warn > svg { color: var(--warn); }
.notice--ok { border-color: rgba(63, 207, 142, .45); background: rgba(63, 207, 142, .08); }
.notice--ok > svg { color: var(--ok); }
.notice--muted { border-color: var(--line-2); background: var(--surface-2); color: var(--text-muted); }
.notice--muted > svg { color: var(--text-muted); }
.badge-status--awaiting { color: #FFC27A; background: rgba(245, 140, 40, .12); border-color: rgba(245, 140, 40, .45); }
.confirm-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.confirm-row input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.confirm-row.is-invalid { border-color: rgba(240, 122, 122, .7); }
.unpaid { margin-bottom: 20px; }
.unpaid__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.unpaid__item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.unpaid__info { flex: 1 1 220px; min-width: 0; }
.unpaid__info strong { display: block; }
.unpaid__info span { color: var(--text-muted); font-size: 14px; }
.unpaid__actions { display: flex; align-items: center; gap: 8px; }
.unpaid__actions form { margin: 0; }
.icon-btn--sm { width: 34px; height: 34px; }
.awaiting-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.order-detail > .awaiting-cta { margin-bottom: 16px; border-color: rgba(var(--accent-rgb), .45); }
.summary-card__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.summary-card__paid { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); white-space: nowrap; line-height: 1; }
.summary-card__paid svg { flex: none; }
.next-steps { list-style: none; counter-reset: ns; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 38px; min-height: 26px; line-height: 1.45; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-weight: 700; font-size: 14px; }
.next-steps strong { display: block; }
.next-steps span { color: var(--text-muted); font-size: 14px; }

/* ---------- Slot (Il mio account > Slot) ---------- */
.subnav__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.slot-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.slot-card { padding: 0; overflow: hidden; }
.slot { --tile: clamp(76px, 22vw, 116px); position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 22px 28px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), .16), transparent 60%), var(--surface); }
.slot__marquee { display: flex; align-items: center; gap: 14px; }
.slot__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: .04em; text-transform: uppercase; }
.slot__title span { color: var(--accent); }
.slot__lights { width: 46px; height: 8px; background: radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px) 0 50% / 11.5px 8px repeat-x; opacity: .9; }
.is-spinning .slot__lights { animation: slot-lights .5s steps(2) infinite; }
@keyframes slot-lights { 50% { opacity: .35; } }
.slot__window { position: relative; display: grid; grid-template-columns: repeat(3, var(--tile)); gap: 10px; padding: 12px; border-radius: 20px;
  background: linear-gradient(180deg, #05070A, #0D1219); border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), inset 0 18px 30px rgba(0,0,0,.6), 0 14px 40px rgba(0,0,0,.45); }
.slot__reel { position: relative; height: calc(var(--tile) * 3); overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #0E141C, #151C26 50%, #0E141C); }
.slot__reel::before, .slot__reel::after { content: ""; position: absolute; left: 0; right: 0; height: 32%; z-index: 2; pointer-events: none; }
.slot__reel::before { top: 0; background: linear-gradient(180deg, #05070A, transparent); }
.slot__reel::after { bottom: 0; background: linear-gradient(0deg, #05070A, transparent); }
.slot__strip { will-change: transform; }
.slot__tile { display: grid; place-items: center; height: var(--tile); }
.slot__tile img, .slot__tile svg { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.slot__payline { position: absolute; left: 6px; right: 6px; top: 50%; height: calc(var(--tile) + 6px); transform: translateY(-50%); border: 2px solid rgba(var(--accent-rgb), .55); border-radius: 14px; pointer-events: none; z-index: 3; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 22px rgba(var(--accent-rgb), .18); }
.is-win .slot__payline { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 34px rgba(226, 182, 90, .55); animation: slot-win 1s ease-in-out 3; }
@keyframes slot-win { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 6px rgba(226, 182, 90, .2); } }
.slot__result { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; text-align: center; }
.slot__result strong { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.slot__result span { color: var(--text-muted); font-size: 14px; }
.slot__result.is-win strong { color: var(--gold); }
.slot__result.is-lose strong { color: var(--text-muted); }
.slot__controls { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.slot__left { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: 15px; }
.slot__left strong { color: var(--text); }
.slot__spin { min-width: 220px; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.slot__spin:disabled { opacity: .45; cursor: not-allowed; }
.slot__buttons { display: inline-flex; align-items: stretch; gap: 10px; max-width: 100%; }
.slot__sound { width: auto; height: auto; min-width: 52px; flex: none; }
.slot__sound[aria-pressed="false"] { color: var(--text-faint, var(--text-muted)); }
.slot__sound .slot__sound-off, .slot__sound[aria-pressed="false"] .slot__sound-on { display: none; }
.slot__sound[aria-pressed="false"] .slot__sound-off { display: block; }
.slot-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.slot-ticket { flex: none; color: var(--text-faint); vertical-align: -3px; }
.paytable { display: flex; flex-direction: column; margin: 14px 0 10px; }
.paytable li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.paytable li:first-child { border-top: 0; }
.paytable__combo { display: inline-flex; gap: 4px; }
.paytable__sym { display: grid; place-items: center; width: 30px; height: 30px; }
.paytable__sym img, .paytable__sym svg { width: 26px; height: 26px; object-fit: contain; }
.paytable strong { font-family: var(--font-display); font-size: 20px; }
.slot-list { display: flex; flex-direction: column; margin: 10px 0 0; }
.slot-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.slot-list__head { margin: 22px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.slot-win { color: var(--ok); }
@media (max-width: 900px) { .slot-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .slot__spin { min-width: 170px; } .slot { padding: 20px 14px 22px; } .slot__window { gap: 6px; padding: 8px; } .slot__title { font-size: 23px; white-space: nowrap; } .slot__lights { width: 24px; } .slot__marquee { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .is-spinning .slot__lights, .is-win .slot__payline { animation: none; } }
.summary__slot { flex: 1 0 100%; display: flex; align-items: center; gap: 6px; margin: -8px 0 0; font-size: 13px; color: var(--text-faint); }
.summary__slot[hidden] { display: none; }
.summary__slot svg { flex: none; color: var(--text-faint); }
.summary__slot strong { color: var(--text); }
.summary__slot-hint { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.page-notice { margin: 18px 0 0; }
.sell-need { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.sell-need strong { color: var(--text); }
.page-slot { margin: 18px 0 0; color: var(--text-muted); font-size: 14px; text-align: center; }
/* icona in linea col testo: resta attaccata alla prima riga anche quando il testo va a capo */
.page-slot svg { display: inline-block; margin-right: 6px; vertical-align: -4px; color: var(--text-faint); }
.slot-list__main { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Checkout: "Sono al mio primo ordine" con le domande sul mercato trasferimenti (checkout/comfort_list.php) */
.first-order { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.first-order__body { margin-top: 12px; }
.first-order__body[hidden] { display: none; }
.first-order__lead { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 22px; }
.first-order__q { margin: 0 0 12px; padding: 0; border: 0; }
.first-order__q legend { padding: 0; margin: 0 0 6px; font-size: 15px; line-height: 22px; font-weight: 600; }
.first-order__q label { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; cursor: pointer; font-size: 15px; }
.first-order__q input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.first-order__hint { margin: 0; color: var(--warn); font-size: 14px; font-weight: 600; }
.first-order__hint[hidden] { display: none; }
.first-order__stop { margin: 4px 0 0; }
.first-order__stop[hidden] { display: none; }
#pay_button:disabled { opacity: .5; cursor: not-allowed; }

/* Password dimenticata: esito dell'invio (partials/modals.php, loginlogout.js forgot_password) */
.forgot-ok { line-height: 22px; }
.forgot-ok__btn { margin-top: 14px; }
#lost-password .form__error:not(:empty) { margin: 0 0 12px; }

/* icone nei contenuti del pannello: glifi monocromatici a linea (come fm_icon), nel colore del testo */
.prose .fm-ico { display: inline-flex; align-items: center; gap: 9px; }
.prose .fm-ico::before, .prose .fm-contacts a::before {
  content: ""; flex: none; width: 20px; height: 20px; background-color: var(--text);
  -webkit-mask: var(--fm-ico) center / contain no-repeat; mask: var(--fm-ico) center / contain no-repeat;
}
.prose .fm-tile__big.fm-ico::before { width: 24px; height: 24px; }
.prose .fm-contacts a { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.prose .fm-ico--trustpilot { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.3l2.6 5.5 6 .7-4.5 4.1 1.3 5.9L12 16.5l-5.4 3 1.3-5.9-4.5-4.1 6-.7z'/%3E%3C/svg%3E"); }
.prose .fm-ico--facebook { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M15.2 7.8h-1.5c-1.2 0-2 .8-2 2v11.4M9.2 13h5.6'/%3E%3C/svg%3E"); }
.prose .fm-ico--ebay { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5h14l-1.1 11.5H6.1z'/%3E%3Cpath d='M9 10.5V7a3 3 0 0 1 6 0v3.5'/%3E%3C/svg%3E"); }
.prose .fm-ico--clock { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2V12l3.2 2'/%3E%3C/svg%3E"); }
.prose .fm-ico--transfer { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h15M15.5 5 19 8.5 15.5 12M20 15.5H5M8.5 12 5 15.5 8.5 19'/%3E%3C/svg%3E"); }
.prose .fm-contacts a[href^="mailto:"] { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.prose .fm-contacts a[href*="facebook.com"] { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M15.2 7.8h-1.5c-1.2 0-2 .8-2 2v11.4M9.2 13h5.6'/%3E%3C/svg%3E"); }
.prose .fm-contacts a[href*="wa.me"], .prose .fm-contacts a[href*="whatsapp"] { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5a9.5 9.5 0 0 0-8.2 14.3L2.5 21.5l4.8-1.3A9.5 9.5 0 1 0 12 2.5z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M8.6 7.4c.3-.3.7-.3.9 0l1.1 1.6c.2.3.2.7-.1 1l-.6.6a6.3 6.3 0 0 0 3.5 3.5l.6-.6c.3-.3.7-.3 1-.1l1.6 1.1c.3.2.3.6 0 .9l-.7.8c-.5.5-1.3.7-2 .4a10 10 0 0 1-5.8-5.8c-.3-.7-.1-1.5.4-2z' fill='%23000'/%3E%3C/svg%3E"); }
.prose .fm-contacts a[href*="instagram.com"] { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='3.8'/%3E%3Ccircle cx='16.9' cy='7.1' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.prose .fm-contacts a[href*="youtube.com"], .prose .fm-contacts a[href*="youtu.be"] { --fm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4'/%3E%3Cpath d='M10 9.3v5.4l4.6-2.7z' fill='%23000'/%3E%3C/svg%3E"); }
/* "La nostra storia": percorso nel tempo, un pallino per anno e la linea fino al successivo (in verticale su telefono) */
.prose .fm-timeline { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
.prose .fm-timeline > .fm-tile { position: relative; padding: 30px 0 0; border: 0; border-radius: 0; background: none; }
.prose .fm-timeline > .fm-tile::before { content: ""; position: absolute; top: 3px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.prose .fm-timeline > .fm-tile::after { content: ""; position: absolute; top: 9px; left: 24px; right: -8px; height: 2px; border-radius: 2px; background: rgba(var(--accent-rgb), .45); }
.prose .fm-timeline > .fm-tile:last-child::after { right: 0; background: linear-gradient(to right, rgba(var(--accent-rgb), .45), transparent); }
@media (max-width: 640px) {
  .prose .fm-timeline { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 0; }
  .prose .fm-timeline > .fm-tile { padding: 0 0 20px 32px; }
  .prose .fm-timeline > .fm-tile::before { top: 7px; }
  .prose .fm-timeline > .fm-tile::after { top: 27px; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .prose .fm-timeline > .fm-tile:last-child::after { display: none; }
}

/* campanella in testata: menu a tendina con le cose da fare (App\Account\Attention) */
.bell { position: relative; }
.bell__btn[aria-expanded="true"] { border-color: var(--accent); }
.bell__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1100;
  width: 340px; max-height: min(70vh, 480px); overflow-y: auto;
  padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.bell__panel[hidden] { display: none; }
.bell__head { margin: 4px 8px 8px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bell__item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 28px; border-radius: 8px; color: var(--text); text-decoration: none; }
.bell__item::before { content: ""; position: absolute; left: 11px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.bell__item.is-action::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(240, 122, 122, .18); }
.bell__item:hover, .bell__item:focus-visible { background: var(--surface-2); color: var(--text); }
.bell__title { font-size: 14px; font-weight: 700; }
.bell__text { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.bell__empty { margin: 4px 8px 10px; color: var(--text-muted); font-size: 14px; }
.bell__foot { display: flex; align-items: center; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
.bell__foot:hover { color: var(--link-hover); }
@media (max-width: 560px) {
  .site-header__bar { position: relative; }
  .bell { position: static; }
  .bell__panel { left: 12px; right: 12px; width: auto; top: calc(100% + 6px); }
}
.bell__foot .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }

/* elenchi a righe (ticket) su telefono: titolo per intero, stato sotto */
@media (max-width: 640px) {
  .row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
  .row-link__main { grid-column: 1; grid-row: 1; }
  .row-link__go { grid-column: 2; grid-row: 1 / span 2; }
  .row-link > :not(.row-link__main):not(.row-link__go) { grid-column: 1; grid-row: 2; justify-self: start; }
}

/* tabelle dell'area personale che non stanno nello spazio (tablet): una scheda per riga, come su telefono (classe da app.js) */
.table-wrap:has(> .data-table.is-cards) { overflow: visible; }
.data-table.is-cards thead { display: none; }
.data-table.is-cards, .data-table.is-cards tbody, .data-table.is-cards tr, .data-table.is-cards td { display: block; width: 100%; }
.data-table.is-cards tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.data-table.is-cards tr:last-child { border-bottom: 0; }
.data-table.is-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; border: 0; text-align: right; }
.data-table.is-cards td[data-label]::before { content: attr(data-label); color: var(--text-faint); font-size: 13px; text-align: left; }
.data-table.is-cards td.actions { justify-content: flex-end; }
.data-table.is-cards .order-cell { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.orders-table.is-cards .col-progress { width: 100%; min-width: 0; align-items: center; }
.orders-table.is-cards .col-progress .progress { flex: 0 0 60%; }

/* ==========================================================================
   Tema chiaro: <html data-theme="light">, scelto dal cliente col pulsante sole/luna (app.js, salvato nel browser).
   Il tema scuro resta quello di base. Stessi componenti: cambiano i token e i pochi colori scritti a mano.
   Azzurro .it e verde .co.uk un tono più scuri (leggibili sul chiaro), testo bianco sui pulsanti pieni.
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F5F8;
  --bg-deep: #E8ECF1;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --surface-sunken: #F8FAFC;
  --surface-accent: #EAF4FB;
  --line: #E1E6ED;
  --line-2: #D6DDE6;
  --line-strong: #C5CED9;
  --line-accent: #BFDCEF;
  --text: #0F1620;
  --text-2: #2A3542;
  --text-muted: #4D5968;
  --text-faint: #6A7584;
  --accent: #1E8FCF;
  --accent-hover: #1A7FB9;
  --accent-ink: #FFFFFF;
  --accent-soft: #1673A8;
  --link: #136FA3;
  --link-hover: #0B5579;
  --accent-rgb: 30, 143, 207;
  --accent-deep: #156FA3;
  --accent-light: #3FB0EA;
  --ok: #138A55;
  --fc-green: #1E9E4A;
  --warn: #B7791F;
  --low: #C2611F;
  --danger: #D14343;
  --gold: #B8861E;
  --trust: #00A86B;
  --shadow-card: 0 18px 44px rgba(15, 22, 32, 0.10);
  --focus: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
}
html[data-theme="light"][data-site="uk"] {
  --accent: #0E9B62; --accent-hover: #0B8654; --accent-ink: #FFFFFF; --accent-soft: #0A7A4B;
  --accent-rgb: 14, 155, 98; --accent-deep: #0A7A4B; --accent-light: #2BC283;
  --link: #0A7A4B; --link-hover: #075C38; --surface-accent: #E8F6EF; --line-accent: #BDE6D2;
}
/* testata e menu */
html[data-theme="light"] .site-header { background: rgba(243, 245, 248, 0.92); }
html[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 22, 32, 0.08); }
html[data-theme="light"] .main-nav__link:hover, html[data-theme="light"] .main-nav__link.is-active, html[data-theme="light"] .main-nav__sub a:hover { background: #E7ECF2; }
html[data-theme="light"] .brand__mark { content: url("/assets/images/logo_shield_fill.png"); }
html[data-theme="light"][data-site="uk"] .brand__mark { content: url("/assets/images/logo_shield_uk_fill.png"); }
/* bordi e superfici scritti a mano */
html[data-theme="light"] .card, html[data-theme="light"] .stats, html[data-theme="light"] .faq__item, html[data-theme="light"] .post-card,
html[data-theme="light"] .row-link, html[data-theme="light"] .table-wrap, html[data-theme="light"] .order-card, html[data-theme="light"] .summary-card,
html[data-theme="light"] .legacy .ma-tbl { border-color: var(--line); }
html[data-theme="light"] .card, html[data-theme="light"] .order-card, html[data-theme="light"] .summary-card, html[data-theme="light"] .row-link,
html[data-theme="light"] .table-wrap, html[data-theme="light"] .faq__item, html[data-theme="light"] .post-card { box-shadow: 0 1px 2px rgba(15, 22, 32, .04), 0 6px 18px rgba(15, 22, 32, .04); }
html[data-theme="light"] .stats { background: var(--surface); }
html[data-theme="light"] .stats__item + .stats__item, html[data-theme="light"] .faq-links, html[data-theme="light"] .faq-links a { border-color: var(--line); }
html[data-theme="light"] .tile:hover, html[data-theme="light"] .chip:hover, html[data-theme="light"] .pay-option:hover { border-color: var(--line-strong); }
html[data-theme="light"] .pill { border-color: var(--line-accent); background: var(--surface-accent); }
html[data-theme="light"] .pay-list li { background: var(--surface); border-color: var(--line); }
html[data-theme="light"] .card--accent p { color: var(--text-muted); }
html[data-theme="light"] .input-wrap__btn:hover, html[data-theme="light"] .input-wrap__btn[aria-pressed="true"] { background: #E7ECF2; }
html[data-theme="light"] .field-check { color: #A3AEBB; }
html[data-theme="light"] .tooltip-inner { background: #0F1620; color: #fff; }
html[data-theme="light"] .tooltip.top .tooltip-arrow { border-top-color: #0F1620; }
html[data-theme="light"] .progress { background: #E3E8EF; box-shadow: inset 0 1px 2px rgba(15, 22, 32, .08); }
html[data-theme="light"] .range__input::-webkit-slider-thumb { background: #fff; box-shadow: 0 2px 6px rgba(15, 22, 32, .25); }
html[data-theme="light"] .range__input::-moz-range-thumb { background: #fff; box-shadow: 0 2px 6px rgba(15, 22, 32, .25); }
html[data-theme="light"] .tp-badge { box-shadow: 0 0 0 1px var(--line-2); }
html[data-theme="light"] .level-coupon__code code { background: rgba(15, 22, 32, .04); }
/* messaggi e stati: testo scuro su fondo tenue */
html[data-theme="light"] .alert--ok { color: #0E6B42; }
html[data-theme="light"] .alert--error { color: #A12C2C; }
html[data-theme="light"] .alert--warn { color: #7A5413; }
html[data-theme="light"] .badge-status--ok { color: #0F7A4A; background: rgba(19, 138, 85, .1); border-color: rgba(19, 138, 85, .3); }
html[data-theme="light"] .badge-status--pending { color: #8A5A0B; background: rgba(183, 121, 31, .1); border-color: rgba(183, 121, 31, .3); }
html[data-theme="light"] .badge-status--processing { color: #136FA3; background: rgba(30, 143, 207, .1); border-color: rgba(30, 143, 207, .3); }
html[data-theme="light"] .badge-status--error { color: #B03636; background: rgba(209, 67, 67, .08); border-color: rgba(209, 67, 67, .3); }
html[data-theme="light"] .badge-status--awaiting { color: #9A4C08; background: rgba(245, 140, 40, .1); border-color: rgba(245, 140, 40, .4); }
/* icone disegnate in bianco: spunte nel colore del sito */
html[data-theme="light"] .prose ul.fm-checks > li::before { background: rgba(var(--accent-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23136FA3' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* la finestra della Slot resta scura (colori scritti nella macchinetta): è un oggetto, non una superficie */
/* testo bianco sul rosso (pulsanti, numeri rossi della campanella e dei ticket) */
html[data-theme="light"] .btn--danger, html[data-theme="light"] .btn--danger:hover { color: #fff; }
html[data-theme="light"] .btn--danger:hover { background: #B83737; border-color: #B83737; }
html[data-theme="light"] .icon-btn .badge, html[data-theme="light"] .badge { color: #fff; }
/* icone di esito (pagine di pagamento): segno nel colore, non bianco */
html[data-theme="light"] .prose .fm-success__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23136FA3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
html[data-theme="light"][data-site="uk"] .prose .fm-success__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
html[data-theme="light"] .prose .fm-success--error .fm-success__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B03636' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
html[data-theme="light"][data-site="uk"] .prose ul.fm-checks > li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A4B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }

/* pulsante sole/luna in testata */
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }

/* modulo dati account: spunta dei campi compilati come il verde dei tasti */
html[data-theme="light"] .field-check.is-filled { color: #0E9B62; }
/* esito della verifica */
html[data-theme="light"] .verify-ok__badge { --ok-rgb: 19, 138, 85; }
html[data-theme="light"] .verify-ok__facts { background: #F6F8FB; }

/* slot: rulli chiari */
html[data-theme="light"] .slot__window { background: linear-gradient(180deg, #DCE3EB, #EEF2F6); border-color: var(--line-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 10px 20px rgba(15,22,32,.08), 0 12px 30px rgba(15,22,32,.10); }
html[data-theme="light"] .slot__reel { background: linear-gradient(180deg, #F1F4F8, #FFFFFF 50%, #F1F4F8); box-shadow: inset 0 0 0 1px rgba(15,22,32,.05); }
html[data-theme="light"] .slot__reel::before { background: linear-gradient(180deg, rgba(198,208,220,.85), rgba(255,255,255,0)); }
html[data-theme="light"] .slot__reel::after { background: linear-gradient(0deg, rgba(198,208,220,.85), rgba(255,255,255,0)); }
html[data-theme="light"] .slot__tile img, html[data-theme="light"] .slot__tile svg { filter: drop-shadow(0 3px 5px rgba(15,22,32,.18)); }
html[data-theme="light"] .slot__payline { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 18px rgba(var(--accent-rgb), .18); }
html[data-theme="light"] .is-win .slot__payline { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 30px rgba(184, 134, 30, .45); }
html[data-theme="light"] .slot__tile--jackpot img, html[data-theme="light"] .paytable__sym.slot__tile--jackpot img { content: url("/assets/images/logo_shield_fill.png"); }
html[data-theme="light"][data-site="uk"] .slot__tile--jackpot img, html[data-theme="light"][data-site="uk"] .paytable__sym.slot__tile--jackpot img { content: url("/assets/images/logo_shield_uk_fill.png"); }
