/* =========================
   BASE / THEME
========================= */
:root{
  --bg:#0b1526;
  --panel:#0f2340;
  --panel2:#0c1e38;
  --border:#1b3a63;
  --text:#e8f1ff;
  --muted:#a9bfdc;
  --accent:#39b8ff;
  --ok:#2ee59d;
  --warn:#ffcc66;
  --bad:#7f8c99;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================
   TOP ACCESS COUNTER
========================= */
.access-counter{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,21,38,.92);
  border-bottom:1px solid var(--border);
  padding:10px 14px;
  font-size:14px;
  color:var(--muted);
  backdrop-filter: blur(6px);
}

/* =========================
   TABS
========================= */
.tabs{
  display:flex;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  background:rgba(11,21,38,.75);
  position:sticky;
  top:44px; /* dopo access counter */
  z-index:9;
  backdrop-filter: blur(6px);
}

.tab-button{
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}
.tab-button:hover{border-color:rgba(57,184,255,.6)}
.tab-content{padding:14px}

/* =========================
   FILTERS
========================= */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  margin-bottom:14px;
}

.filters input[type="text"],
.filters select{
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  outline:none;
  min-width:170px;
}
.filters input[type="text"]::placeholder{color:rgba(169,191,220,.75)}
.filters .check{
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:rgba(15,35,64,.65);
  color:var(--muted);
}

/* =========================
   DASHBOARD TABLE
========================= */
#dashboard-content h2{margin:0 0 12px 0}
.server-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.server-table th, .server-table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(27,58,99,.55);
}
.server-table thead th{background:rgba(15,35,64,.85); text-align:left}
.server-table tbody tr:hover{background:rgba(57,184,255,.08); cursor:pointer}
.server-table tbody tr:last-child td{border-bottom:none}

/* =========================
   PILOTI LAYOUT (PC)
========================= */
.piloti-container{
  display:grid;
  grid-template-columns: 330px 1fr;
  gap:14px;
  align-items:start;
}

.sidebar{
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  min-height:60vh;
}

#lista-piloti{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pilota-item{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  user-select:none;
}
.pilota-item:hover{border-color:rgba(57,184,255,.6); background:rgba(15,35,64,.9)}

.main-content{
  background:transparent;
  position: sticky;
  top: 15px;
}

.dettagli-pilota-wrapper{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:14px;
  align-items:start;
}

.dettagli-tempi,
.lista-json{
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  min-height:60vh;
}

.lista-json ul, .dettagli-tempi ul{
  margin:10px 0 0 0;
  padding-left:18px;
}
.json-entry{
  background:rgba(15,35,64,.55);
  border:1px solid rgba(27,58,99,.7);
  border-radius:10px;
  padding:10px 10px;
  margin:8px 0;
  cursor:pointer;
}
.json-entry:hover{border-color:rgba(57,184,255,.6)}

/* =========================
   SPLIT LAYOUT (PISTE + CLASSIFICHE)  ✅ PC: 2 colonne
========================= */
.split-layout{
  display:grid;
  grid-template-columns: 320px 1fr;  /* side + main */
  gap:14px;
  align-items:start;
}

.split-side,
.split-main{
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  min-height:60vh;
}

/* toolbar dentro split-main */
.split-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(27,58,99,.55);
}

.split-toolbar select{
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 10px;
}

#track-list ul,
#lista-classifiche{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

#track-list li,
#lista-classifiche li{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  user-select:none;
}
#track-list li:hover,
#lista-classifiche li:hover{border-color:rgba(57,184,255,.6)}
#track-list li.selected,
#lista-classifiche li.selected{
  border-color:rgba(57,184,255,.9);
  box-shadow:0 0 0 2px rgba(57,184,255,.15) inset;
}

/* risultati pista */
#track-times ul{margin:10px 0 0 0; padding-left:18px}
#track-times li{margin:8px 0}
.track-time{color:var(--accent); text-decoration:none}
.track-time:hover{text-decoration:underline}

