/* =========================================================
   EcuTuningData — design system (tema WordPress)
   ========================================================= */
:root {
  --etd-bg: #030712;       /* blu molto scuro */
  --etd-bg-2: #0F172A;     /* slate scuro */
  --etd-panel: #1E293B;    /* pannelli */
  --etd-panel-2: #0F172A;
  --etd-line: rgba(255, 255, 255, .08);
  --etd-line-2: rgba(255, 255, 255, .16);
  --etd-text: #F8FAFC;
  --etd-muted: #94A3B8;
  --etd-dim: #64748B;
  --etd-red: #E10600;
  --etd-red-2: #FF3B2E;
  --etd-red-glow: rgba(225, 6, 0, .38);
  --etd-font-head: 'Rajdhani', sans-serif;
  --etd-font-body: 'Barlow', sans-serif;
  --etd-header-h: 78px;
}

body {
  background: var(--etd-bg); color: var(--etd-text);
  font-family: var(--etd-font-body); font-size: 16px; line-height: 1.65;
  margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--etd-font-head); font-weight: 700; line-height: 1.1;
  color: var(--etd-text); margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .5px;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1.15em; color: var(--etd-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--etd-bg-2); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--etd-red); }

.etd-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
.etd-main { padding-top: var(--etd-header-h); min-height: 80vh; }
.etd-section { padding: 80px 0; position: relative; }

.etd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--etd-font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--etd-red-2); margin-bottom: 12px;
}
.etd-kicker::before { content: "//"; font-weight: 700; }

.etd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; transform: skewX(-12deg);
  background: linear-gradient(120deg, var(--etd-red-2), var(--etd-red));
  color: #fff !important; font-family: var(--etd-font-head); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 30px; border: none; cursor: pointer; transition: all .3s ease; white-space: nowrap;
}
.etd-btn > span { display: inline-block; transform: skewX(12deg); }
.etd-btn:hover { box-shadow: 0 0 26px var(--etd-red-glow); filter: brightness(1.15); }
.etd-btn--ghost { background: transparent; color: var(--etd-text) !important; box-shadow: inset 0 0 0 1.5px var(--etd-line-2); }
.etd-btn--ghost:hover { color: var(--etd-red-2) !important; box-shadow: inset 0 0 0 1.5px var(--etd-red); background: rgba(225, 6, 0, .08); }
.etd-btn--small { padding: 9px 20px; font-size: .85rem; letter-spacing: 1.5px; }
.etd-btn:disabled { opacity: .55; cursor: wait; filter: none; }

/* Header */
.etd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 990; height: var(--etd-header-h);
  background: rgba(3, 7, 18, .92); border-bottom: 1px solid var(--etd-line); backdrop-filter: blur(12px);
}
/* Barra admin WP: sposta l'header sotto di essa per gli utenti loggati. */
body.admin-bar .etd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .etd-header { top: 46px; } }
.etd-header__inner { height: var(--etd-header-h); }
.etd-nav__list a {
  font-family: var(--etd-font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--etd-text);
  position: relative; padding: 6px 0; cursor: pointer; transition: color .3s;
}
.etd-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--etd-red); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.etd-nav__list a:hover, .etd-nav__list a.is-active { color: var(--etd-red-2); }
.etd-nav__list a:hover::after, .etd-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.etd-hero {
  position: relative; padding: 70px 0 90px; overflow: hidden;
  background: radial-gradient(900px 480px at 8% -10%, rgba(225, 6, 0, .16), transparent 60%), linear-gradient(180deg, var(--etd-bg) 0%, var(--etd-bg-2) 100%);
}
.etd-hero__lines span {
  position: absolute; left: -22%; width: 26%; height: 2px; background: linear-gradient(90deg, transparent, var(--etd-red), transparent);
  opacity: .35; animation: etd-speed 4.6s linear infinite;
}
.etd-hero__lines span:nth-child(1) { top: 22%; animation-delay: 0s; }
.etd-hero__lines span:nth-child(2) { top: 40%; width: 18%; animation-delay: 1.3s; opacity: .22; }
.etd-hero__lines span:nth-child(3) { top: 62%; animation-delay: .6s; opacity: .3; }
@keyframes etd-speed { from { transform: translateX(0); } to { transform: translateX(560%); } }

/* Gauge */
.etd-gauge { position: relative; }
.etd-gauge__svg { width: 100%; height: auto; }
.etd-gauge__needle { transform-origin: 110px 110px; transform: rotate(-120deg); transition: transform 2.8s cubic-bezier(.16, .9, .22, 1.04); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.etd-gauge.is-live .etd-gauge__needle { transform: rotate(72deg); }
.etd-gauge__digits { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 26%; pointer-events: none; }

/* Stages Grid */
.etd-stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.etd-stage {
  background: var(--etd-panel); border: 1px solid var(--etd-line); padding: 36px 30px 34px;
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column; position: relative;
}
.etd-stage:hover { transform: translateY(-8px); border-color: rgba(225, 6, 0, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 30px rgba(225, 6, 0, .12); }
.etd-stage__index { position: absolute; top: 4px; right: 26px; font-family: var(--etd-font-head); font-weight: 700; font-size: 6.4rem; line-height: 1; color: rgba(255, 255, 255, .045); user-select: none; }
.etd-stage__tag { font-size: .82rem; letter-spacing: 3px; text-transform: uppercase; color: var(--etd-red-2); font-family: var(--etd-font-head); font-weight: 600; margin-bottom: 18px; }

/* Checkout */
.etd-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .etd-checkout__grid { grid-template-columns: 1fr; } }
.etd-co-sec { background: var(--etd-panel); border: 1px solid var(--etd-line); border-radius: 12px; padding: 24px; margin-bottom: 22px; }
.etd-co-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; transition: color 0.3s ease; }
.etd-co-sec__num { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-family: var(--etd-font-head); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--etd-red), var(--etd-red-2)); box-shadow: 0 0 12px var(--etd-red-glow); flex-shrink: 0; }

.etd-co-cards input, .etd-co-pills input { position: absolute; opacity: 0; pointer-events: none; }
.etd-co-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--etd-panel-2); border: 1px solid var(--etd-line); border-radius: 10px; cursor: pointer; transition: all .2s ease; }
.etd-co-card:hover { border-color: var(--etd-line-2); transform: translateY(-2px); }
.etd-co-card__name { font-family: var(--etd-font-head); font-weight: 700; text-transform: uppercase; font-size: .95rem; color: #CBD5E1; }
.etd-co-cards input:checked + .etd-co-card { border-color: var(--etd-red); background: rgba(225, 6, 0, .08); box-shadow: 0 0 0 1px var(--etd-red); }
.etd-co-cards input:checked + .etd-co-card .etd-co-card__name { color: #FFF; }

.etd-co-pill-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: var(--etd-panel-2); border: 1px solid var(--etd-line); border-radius: 8px; cursor: pointer; text-align: center; transition: all .2s ease; }
.etd-co-pill-card:hover { border-color: var(--etd-line-2); }
.etd-co-pills input:checked + .etd-co-pill-card { border-color: var(--etd-red); background: rgba(225, 6, 0, .12); box-shadow: 0 0 0 1px var(--etd-red); }

.etd-field input, .etd-field textarea { width: 100%; background: var(--etd-bg-2); border: 1px solid var(--etd-line-2); color: var(--etd-text); padding: 11px 14px; font-size: .95rem; border-radius: 6px; transition: border-color .2s ease; }
.etd-field input:focus, .etd-field textarea:focus { border-color: var(--etd-red); outline: none; box-shadow: 0 0 0 2px rgba(225, 6, 0, .2); }
.etd-field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--etd-muted); margin-bottom: 6px; transition: color 0.3s ease; }

.etd-co-extra { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: .88rem; background: var(--etd-panel-2); border: 1px solid var(--etd-line); }
.etd-co-extra:hover { background: rgba(255,255,255,.03); }
.etd-co-extra input { accent-color: var(--etd-red); width: 18px; height: 18px; }
/* AdBlue: il prezzo vive dentro #adblue-label (riscritto via JS). display:contents
   ne espone testo e prezzo come flex-item diretti della label, così ml-auto
   allinea il prezzo alla stessa colonna degli altri extra. */
#adblue-label { display: contents; }

.etd-co-summary { position: sticky; top: calc(var(--etd-header-h) + 20px); background: var(--etd-panel); border: 1px solid var(--etd-line); border-radius: 12px; padding: 22px; }