/* contenuto classifica */
.content-block{
  padding-top:6px;
}

/* =========================
   POPUP (analisi JSON) - PC & Mobile
========================= */
#popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9998;
}

#popup-box{
  position:fixed;
  z-index:9999;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, 92vw);
  height:min(78vh, 820px);
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  display:block;
  grid-template-columns: 1fr 1fr;   /* due colonne nel popup */
  grid-template-rows: auto 1fr;
  gap:12px;
  overflow:scroll; /* importantissimo: niente sovrapposizioni */
}

#popup-box > p {
  text-align: right;
}

#popup-box > p > button{
  grid-column: 1 / -1;
  justify-self:end;
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
}
#popup-box > button:hover{border-color:rgba(57,184,255,.6)}

#popup-box > div{
  min-height:0;        /* fondamentale per scroll corretto in grid */
  overflow:auto;       /* ogni colonna scrolla da sola */
  background:rgba(15,35,64,.35);
  border:1px solid rgba(27,58,99,.55);
  border-radius:14px;
  padding:10px;
  margin-bottom: 5px;
}

.json-view{
  white-space:pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  line-height:1.35;
  color:rgba(232,241,255,.92);
}

/* =========================
   RESPONSIVE ✅ Mobile ONLY
   (qui forziamo colonna SOLO sotto 900px)
========================= */
@media (max-width: 900px){
  .piloti-container{
    grid-template-columns: 1fr;
  }

  .dettagli-pilota-wrapper{
    grid-template-columns: 1fr;
  }

  /* ✅ Piste + Classifiche in colonna SOLO su mobile */
  .split-layout{
    grid-template-columns: 1fr;
  }

  .split-side,
  .split-main{
    min-height:auto;
  }

  /* popup su mobile: una colonna */
  #popup-box{
    width: 94vw;
    height: 86vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 1fr;
  }
}

/* =========================
   EXTRA: fix overflow list lunghissime
========================= */
#track-list, #classifiche-lista, .sidebar{
  overflow:auto;
}
.copy-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.btn-copy{
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn-copy:hover{ border-color: rgba(57,184,255,.7); }

.toast{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,35,64,.95);
  border: 1px solid rgba(57,184,255,.4);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 99999;
}
.toast.show{ opacity: 1; }


/* ===== TAB speciale: Server Manager ===== */
.tab-button-special{
  border-color: rgba(57,184,255,.85);
  box-shadow: 0 0 0 2px rgba(57,184,255,.14) inset;
  background: linear-gradient(180deg, rgba(15,35,64,.95), rgba(12,30,56,.9));
}
.tab-button-special:hover{
  border-color: rgba(57,184,255,1);
  box-shadow: 0 0 0 2px rgba(57,184,255,.22) inset;
}
/* ===== Server Manager Popup (iframe) ===== */
#sm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
}

#sm-popup{
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(1200px, 95vw);
  height: min(86vh, 900px);
  background: var(--panel2);
  border: 1px solid rgba(57,184,255,.35);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#sm-popup-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom: 1px solid rgba(27,58,99,.55);
  background: rgba(11,21,38,.92);
}

#sm-popup-header strong{
  font-size: 14px;
  color: var(--text);
}

#sm-popup-header .spacer{ flex: 1; }

#sm-popup-close{
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}
#sm-popup-close:hover{ border-color: rgba(57,184,255,.7); }

#sm-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

@media (max-width: 900px){
  #sm-popup{
    width: 96vw;
    height: 90vh;
  }
}
/* ===== LIVE CHANNELS ===== */

.live-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:8px;
  cursor:pointer;
}

.live-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#777;
}

.live-dot.live{
  background: var(--ok);
  box-shadow: 0 0 8px rgba(46,229,157,.8);
}

.live-name{
  font-weight:600;
}