/* Utilities */
.price-red { color: #FF3B2E !important; font-weight: 700; }
@keyframes blink-alert { 0%, 100% { color: #E10600; text-shadow: 0 0 8px rgba(225, 6, 0, 0.8); } 50% { color: #FFFFFF; text-shadow: 0 0 8px rgba(255, 255, 255, 0.8); } }
.blink-error { animation: blink-alert 0.6s infinite !important; }
.cc-logo { transition: opacity 0.3s ease; }

/* Upload & Drag&Drop */
.etd-dropzone.is-drag { border-color: var(--etd-red) !important; background: rgba(225, 6, 0, .07) !important; transform: scale(1.01); }
.etd-file-item { display: flex; align-items: center; gap: 10px; background: var(--etd-panel-2); border: 1px solid var(--etd-line); border-radius: 6px; padding: 8px 12px; }
.etd-file-item .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etd-file-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.etd-file-bar > div { height: 100%; background: linear-gradient(90deg, var(--etd-red-2), var(--etd-red)); transition: width .2s ease; }

/* Success panel */
.etd-success { background: rgba(6, 78, 59, .25); border: 1px solid rgba(16, 185, 129, .45); border-radius: 10px; padding: 16px; }

/* Toast */
.etd-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 1200;
  padding: 14px 22px; background: #0F172A; border: 1px solid rgba(16, 185, 129, .6);
  box-shadow: 0 16px 40px rgba(0,0,0,.6); color: #F8FAFC; font-size: 14px; opacity: 0; pointer-events: none; transition: all .35s ease; border-radius: 8px;
}
.etd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Contenuti WordPress generici (page.php, articoli) */
.etd-prose { color: var(--etd-muted); font-size: 1rem; }
.etd-prose h2, .etd-prose h3, .etd-prose h4 { color: var(--etd-text); margin-top: 1.6em; }
.etd-prose a { color: var(--etd-red-2); text-decoration: underline; }
.etd-prose a:hover { color: #fff; }
.etd-prose strong { color: var(--etd-text); }
.etd-prose ul, .etd-prose ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.etd-prose ul { list-style: disc; }
.etd-prose ol { list-style: decimal; }
.etd-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.etd-prose blockquote { border-left: 3px solid var(--etd-red); margin: 1.5em 0; padding: .4em 1em; background: var(--etd-panel); border-radius: 6px; }
.etd-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.etd-prose th, .etd-prose td { border: 1px solid var(--etd-line-2); padding: 8px 12px; text-align: left; }
.etd-prose code { background: var(--etd-panel); padding: 2px 6px; border-radius: 4px; }

/* Riepilogo ordine: righe con X per rimuovere le singole voci */
.etd-sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.etd-sum-name { color: var(--etd-muted); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etd-sum-right { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.etd-sum-price { font-weight: 600; white-space: nowrap; }
.etd-sum-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(239,68,68,.45); background: rgba(127,29,29,.18);
  color: #FCA5A5; font-size: 15px; line-height: 1; cursor: pointer; transition: all .15s ease;
}
.etd-sum-x:hover { background: rgba(239,68,68,.3); color: #fff; border-color: rgba(239,68,68,.85); }
.etd-sum-x:active { transform: scale(.92); }

/* =========================================================
   AREA CLIENTI, LOGIN/WALLET (v1.1)
   ========================================================= */

/* Header: chip account + pulsante accesso */
.etd-acct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #F8FAFC; font-size: 13px; font-weight: 600; transition: all .15s ease;
}
.etd-acct-chip:hover { border-color: rgba(239,68,68,.7); color: #fff; }
.etd-acct-chip svg { color: #94A3B8; }
.etd-acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etd-acct-credits { color: #FF3B2E; font-family: var(--etd-font-head, 'Rajdhani', sans-serif); font-weight: 700; }
.etd-acct-logout { font-size: 12px; color: #94A3B8; text-decoration: none; }
.etd-acct-logout:hover { color: #FCA5A5; }
.etd-acct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #F8FAFC; font-size: 13px; font-weight: 600; font-family: inherit; transition: all .15s ease;
}
.etd-acct-btn:hover { border-color: rgba(239,68,68,.7); }
/* Voce menu "Area Clienti": solo per utenti registrati */
.etd-guest .etd-nav-account { display: none; }

/* Modale autenticazione */
.etd-modal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.etd-modal[hidden] { display: none; }
.etd-modal__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.78); backdrop-filter: blur(3px); }
.etd-modal__box {
  position: relative; width: 100%; max-width: 440px;
  background: #0F172A; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.65);
  max-height: calc(100vh - 40px); overflow: auto;
}
.etd-modal__x {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: transparent;
  color: #94A3B8; font-size: 18px; line-height: 1; cursor: pointer;
}
.etd-modal__x:hover { color: #fff; border-color: rgba(239,68,68,.7); }
.etd-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255,255,255,.05); padding: 5px; border-radius: 10px; margin-bottom: 20px; }
.etd-auth-tab {
  padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  color: #94A3B8; font-weight: 700; font-size: 13px; font-family: inherit; text-transform: uppercase; letter-spacing: .5px;
}
.etd-auth-tab.is-active { background: var(--etd-red, #FF3B2E); color: #fff; }
.etd-auth-form .etd-field { margin-bottom: 12px; }
.etd-auth-err { color: #FCA5A5; background: rgba(127,29,29,.22); border: 1px solid rgba(239,68,68,.4); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; }
.etd-auth-ok { color: #4ADE80; background: rgba(22,163,74,.15); border: 1px solid rgba(74,222,128,.35); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; }
.etd-auth-note { color: #64748B; font-size: 12px; margin: 12px 0 0; line-height: 1.5; }
.etd-auth-note strong { color: #FCA5A5; }
.etd-auth-form .etd-link-btn { margin-top: 12px; }

/* Opzioni pagamento nel checkout (crediti vs Stripe) */
.etd-pay-invite { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; color: #94A3B8; font-size: 13px; }
.etd-link-btn { background: none; border: 0; padding: 0; color: #FF6B62; font-weight: 700; cursor: pointer; text-decoration: underline; font-family: inherit; font-size: 13px; }
.etd-link-btn:hover { color: #fff; }
.etd-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.etd-pay-opt {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 12px 14px; transition: all .15s ease;
}
.etd-pay-opt:hover { border-color: rgba(255,255,255,.3); }
.etd-pay-opt input { margin: 0 0 4px; accent-color: #FF3B2E; }
.etd-pay-opt:has(input:checked) { border-color: rgba(239,68,68,.85); background: rgba(127,29,29,.16); }
.etd-pay-opt__t { color: #F8FAFC; font-weight: 700; font-size: 14px; }
.etd-pay-opt__s { color: #94A3B8; font-size: 12px; }
.etd-pay-note { background: rgba(6,78,59,.18); border: 1px solid rgba(16,185,129,.35); color: #A7F3D0; border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 14px; }

/* Area clienti */
.etd-acct-big { color: #94A3B8; font-size: 15px; }
.etd-acct-big strong { color: #FF3B2E; font-family: var(--etd-font-head, 'Rajdhani', sans-serif); font-size: 22px; }
.etd-acct-table { display: flex; flex-direction: column; gap: 8px; }
.etd-acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #1E293B; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 14px 16px;
}
.etd-acct-main { display: flex; flex-direction: column; gap: 3px; min-width: 200px; flex: 1 1 220px; }
.etd-acct-code { color: #F8FAFC; font-weight: 700; font-family: var(--etd-font-head, 'Rajdhani', sans-serif); letter-spacing: .5px; }
.etd-acct-sub { color: #94A3B8; font-size: 12.5px; }
.etd-acct-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.etd-acct-badge--nuovo { background: rgba(217,119,6,.16); color: #FBBF24; border: 1px solid rgba(251,191,36,.4); }
.etd-acct-badge--pagato { background: rgba(6,78,59,.24); color: #34D399; border: 1px solid rgba(52,211,153,.45); }
.etd-acct-badge--completato { background: rgba(29,78,216,.18); color: #93C5FD; border: 1px solid rgba(147,197,253,.45); }
.etd-acct-badge--annullato { background: rgba(255,255,255,.07); color: #94A3B8; border: 1px solid rgba(255,255,255,.16); }
.etd-acct-price { color: #FF3B2E; font-family: var(--etd-font-head, 'Rajdhani', sans-serif); font-weight: 700; font-size: 17px; white-space: nowrap; }
.etd-acct-files { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.etd-acct-file { display: inline-flex; align-items: center; gap: 6px; color: #93C5FD; font-size: 12.5px; text-decoration: none; }
.etd-acct-file:hover { color: #fff; text-decoration: underline; }
.etd-acct-mov { display: flex; justify-content: space-between; gap: 10px; background: #1E293B; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 10px 16px; font-size: 13px; }
.etd-acct-mov__why { color: #94A3B8; flex: 1 1 auto; }
.etd-acct-mov__delta-plus { color: #34D399; font-weight: 700; }
.etd-acct-mov__delta-minus { color: #FCA5A5; font-weight: 700; }
.etd-acct-empty { color: #64748B; font-size: 14px; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.14); border-radius: 10px; padding: 18px; text-align: center; }
.etd-mail-link { color: #FF6B62; text-decoration: underline; }

/* Mobile: chip compatta */
@media (max-width: 480px) {
  .etd-acct-name { max-width: 80px; }
  .etd-pay-grid { grid-template-columns: 1fr; }
}

/* Offerte speciali (bundle) nel checkout */
.etd-offer-note { flex-direction: column; gap: 8px; margin-top: 14px; }
.etd-offer-chip {
  font-size: 13px; line-height: 1.45; padding: 10px 14px; border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.18); background: rgba(15,23,42,.55); color: #94A3B8;
}
.etd-offer-chip b { color: #E2E8F0; font-weight: 700; }
.etd-offer-chip.is-partial { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.06); color: #FDE68A; }
.etd-offer-chip.is-partial b { color: #FEF3C7; }
.etd-offer-chip.is-applied {
  border: 1px solid rgba(52,211,153,.5); background: rgba(16,185,129,.09); color: #A7F3D0;
}
.etd-offer-chip.is-applied b { color: #D1FAE5; }
.etd-offer-save {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: rgba(16,185,129,.18); border: 1px solid rgba(52,211,153,.4);
  color: #34D399; font-size: 11px; font-weight: 700; white-space: nowrap;
}
/* Riga offerta nel riepilogo: vecchio prezzo barrato + risparmio */
.etd-sum-row--offer { background: rgba(16,185,129,.05); border: 1px solid rgba(52,211,153,.22); border-radius: 8px; padding: 7px 10px; margin: 0 -10px; }
.etd-sum-old { color: #64748B; text-decoration: line-through; font-weight: 400; font-size: .82em; margin-right: 6px; }
.etd-sum-save { color: #34D399; font-weight: 700; font-size: .78em; margin-left: 8px; white-space: nowrap; }

/* =========================================================
   ISTRUZIONI SELEZIONE (rosso lampeggiante) + SELETTORE LINGUA
   ========================================================= */
.etd-blink-note {
  color: #FF3B2E;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  margin: 6px 0 10px;
  animation: etdBlink 1.1s ease-in-out infinite;
}
@keyframes etdBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .15; }
}

/* Bandierine lingua: fisse a destra durante lo scroll */
.etd-lang-switch {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99990;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px 5px;
  background: rgba(3, 7, 18, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.etd-lang-btn {
  width: 34px;
  height: 25px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  padding: 0;
  background: none;
  display: block;
  line-height: 0;
}
.etd-lang-btn:hover { border-color: rgba(255, 255, 255, .65); }
.etd-lang-btn.is-active {
  border-color: #FF3B2E;
  box-shadow: 0 0 6px rgba(255, 59, 46, .65);
}
.etd-lang-btn svg { width: 100%; height: 100%; display: block; }
@media (max-width: 768px) {
  .etd-lang-switch { top: auto; bottom: 14px; transform: none; gap: 5px; padding: 4px; right: 8px; }
  .etd-lang-btn { width: 28px; height: 21px; }
}

/* Ricarica crediti wallet: pacchetti nel modale */
.etd-topup-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.etd-topup-preset { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 12px 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.etd-topup-preset:hover { border-color: rgba(255,59,46,.55); background: rgba(255,59,46,.08); }
.etd-topup-preset.is-active { border-color: #FF3B2E; background: rgba(255,59,46,.12); }
.etd-topup-preset__val { color: #F8FAFC; font-weight: 800; font-size: 18px; }
.etd-topup-preset__lbl { color: #E2E8F0; font-size: 12px; font-weight: 600; }
.etd-topup-preset__bonus { color: #4ADE80; font-size: 11px; font-weight: 700; }
@media (max-width: 900px) {
  .etd-topup-presets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .etd-topup-presets { grid-template-columns: 1fr; }
  .etd-topup-preset { flex-direction: row; justify-content: space-between; }
}