.live-title{
  color:var(--muted);
  font-size:13px;
}
.btn-copy-link{
  background: rgba(15,35,64,.65);
  color: var(--text);
  border: 1px solid rgba(27,58,99,.7);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.btn-copy-link:hover{ border-color: rgba(57,184,255,.7); }

/* =========================
   TRACK TIMES: LEADERBOARD STYLE (solo CSS)
========================= */

/* container un po' più arioso */
#track-times{
  margin-top: 6px;
}

/* usa numerazione */
#track-times ul{
  list-style: decimal;
  padding-left: 34px;      /* spazio numeri */
  margin: 10px 0 0 0;
}

/* ogni riga: “card” */
#track-times li{
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(15,35,64,.55);
  border: 1px solid rgba(27,58,99,.7);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

/* hover più “premium” */
#track-times li:hover{
  transform: translateY(-1px);
  border-color: rgba(57,184,255,.65);
  background: rgba(57,184,255,.08);
}

/* il numerino (marker) più “da classifica” */
#track-times li::marker{
  color: rgba(57,184,255,.95);
  font-weight: 800;
  font-size: 13px;
}

/* link del tempo più evidente */
#track-times a.track-time{
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
}

/* “pill” intorno al tempo */
#track-times a.track-time{
  display: inline-block;
  padding: 3px 8px;
  margin-right: 8px;
  border-radius: 999px;
  border: 1px solid rgba(57,184,255,.45);
  background: rgba(57,184,255,.08);
}
#track-times a.track-time:hover{
  border-color: rgba(57,184,255,.85);
  background: rgba(57,184,255,.14);
}

/* evidenzia top 3 con alone (senza conoscere i dati) */
#track-times li:nth-child(1){
  border-color: rgba(46,229,157,.55);
  box-shadow: 0 14px 26px rgba(46,229,157,.10);
}
#track-times li:nth-child(2){
  border-color: rgba(255,204,102,.55);
  box-shadow: 0 14px 26px rgba(255,204,102,.10);
}
#track-times li:nth-child(3){
  border-color: rgba(57,184,255,.55);
  box-shadow: 0 14px 26px rgba(57,184,255,.10);
}

/* testo secondario più “muted” (funziona se i tuoi li contengono testo non link) */
#track-times li{
  color: rgba(232,241,255,.92);
}
#track-times li small,
#track-times li .muted{
  color: rgba(169,191,220,.85);
}
.server-table tr.multi-selected td{
  border-left: 3px solid rgba(57,184,255,.95);
  background: rgba(57,184,255,.10);
}


.server-hint{
  font-size:12px;
  opacity:0.75;
  margin-bottom:8px;
}


/* =========================
   WOACC HERO TITLE
========================= */
.woacc-hero{
  position:relative;
  margin:14px 14px 0;
  padding:22px 24px;
  border:1px solid rgba(57,184,255,.22);
  border-radius:18px;
  background:
    radial-gradient(circle at top right, rgba(57,184,255,.18), transparent 28%),
    linear-gradient(135deg, rgba(15,35,64,.96), rgba(12,30,56,.92));
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.woacc-hero__grid{
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(57,184,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,184,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  pointer-events:none;
}

.woacc-hero__content{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.woacc-hero__kicker{
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.woacc-hero__title{
  margin:0;
  font-size:clamp(34px, 6vw, 64px);
  line-height:.95;
  font-weight:900;
  letter-spacing:.04em;
  color:#f2f7ff;
  text-shadow:0 0 18px rgba(57,184,255,.12);
}

.woacc-hero__subtitle{
  margin:0;
  max-width:780px;
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
}

.woacc-hero__stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}

.woacc-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(57,184,255,.22);
  background:rgba(11,21,38,.42);
  color:var(--text);
  font-size:13px;
  font-weight:700;
}


@media (max-width: 900px){
  .woacc-hero{
    margin:12px 12px 0;
    padding:18px 16px;
    border-radius:16px;
  }

  .woacc-hero__title{
    font-size:clamp(28px, 11vw, 44px);
    letter-spacing:.03em;
  }

  .woacc-hero__subtitle{
    font-size:14px;
    max-width:none;
  }

  .woacc-hero__stats{
    gap:8px;
  }

  .woacc-chip{
    font-size:12px;
    padding:6px 10px;
    min-height:30px;
  }
}

@media (max-width: 520px){
  .woacc-hero__subtitle{
    display:none;
  }

  .woacc-hero__stats{
    display:grid;
    grid-template-columns:1fr;
  }

  .woacc-chip{
    width:100%;
    justify-content:center;
  }
}


/* =========================
   WOACC HERO V2
========================= */
.woacc-hero{
  padding: 10px 14px 6px;
}

.woacc-hero__inner{
  min-height: 200px;
  border: 1px solid rgba(57,184,255,.20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(57,184,255,.12), transparent 34%),
    linear-gradient(90deg, rgba(8,24,48,.96) 0%, rgba(10,34,66,.98) 28%, rgba(11,37,70,.98) 72%, rgba(8,24,48,.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 20px 50px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woacc-hero__inner::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(57,184,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,184,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .35;
  pointer-events: none;
}

.woacc-hero__inner::after{
  content: "";
  position: absolute;
  inset: auto 50% 22px 50%;
  width: 240px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(57,184,255,.7), transparent);
  box-shadow: 0 0 22px rgba(57,184,255,.35);
  pointer-events: none;
}

.woacc-hero__panel{
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 34px 30px;
  text-align: center;
  border: 1px solid rgba(57,184,255,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11,28,52,.72), rgba(10,24,44,.60));
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 14px 34px rgba(0,0,0,.18);
}

.woacc-hero__kicker{
  display: inline-block;
  margin-bottom: 12px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}

.woacc-hero__title{
  margin: 0;
  font-size: clamp(52px, 8vw, 84px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #f4f8ff;
  text-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.woacc-hero__subtitle{
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(232,241,255,.86);
}

.woacc-hero__stats{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.woacc-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(57,184,255,.24);
  background: rgba(7,19,37,.68);
  color: #f1f6ff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

@media (max-width: 900px){
  .woacc-hero{
    padding: 8px 14px 4px;
  }

  .woacc-hero__inner{
    min-height: 180px;
    border-radius: 18px;
  }

  .woacc-hero__panel{
    width: min(92%, 620px);
    padding: 24px 20px 24px;
  }

  .woacc-hero__subtitle{
    font-size: 16px;
  }
}

@media (max-width: 520px){
  .woacc-hero__inner{
    min-height: auto;
  }

  .woacc-hero__panel{
    width: calc(100% - 20px);
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .woacc-hero__kicker{
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .22em;
  }

  .woacc-hero__title{
    font-size: clamp(38px, 14vw, 58px);
  }

  .woacc-hero__subtitle{
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  .woacc-hero__stats{
    margin-top: 16px;
    gap: 8px;
  }

  .woacc-chip{
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}


/* =========================
   WOACC HERO V3 - slimmer
========================= */
.woacc-hero{
  padding: 10px 14px 4px;
}

.woacc-hero__inner{
  display:flex;
  justify-content:center;
}

.woacc-hero__panel{
  width:min(980px, 100%);
}

.woacc-hero__title{
  margin-bottom: 8px;
}

.woacc-hero__subtitle{
  margin: 0 auto;
  max-width: 760px;
}

.woacc-hero__stats,
.woacc-chip{
  display:none !important;
}

@media (max-width: 900px){
  .woacc-hero{
    padding: 8px 14px 2px;
  }

  .woacc-hero__panel{
    padding: 28px 20px;
    min-height: auto;
  }

  .woacc-hero__title{
    font-size: clamp(42px, 12vw, 72px);
    line-height: .95;
  }

  .woacc-hero__subtitle{
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    max-width: 34ch;
  }
}

@media (max-width: 640px){
  .woacc-hero__panel{
    padding: 24px 16px;
    border-radius: 18px;
  }

  .woacc-hero__kicker{
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .28em;
  }

  .woacc-hero__title{
    font-size: clamp(38px, 11vw, 56px);
    margin-bottom: 6px;
  }

  .woacc-hero__subtitle{
    font-size: 13px;
    max-width: 28ch;
  }
}

@media (max-width: 520px){
  .woacc-hero__subtitle{
    display:none;
  }

  .woacc-hero__panel{
    padding: 22px 14px;
  }
}
/* =========================
   MOBILE NAV TABS FIX
========================= */

@media (max-width: 600px){

  .tabs{
    gap:6px;
    padding:8px 8px;
    overflow-x:auto;
    flex-wrap:nowrap;
  }

  .tab-button{
    padding:6px 9px;
    font-size:12px;
    border-radius:8px;
    white-space:nowrap;
  }

  .tab-button-special{
    padding:6px 9px;
    font-size:12px;
  }

}
.tab-button-download{
  background: transparent;
  color: #ff9f43;

  border: 1px solid rgba(255,122,0,0.6);
  border-radius: 10px;

  text-decoration: none;

  position: relative;

  box-shadow:
    0 0 8px rgba(255,122,0,0.25),
    inset 0 0 8px rgba(255,122,0,0.15);

  transition: all 0.2s ease;
}

.tab-button-download:hover{
  color: #ffffff;

  border-color: #ff7a00;

  box-shadow:
    0 0 12px rgba(255,122,0,0.5),
    0 0 25px rgba(255,122,0,0.25),
    inset 0 0 10px rgba(255,122,0,0.2);

  transform: translateY(-1px);
}

.tab-button-download::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(255,122,0,.3), transparent);
  opacity:.6;
  z-index:-1;
}
.tab-button{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-button-download,
a.tab-button-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;

  background:rgba(15,35,64,.35);
  color:#ff9f43 !important;

  border:1px solid rgba(255,122,0,.65) !important;
  border-radius:10px;

  position:relative;
  overflow:hidden;

  box-shadow:
    0 0 8px rgba(255,122,0,.22),
    0 0 18px rgba(255,122,0,.10),
    inset 0 0 8px rgba(255,122,0,.10);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    color .18s ease,
    background .18s ease;
}

.tab-button-download:hover,
a.tab-button-download:hover{
  text-decoration:none !important;
  color:#ffffff !important;
  background:rgba(255,122,0,.08);

  border-color:#ff7a00 !important;

  box-shadow:
    0 0 12px rgba(255,122,0,.42),
    0 0 26px rgba(255,122,0,.18),
    inset 0 0 10px rgba(255,122,0,.16);

  transform:translateY(-1px);
}

.tab-button-download:visited,
.tab-button-download:active,
.tab-button-download:focus{
  text-decoration:none !important;
  color:#ff9f43;
}

.tab-button-download::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:0 0 14px rgba(255,122,0,.18);
  opacity:.9;
}
.woacc-hero__title-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.hero-donate-row{
  width:100%;
  display:flex;
  justify-content:flex-end; /* ← lo manda a destra */
  margin-top:8px;
}

/* bottone */
.hero-donate{
  text-decoration:none;
  font-size:13px;
  font-weight:600;

  color:#ff9f43;
  padding:6px 12px;

  border:1px solid rgba(255,122,0,.35);
  border-radius:999px;

  background:rgba(255,122,0,.05);

  box-shadow:
    0 0 6px rgba(255,122,0,.12),
    inset 0 0 6px rgba(255,122,0,.06);

  transition: all .18s ease;
}

.hero-donate:hover{
  color:#fff;
  border-color:#ff7a00;

  box-shadow:
    0 0 10px rgba(255,122,0,.4),
    0 0 20px rgba(255,122,0,.15);

  transform:translateY(-1px);
}
