/* ──────────────────────────────────────────────────
   Oblivion Network — Tema Cobalt-inspired (custom)
   Palette: viola #6b2799, sfondo #101010
   ────────────────────────────────────────────────── */

:root {
  --p-color: #6b2799;
  --p-color-light: #8a3bc4;
  --p-color-dark: #4d1c70;
  --p-accent: #a855f7;
  /* Brand secondary — verde "smeraldo" Minecraft, contrasta col viola */
  --emerald: #5cdb95;
  --emerald-dark: #2fa86f;
  --emerald-soft: rgba(92, 219, 149, 0.14);
  /* Tertiary — arancio fiamma per call-out (lava/torcia) */
  --flame: #ff7a3d;
  --flame-soft: rgba(255, 122, 61, 0.14);
  --bg: #0e0c14;
  --bg-2: #16121e;
  --bg-3: #1f1a2b;
  --border: rgba(107, 39, 153, 0.25);
  --border-light: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-muted-2: #6a6a6a;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  /* Tipografia */
  --font-body:    'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', 'Montserrat', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
/* Texture noise leggera (Minecraft = pixel) → toglie quel look "smooth da SaaS" */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/></svg>");
  opacity: .04;
  mix-blend-mode: overlay;
}
h1, h2, h3, .display, .hero-title, .section-title, .auth-card h1 {
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-weight: 400;
}
/* Sticky footer: layout flex su body così il footer resta sempre giù */
body { display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; position: relative; z-index: 1; }

/* Bagliore ambientale: video hero sfocato e tenue, dietro al contenuto delle pagine interne */
.site-ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.site-ambient-video {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: blur(80px) saturate(125%);
  opacity: .16;
}
.site-ambient::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,20,.55) 0%, rgba(14,12,20,.78) 100%);
}
.site-ambient-video::-webkit-media-controls,
.site-ambient-video::-webkit-media-controls-start-playback-button,
.site-ambient-video::-webkit-media-controls-overlay-play-button { display: none !important; opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { .site-ambient { display: none; } }
a { color: var(--p-color-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(107, 39, 153, .35); color: #fff; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 1.75rem; }
.container-fluid { width: 100%; margin: 0; padding: 0; }
/* Container che ospita account-layout diventa full-width — sidebar attaccata al bordo schermo */
.container:has(> .account-layout) { max-width: 100%; padding: 0; }
.container:has(> .account-layout) > .account-layout { padding-left: 0; padding-right: 1.5rem; }
.container:has(> .account-layout) > .account-layout > .account-main { padding-right: 0; }

/* ════════════════════════════════════════════════════════════
   NAVBAR (redesign) — SVG icons animate, glass-morphism, micro-interactions
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(16, 16, 16, .92) 0%, rgba(16, 16, 16, .82) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar::after {
  /* sottile linea luminosa sotto la navbar */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(107, 39, 153, .55) 50%, transparent 95%);
  opacity: .7; pointer-events: none;
}
.navbar.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: .75rem 1.75rem;
  max-width: 1600px;
  margin: 0 auto;
  gap: 1.5rem;
}

/* ── Brand / Logo ───────────────────────────────────── */
.nav-logo {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none;
  font-weight: 800; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  position: relative;
}
.nav-logo-mark {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(107, 39, 153, .22), rgba(107, 39, 153, .06));
  border: 1px solid rgba(107, 39, 153, .35);
  box-shadow: 0 0 0 0 rgba(107, 39, 153, .4);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s, border-color .25s;
}
.nav-logo-mark img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(107, 39, 153, .5)); }
.nav-logo-text strong {
  margin-left: .35rem;
  background: linear-gradient(135deg, var(--p-color-light), #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo:hover { color: #fff; }
.nav-logo:hover .nav-logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 0 6px rgba(107, 39, 153, .15);
  border-color: var(--p-color-light);
}

/* ── Main Links ─────────────────────────────────────── */
.nav-links {
  display: flex; gap: .15rem; list-style: none; flex-wrap: nowrap;
  justify-self: center; padding: 0; margin: 0;
}
.nav-link {
  --link-clr: var(--text-muted);
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 10px;
  color: var(--link-clr); font-size: .85rem; font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s;
}
.nav-link::before {
  /* glow background dietro l'icona quando attivo/hover */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 24px 50%, rgba(107, 39, 153, .25), transparent 60%);
  border-radius: 10px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.nav-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: currentColor;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-link:hover::before { opacity: 1; }
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(107, 39, 153, .18), rgba(107, 39, 153, .06));
}
.nav-link.is-active::after {
  content: ""; position: absolute;
  left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--p-color-light), transparent);
  box-shadow: 0 0 8px rgba(138, 59, 196, .8);
}
.nav-link-ext { opacity: .55; transform: translateY(-1px); }

/* ── CTA / utility area ─────────────────────────────── */
.nav-cta { display: inline-flex; align-items: center; gap: .4rem; justify-self: end; }

.nav-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 10px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.nav-btn:hover {
  color: #fff;
  border-color: rgba(107, 39, 153, .55);
  background: rgba(107, 39, 153, .12);
  transform: translateY(-1px);
}
.nav-btn--primary {
  background: linear-gradient(135deg, var(--p-color), #4f1d72);
  border-color: var(--p-color);
  color: #fff;
  box-shadow: 0 6px 16px rgba(107, 39, 153, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.nav-btn--primary:hover {
  background: linear-gradient(135deg, var(--p-color-light), var(--p-color));
  box-shadow: 0 10px 22px rgba(107, 39, 153, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

/* ── Icon-only buttons (campanellini, mail, logout) ──── */
.nav-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
}
.nav-icon-btn:hover {
  color: #fff;
  border-color: rgba(107, 39, 153, .55);
  background: rgba(107, 39, 153, .12);
  transform: translateY(-1px);
}
.nav-icon-btn.is-active {
  color: #fff;
  border-color: var(--p-color-light);
  background: rgba(107, 39, 153, .18);
}
.nav-icon-btn.has-unread { color: var(--p-color-light); }

.nav-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ── User pill (Minecraft avatar) ───────────────────── */
.nav-user {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .25rem .75rem .25rem .3rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  text-decoration: none;
  transition: all .22s;
  max-width: 220px;
}
.nav-user:hover { color: #fff; border-color: rgba(107, 39, 153, .6); background: rgba(107, 39, 153, .12); }
.nav-user.is-active { border-color: var(--p-color-light); background: rgba(107, 39, 153, .16); color: #fff; }
.nav-user-avatar {
  position: relative;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--bg-2);
  transition: transform .35s ease;
}
.nav-user:hover .nav-user-avatar { transform: rotate(-4deg) scale(1.05); }
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; border-radius: 50%; }
.nav-user-status {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg);
}
.nav-user-name {
  font-size: .85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.nav-user-caret {
  display: inline-flex; opacity: .55;
  transition: transform .25s ease;
}
.nav-user:hover .nav-user-caret { opacity: 1; transform: translateY(2px); }

.nav-logout-form { display: inline-flex; margin: 0; }

/* ── Staff pill ─────────────────────────────────────── */
.nav-staff {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(107, 39, 153, .22), rgba(107, 39, 153, .08));
  border: 1px solid rgba(107, 39, 153, .45);
  color: var(--p-color-light);
  font-weight: 700; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none;
  transition: all .22s;
}
.nav-staff:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(107, 39, 153, .35), rgba(107, 39, 153, .18));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(107, 39, 153, .3);
}
.nav-staff.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(107, 39, 153, .5), rgba(107, 39, 153, .32));
  border-color: var(--p-color-light);
}
.nav-staff-label { letter-spacing: .15em; }

/* ── Burger (mobile) ────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #fff;
  cursor: pointer;
  transition: all .2s;
}
.nav-toggle:hover { background: rgba(107, 39, 153, .15); border-color: rgba(107, 39, 153, .55); }
.nav-toggle[aria-expanded="true"] .svg-bar-1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .svg-bar-2 { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .svg-bar-3 { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle .svg-bar { transform-origin: center; transition: transform .35s cubic-bezier(.65, .05, .36, 1), opacity .25s; }

/* ── SVG icon base + animazioni ─────────────────────── */
.svg-icon {
  display: inline-block; flex-shrink: 0;
  overflow: visible;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .2s;
}
.svg-icon * { transition: all .35s cubic-bezier(.4, 0, .2, 1); transform-origin: center; transform-box: fill-box; }

/* — home: tetto si solleva, porta apre — */
.nav-link:hover .svg-icon .svg-roof,
.nav-link.is-active .svg-icon .svg-roof { transform: translateY(-1.5px); }
.nav-link:hover .svg-icon .svg-door     { transform: scaleY(.85); transform-origin: bottom; }

/* — forum: i 3 puntini cambiano lievemente opacità — */
.nav-link:hover .svg-icon .svg-dot { transform: translateY(-1px); }

/* — store: la borsa si inclina al hover — */
.nav-link:hover .svg-icon .svg-bag-body,
.nav-link.is-active .svg-icon .svg-bag-body { transform: rotate(-2deg); }

/* — gavel: il martelletto inclinato al hover — */
.nav-link:hover .svg-icon .svg-hammer-head { transform: rotate(-10deg); }

/* — trophy: lieve sollevamento — */
.nav-link:hover .svg-icon .svg-cup { transform: translateY(-1px); }

/* — star: scala leggermente — */
.nav-link:hover .svg-icon .svg-star { transform: scale(1.06); }

/* — coins: leggera separazione verticale — */
.nav-link:hover .svg-icon .svg-coin-1,
.nav-link:hover .svg-icon .svg-coin-1-side { transform: translateY(-1px); }
.nav-link:hover .svg-icon .svg-coin-2,
.nav-link:hover .svg-icon .svg-coin-2-side { transform: translateY(1px); }

/* — shield: il check si "scrive" e poi pulsa — */
.svg-icon .svg-shield-check { stroke-dasharray: 12; stroke-dashoffset: 0; }
.nav-link:hover .svg-icon .svg-shield-check,
.nav-icon-btn:hover .svg-icon .svg-shield-check,
.nav-staff:hover  .svg-icon .svg-shield-check { animation: shield-draw .55s ease forwards; }
@keyframes shield-draw { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
.nav-link:hover .svg-icon .svg-shield-body,
.nav-staff:hover  .svg-icon .svg-shield-body { animation: shield-glow 1.8s ease-in-out infinite; }
@keyframes shield-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(138, 59, 196, 0)); } 50% { filter: drop-shadow(0 0 4px rgba(138, 59, 196, .8)); } }

/* — grid: celle leggermente ridotte al hover (no loop) — */
.nav-link:hover .svg-icon .svg-cell { transform: scale(.94); }

/* — bell: lieve inclinazione al hover (no shake continuo) — */
.nav-icon-btn:hover .svg-icon .svg-bell-body,
.nav-icon-btn:hover .svg-icon .svg-bell-clapper { transform-origin: top center; transform: rotate(6deg); }

/* — mail: il flap si solleva al hover — */
.nav-icon-btn:hover .svg-icon .svg-env-flap { transform: translateY(-1px); }

/* — logout/login: freccia spinta lievemente al hover (no loop) — */
.nav-icon-btn:hover .svg-icon .svg-arrow,
.nav-btn:hover     .svg-icon .svg-arrow { transform: translateX(2px); }

/* — user-plus: il + si ingrandisce — */
.nav-btn:hover .svg-icon .svg-up-plus { transform: scale(1.15); transform-origin: center; }

/* — chevron-down: gira di 180° quando user-hover — */
.nav-user:hover .svg-icon .svg-chev { transform: rotate(180deg); }

/* — external: la freccia salta in alto a destra — */
.nav-link:hover .svg-icon .svg-ext-arrow { transform: translate(1.5px, -1.5px); }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-inner { grid-template-columns: auto 1fr auto; padding: .65rem 1rem; gap: .75rem; }
  .nav-logo-text { display: none; }
  .nav-toggle { display: inline-flex; order: 3; justify-self: end; }
  .nav-cta { order: 2; gap: .35rem; }
  .nav-cta .nav-btn span,
  .nav-cta .nav-user-name { display: none; }
  .nav-cta .nav-user { padding: .25rem; }
  .nav-cta .nav-user-caret { display: none; }
  .nav-cta .nav-staff .nav-staff-label { display: none; }
  .nav-cta .nav-staff { padding: .5rem; }

  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 1rem; right: 1rem;
    flex-direction: column; gap: .2rem; padding: .65rem;
    background: rgba(16, 16, 16, .98);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    display: flex;
  }
  .nav-links.open {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  }
  .nav-link { padding: .8rem 1rem; }
  .nav-link.is-active::after { display: none; }
}
@media (max-width: 540px) {
  .nav-inner { padding: .55rem .85rem; }
  .nav-logo-mark { width: 34px; height: 34px; }
  .nav-logo-mark img { width: 22px; height: 22px; }
}

/* ──────── HERO ──────── */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 6rem;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(107, 39, 153, .25), transparent 70%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 39, 153, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 39, 153, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 70%);
  animation: hero-grid-drift 30s linear infinite;
}
@keyframes hero-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 84px 0, 0 84px; }
}

/* Floating Minecraft-style blocks (decorative) — colori spezzati: 2 viola, 1 verde smeraldo, 1 arancio */
.hero-block {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 4px; /* meno smooth, più "blocco" */
  background: linear-gradient(135deg, rgba(138, 59, 196, .35), rgba(107, 39, 153, .1));
  border: 1px solid rgba(138, 59, 196, .35);
  opacity: .55;
  animation: hero-float 12s ease-in-out infinite;
}
.hero-block::before {
  content: ""; position: absolute; inset: 28%;
  background: rgba(138, 59, 196, .35);
  border-radius: 2px;
}
.hero-block--1 { width: 56px; height: 56px; top: 18%; left: 6%;   animation-delay: 0s;   transform: rotate(-14deg); }
.hero-block--2 {
  width: 38px; height: 38px; top: 60%; left: 4%; animation-delay: -4s; transform: rotate(20deg); opacity: .55;
  background: linear-gradient(135deg, rgba(92, 219, 149, .4), rgba(47, 168, 111, .12));
  border-color: rgba(92, 219, 149, .4);
}
.hero-block--2::before { background: rgba(92, 219, 149, .4); }
.hero-block--3 { width: 64px; height: 64px; top: 25%; right: 5%; animation-delay: -2s; transform: rotate(18deg); }
.hero-block--4 {
  width: 42px; height: 42px; top: 70%; right: 8%; animation-delay: -7s; transform: rotate(-25deg);
  background: linear-gradient(135deg, rgba(255, 122, 61, .35), rgba(255, 122, 61, .08));
  border-color: rgba(255, 122, 61, .4);
}
.hero-block--4::before { background: rgba(255, 122, 61, .4); }
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

/* Hero video background — attivo solo se la <video> esiste */
.hero--has-video { background: var(--bg); }
.hero--has-video::before { opacity: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
/* Nascondi qualsiasi controllo WebKit/Chrome che possa apparire sopra il video */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-fullscreen-button,
.hero-video::-webkit-media-controls-overlay-enclosure { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.hero-video::-internal-media-controls-overlay-cast-button { display: none !important; }

/* Il video resta visibile anche su finestre strette e mobile.
   I controlli/play-button di iOS sono già soppressi sopra: nel peggiore dei casi
   (autoplay bloccato) si vede il primo frame statico, mai il pulsante play. */
/* Scudo trasparente sopra il video: intercetta l'hover così Opera/Chromium non rileva il <video>
   come "main content video" e non mostra il pulsante "Detach video". */
.hero-video-shield {
  position: absolute; inset: 0; z-index: 0; pointer-events: auto;
  background: transparent; cursor: default;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(107, 39, 153, .35), transparent 70%),
    linear-gradient(180deg, rgba(16, 16, 16, .55) 0%, rgba(16, 16, 16, .85) 70%, var(--bg) 100%);
}
.hero--has-video > .container { position: relative; z-index: 1; }
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hero-top .status-box { flex: 0 1 360px; max-width: 420px; min-width: 0; }
.hero-top .status-box--server  { margin-right: auto; }
.hero-top .status-box--discord { margin-left: auto; }

/* ── Hero row: status-box giganti ai lati del logo ── */
.hero-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 640px) 1fr;
  align-items: center; gap: 1.5rem;
  position: relative; z-index: 1;
  margin-bottom: 1rem;
}
.hero-row .hero-center { margin: 0; }
.hero-row .status-box--side {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 1.25rem .25rem;
  gap: 1.1rem;
  border-radius: 0;
  min-width: 0;
  align-self: center;
}
.hero-row .status-box--side::before,
.hero-row .status-box--side::after { display: none !important; }
.hero-row .status-box--side:hover,
.hero-row .status-box--side:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none;
}
.hero-row .status-box--server.status-box--side  { justify-self: end;   text-align: right; flex-direction: row-reverse; }
.hero-row .status-box--discord.status-box--side { justify-self: start; text-align: left; }

/* Icona molto più grande, senza alone radiale */
.hero-row .status-box--side .status-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: none;
  border: none;
  box-shadow: none;
  filter: none;
  transition: transform .3s ease;
}
.hero-row .status-box--side .status-icon svg {
  width: 44px; height: 44px;
  filter: none;
}
.hero-row .status-box--side:hover .status-icon {
  transform: scale(1.08);
  filter: none;
}

/* Testi grandi */
.hero-row .status-box--side .status-text { gap: .15rem; }
.hero-row .status-box--side .status-text .top {
  font-size: .78rem; letter-spacing: .14em; gap: .45rem;
  justify-content: flex-start;
}
.hero-row .status-box--side .status-text .top .dot { width: 9px; height: 9px; }
.hero-row .status-box--side .status-text .bottom {
  font-size: 1.6rem; font-weight: 800; letter-spacing: .005em;
  line-height: 1.15; margin-top: .35rem;
  background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--sb-accent-light) 55%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-row .status-box--side .status-text .sub {
  font-size: .82rem; margin-top: .5rem;
}
.hero-row .status-box--server.status-box--side .status-text .top { justify-content: flex-end; }
.hero-row .status-box--server.status-box--side .status-text .sub { justify-content: flex-end; }

/* Nascondi la "pillola azione" — il box ora è tutto azione */
.hero-row .status-box--side .status-action { display: none; }

/* Tablet medio: schiaccia le colonne laterali */
@media (max-width: 1180px) {
  .hero-row { grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: 1rem; }
  .hero-row .status-box--side .status-text .bottom { font-size: 1.35rem; }
  .hero-row .status-box--side .status-icon { width: 64px; height: 64px; border-radius: 12px; }
  .hero-row .status-box--side .status-icon svg { width: 34px; height: 34px; }
}

/* Tablet stretto / mobile: i box vanno sotto il logo, layout a colonna */
@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 1.25rem; margin-bottom: 1.5rem;
  }
  .hero-row .hero-center { order: -1; }
  .hero-row .status-box--side {
    justify-self: center !important;
    text-align: left !important;
    flex-direction: row !important;
    padding: .9rem 1rem;
    gap: .9rem;
    width: 100%; max-width: 480px;
    /* Su mobile riportiamo lo sfondo "card" per leggibilità */
    background: linear-gradient(135deg, rgba(24, 24, 24, .85) 0%, rgba(20, 20, 24, .78) 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px rgba(0, 0, 0, .25) !important;
  }
  .hero-row .status-box--server.status-box--side .status-text .top,
  .hero-row .status-box--server.status-box--side .status-text .sub { justify-content: flex-start; }
  .hero-row .status-box--side .status-icon { width: 56px; height: 56px; border-radius: 50%; }
  .hero-row .status-box--side .status-icon svg { width: 28px; height: 28px; }
  .hero-row .status-box--side .status-text .top { font-size: .68rem; }
  .hero-row .status-box--side .status-text .bottom { font-size: 1rem; }
  .hero-row .status-box--side .status-text .sub { font-size: .72rem; margin-top: .25rem; }
  .hero-row .status-box--side .status-action { display: flex; }
}

.status-box {
  /* Server box → verde Minecraft (smeraldo). Spezza il viola onnipresente. */
  --sb-accent: var(--emerald-dark);
  --sb-accent-light: var(--emerald);
  --sb-accent-soft: var(--emerald-soft);
  --sb-accent-glow: rgba(92, 219, 149, .35);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg, rgba(24, 24, 24, .85) 0%, rgba(20, 20, 24, .78) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .95rem 1.1rem; min-width: 0; cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px rgba(0, 0, 0, .25);
  isolation: isolate;
}
.status-box::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--sb-accent-soft), transparent 60%);
  transition: opacity .25s ease;
}
.status-box::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--sb-accent-light), var(--sb-accent));
  opacity: 0; transition: opacity .25s ease;
}
.status-box:hover,
.status-box:focus-visible {
  border-color: var(--sb-accent);
  transform: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 14px 32px rgba(0, 0, 0, .4), 0 0 0 1px var(--sb-accent-glow);
  background: linear-gradient(135deg, rgba(28, 28, 32, .92) 0%, rgba(22, 22, 28, .9) 100%);
  outline: none;
}
.status-box:hover::before,
.status-box:focus-visible::before { opacity: 1; }
.status-box:hover::after,
.status-box:focus-visible::after { opacity: 1; }
.status-box:active { transform: none; }

.status-box--discord {
  --sb-accent: #5865f2;
  --sb-accent-light: #7983f5;
  --sb-accent-soft: rgba(88, 101, 242, .18);
  --sb-accent-glow: rgba(88, 101, 242, .35);
}

.status-icon {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  background: none;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--sb-accent-light); flex-shrink: 0;
  filter: none;
  transition: transform .25s ease;
}
.status-icon svg {
  width: 26px; height: 26px; fill: currentColor;
  filter: none;
}
.status-box:hover .status-icon,
.status-box:focus-visible .status-icon {
  transform: scale(1.07);
  filter: none;
}

.status-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1 1 auto; }
.status-text .top {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted-2); font-weight: 700;
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.status-text .top .top-label { color: var(--text); }
.status-text .top .top-sep { color: var(--text-muted-2); opacity: .6; }
.status-text .top .top-meta { color: var(--text-muted); font-weight: 600; }
.status-text .top .top-meta [data-live-status] { color: var(--sb-accent-light); }
.status-text .top .top-meta-sep { color: var(--text-muted-2); margin: 0 .15em; }
.status-text .top .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: .15rem;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 0 10px rgba(34, 197, 94, .65);
  animation: pulse 2s infinite;
}
.status-text .top.offline .dot {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .18), 0 0 10px rgba(239, 68, 68, .6);
}
.status-text .bottom {
  font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: .01em;
  margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.status-text .sub {
  font-size: .72rem; color: var(--text-muted); margin-top: .25rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.status-text .sub i { font-size: .68rem; color: var(--sb-accent-light); }

.status-action {
  position: relative; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}
.status-action-icon { position: absolute; transition: opacity .2s ease, transform .25s ease; }
.status-action-icon--success { opacity: 0; transform: scale(.7); color: var(--ok); }
.status-box:hover .status-action,
.status-box:focus-visible .status-action {
  color: #fff;
  background: color-mix(in srgb, var(--sb-accent) 24%, transparent);
  border-color: color-mix(in srgb, var(--sb-accent) 55%, transparent);
  transform: translateX(2px);
}
.status-box.is-copied .status-action {
  color: var(--ok);
  background: rgba(34, 197, 94, .15);
  border-color: rgba(34, 197, 94, .45);
}
.status-box.is-copied .status-action-icon--default { opacity: 0; transform: scale(.7); }
.status-box.is-copied .status-action-icon--success { opacity: 1; transform: scale(1); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Hero content */
.hero-center { text-align: center; position: relative; z-index: 1; }
.hero-logo { width: 160px; height: 160px; margin: 0 auto 1.5rem; filter: drop-shadow(0 0 30px rgba(107, 39, 153, .5)); }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--emerald);
  font-weight: 500;
  margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero-eyebrow::before {
  content: '>'; color: var(--emerald-dark);
  font-family: var(--font-mono); font-weight: 700;
  animation: hero-eyebrow-blink 1.4s steps(2) infinite;
}
@keyframes hero-eyebrow-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--p-color-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 2.25rem; font-weight: 400; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.65rem; border-radius: 8px; font-weight: 600;
  font-size: .9rem; letter-spacing: .02em; transition: all .2s;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--p-color); color: #fff; box-shadow: 0 4px 20px rgba(107, 39, 153, .4); }
.btn-primary:hover { background: var(--p-color-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107, 39, 153, .5); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(24, 24, 24, .6); }
.btn-ghost:hover { border-color: var(--p-color); background: rgba(107, 39, 153, .1); color: #fff; }
.btn-block { width: 100%; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border-light); position: relative; z-index: 1; }
.stats.stats--two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
.stat { text-align: center; padding: 1rem; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .35rem; }
.stat-num .accent { background: linear-gradient(135deg, var(--p-accent), var(--p-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-num .accent--green {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: .72rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }

/* Sections */
.section { padding: 5rem 0; position: relative; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-eyebrow { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--p-color-light); font-weight: 600; margin-bottom: .85rem; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin-bottom: .85rem; }
.section-title .accent { background: linear-gradient(135deg, var(--p-accent), var(--p-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { font-size: .95rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Sitelinks (Esplora il sito) — versione minimal */
.sitelinks-section { padding-top: 1rem; padding-bottom: 4rem; }
.sitelinks-head { text-align: center; margin-bottom: 2rem; }
.sitelinks-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0 0 .35rem; color: #fff; letter-spacing: -.01em; }
.sitelinks-head p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.sitelinks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .85rem; }
.sitelink {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, background .25s, box-shadow .25s;
}
.sitelink::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(107, 39, 153, .25), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.sitelink:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(107, 39, 153, .1), rgba(255, 255, 255, .02));
  border-color: rgba(138, 59, 196, .5);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(138, 59, 196, .15);
}
.sitelink:hover::before { opacity: 1; }
.sitelink-iconbox {
  width: 44px; height: 44px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(107, 39, 153, .22), rgba(107, 39, 153, .06));
  border: 1px solid rgba(138, 59, 196, .35);
  color: var(--p-color-light);
  flex-shrink: 0;
  transition: transform .25s ease, color .2s;
  position: relative;
}
.sitelink:hover .sitelink-iconbox {
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.sitelink > i { font-size: 1.1rem; color: var(--p-color-light); width: 28px; text-align: center; flex-shrink: 0; }
.sitelink-body { min-width: 0; }
.sitelink-title { font-weight: 700; color: #fff; font-size: .95rem; }
.sitelink-desc { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.sitelink-arrow {
  margin-left: auto;
  color: var(--text-muted-2);
  font-size: .85rem;
  transition: transform .25s ease, color .2s;
}
.sitelink:hover .sitelink-arrow { color: var(--p-color-light); transform: translateX(5px); }

/* Portal cards — color-coded per type */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.portal-card {
  --card-color: var(--p-color-light);
  position: relative;
  background: linear-gradient(180deg, rgba(20,14,30,.85) 0%, rgba(14,10,24,.95) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px; padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden; transition: all .25s ease;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  min-height: 220px;
}
.portal-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-color), transparent);
  opacity: .65; transition: opacity .25s;
}
.portal-card:hover { border-color: color-mix(in srgb, var(--card-color) 60%, transparent); box-shadow: 0 6px 18px color-mix(in srgb, var(--card-color) 12%, transparent); color: #fff; }
.portal-card:hover::after { opacity: 1; }
.portal-card-glow {
  position: absolute; top: -40%; right: -30%; width: 280px; height: 280px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-color) 20%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.portal-card:hover .portal-card-glow { opacity: 1; }
.portal-icon {
  width: 56px; height: 56px; border-radius: 10px; margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--card-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--card-color); font-size: 1.5rem; position: relative;
  transition: all .25s;
}
.portal-card:hover .portal-icon {
  background: color-mix(in srgb, var(--card-color) 22%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 55%, transparent);
  transform: scale(1.05);
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-color) 35%, transparent);
}
.portal-card-body { flex: 1; position: relative; }
.portal-card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .45rem; letter-spacing: -.01em; color: #fff; }
.portal-card-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.portal-card-arrow {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: inline-flex; align-items: center; justify-content: space-between; gap: .35rem;
  font-size: .75rem; color: var(--card-color); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  position: relative;
}
.portal-card-arrow svg { width: 14px; height: 14px; transition: transform .2s; }
.portal-card:hover .portal-card-arrow svg { transform: translateX(4px); }

/* Network cards */
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.net-card {
  background: var(--bg-2); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 2rem; cursor: pointer;
  position: relative; overflow: hidden; transition: all .25s;
  text-decoration: none; color: var(--text); display: block;
}
.net-card:hover { border-color: var(--border); box-shadow: 0 4px 14px rgba(107, 39, 153, .1); color: #fff; }
.net-card-glow {
  position: absolute; top: -50%; right: -30%; width: 60%; height: 200%;
  background: radial-gradient(circle, var(--card-glow, rgba(107, 39, 153, .18)), transparent 60%);
  opacity: .5; pointer-events: none;
}
.net-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--card-icon-bg, rgba(107, 39, 153, .18));
  color: var(--card-icon-c, var(--p-color-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; position: relative;
}
.net-icon svg { width: 24px; height: 24px; }
.net-host { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: .72rem; color: var(--text-muted-2); margin-bottom: .5rem; letter-spacing: .04em; }
.net-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; letter-spacing: .01em; position: relative; }
.net-desc { font-size: .86rem; color: var(--text-muted); line-height: 1.65; position: relative; margin-bottom: 1.25rem; }
.net-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--p-color-light); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; position: relative; }
.net-cta svg { width: 13px; height: 13px; transition: transform .2s; }
.net-card:hover .net-cta svg { transform: translateX(3px); }

/* About */
.about-section { background: transparent; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; }
.about-text h2 .accent { background: linear-gradient(135deg, var(--p-accent), var(--p-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-text .lead { font-size: 1.05rem; color: #fff; font-weight: 500; line-height: 1.6; margin-bottom: 1.5rem; }
.about-features { list-style: none; margin-top: 1.5rem; }
.about-features li { display: flex; align-items: flex-start; gap: .85rem; padding: .65rem 0; color: var(--text-muted); font-size: .92rem; }
.about-features li i { color: var(--p-color-light); margin-top: .2rem; flex-shrink: 0; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.about-stat { padding: 1.25rem 1rem; text-align: center; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.about-stat:nth-child(2n) { border-right: none; }
.about-stat:nth-last-child(-n+2) { border-bottom: none; }
.about-stat-num { font-size: 2rem; font-weight: 700; color: var(--p-color-light); line-height: 1; margin-bottom: .35rem; }
.about-stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* CTA strip */
.services-strip { background: linear-gradient(135deg, rgba(107, 39, 153, .12), transparent); border: 1px solid var(--border); border-radius: 12px; padding: 3rem 2.5rem; text-align: center; }
.services-strip h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: .75rem; }
.services-strip p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; }
.services-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; }

/* ──────── Footer (redesign) ──────── */
.site-footer {
  position: relative;
  padding: 4.5rem 0 1.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 39, 153, .12) 0%, transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border-light);
  margin-top: 5rem;
  color: var(--text-muted);
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 39, 153, .55), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Brand column */
.footer-brand .footer-logo {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: #fff;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .04em;
  margin-bottom: 1.15rem;
}
.footer-brand .footer-logo img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(107, 39, 153, .55)); }
.footer-brand .footer-logo span strong { background: linear-gradient(135deg, var(--p-color-light), #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-desc {
  color: var(--text-muted);
  font-size: .9rem; line-height: 1.65;
  max-width: 380px;
  margin: 0 0 1.5rem;
}
.footer-socials { display: flex; gap: .55rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem;
  transition: transform .18s ease, color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.footer-socials a:hover {
  color: #fff;
  background: var(--p-color);
  border-color: var(--p-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 39, 153, .4);
}

/* Link rapidi column */
.footer-links h4,
.footer-support h4 {
  color: #fff; font-size: .95rem; font-weight: 700;
  letter-spacing: .02em; margin: 0 0 1.15rem;
}
.footer-links ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.footer-links a {
  color: var(--text-muted); font-size: .92rem;
  text-decoration: none;
  transition: color .15s, transform .15s, padding-left .15s;
  display: inline-block;
}
.footer-links a:hover {
  color: #fff;
  padding-left: .35rem;
}

/* Supportaci column */
.footer-support p {
  color: var(--text-muted); font-size: .92rem;
  line-height: 1.55; margin: 0 0 1.15rem;
}
.footer-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .65rem; width: 100%;
  padding: .95rem 1.5rem;
  background: linear-gradient(135deg, var(--p-color), #4f1d72);
  color: #fff; font-weight: 700; font-size: .95rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(107, 39, 153, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.footer-cta i { font-size: 1.05rem; }
.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(107, 39, 153, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
  filter: brightness(1.05);
  color: #fff;
}
.footer-credit {
  margin-top: 1.1rem;
  text-align: right;
  font-size: .78rem;
  color: var(--text-muted-2);
  letter-spacing: .02em;
}

/* Bottom row */
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  color: var(--text-muted-2);
  font-size: .78rem;
}
.footer-copy { color: var(--text-muted-2); }
.footer-legal {
  display: flex; gap: 1.5rem; justify-content: flex-end; flex-wrap: wrap;
}
.footer-legal a {
  color: var(--text-muted); text-decoration: none;
  font-size: .82rem;
  transition: color .15s;
  white-space: nowrap;
}
.footer-legal a:hover { color: #fff; }

/* Flash toast */
.flash-stack { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .55rem; z-index: 9999; pointer-events: none; max-width: 92vw; }
.flash { pointer-events: auto; background: var(--bg-2); border: 1px solid var(--border-light); color: #fff; padding: .75rem 1.25rem; border-radius: 10px; font-size: .85rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: flex; align-items: center; gap: .65rem; transition: opacity .3s, transform .3s; }
.flash i { font-size: 1rem; }
.flash.success { border-color: rgba(34, 197, 94, .35); }
.flash.success i { color: var(--ok); }
.flash.error { border-color: rgba(239, 68, 68, .35); }
.flash.error i { color: var(--bad); }
.flash.info { border-color: var(--border); }
.flash.info i { color: var(--p-color-light); }
.flash.fade-out { opacity: 0; transform: translateY(-8px); }

/* Auth pages */
/* ════════════════════════════════════════════════════════════
   AUTH PAGES (login / register / 2fa / forgot / reset)
   ════════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  padding: 3rem 1.25rem;
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Soft radial accents */
.auth-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 500px at 80% -10%, rgba(107, 39, 153, .25), transparent 65%),
    radial-gradient(550px 400px at 15% 110%, rgba(168, 85, 247, .14), transparent 65%);
}
/* Minecraft-style block grid pattern, animated */
.auth-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(107, 39, 153, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 39, 153, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  animation: auth-grid-pan 22s linear infinite;
}
@keyframes auth-grid-pan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

/* Floating decorative blocks */
.auth-block {
  position: absolute; z-index: 0; pointer-events: none;
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(107, 39, 153, .25), rgba(107, 39, 153, .05));
  border: 1px solid rgba(138, 59, 196, .35);
  opacity: .55;
  animation: auth-float 14s ease-in-out infinite;
}
.auth-block::before {
  content: ""; position: absolute; inset: 30%;
  border-radius: 4px;
  background: rgba(138, 59, 196, .25);
}
.auth-block--1 { top: 12%;  left: 8%;   animation-delay: 0s;   transform: rotate(-12deg); }
.auth-block--2 { top: 22%;  right: 9%;  animation-delay: -3s;  transform: rotate(18deg); width: 40px; height: 40px; }
.auth-block--3 { bottom: 16%; left: 12%; animation-delay: -7s; transform: rotate(28deg); width: 36px; height: 36px; }
.auth-block--4 { bottom: 24%; right: 14%; animation-delay: -10s; width: 52px; height: 52px; transform: rotate(-22deg); }
@keyframes auth-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}

/* Auth card */
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(28, 18, 38, .85), rgba(20, 12, 28, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(107, 39, 153, .12),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: auth-card-in .6s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
.auth-card::before {
  /* glow ring sottile in alto */
  content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-color-light), transparent);
  opacity: .8;
}

.auth-card .logo-mini {
  display: flex; justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-card .logo-mini img {
  width: 64px; height: 64px;
  filter: drop-shadow(0 0 18px rgba(107, 39, 153, .5));
}
.auth-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #fff 0%, #d8c0f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 1.85rem;
}
.auth-card .alt {
  text-align: center; margin-top: 1.5rem;
  color: var(--text-muted); font-size: .85rem;
}
.auth-card .alt a {
  font-weight: 600; color: var(--p-color-light);
  position: relative;
}
.auth-card .alt a:hover { color: #fff; }
.auth-card .alt a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: currentColor; opacity: 0;
  transform: scaleX(.5); transform-origin: center;
  transition: opacity .2s, transform .25s;
}
.auth-card .alt a:hover::after { opacity: 1; transform: scaleX(1); }

/* Form fields */
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.field .input {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  padding: .8rem 1rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative;
}
.field .input:hover { border-color: rgba(255, 255, 255, .15); }
.field .input:focus-within {
  border-color: var(--p-color-light);
  background: rgba(107, 39, 153, .08);
  box-shadow: 0 0 0 3px rgba(107, 39, 153, .15);
}
.field .input i,
.field .input .svg-icon {
  color: var(--text-muted-2); width: 18px; height: 18px;
  text-align: center; flex-shrink: 0;
  transition: color .2s;
}
.field .input:focus-within i,
.field .input:focus-within .svg-icon { color: var(--p-color-light); }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=number] {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font-size: .95rem; padding: 0;
  letter-spacing: .01em;
}
.field input::placeholder { color: var(--text-muted-2); }
.field .hint {
  display: block; font-size: .76rem;
  color: var(--text-muted-2); margin-top: .45rem;
}
.field-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}

/* Custom checkbox */
.checkbox {
  display: inline-flex; align-items: center; gap: .6rem;
  cursor: pointer;
  font-size: .85rem; color: var(--text-muted);
  user-select: none;
}
.checkbox input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  position: relative;
  transition: all .2s;
  flex-shrink: 0;
}
.checkbox input:hover { border-color: var(--p-color-light); }
.checkbox input:checked {
  background: var(--p-color);
  border-color: var(--p-color);
}
.checkbox input:checked::after {
  content: ""; position: absolute;
  left: 5px; top: 1.5px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: check-pop .2s ease;
}
@keyframes check-pop {
  from { transform: rotate(45deg) scale(0); }
  to   { transform: rotate(45deg) scale(1); }
}
.checkbox a { color: var(--p-color-light); }

.error-text {
  color: #fca5a5; font-size: .8rem;
  margin-top: .5rem;
  display: flex; align-items: center; gap: .4rem;
  animation: err-shake .35s ease;
}
@keyframes err-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

/* ════════════════════════════════════════════════════════════
   PLACEHOLDER / COMING SOON
   ════════════════════════════════════════════════════════════ */
.coming-soon {
  padding: 6rem 0; text-align: center;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.coming-soon::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 450px at 50% 0%, rgba(107, 39, 153, .2), transparent 70%),
    radial-gradient(500px 350px at 50% 100%, rgba(168, 85, 247, .1), transparent 70%);
}
.coming-soon::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(107, 39, 153, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 39, 153, .04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.coming-soon > .container { position: relative; z-index: 1; }
.coming-soon .icon-big {
  width: 110px; height: 110px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(107, 39, 153, .28), rgba(107, 39, 153, .08));
  border: 1px solid rgba(138, 59, 196, .4);
  color: var(--p-color-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 1.75rem;
  position: relative;
  box-shadow: 0 8px 22px rgba(107, 39, 153, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.coming-soon h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: .9rem;
  position: relative;
  background: linear-gradient(135deg, #fff, #d8c0f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.coming-soon p {
  color: var(--text-muted);
  max-width: 540px; margin: 0 auto 2rem;
  position: relative; font-size: 1rem; line-height: 1.65;
}
.coming-soon .badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .95rem;
  border: 1px solid rgba(138, 59, 196, .4);
  border-radius: 999px;
  background: rgba(107, 39, 153, .12);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--p-color-light); font-weight: 700;
  margin-bottom: 1.25rem; position: relative;
}
.coming-soon .badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-color-light);
  box-shadow: 0 0 6px var(--p-color-light);
}

/* ════════════════════════════════════════════════════════════
   ERROR PAGES (404 / 403 / 500 / maintenance)
   ════════════════════════════════════════════════════════════ */
.error-page {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative; overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(107, 39, 153, .2), transparent 70%),
    var(--bg);
}
.error-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(107, 39, 153, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 39, 153, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: hero-grid-drift 30s linear infinite;
}
.error-page > * { position: relative; z-index: 1; }
.error-page .code {
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--p-accent), var(--p-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
  filter: drop-shadow(0 0 24px rgba(138, 59, 196, .25));
}
.error-page h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: .85rem;
  background: linear-gradient(135deg, #fff, #d8c0f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1rem; line-height: 1.65;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 900px) {
  .hero-top { flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
  .hero-top .status-box { flex: 1 1 auto; max-width: none; width: 100%; margin: 0; padding: .9rem 1rem; gap: .8rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .net-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-credit { text-align: left; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: .9rem; }
  .footer-legal { justify-content: center; }
  .hero-logo { width: 120px; height: 120px; }
}
@media (max-width: 600px) {
  .portal-grid { grid-template-columns: 1fr; }
  .footer-legal { gap: 1rem; }
  .footer-desc { max-width: none; }
  .section { padding: 3rem 0; }
  .auth-card { padding: 2rem 1.5rem; }
  .services-strip { padding: 2.25rem 1.5rem; }

  /* Hero status boxes — compatte ma leggibili su mobile */
  .hero-top { gap: .65rem; }
  .status-box { padding: .8rem .9rem; gap: .75rem; border-radius: 12px; }
  .status-icon { width: 48px; height: 48px; border-radius: 50%; }
  .status-icon svg { width: 24px; height: 24px; }
  .status-text .top { font-size: .65rem; gap: .3rem; }
  .status-text .bottom { font-size: .95rem; }
  .status-text .sub { font-size: .68rem; }
  .status-action { width: 32px; height: 32px; border-radius: 9px; }
  .status-action-icon { font-size: .8rem; }
}
@media (max-width: 380px) {
  /* Smartphone piccoli — riduci ulteriormente per non sforare */
  .status-box { padding: .7rem .8rem; gap: .65rem; }
  .status-icon { width: 42px; height: 42px; }
  .status-icon svg { width: 22px; height: 22px; }
  .status-text .top .top-sep,
  .status-text .top .top-meta { display: none; }
  .status-text .bottom { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ──────── PAGE HERO (per pagine interne tipo forum) ──────── */
.page-hero { padding: 3rem 0 1.5rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 350px at 70% 0%, rgba(107, 39, 153, .2), transparent 70%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.page-hero > .container { position: relative; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.page-title { font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; letter-spacing: -.01em; margin: .35rem 0 .6rem; }
.page-title i { color: var(--p-color-light); margin-right: .25rem; }
.page-desc { color: var(--text-muted); font-size: .95rem; max-width: 640px; line-height: 1.7; }
.page-hero-stats { display: flex; gap: 1.25rem; }
.page-hero-stats > div { background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; min-width: 100px; text-align: center; }
.page-hero-stats .big { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1; }
.page-hero-stats .lbl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted-2); margin-top: .35rem; font-weight: 600; }

/* Staff page (/staff) — minimal */
.staff-page { padding: 4.5rem 0 5rem; }
.staff-empty { color: var(--text-muted); padding: 3rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.staff-empty i { font-size: 1.6rem; opacity: .4; }

/* Hero */
.staff-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem; padding: 2rem 2.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
}
.staff-hero-glow {
  position: absolute; top: -60%; right: -10%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,59,196,.32), transparent 70%);
  pointer-events: none;
}
.staff-hero-content { position: relative; z-index: 1; }
.staff-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: var(--p-accent); margin-bottom: .55rem;
}
.staff-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); line-height: .95; margin: 0 0 .35rem;
  color: #fff; letter-spacing: .01em;
}
.staff-hero p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.staff-hero-count {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 1.4rem; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
}
.staff-hero-count-n { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: #fff; }
.staff-hero-count-l { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted-2); margin-top: .25rem; }

/* Section */
.staff-section { margin-bottom: 2.5rem; }
.staff-section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: .92rem; font-weight: 700; margin: 0 0 1.1rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--border-light);
}
.staff-section-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--g-color, var(--p-accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-color, var(--p-accent)) 18%, transparent);
}
.staff-section-name { color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.staff-section-count {
  margin-left: auto; font-size: .75rem; font-weight: 700;
  color: var(--text-muted-2); background: rgba(255,255,255,.04);
  border-radius: 999px; padding: .15rem .6rem;
}

/* Cards */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: .8rem; }
.staff-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem; border-radius: 12px;
  text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-light);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.staff-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--g-color, var(--p-accent)); opacity: 0; transition: opacity .18s ease;
}
.staff-card:hover {
  transform: translateY(-2px); color: #fff;
  background: var(--bg-3); border-color: color-mix(in srgb, var(--g-color, var(--p-accent)) 45%, var(--border-light));
}
.staff-card:hover::before { opacity: 1; }
.staff-card-avatar {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px;
  padding: 2px; background: var(--bg-3);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g-color, var(--p-accent)) 55%, transparent);
}
.staff-card-avatar img { width: 100%; height: 100%; border-radius: 8px; image-rendering: pixelated; display: block; }
.staff-card-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.staff-card-name { font-size: .98rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-card-sub {
  font-size: .76rem; color: var(--text-muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: .35rem;
}
.staff-card-sub i { font-size: .8em; opacity: .8; }

@media (max-width: 560px) {
  .staff-hero { padding: 1.5rem 1.4rem; }
  .staff-grid { grid-template-columns: 1fr; }
}

/* Ban kind pill (Ban/Mute/Kick/Warn badges in /bans table) */
.ban-kind-pill { display: inline-block; padding: .2rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kind-color, #fff); background: color-mix(in srgb, var(--kind-color, #fff) 12%, transparent); border: 1px solid color-mix(in srgb, var(--kind-color, #fff) 30%, transparent); }

/* Ban player profile card (LiteBans search) */
.ban-player-card { background: linear-gradient(180deg, rgba(20,14,30,.7) 0%, rgba(14,10,24,.85) 100%); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; }
.ban-player-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.ban-player-avatar { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--border-light); image-rendering: pixelated; }
.ban-player-name { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1.1; }
.ban-player-uuid { font-size: .78rem; color: var(--text-muted-2); margin-top: .25rem; }
.ban-player-uuid code { background: none; padding: 0; }
.ban-player-status { margin-top: .65rem; }
.ban-status { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
.ban-status--banned { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248,113,113,.3); }
.ban-status--muted  { background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.ban-status--clean  { background: rgba(74, 222, 128, .12); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.ban-player-stats { display: flex; gap: .85rem; }
.ban-player-stats > div { background: rgba(0,0,0,.25); border: 1px solid var(--border-light); border-radius: 10px; padding: .85rem 1rem; min-width: 70px; text-align: center; }
.ban-player-stats .big { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.ban-player-stats .lbl { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted-2); margin-top: .4rem; font-weight: 600; }
.ban-active-banner { margin-top: 1.5rem; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248,113,113,.25); border-radius: 12px; padding: 1rem 1.25rem; }
.ban-active-banner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.ban-active-banner-row > div { display: flex; flex-direction: column; gap: .25rem; }
.ban-active-banner-row .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted-2); font-weight: 600; }
.ban-active-banner-row .val { color: #fff; font-size: .92rem; font-weight: 500; }
.ban-history-block { margin-top: 1.5rem; }
.ban-history-block h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; display: flex; align-items: center; gap: .55rem; }
@media (max-width: 720px) {
  .ban-player-head { grid-template-columns: 1fr; text-align: center; }
  .ban-player-avatar { margin: 0 auto; }
  .ban-player-stats { justify-content: center; flex-wrap: wrap; }
}

.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: .85rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .65em; color: var(--text-muted-2); }
.breadcrumb span { color: #fff; font-weight: 500; }

/* ──────── FORUM ──────── */
.forum-section { padding-top: 1.5rem; }

.forum-list { display: flex; flex-direction: column; gap: .75rem; }
.forum-row {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr 180px 220px; gap: 1.5rem; align-items: center;
  background: linear-gradient(180deg, rgba(28, 18, 38, .55), rgba(20, 12, 28, .75));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 1.15rem 1.3rem;
  text-decoration: none; color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
  overflow: hidden;
}
.forum-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--p-color), var(--p-color-light));
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.forum-row:hover {
  border-color: rgba(138, 59, 196, .45);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(107, 39, 153, .2);
  color: #fff;
}
.forum-row:hover::before { transform: scaleY(1); }
.forum-row-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(107, 39, 153, .25), rgba(107, 39, 153, .08));
  color: var(--p-color-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  border: 1px solid rgba(138, 59, 196, .3);
  transition: transform .25s ease;
}
.forum-row:hover .forum-row-icon {
  transform: rotate(-6deg) scale(1.05);
  color: #fff;
}
.forum-row-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.forum-row-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.forum-row-meta { display: flex; gap: 1.5rem; justify-content: center; }
.forum-row-meta > div { text-align: center; }
.forum-row-meta .n { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1; }
.forum-row-meta .l { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted-2); margin-top: .2rem; }
.forum-row-last { font-size: .78rem; color: var(--text-muted); min-width: 0; overflow: hidden; }
.forum-row-last .last-title { color: #fff; font-weight: 500; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-row-last .last-meta i { margin-right: .25rem; color: var(--text-muted-2); }
.forum-row-last .last-empty { color: var(--text-muted-2); font-style: italic; }

.thread-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2rem; }
.thread-row {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr 160px 160px; gap: 1.25rem; align-items: center;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: .9rem 1.15rem;
  text-decoration: none; color: var(--text);
  transition: transform .22s, border-color .22s, background .22s, padding-left .22s;
}
.thread-row:hover {
  border-color: rgba(138, 59, 196, .45);
  background: linear-gradient(135deg, rgba(107, 39, 153, .08), rgba(255, 255, 255, .015));
  color: #fff;
  padding-left: 1.4rem;
}
.thread-row-avatar img {
  width: 40px; height: 40px; border-radius: 8px;
  image-rendering: pixelated; background: var(--bg);
  transition: transform .25s ease;
}
.thread-row:hover .thread-row-avatar img { transform: scale(1.08); }
.thread-row-title { font-size: .98rem; font-weight: 600; color: #fff; margin-bottom: .25rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.thread-row-title i.fa-thumbtack { color: var(--p-color-light); font-size: .82em; }
.thread-row-title i.fa-lock { color: #f59e0b; font-size: .82em; }
.thread-row-sub { font-size: .76rem; color: var(--text-muted-2); display: flex; gap: 1rem; flex-wrap: wrap; }
.thread-row-sub i { margin-right: .25rem; }
.thread-row-stats { display: flex; gap: 1.25rem; justify-content: center; }
.thread-row-stats .n { display: block; font-size: .98rem; font-weight: 700; color: #fff; line-height: 1; text-align: center; }
.thread-row-stats .l { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted-2); margin-top: .15rem; text-align: center; }
.thread-row-last { font-size: .76rem; color: var(--text-muted); }
.thread-row-last .last-by strong { color: #fff; }

.empty-card { background: var(--bg-2); border: 1px dashed var(--border); border-radius: 10px; padding: 3rem 1.5rem; text-align: center; }
.empty-card i { font-size: 2.2rem; color: var(--p-color-light); margin-bottom: 1rem; opacity: .8; }
.empty-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.empty-card p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; align-items: center; margin: 2rem 0; flex-wrap: wrap; }
.page-item {
  min-width: 38px; height: 38px; padding: 0 .85rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border-light); color: var(--text-muted);
  font-size: .85rem; font-weight: 600; transition: all .15s;
}
.page-item:hover { color: #fff; border-color: var(--p-color); }
.page-item.active { background: var(--p-color); border-color: var(--p-color); color: #fff; }
.page-item.disabled { opacity: .35; pointer-events: none; }
.page-gap { color: var(--text-muted-2); padding: 0 .35rem; }

/* Posts */
.post {
  display: grid; grid-template-columns: 180px 1fr; gap: 0;
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 12px;
  margin-bottom: 1rem; overflow: hidden;
}
.post.post-op { border-color: var(--border); box-shadow: 0 0 0 1px rgba(107, 39, 153, .12) inset; }
.post-side {
  background: var(--bg); padding: 1.5rem 1rem; text-align: center;
  border-right: 1px solid var(--border-light);
}
.post-avatar { width: 72px; height: 72px; border-radius: 12px; image-rendering: pixelated; background: var(--bg-2); margin-bottom: .85rem; }
.post-author { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: .4rem; word-break: break-word; }
.post-role { display: inline-block; font-size: .65rem; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.role-user    { background: rgba(160, 160, 160, .15); color: var(--text-muted); border: 1px solid rgba(160, 160, 160, .2); }
.role-vip     { background: rgba(245, 158, 11, .15);  color: #fbbf24; border: 1px solid rgba(245, 158, 11, .25); }
.role-staff   { background: rgba(34, 197, 94, .15);   color: #4ade80; border: 1px solid rgba(34, 197, 94, .25); }
.role-admin   { background: rgba(239, 68, 68, .15);   color: #f87171; border: 1px solid rgba(239, 68, 68, .25); }
.role-founder { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(168,85,247,.18)); color: #fde68a; border: 1px solid rgba(251, 191, 36, .45); text-shadow: 0 0 8px rgba(251,191,36,.35); }
.post-meta-side { font-size: .7rem; color: var(--text-muted-2); margin-top: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.post-meta-side i { margin-right: .25rem; }
.post-body { padding: 1.5rem 1.75rem; min-width: 0; }
.post-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-muted-2); margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border-light); }
.post-meta i { margin-right: .35rem; }
.post-date { margin-left: auto; }
.post-content { color: #e5e5e5; line-height: 1.75; font-size: .95rem; word-wrap: break-word; overflow-wrap: anywhere; }
.post-content a { color: var(--p-color-light); text-decoration: underline; text-decoration-color: rgba(107, 39, 153, .4); }
.post-content a:hover { color: #fff; text-decoration-color: #fff; }

/* Reply form / locked banner */
.reply-locked {
  background: var(--bg-2); border: 1px dashed var(--border); border-radius: 12px;
  padding: 1.25rem; text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 1.5rem;
}
.reply-locked a { font-weight: 600; }
.reply-form {
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 1.25rem; margin-top: 1.5rem;
}
.reply-form-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border-light); }
.reply-form-head img { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; }
.reply-form-head strong { color: #fff; font-size: .9rem; }
.reply-form textarea, .card-form textarea {
  width: 100%; min-height: 140px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: .85rem 1rem; color: #fff; font-family: inherit; font-size: .92rem; line-height: 1.65;
  transition: border-color .2s, background .2s;
}
.reply-form textarea:focus, .card-form textarea:focus { outline: none; border-color: var(--p-color); background: rgba(107, 39, 153, .05); }
.reply-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .85rem; flex-wrap: wrap; }
.reply-form-actions .hint { font-size: .72rem; color: var(--text-muted-2); }

/* Form card (new thread) */
.card-form {
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 2rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.form-actions { display: flex; justify-content: flex-end; gap: .85rem; margin-top: .5rem; flex-wrap: wrap; }
.form-actions .btn-ghost { margin-right: auto; }

/* Forum mobile */
@media (max-width: 900px) {
  .forum-row { grid-template-columns: 50px 1fr; gap: 1rem; }
  .forum-row-meta, .forum-row-last { grid-column: 1 / -1; }
  .forum-row-meta { justify-content: flex-start; padding-top: .35rem; border-top: 1px solid var(--border-light); }
  .forum-row-last { padding-top: .5rem; }
  .thread-row { grid-template-columns: 48px 1fr; gap: 1rem; }
  .thread-row-stats, .thread-row-last { grid-column: 1 / -1; }
  .thread-row-stats { justify-content: flex-start; padding-top: .35rem; border-top: 1px solid var(--border-light); }
  .post { grid-template-columns: 1fr; }
  .post-side { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem 1.25rem; border-right: none; border-bottom: 1px solid var(--border-light); }
  .post-avatar { width: 48px; height: 48px; margin-bottom: 0; }
  .post-body { padding: 1.25rem; }
  .post-meta-side { margin-top: 0; margin-left: auto; }
}

/* ──────── Thread head + staff toolbar ──────── */
.thread-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.thread-head .page-title { flex: 1 1 auto; min-width: 0; margin: 0; }
.thread-head .thread-actions { margin-left: auto; flex: 0 0 auto; order: 2; }
.thread-head .staff-toolbar { flex: 0 0 auto; order: 3; }
.staff-toolbar {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 10px; padding: .35rem .55rem;
}
.staff-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #f87171; font-weight: 700; padding: 0 .5rem; }
.staff-label i { margin-right: .3rem; }
.staff-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--bg-2); border: 1px solid var(--border-light); color: var(--text);
  font-size: .76rem; font-weight: 600; padding: .4rem .75rem; border-radius: 6px;
  transition: all .15s; cursor: pointer;
}
.staff-btn:hover { border-color: var(--p-color); background: rgba(107, 39, 153, .12); }

/* ──────── Post actions + edit inline + signature ──────── */
.post-actions { display: flex; gap: .5rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.post-action {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; padding: .4rem .75rem; border-radius: 6px;
  background: transparent; border: 1px solid var(--border-light); color: var(--text-muted);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.post-action:hover { color: #fff; border-color: var(--p-color); background: rgba(107, 39, 153, .1); }
.post-action.danger:hover { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }
.post-action i { font-size: .85em; }
.post-edit-form { margin-top: 1rem; }
.post-edit-form textarea {
  width: 100%; min-height: 140px; resize: vertical;
  background: var(--bg); border: 1px solid var(--p-color); border-radius: 10px;
  padding: .85rem 1rem; color: #fff; font-family: inherit; font-size: .92rem; line-height: 1.65;
}
.post-edit-form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(107, 39, 153, .2); }
.post-edited { color: var(--p-color-light); font-style: italic; font-size: .76rem; }
.post-edited i { margin-right: .25rem; }
.post-signature {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--border-light);
  font-size: .82rem; color: var(--text-muted); font-style: italic; line-height: 1.6;
}

/* Author link */
.post-author { color: #fff !important; text-decoration: none; transition: color .15s; }
.post-author:hover { color: var(--p-color-light) !important; }
.thread-row-sub a { color: var(--text-muted-2); }
.thread-row-sub a:hover { color: #fff; }

/* ──────── Profilo utente ──────── */
.profile-card {
  background: linear-gradient(180deg, rgba(28, 18, 38, .65), rgba(20, 12, 28, .85));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 2.25rem;
  display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.profile-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 300px at 0% 0%,  rgba(107, 39, 153, .22), transparent 65%),
    radial-gradient(450px 280px at 100% 100%, rgba(168, 85, 247, .12), transparent 65%);
}
/* shimmer rimosso → meno effetto "carousel AI" */
.profile-avatar { position: relative; z-index: 1; }
.profile-avatar img {
  width: 150px; height: 150px; border-radius: 12px;
  image-rendering: pixelated; background: var(--bg);
  border: 2px solid rgba(138, 59, 196, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 0 4px rgba(138, 59, 196, .08);
  transition: transform .35s ease;
}
.profile-card:hover .profile-avatar img { transform: rotate(-3deg) scale(1.03); }
.profile-info { position: relative; }
.profile-info .username { font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: .35rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.profile-info .nick { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.profile-info .meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .85rem; color: var(--text-muted); }
.profile-info .meta i { margin-right: .35rem; color: var(--p-color-light); }
.profile-info .meta strong { color: #fff; font-weight: 600; }

.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.profile-block { background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 1.5rem 1.75rem; }
.profile-block h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); margin-bottom: 1.25rem; font-weight: 700; }
.profile-block h3 i { color: var(--p-color-light); margin-right: .35rem; }

.profile-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.profile-stat { background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px; padding: 1rem; text-align: center; }
.profile-stat .n { display: block; font-size: 1.4rem; font-weight: 700; color: var(--p-color-light); line-height: 1; }
.profile-stat .l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted-2); margin-top: .35rem; font-weight: 600; }

.profile-recent { display: flex; flex-direction: column; gap: .5rem; }
.profile-recent-row { display: flex; gap: .85rem; padding: .65rem .85rem; background: var(--bg); border: 1px solid var(--border-light); border-radius: 8px; text-decoration: none; color: var(--text); transition: all .15s; }
.profile-recent-row:hover { border-color: var(--p-color); transform: translateX(2px); color: #fff; }
.profile-recent-row .t { flex: 1; min-width: 0; }
.profile-recent-row .t strong { display: block; font-size: .9rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-recent-row .t span { display: block; font-size: .72rem; color: var(--text-muted-2); margin-top: .15rem; }

/* ──────── Account / UCP ──────── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; padding: 2rem 0; align-items: flex-start; position: relative; transition: grid-template-columns .3s ease; }
.account-layout.is-collapsed { grid-template-columns: 0 1fr; }
.account-sidebar {
  background: linear-gradient(180deg, rgba(28, 18, 38, .65), rgba(20, 12, 28, .8));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0 16px 16px 0;
  padding: 1.1rem 1rem;
  position: sticky; top: 84px;
  margin-left: 0;
  transition: transform .3s ease, opacity .2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.account-layout.is-collapsed .account-sidebar { transform: translateX(-110%); opacity: 0; pointer-events: none; }
/* Toggle button — sits INSIDE the user-mini row, visually attached to the user card */
.user-mini-row { display: flex; align-items: stretch; gap: .5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.account-toggle { flex: 0 0 auto; width: 36px; align-self: stretch; border-radius: 10px; background: var(--p-color); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(107,39,153,.35); transition: all .2s; font-size: .9rem; }
.account-toggle:hover { background: var(--p-color-light); box-shadow: 0 6px 18px rgba(107,39,153,.55); }
.account-toggle:active { transform: scale(.95); }
/* The user-mini lives next to the toggle — clear its own border/margin since the row owns them */
.account-sidebar .user-mini-row .user-mini { flex: 1 1 auto; min-width: 0; margin-bottom: 0; padding-bottom: .75rem; padding-top: .75rem; border-bottom: 0; }
/* Floating "open" handle, only visible when the sidebar is collapsed */
.account-toggle-fab { display: none; position: fixed; top: 84px; left: .85rem; z-index: 45; width: 36px; height: 36px; border-radius: 10px; background: var(--p-color); color: #fff; border: 0; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(107,39,153,.45); transition: all .2s; font-size: .95rem; }
.account-toggle-fab:hover { background: var(--p-color-light); transform: scale(1.05); }
.account-layout.is-collapsed .account-toggle-fab { display: flex; }
.account-sidebar .user-mini { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; margin-bottom: .85rem; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem; }
.account-sidebar .user-mini img { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; background: var(--bg); }
.account-sidebar .user-mini .name { font-size: .9rem; font-weight: 700; color: #fff; }
.account-sidebar .user-mini .role-mini { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--p-color-light); font-weight: 700; }
.account-nav { display: flex; flex-direction: column; gap: .2rem; list-style: none; padding: 0; margin: 0; }
.account-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .95rem; border-radius: 10px;
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  text-decoration: none;
  transition: color .18s, background .18s, transform .18s, padding-left .22s;
  position: relative;
  overflow: hidden;
}
.account-nav a::before {
  /* indicator linea sinistra */
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, var(--p-color), var(--p-color-light));
  border-radius: 0 3px 3px 0;
  transform: scaleY(0); transform-origin: center;
  transition: transform .25s ease;
}
.account-nav a:hover {
  color: #fff;
  background: rgba(107, 39, 153, .1);
  padding-left: 1.15rem;
}
.account-nav a:hover::before { transform: scaleY(.65); }
.account-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(107, 39, 153, .2), rgba(107, 39, 153, .08));
}
.account-nav a.active::before { transform: scaleY(1); }
.account-nav a i {
  width: 18px; text-align: center;
  color: var(--text-muted-2); font-size: .92em;
  transition: color .18s, transform .25s ease;
}
.account-nav a:hover i { color: var(--p-color-light); transform: scale(1.1); }
.account-nav a.active i { color: var(--p-color-light); }
.account-nav-divider { height: 1px; background: var(--border-light); margin: .55rem .35rem; }

.account-main { min-width: 0; }
.account-section-card {
  background: linear-gradient(180deg, rgba(28, 18, 38, .5), rgba(20, 12, 28, .7));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 1.85rem 2.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: border-color .25s, box-shadow .25s;
}
.account-section-card:hover { border-color: rgba(255, 255, 255, .12); }
.account-section-card h2 { font-size: 1.15rem; color: var(--p-color-light); margin-bottom: .35rem; letter-spacing: -.005em; }
.account-section-card h2 i { margin-right: .45rem; }
.account-section-card .lead { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }

.kv-list { display: flex; flex-direction: column; gap: .5rem; }
.kv-list .kv { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-light); }
.kv-list .kv:last-child { border-bottom: none; }
.kv-list .kv .k { min-width: 180px; color: var(--text-muted-2); text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-weight: 600; }
.kv-list .kv .v { color: #fff; font-weight: 500; }

.account-form .field { margin-bottom: 1.25rem; }
.account-form select, .account-form input[type=text], .account-form input[type=email], .account-form input[type=password] {
  width: 100%; background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: .7rem .95rem; color: #fff; font-size: .92rem; transition: border-color .15s, background .15s;
}
.account-form select:focus, .account-form input:focus { outline: none; border-color: var(--p-color); background: rgba(107, 39, 153, .05); }
.account-form textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: .7rem .95rem; color: #fff; font-family: inherit; font-size: .92rem; line-height: 1.6;
}
.account-form label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: .45rem; font-weight: 600; }
.account-form .hint { display: block; font-size: .76rem; color: var(--text-muted-2); margin-top: .35rem; }

.session-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: .55rem;
}
.session-row.is-current { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .04); }
.session-row .s-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(107, 39, 153, .1); display: flex; align-items: center; justify-content: center; color: var(--p-color-light); }
.session-row .s-main .device { font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: .15rem; }
.session-row .s-main .meta { font-size: .76rem; color: var(--text-muted); }
.session-row .s-main .meta .current-tag { color: var(--ok); font-weight: 700; margin-left: .35rem; }

.placeholder-card {
  background: var(--bg-2); border: 1px dashed var(--border); border-radius: 10px;
  padding: 3rem 2rem; text-align: center;
}
.placeholder-card .icon-big { width: 80px; height: 80px; border-radius: 20px; background: rgba(107, 39, 153, .15); color: var(--p-color-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.25rem; border: 1px solid var(--border); }
.placeholder-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.placeholder-card p { color: var(--text-muted); max-width: 460px; margin: 0 auto; }
.placeholder-card .badge-soon { display: inline-block; margin-top: 1rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(107, 39, 153, .15); border: 1px solid var(--border); color: var(--p-color-light); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }

@media (max-width: 900px) {
  .profile-card { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .profile-card .profile-info .meta { justify-content: center; }
  .profile-grid { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
  .account-nav a.active::before { display: none; }
  .kv-list .kv { flex-direction: column; gap: .25rem; }
  .kv-list .kv .k { min-width: 0; }
}

/* ──────── Account sidebar (rifatto, multi-group lists) ──────── */
.account-sidebar .user-mini {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .85rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
  border-radius: 10px; transition: background .15s;
}
.account-sidebar .user-mini:hover { background: rgba(107, 39, 153, .08); }
.account-sidebar .user-mini img { width: 38px; height: 38px; border-radius: 8px; image-rendering: pixelated; background: var(--bg); flex-shrink: 0; }
.account-sidebar .user-mini > div { flex: 1; min-width: 0; }
.account-sidebar .user-mini .name { font-size: .92rem; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-sidebar .user-mini .role-mini { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--p-color-light); font-weight: 700; margin-top: .15rem; }
.account-sidebar .user-mini-link { color: var(--text-muted-2); font-size: .75em; }

.account-nav { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-direction: column; gap: .15rem; }
.account-nav:last-of-type { margin-bottom: 0; }
.account-nav + .account-nav { padding-top: .75rem; border-top: 1px solid var(--border-light); }
.account-nav li { list-style: none; }

/* ──────── Account hero (personal banner sopra Panoramica) ──────── */
.account-hero {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 2rem; margin-bottom: 1.25rem;
}
.account-hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(450px 250px at 100% 0%, rgba(107, 39, 153, .22), transparent 70%),
    radial-gradient(350px 200px at 0% 100%, rgba(168, 85, 247, .12), transparent 70%);
}
.account-hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.account-hero-avatar { width: 92px; height: 92px; border-radius: 12px; image-rendering: pixelated; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(107, 39, 153, .25); }
.account-hero-text { flex: 1; min-width: 0; }
.account-hero-text .eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--p-color-light); font-weight: 700; margin-bottom: .5rem; }
.account-hero-text .eyebrow i { margin-right: .35rem; }
.account-hero-text h1 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.account-hero-text p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

/* ──────── Stat cards (4 colonne) ──────── */
.account-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.stat-card { background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transition: all .15s; }
.stat-card:hover { border-color: var(--p-color); }
.stat-card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(107, 39, 153, .15); color: var(--p-color-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.stat-card-num { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-card-label { font-size: .72rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: .35rem; }

/* ──────── Quick actions grid ──────── */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.quick-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); transition: all .15s;
  position: relative;
}
.quick-card:hover { border-color: var(--p-color); color: #fff; }
.quick-card.primary { background: linear-gradient(135deg, rgba(107, 39, 153, .25), rgba(168, 85, 247, .1)); border-color: var(--p-color); }
.quick-card i { font-size: 1.4rem; color: var(--p-color-light); margin-bottom: .35rem; }
.quick-card strong { font-size: .95rem; color: #fff; font-weight: 700; }
.quick-card span { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ──────── kv-list refinements (fix per email lunghe) ──────── */
.kv-list .kv { flex-wrap: wrap; row-gap: .25rem; }
.kv-list .kv .v { word-break: break-word; overflow-wrap: anywhere; flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.kv-email { color: #fff; }
.kv-warn { color: var(--warn); font-size: .78rem; font-weight: 600; }
.kv-warn i { margin-right: .25rem; }
.kv-ok { color: var(--ok); font-size: .78rem; font-weight: 600; }
.kv-ok i { margin-right: .25rem; }
.kv-faint { color: var(--text-muted-2); font-size: .78rem; font-weight: 400; margin-left: .35rem; }

/* (legacy .nav-user/.nav-bell rules rimosse — vedi blocco NAVBAR redesign in alto) */

/* ──────── Responsive ──────── */
@media (max-width: 1100px) {
  .account-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr !important; gap: 1rem; }
  .account-sidebar { position: static; padding: .75rem; }
  .account-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; }
  .account-nav + .account-nav { padding-top: .75rem; }
  .account-nav a { padding: .6rem .75rem; font-size: .82rem; }
  .account-hero-content { gap: 1rem; }
  .account-hero-avatar { width: 72px; height: 72px; border-radius: 10px; }
}
@media (max-width: 540px) {
  .account-stat-grid { grid-template-columns: 1fr; }
  .account-nav { grid-template-columns: 1fr; }
  .account-hero { padding: 1.5rem; }
  .account-hero-content { flex-direction: column; align-items: flex-start; text-align: left; }
  .account-section-card { padding: 1.25rem 1.25rem; }
}

/* (.nav-bell legacy → confluito in .nav-icon-btn / .nav-badge nel blocco NAVBAR in alto) */

/* ──────── Follow button + thread actions ──────── */
.thread-actions { display: inline-flex; align-items: center; gap: .5rem; }
.follow-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text); font-weight: 600; font-size: .82rem;
  cursor: pointer; transition: all .15s;
}
.follow-btn:hover { border-color: var(--p-color); background: rgba(107, 39, 153, .12); color: #fff; }
.follow-btn.is-following { background: var(--p-color); border-color: var(--p-color); color: #fff; }
.follow-btn.is-following:hover { background: var(--p-color-dark); border-color: var(--p-color-dark); }
.follow-btn .follow-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .15); font-size: .72rem; font-weight: 700;
  margin-left: .2rem;
}
.follow-btn:not(.is-following) .follow-count { background: var(--bg); color: var(--text-muted); }

/* ──────── Alerts list ──────── */
.alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.alerts-head h2 { margin-bottom: .25rem; }
.alerts-head .lead { margin-bottom: 0; }

.alerts-list { display: flex; flex-direction: column; gap: .5rem; }
.alert-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: .85rem 1.1rem; transition: all .15s;
}
.alert-row.is-unread { background: rgba(107, 39, 153, .08); border-color: var(--border); }
.alert-row:hover { border-color: var(--p-color); }
.alert-icon img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: var(--bg-2); }
.alert-multiplier { position: absolute; bottom: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--p-color); color: #fff; font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.alert-iconbox { width: 40px; height: 40px; border-radius: 8px; background: rgba(107, 39, 153, .15); color: var(--p-color-light); display: flex; align-items: center; justify-content: center; }
.alert-body { min-width: 0; }
.alert-title { display: block; font-size: .92rem; font-weight: 600; color: #fff; text-decoration: none; margin-bottom: .25rem; }
.alert-title:hover { color: var(--p-color-light); }
.alert-preview { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alert-meta { font-size: .72rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.alert-new { color: var(--p-color-light); }

/* ──────── Followed list ──────── */
.followed-list { display: flex; flex-direction: column; gap: .55rem; }
.followed-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  padding: .85rem 1.25rem; transition: all .15s;
}
.followed-row:hover { border-color: var(--p-color); }
.followed-main { text-decoration: none; color: inherit; min-width: 0; }
.followed-title { font-size: .98rem; font-weight: 600; color: #fff; margin-bottom: .25rem; }
.followed-main:hover .followed-title { color: var(--p-color-light); }
.followed-meta { font-size: .76rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 1.1rem; }
.followed-meta i { margin-right: .3rem; color: var(--text-muted-2); }

@media (max-width: 900px) {
  .thread-actions { width: 100%; }
  .followed-row { grid-template-columns: 1fr; }
  .alert-row { grid-template-columns: 40px 1fr; }
  .alert-row form { grid-column: 2; justify-self: start; }
}

/* ──────── Discord button + auth divider ──────── */
.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .9rem 1.4rem; border-radius: 11px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff; font-weight: 600; font-size: .92rem;
  text-decoration: none;
  border: 1px solid rgba(88, 101, 242, .5);
  cursor: pointer; font-family: inherit;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.btn-discord::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, .15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-discord:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(88, 101, 242, .45);
}
.btn-discord:hover::before { transform: translateX(100%); }
.btn-discord.btn-block { width: 100%; }
.btn-discord i { font-size: 1.15em; }

.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0 1.15rem; color: var(--text-muted-2);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .25em; font-weight: 700;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

/* ──────── Account links list ──────── */
.link-list { display: flex; flex-direction: column; gap: .65rem; }
.link-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 1rem 1.25rem;
}
.link-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.link-main { min-width: 0; }
.link-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.link-status { font-size: .8rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .5rem; }
.link-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.link-status.linked .dot    { background: var(--ok); box-shadow: 0 0 6px rgba(34, 197, 94, .6); }
.link-status.notlinked .dot { background: var(--text-muted-2); }
.link-status.warn .dot      { background: var(--warn); }
.link-status strong { color: #fff; font-weight: 600; }

@media (max-width: 600px) {
  .link-row { grid-template-columns: 48px 1fr; }
  .link-row .link-actions { grid-column: 1 / -1; justify-self: end; }
}

/* ──────── Google OAuth button (versione dark, brand-safe) ──────── */
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .85rem 1.4rem; border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  color: #fff;
  font-weight: 600; font-size: .92rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer; font-family: inherit;
  position: relative;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn-google::before {
  /* Logo Google "G" multicolore SVG inline */
  content: ''; width: 18px; height: 18px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%234285F4' d='M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z'/><path fill='%2334A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z'/><path fill='%23FBBC05' d='M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34C2.85 17.09 2 20.45 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z'/><path fill='%23EA4335' d='M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z'/></svg>");
  background-repeat: no-repeat; background-size: contain; background-position: center;
  transition: transform .35s ease;
}
.btn-google:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.btn-google:hover::before { transform: rotate(-12deg) scale(1.1); }
.btn-google.btn-block { width: 100%; }
.btn-google i.fab.fa-google,
.btn-google i.fa-google { display: none; }

.auth-oauth { display: flex; flex-direction: column; gap: .65rem; }

/* ──────── Confirm Modal ──────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; transition: opacity .2s ease;
}
.modal-overlay.is-open { opacity: 1; }
.modal-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(107, 39, 153, .15);
  transform: translateY(8px) scale(.98); transition: transform .2s ease;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-icon {
  width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 1rem;
  background: rgba(107, 39, 153, .15); color: var(--p-color-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; border: 1px solid var(--border);
}
.modal-icon.is-danger { background: rgba(239, 68, 68, .12); color: #f87171; border-color: rgba(239, 68, 68, .3); }
.modal-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .55rem; letter-spacing: -.01em; }
.modal-body  { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1.75rem; }
.modal-actions { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn { min-width: 120px; }

/* Input dentro promptModal */
.modal-input {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .75rem .9rem; font: inherit; font-size: .95rem;
  margin: 0 0 1.5rem; transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.modal-input:focus {
  border-color: var(--p-color-light);
  box-shadow: 0 0 0 3px rgba(107, 39, 153, .25);
}
.modal-input.is-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .25);
}
.modal-input--textarea { resize: vertical; min-height: 90px; line-height: 1.45; }

.btn-danger {
  background: var(--bad); color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, .35);
}
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(239, 68, 68, .5); color: #fff; }

/* Permission info button (tooltip in admin groups form) */
.perm-info-btn { width: 22px; height: 22px; border-radius: 50%; background: rgba(107, 39, 153, .15); border: 1px solid rgba(107, 39, 153, .35); color: var(--p-color-light); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; padding: 0; transition: all .15s; flex-shrink: 0; }
.perm-info-btn:hover { background: var(--p-color); color: #fff; transform: scale(1.1); }
.perm-info-card { display: grid; gap: 1rem; text-align: left; }
.perm-info-card-section { display: flex; flex-direction: column; gap: .35rem; }
.perm-info-card-section .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted-2); font-weight: 700; }
.perm-info-risk { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; align-self: flex-start; }
.perm-info-risk--low    { background: rgba(74, 222, 128, .12); color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); }
.perm-info-risk--medium { background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .3); }
.perm-info-risk--high   { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248, 113, 113, .3); }
.perm-info-card code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--p-color-light); }
/* Lo overlay e card della modale gestiti dal modulo confirmModal — riusiamo .modal-card per il rendering */

/* ──────── Toast notifications (sostituiscono alert()) ──────── */
#toast-stack { position: fixed; top: 80px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: .65rem; pointer-events: none; max-width: 380px; }
.toast { pointer-events: auto; background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px; padding: .85rem 1rem; padding-right: 2.5rem; box-shadow: 0 12px 32px rgba(0,0,0,.4); display: flex; align-items: center; gap: .65rem; color: var(--text); font-size: .88rem; position: relative; transform: translateX(20px); opacity: 0; transition: all .25s ease; }
.toast.is-open { transform: translateX(0); opacity: 1; }
.toast > i { font-size: 1.1rem; flex-shrink: 0; }
.toast > span { flex: 1; line-height: 1.4; }
.toast-x { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--text-muted-2); font-size: 1.3rem; cursor: pointer; padding: 0 .35rem; line-height: 1; }
.toast-x:hover { color: #fff; }
.toast--info    > i { color: #60a5fa; }
.toast--success > i { color: #4ade80; }
.toast--success { border-color: rgba(74,222,128,.3); }
.toast--error   > i { color: #f87171; }
.toast--error   { border-color: rgba(248,113,113,.3); }
.toast--warn    > i { color: #fbbf24; }
.toast--warn    { border-color: rgba(251,191,36,.3); }
@media (max-width: 540px) { #toast-stack { left: 12px; right: 12px; max-width: none; } }

/* ──────── Select dark in tema (sostituisce stile bianco nativo) ──────── */
.account-form select,
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--p-color-light) 50%),
    linear-gradient(135deg, var(--p-color-light) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
  color-scheme: dark;
}
.account-form select option,
select.form-select option {
  background: var(--bg-2); color: #fff;
}
.account-form select:focus,
select.form-select:focus {
  outline: none;
  border-color: var(--p-color);
  box-shadow: 0 0 0 3px rgba(107, 39, 153, .15);
}

/* ──────── Link icon: immagine reale (override del box colorato) ──────── */
.link-icon-img {
  background: transparent !important;
  border: none;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.link-icon-img img {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--bg-2);
  padding: 4px;
  display: block;
}

/* ──────────────────────────────────────────────────
   ADMIN / STAFF PANEL
   ────────────────────────────────────────────────── */

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 70px); }
.admin-sidebar {
  background-color: #000 !important;
  background-image: none !important;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 1rem; position: sticky; top: 70px; align-self: start;
  max-height: calc(100vh - 70px); overflow-y: auto;
  /* Dark scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(107,39,153,.45) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(107,39,153,.35); border-radius: 4px;
  border: 1px solid rgba(255,255,255,.04);
}
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(107,39,153,.6); }

/* Global dark scrollbars (Firefox + WebKit) */
html { scrollbar-width: thin; scrollbar-color: rgba(107,39,153,.45) #0a0612; }
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track { background: #0a0612; }
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: rgba(107,39,153,.4); border-radius: 5px;
  border: 2px solid #0a0612;
}
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover { background: rgba(107,39,153,.7); }
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner { background: #0a0612; }
.admin-side-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(107,39,153,.18), rgba(107,39,153,.08));
  border: 1px solid rgba(107,39,153,.3); border-radius: 6px;
}
.admin-side-head > i { font-size: 1.3rem; color: var(--p-color-light); }
.admin-side-title { font-size: .92rem; font-weight: 700; color: #fff; line-height: 1.2; }
.admin-side-sub { font-size: .68rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .12em; margin-top: .15rem; font-weight: 600; }

.admin-nav-group { margin-bottom: 1.25rem; }
.admin-nav-group-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted-2);
  padding: 0 .65rem .5rem;
}
.admin-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.admin-nav li { list-style: none; }
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .85rem; border-radius: 8px;
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  text-decoration: none; transition: all .15s; position: relative;
}
.admin-nav a:hover { color: #fff; background: rgba(107, 39, 153, .08); }
.admin-nav a.active { color: #fff; background: rgba(107, 39, 153, .18); }
.admin-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px;
  background: var(--p-color-light); border-radius: 0 2px 2px 0;
}
.admin-nav a i { width: 18px; text-align: center; color: var(--text-muted-2); font-size: .9em; }
.admin-nav a:hover i, .admin-nav a.active i { color: var(--p-color-light); }
.admin-nav a span { flex: 1; }
.admin-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-color-light); box-shadow: 0 0 8px rgba(168, 85, 247, .7); flex-shrink: 0; animation: adminNavDotPulse 2s ease-in-out infinite; }
.admin-nav-dot--alert { background: #f87171; color: #fff; min-width: 18px; height: 18px; padding: 0 .4rem; border-radius: 999px; font-size: .65rem; font-weight: 800; box-shadow: 0 0 10px rgba(248, 113, 113, .55); display: inline-flex; align-items: center; justify-content: center; animation: none; }
@keyframes adminNavDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.admin-side-footer { padding-top: 1rem; border-top: 1px solid var(--border-light); margin-top: 1rem; }
.admin-side-back {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .85rem;
  color: var(--text-muted); font-size: .82rem; text-decoration: none;
  border-radius: 8px; transition: all .15s;
}
.admin-side-back:hover { background: rgba(255,255,255,.04); color: #fff; }

.admin-main { padding: 2rem; min-width: 0; }

.admin-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.admin-page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.01em; margin: .25rem 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.admin-page-head .lead { color: var(--text-muted); font-size: .92rem; }
.admin-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--p-color-light); font-weight: 700; }
.admin-eyebrow i { margin-right: .35rem; }
.admin-eyebrow a { color: var(--p-color-light); text-decoration: none; }

/* Stat tiles dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-tile {
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 1.5rem; transition: all .15s; position: relative; overflow: hidden;
}
.stat-tile:hover { border-color: var(--p-color); }
.stat-tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(107, 39, 153, .15); color: var(--p-color-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.stat-tile-num { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .35rem; }
.stat-tile-label { font-size: .82rem; color: #fff; font-weight: 600; margin-bottom: .15rem; }
.stat-tile-sub { font-size: .72rem; color: var(--text-muted-2); }
.stat-tile-sub a { color: var(--p-color-light); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.admin-card {
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-light);
}
.admin-card-head h3 { font-size: .92rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: .5rem; }
.admin-card-head h3 i { color: var(--p-color-light); }
.admin-card-link { font-size: .78rem; color: var(--p-color-light); font-weight: 600; text-decoration: none; }
.admin-card-link:hover { color: #fff; }

.admin-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.admin-table thead th {
  text-align: left; padding: .65rem .75rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted-2); border-bottom: 1px solid var(--border-light);
}
.admin-table tbody td {
  padding: .75rem; border-bottom: 1px solid var(--border-light); color: #fff;
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: rgba(107, 39, 153, .03); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .row-muted { opacity: .55; }

.admin-user-cell { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.admin-user-cell img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; background: var(--bg); }
.admin-user-cell small { display: block; font-size: .7rem; }
.admin-user-cell:hover { color: var(--p-color-light); }

.role-pill {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  border: 1px solid transparent;
}
.role-user    { background: rgba(160,160,160,.15); color: var(--text-muted); border-color: rgba(160,160,160,.2); }
.role-vip     { background: rgba(245,158,11,.15);  color: #fbbf24; border-color: rgba(245,158,11,.25); }
.role-staff   { background: rgba(34,197,94,.15);   color: #4ade80; border-color: rgba(34,197,94,.25); }
.role-admin   { background: rgba(239,68,68,.15);   color: #f87171; border-color: rgba(239,68,68,.25); }
.role-founder { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(168,85,247,.18)); color: #fde68a; border-color: rgba(251,191,36,.45); }

/* Tag cosmetico del gruppo-sito più importante dell'utente. Colore = colore del
   gruppo (via --user-tag-color), con fallback sul viola del tema. */
.user-tag {
  display: inline-block; vertical-align: middle;
  padding: .12rem .5rem; border-radius: 6px;
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--user-tag-color, var(--p-color-light));
  border: 1px solid color-mix(in srgb, var(--user-tag-color, var(--p-color-light)) 45%, transparent);
  background: color-mix(in srgb, var(--user-tag-color, var(--p-color-light)) 15%, transparent);
}

.tag-banned { background: rgba(239,68,68,.2); color: #f87171; padding: .1rem .4rem; border-radius: 4px; font-size: .6rem; font-weight: 700; letter-spacing: .08em; }
.tag-warn   { background: rgba(245,158,11,.18); color: #fbbf24; padding: .1rem .4rem; border-radius: 4px; font-size: .6rem; font-weight: 700; }
.tag-deleted { background: rgba(160,160,160,.15); color: var(--text-muted); padding: .1rem .4rem; border-radius: 4px; font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.muted { color: var(--text-muted); font-size: .82rem; }
.action-code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: .75rem; color: var(--p-color-light); }
.log-details { background: var(--bg); padding: .35rem .55rem; border-radius: 4px; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: .7rem; color: var(--text-muted); margin: 0; max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.log-summary { color: #fff; font-size: .88rem; line-height: 1.45; }
.log-tech { font-size: .8rem; }
.log-tech > summary { cursor: pointer; color: var(--text-muted-2); list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.log-tech > summary::-webkit-details-marker { display: none; }
.log-tech > summary::before { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .55rem; transition: transform .15s; }
.log-tech[open] > summary::before { transform: rotate(180deg); }
.log-tech-body { margin-top: .55rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .4rem; font-size: .78rem; color: var(--text-muted); }
.log-tech-body strong { color: var(--text); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-right: .4rem; }

.inline-actions { display: inline-flex; gap: .3rem; }
.inline-actions .post-action { padding: .35rem .55rem; font-size: .72rem; }

/* Filters */
.admin-filters {
  display: flex; gap: .65rem; margin-bottom: 1.25rem; flex-wrap: wrap;
  align-items: center;
}
.filter-search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-2); border: 1px solid var(--border-light);
  border-radius: 8px; padding: .55rem .85rem;
}
.filter-search:focus-within { border-color: var(--p-color); }
.filter-search i { color: var(--text-muted-2); }
.filter-search input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: .88rem; }
.form-select {
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 8px;
  padding: .55rem .85rem; color: #fff; font-family: inherit; font-size: .88rem;
  cursor: pointer; min-width: 140px;
}

/* User detail */
.user-detail-card .user-detail-head { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.user-detail-avatar { width: 120px; height: 120px; border-radius: 12px; image-rendering: pixelated; background: var(--bg); border: 1px solid var(--border); }

/* Admin forms */
.admin-form .field { margin-bottom: 1.1rem; }
.admin-form label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: .4rem; font-weight: 600; }
.admin-form input[type=text], .admin-form input[type=email], .admin-form input[type=url], .admin-form input[type=password], .admin-form input[type=number], .admin-form input[type=datetime-local], .admin-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-light); border-radius: 8px;
  padding: .65rem .85rem; color: #fff; font-family: inherit; font-size: .9rem;
  transition: border-color .15s;
}
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--p-color); }
.admin-form .hint { display: block; font-size: .72rem; color: var(--text-muted-2); margin-top: .35rem; }

.danger-zone { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.04); }
.danger-zone h3 i { color: #f87171; }

/* Toggle switches (settings) */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; border-bottom: 1px solid var(--border-light);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row strong { color: #fff; font-size: .92rem; }
.toggle-row p.muted { margin-top: .15rem; font-size: .78rem; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  transition: all .2s;
}
.switch span::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: #d4d4d8; border-radius: 50%;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.switch:hover span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.switch input:checked + span { background: var(--p-color); border-color: var(--p-color-light); box-shadow: 0 0 12px rgba(168, 85, 247, .4); }
.switch input:checked + span::before { left: 22px; background: #fff; }

/* Radio group bans form */
.radio-group { display: flex; gap: .65rem; flex-wrap: wrap; }
.radio-row {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .45rem .85rem; background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 8px; font-size: .84rem;
}
.radio-row input[type=radio] { accent-color: var(--p-color); }
.radio-row:has(input:checked) { border-color: var(--p-color); background: rgba(107,39,153,.1); }

/* Announcement banners (front-end) */
.ann-stack { position: sticky; top: 70px; z-index: 40; display: flex; flex-direction: column; gap: 0; }
.ann-banner {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1.5rem; border-bottom: 1px solid var(--border-light);
  font-size: .88rem; transition: opacity .2s;
}
.ann-banner-info    { background: rgba(168,85,247,.1); border-bottom-color: rgba(168,85,247,.3); color: #e9d5ff; }
.ann-banner-success { background: rgba(34,197,94,.1);  border-bottom-color: rgba(34,197,94,.3);  color: #bbf7d0; }
.ann-banner-warning { background: rgba(245,158,11,.1); border-bottom-color: rgba(245,158,11,.3); color: #fde68a; }
.ann-banner-danger  { background: rgba(239,68,68,.1);  border-bottom-color: rgba(239,68,68,.3);  color: #fecaca; }
.ann-banner > i { font-size: 1.1rem; flex-shrink: 0; }
.ann-banner-info > i    { color: var(--p-color-light); }
.ann-banner-success > i { color: var(--ok); }
.ann-banner-warning > i { color: var(--warn); }
.ann-banner-danger > i  { color: var(--bad); }
/* Banner "completa il profilo" — non invasivo, sticky sotto la navbar */
.profile-nudge {
  position: sticky; top: 70px; z-index: 39;
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .7rem 1.5rem; border-bottom: 1px solid rgba(124,79,158,.3);
  background: rgba(124,79,158,.1); color: #e9d5ff; font-size: .88rem;
  transition: opacity .2s;
}
.profile-nudge > i { font-size: 1.05rem; color: var(--p-accent); flex-shrink: 0; margin-top: .15rem; }
.profile-nudge-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.profile-nudge-body strong { color: #fff; }
.profile-nudge-body > span { color: var(--text-muted); font-size: .82rem; }
.profile-nudge-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.profile-nudge-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--border-light);
  transition: background-color .15s, border-color .15s;
}
.profile-nudge-chip:hover { background: rgba(124,79,158,.25); border-color: var(--p-accent); }
.profile-nudge-chip i { font-size: .85em; opacity: .85; }
.profile-nudge-close { background: none; border: 0; color: var(--text-muted-2); cursor: pointer; padding: .2rem .35rem; font-size: 1rem; flex-shrink: 0; transition: color .15s; }
.profile-nudge-close:hover { color: #fff; }
/* Direct Messages (Messaggistica privata) */
.dm-inbox { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; }
.dm-inbox-row { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; background: rgba(255,255,255,.02); border: 1px solid var(--border-light); border-radius: 10px; text-decoration: none; color: var(--text); transition: all .15s; }
.dm-inbox-row:hover { background: rgba(107,39,153,.06); border-color: rgba(107,39,153,.25); color: #fff; }
.dm-inbox-row.is-unread { background: rgba(107,39,153,.08); border-color: rgba(107,39,153,.3); }
.dm-inbox-avatar { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; flex-shrink: 0; background: var(--bg); }
.dm-inbox-body { flex: 1; min-width: 0; }
.dm-inbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .15rem; }
.dm-inbox-name { font-weight: 600; color: #fff; font-size: .95rem; }
.dm-inbox-row.is-unread .dm-inbox-name { font-weight: 800; }
.dm-inbox-date { font-size: .72rem; color: var(--text-muted-2); white-space: nowrap; flex-shrink: 0; }
.dm-inbox-preview { font-size: .82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-inbox-row.is-unread .dm-inbox-preview { color: var(--text); }
.dm-prefix { color: var(--text-muted-2); }
.dm-inbox-badge { background: var(--p-color); color: #fff; min-width: 22px; height: 22px; padding: 0 .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.dm-thread-head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); background: rgba(0,0,0,.15); }
.dm-thread-head img { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; }
.dm-thread-who { flex: 1; min-width: 0; }
.dm-thread-name { font-weight: 700; color: #fff; font-size: 1rem; }
.dm-thread-sub { font-size: .78rem; color: var(--text-muted-2); margin-top: .1rem; }
.dm-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--text-muted); text-decoration: none; transition: all .15s; }
.dm-back:hover { background: rgba(255,255,255,.06); color: #fff; }
.dm-live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; margin-left: .35rem; vertical-align: middle; box-shadow: 0 0 6px rgba(74, 222, 128, .7); animation: dmLivePulse 2s ease-in-out infinite; }
@keyframes dmLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.dm-thread { padding: 1.25rem; max-height: 60vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; }
.dm-empty { margin: auto; text-align: center; color: var(--text-muted-2); padding: 2rem; }
.dm-empty i { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .75rem; }
.dm-day-sep { text-align: center; margin: 1rem 0 .35rem; position: relative; }
.dm-day-sep::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-light); z-index: 0; }
.dm-day-sep span { position: relative; z-index: 1; background: var(--bg-2); padding: .15rem .65rem; border-radius: 999px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted-2); font-weight: 600; }

.dm-msg { display: flex; flex-direction: column; max-width: 70%; }
.dm-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.dm-msg.is-theirs { align-self: flex-start; align-items: flex-start; }
.dm-msg-bubble { padding: .65rem .95rem; border-radius: 10px; line-height: 1.45; font-size: .92rem; word-wrap: break-word; }
.dm-msg.is-mine   .dm-msg-bubble { background: var(--p-color); color: #fff; border-bottom-right-radius: 4px; }
.dm-msg.is-theirs .dm-msg-bubble { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.dm-msg.is-flagged .dm-msg-bubble { box-shadow: inset 0 0 0 2px rgba(248,113,113,.5); }
.dm-msg.is-deleted .dm-msg-bubble { background: rgba(255,255,255,.02); color: var(--text-muted-2); font-style: italic; border: 1px dashed var(--border-light); }
.dm-msg-meta { display: flex; gap: .55rem; align-items: center; font-size: .68rem; color: var(--text-muted-2); margin-top: .25rem; padding: 0 .35rem; }
.dm-flagged-tag { color: #f87171; font-weight: 600; }

.dm-composer { display: flex; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border-light); background: rgba(0,0,0,.15); align-items: flex-end; }
.dm-composer textarea { flex: 1; background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px; padding: .65rem .85rem; color: #fff; font-family: inherit; font-size: .92rem; resize: none; min-height: 42px; max-height: 200px; line-height: 1.45; overflow-y: auto; }
.dm-composer textarea:focus { outline: none; border-color: var(--p-color); }
.dm-composer .btn { height: 42px; padding: 0 1rem; flex-shrink: 0; }

/* Context menu DM (tasto destro su messaggi propri) */
.dm-ctx-menu { position: absolute; z-index: 10000; background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 8px; padding: .35rem; min-width: 140px; box-shadow: 0 12px 32px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: .15rem; }
.dm-ctx-menu button { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border: 0; background: transparent; color: var(--text); cursor: pointer; border-radius: 6px; font-size: .85rem; text-align: left; transition: background .15s; }
.dm-ctx-menu button:hover { background: rgba(107, 39, 153, .15); color: #fff; }
.dm-ctx-menu button i { width: 14px; text-align: center; color: var(--text-muted-2); font-size: .85em; }
.dm-ctx-menu button[data-action="delete"]:hover { background: rgba(239, 68, 68, .15); color: #f87171; }
.dm-ctx-menu button[data-action="delete"]:hover i { color: #f87171; }

/* Edit-mode dentro bubble */
.dm-edit-textarea { width: 100%; min-width: 220px; background: rgba(0,0,0,.35); border: 1px solid var(--border-light); border-radius: 6px; padding: .45rem .65rem; color: #fff; font-family: inherit; font-size: .88rem; resize: none; }
.dm-edit-actions { display: flex; gap: .35rem; justify-content: flex-end; margin-top: .35rem; }

/* Cursor sul messaggio proprio per indicare "tasto destro disponibile" */
.dm-msg.is-mine:not(.is-deleted) .dm-msg-bubble { cursor: context-menu; }

/* Notification preferences */
.notif-prefs-list { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; }
.notif-pref-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.02); border: 1px solid var(--border-light); border-radius: 12px; transition: border-color .15s; }
.notif-pref-row:has(input:checked) { border-color: rgba(107,39,153,.3); }
.notif-pref-text { flex: 1; min-width: 0; }
.notif-pref-label { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.notif-pref-desc { color: var(--text-muted); font-size: .82rem; line-height: 1.45; }

/* Storico acquisti utente */
.orders-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1rem; }
.order-row { background: rgba(255,255,255,.02); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; }
.order-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; flex-wrap: wrap; gap: .5rem; }
.order-row-id { display: flex; align-items: center; gap: .75rem; }
.order-hash { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; color: var(--text-muted-2); font-weight: 700; }
.order-status { --st-color: #fff; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 6px; background: color-mix(in srgb, var(--st-color) 14%, transparent); color: var(--st-color); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--st-color) 30%, transparent); }
.order-row-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-package { display: flex; align-items: center; gap: .55rem; color: #fff; font-size: 1rem; }
.order-package i { color: var(--p-color-light); }
.order-price { display: flex; align-items: baseline; gap: .55rem; font-size: 1.05rem; color: #fff; }
.order-price .strike { text-decoration: line-through; font-size: .85rem; }
.order-row-meta { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border-light); display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); }
.order-row-meta i { color: var(--p-color-light); margin-right: .35rem; }
.order-row-meta code { font-family: ui-monospace, Menlo, monospace; color: var(--text); background: rgba(255,255,255,.05); padding: .1rem .35rem; border-radius: 4px; }
.order-channel { color: #5865F2; text-decoration: none; font-weight: 600; }
.order-channel:hover { color: #7983ff; }

/* Admin stat cards row (clickable filter buttons) */
.admin-stat-row .stat-card { text-align: center; padding: 1rem; cursor: pointer; text-decoration: none; color: var(--text); transition: all .15s; }
.admin-stat-row .stat-card:hover { border-color: var(--p-color); }
.admin-stat-row .stat-card.is-active { border-color: var(--p-color); background: rgba(107, 39, 153, .12); }
.admin-stat-row .stat-card-num { font-size: 1.6rem; font-weight: 800; }
.admin-stat-row .stat-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted-2); margin-top: .35rem; font-weight: 600; }

a.ann-banner-body, .ann-banner-body { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; transition: opacity .15s; }
a.ann-banner-body:hover { opacity: .8; }
.ann-banner-body strong { display: block; color: #fff; font-weight: 700; }
.ann-banner-body span { display: block; color: rgba(255,255,255,.85); font-size: .82rem; margin-top: .15rem; }
.ann-banner-close {
  background: transparent; border: 0; color: rgba(255,255,255,.6);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ann-banner-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Annunci — listing page */
.ann-list { display: flex; flex-direction: column; gap: .75rem; }
.ann-list-item { --ann-color: var(--p-color-light); display: grid; grid-template-columns: 56px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; background: linear-gradient(180deg, rgba(20,14,30,.7) 0%, rgba(14,10,24,.85) 100%); border: 1px solid var(--border-light); border-left: 3px solid var(--ann-color); border-radius: 12px; text-decoration: none; color: var(--text); transition: all .2s; }
.ann-list-item:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--ann-color) 45%, transparent); border-left-color: var(--ann-color); box-shadow: 0 8px 24px color-mix(in srgb, var(--ann-color) 15%, transparent); color: #fff; }
.ann-list-icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--ann-color) 14%, transparent); color: var(--ann-color); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.ann-list-body { min-width: 0; }
.ann-list-meta { display: flex; gap: .75rem; align-items: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; color: var(--text-muted-2); font-weight: 600; }
.ann-list-type { color: var(--ann-color); }
.ann-list-inactive { background: rgba(255,255,255,.06); padding: .15rem .5rem; border-radius: 4px; }
.ann-list-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .35rem; color: #fff; }
.ann-list-excerpt { margin: 0; font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.ann-list-arrow { color: var(--ann-color); font-size: 1rem; opacity: .5; transition: all .2s; }
.ann-list-item:hover .ann-list-arrow { opacity: 1; transform: translateX(4px); }

/* Annunci — single page */
.ann-show { --ann-color: var(--p-color-light); background: linear-gradient(180deg, rgba(20,14,30,.7) 0%, rgba(14,10,24,.85) 100%); border: 1px solid var(--border-light); border-top: 4px solid var(--ann-color); border-radius: 12px; padding: 2rem 2.25rem; margin-top: 1.5rem; }
.ann-show-head { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.ann-show-type { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--ann-color) 12%, transparent); color: var(--ann-color); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ann-show-date { display: inline-flex; align-items: center; gap: .35rem; }
.ann-show-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; line-height: 1.15; margin: 0 0 1.5rem; color: #fff; letter-spacing: -.01em; }
.ann-show-body { color: var(--text); font-size: 1rem; line-height: 1.7; white-space: pre-wrap; }
.ann-show-meta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); font-size: .85rem; color: var(--text-muted); }
.ann-show-meta i { color: var(--ann-color); margin-right: .35rem; }

.ann-type {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.ann-info    { background: rgba(168,85,247,.18); color: #c084fc; }
.ann-success { background: rgba(34,197,94,.18);  color: #4ade80; }
.ann-warning { background: rgba(245,158,11,.18); color: #fbbf24; }
.ann-danger  { background: rgba(239,68,68,.18);  color: #f87171; }

.dot-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-ok   { background: var(--ok);   box-shadow: 0 0 6px rgba(34,197,94,.5); }
.dot-off  { background: var(--text-muted-2); }
.dot-warn { background: var(--warn); }

/* (.nav-staff legacy → vedi blocco NAVBAR redesign in alto) */

/* Admin subtabs (settings sub-navigation) */
.admin-subtabs {
  display: flex; gap: .25rem; margin-bottom: 1.5rem; padding: .25rem;
  background: rgba(20, 14, 30, .55); border: 1px solid var(--border-light);
  border-radius: 12px; flex-wrap: wrap;
}
.admin-subtab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-weight: 600;
  font-size: .85rem; transition: all .15s;
}
.admin-subtab:hover { color: #fff; background: rgba(107, 39, 153, .08); }
.admin-subtab.active { color: #fff; background: rgba(107, 39, 153, .22); box-shadow: 0 0 0 1px rgba(107, 39, 153, .4) inset; }
.admin-subtab i { color: var(--p-color-light); font-size: .9em; }

/* Admin badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--border-light);
}
.badge-ok      { background: rgba(34, 197, 94, .12);  color: #4ade80; border-color: rgba(34, 197, 94, .35); }
.badge-danger  { background: rgba(239, 68, 68, .12);  color: #f87171; border-color: rgba(239, 68, 68, .35); }
.badge-warning { background: rgba(234, 179, 8, .12);  color: #facc15; border-color: rgba(234, 179, 8, .35); }
.badge-info    { background: rgba(59, 130, 246, .12); color: #60a5fa; border-color: rgba(59, 130, 246, .35); }

/* Secondary button */
.btn-secondary { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--border-light); }
.btn-secondary:hover { background: rgba(107, 39, 153, .15); border-color: var(--p-color); transform: translateY(-1px); }

/* Admin form select */
.admin-form select {
  width: 100%; padding: .7rem .9rem; background: var(--bg);
  border: 1px solid var(--border-light); border-radius: 10px;
  color: var(--text); font-size: .92rem; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a35cf0' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.2rem;
}
.admin-form select:focus { outline: none; border-color: var(--p-color); }

/* Searchable select (<select data-searchable>) — combobox con filtro testuale */
.ss-native { display: none !important; }
.ss-wrap { position: relative; }
.ss-input {
  width: 100%; padding: .7rem 2.2rem .7rem .9rem; background: var(--bg);
  border: 1px solid var(--border-light); border-radius: 10px;
  color: var(--text); font-size: .92rem; font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a35cf0' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  cursor: text;
}
.ss-input:focus { outline: none; border-color: var(--p-color); }
.ss-input:disabled { opacity: .55; cursor: not-allowed; }
.ss-panel {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  max-height: 280px; overflow-y: auto; padding: .3rem;
}
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-opt {
  padding: .5rem .65rem; border-radius: 7px; cursor: pointer; font-size: .9rem;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-opt:hover, .ss-opt.is-active { background: rgba(163, 92, 240, .16); }
.ss-opt.is-selected { color: var(--p-color); font-weight: 600; }
.ss-empty { list-style: none; padding: .6rem .65rem; color: var(--text-muted-2); font-size: .85rem; }

/* Check pills (used in admin forms for multi-select package/category) */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; background: rgba(0,0,0,.2); border: 1px solid var(--border-light); border-radius: 10px; padding: .85rem; max-height: 240px; overflow-y: auto; }
.check-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.check-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px; padding: .55rem .85rem; font-size: .88rem; font-weight: 500; color: var(--text); cursor: pointer; transition: all .15s; user-select: none; }
.check-pill:hover { border-color: var(--p-color); }
.check-pill input[type=checkbox] { accent-color: var(--p-color); width: 16px; height: 16px; cursor: pointer; }
.check-pill:has(input:checked) { border-color: var(--p-color); background: rgba(107,39,153,.12); color: #fff; }
.check-grid .check-pill { background: transparent; border-color: transparent; padding: .35rem .5rem; }
.check-grid .check-pill:hover { background: rgba(107,39,153,.08); border-color: transparent; }
.check-grid .check-pill:has(input:checked) { background: rgba(107,39,153,.18); border-color: transparent; }

/* ============== Account · Stat cards (brand icons) ============== */
.stat-card-brand-icon {
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107, 39, 153, .08); border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.stat-card-brand-icon img { width: 32px; height: 32px; display: block; }
.stat-card-brand-icon i { font-size: 1.45rem; color: var(--p-color-light); }
.stat-card--ok { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .04); }
.stat-card--ok .stat-card-brand-icon { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .25); }
.stat-card--warn { border-color: rgba(234, 179, 8, .35); background: rgba(234, 179, 8, .04); }
.stat-card--warn .stat-card-brand-icon { background: rgba(234, 179, 8, .1); border-color: rgba(234, 179, 8, .25); }

.btn-tiny {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 6px;
  background: rgba(107,39,153,.18); color: var(--p-color-light); border: 1px solid rgba(107,39,153,.35);
  font-size: .72rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-tiny:hover { background: rgba(107,39,153,.35); color: #fff; }

/* ============== Account · Sicurezza (2FA) ============== */
.security-hero {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.75rem 1.85rem;
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(34,197,94,.02));
  border: 1px solid rgba(34,197,94,.35);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.security-hero.is-off {
  background: linear-gradient(135deg, rgba(239,68,68,.10), rgba(239,68,68,.02));
  border-color: rgba(239,68,68,.35);
}
.security-hero-icon {
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.15); color: #4ade80; font-size: 1.5rem;
  flex-shrink: 0;
}
.security-hero.is-off .security-hero-icon { background: rgba(239,68,68,.15); color: #f87171; }
.security-hero-body { flex: 1 1 240px; min-width: 0; }
.security-hero-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted-2); font-weight: 700; margin-bottom: .35rem; }
.security-hero-title { font-size: 1.45rem; margin: 0 0 .4rem; color: #fff; font-weight: 700; }
.security-hero-sub { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.security-hero-badge {
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  background: rgba(34,197,94,.18); color: #4ade80; border: 1px solid rgba(34,197,94,.35);
  white-space: nowrap;
}
.security-hero.is-off .security-hero-badge { background: rgba(239,68,68,.18); color: #f87171; border-color: rgba(239,68,68,.35); }
.security-hero-badge i { margin-right: .35rem; }

.security-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem;
  margin-bottom: 1.5rem;
}
.security-stat {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.15rem;
  background: rgba(20, 14, 30, .55); border: 1px solid var(--border-light);
  border-radius: 12px;
}
.security-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.security-stat-val { font-size: .98rem; color: #fff; font-weight: 700; }
.security-stat-lbl { font-size: .76rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem; }

.security-alert {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .95rem 1.15rem; border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: .9rem; line-height: 1.5;
}
.security-alert i { font-size: 1.15rem; flex-shrink: 0; margin-top: .15rem; }
.security-alert strong { color: #fff; }
.security-alert-warn { background: rgba(234,179,8,.08); color: #facc15; border: 1px solid rgba(234,179,8,.35); }
.security-alert-warn strong { color: #facc15; }

.security-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.security-action-card {
  padding: 1.5rem; border-radius: 10px;
  background: rgba(20, 14, 30, .55); border: 1px solid var(--border-light);
}
.security-action-card.danger { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.04); }
.security-action-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.25rem; }
.security-action-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.security-action-head h3 { font-size: 1.05rem; margin: 0 0 .25rem; color: #fff; font-weight: 700; }
.security-action-head .muted { font-size: .85rem; margin: 0; line-height: 1.45; }
.security-action-form .field { margin-bottom: .85rem; }
.security-action-form label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: .4rem; font-weight: 600; }
.security-action-form input[type=password] {
  width: 100%; padding: .7rem .9rem;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px;
  color: var(--text); font-size: .92rem; font-family: inherit;
}
.security-action-form input:focus { outline: none; border-color: var(--p-color); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px;
  background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .4);
  font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.btn-danger:hover { background: rgba(239, 68, 68, .22); color: #fff; border-color: #ef4444; transform: translateY(-1px); }

.security-steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.security-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.15rem 1.25rem; border-radius: 12px;
  background: rgba(20, 14, 30, .55); border: 1px solid var(--border-light);
}
.security-step-num {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(107,39,153,.3), rgba(168,85,247,.18));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  border: 1px solid rgba(107,39,153,.5);
}
.security-step strong { color: #fff; display: block; margin-bottom: .15rem; }
.security-step .muted { font-size: .85rem; line-height: 1.45; margin: 0; }

/* Recovery codes grid */
.codes-grid-card {
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.5rem; }
@media (max-width: 600px) { .codes-grid { grid-template-columns: 1fr; } }
.code-row { display: flex; align-items: center; gap: .85rem; padding: .6rem .85rem; border-radius: 8px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04); }
.code-row:hover { background: rgba(107,39,153,.08); border-color: rgba(107,39,153,.3); }
.code-num { color: var(--text-muted-2); font-weight: 700; font-size: .82rem; min-width: 1.4rem; }
.code-value { font-family: 'Menlo','Monaco','Courier New',monospace; font-size: 1rem; letter-spacing: .04em; color: #fff; flex: 1; }

.codes-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.codes-actions .btn { padding: .8rem 1.35rem; }

/* ============== CMS pages ============== */
.cms-page { padding: 3rem 0; min-height: 60vh; }
.cms-page-head { margin-bottom: 2rem; border-bottom: 1px solid var(--border-light); padding-bottom: 1.25rem; }
.cms-page-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 .5rem; }
.cms-page-body { color: var(--text); line-height: 1.7; font-size: 1rem; }
.cms-page-body h2 { font-size: 1.55rem; margin: 2rem 0 .85rem; color: #fff; }
.cms-page-body h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; color: #fff; }
.cms-page-body h4 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; color: #fff; }
.cms-page-body p { margin: 0 0 1rem; color: var(--text-muted); }
.cms-page-body strong, .cms-page-body b { color: #fff; }
.cms-page-body ul, .cms-page-body ol { margin: 0 0 1.25rem 0; padding-left: 1.5rem; color: var(--text-muted); }
.cms-page-body li { margin-bottom: .35rem; }
.cms-page-body a { color: var(--p-color-light); text-decoration: underline; }
.cms-page-body a:hover { color: #fff; }
.cms-page-body blockquote { border-left: 3px solid var(--p-color); padding: .5rem 1rem; margin: 1rem 0; background: rgba(107, 39, 153, .06); color: var(--text); border-radius: 0 8px 8px 0; }
.cms-page-body code { background: rgba(255,255,255,.06); padding: .15rem .4rem; border-radius: 4px; font-size: .9em; color: var(--p-color-light); }
.cms-page-body pre { background: rgba(0,0,0,.4); border: 1px solid var(--border-light); border-radius: 8px; padding: 1rem; overflow-x: auto; }
.cms-page-body pre code { background: transparent; padding: 0; color: var(--text); }
.cms-page-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.cms-page-body hr { border: none; border-top: 1px solid var(--border-light); margin: 2rem 0; }
.cms-page-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cms-page-body th, .cms-page-body td { padding: .5rem .75rem; border-bottom: 1px solid var(--border-light); text-align: left; }
.cms-page-body th { background: rgba(107, 39, 153, .08); color: #fff; font-weight: 600; }

/* ============== Forum reactions ============== */
.reaction-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; margin: .75rem 0 .25rem;
  padding-top: .75rem; border-top: 1px solid var(--border-light);
}
.reaction-summary { display: flex; flex-wrap: wrap; gap: .35rem; }
.reaction-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-light);
  color: var(--text); font-size: .82rem; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.reaction-chip:hover { background: rgba(107, 39, 153, .12); border-color: var(--p-color); transform: translateY(-1px); }
.reaction-chip.is-mine { background: rgba(107, 39, 153, .22); border-color: var(--p-color); color: #fff; }
.reaction-chip-icon { font-size: 1.05em; line-height: 1; }
.reaction-chip-count { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .78rem; }

/* Per-reaction colors */
.reaction-chip[data-emoji="like"]  .reaction-chip-icon,
.reaction-picker-btn[data-emoji="like"]  .reaction-picker-icon { color: #3b82f6; }
.reaction-chip[data-emoji="love"]  .reaction-chip-icon,
.reaction-picker-btn[data-emoji="love"]  .reaction-picker-icon { color: #ef4444; }
.reaction-chip[data-emoji="laugh"] .reaction-chip-icon,
.reaction-picker-btn[data-emoji="laugh"] .reaction-picker-icon { color: #facc15; }
.reaction-chip[data-emoji="wow"]   .reaction-chip-icon,
.reaction-picker-btn[data-emoji="wow"]   .reaction-picker-icon { color: #f59e0b; }
.reaction-chip[data-emoji="sad"]   .reaction-chip-icon,
.reaction-picker-btn[data-emoji="sad"]   .reaction-picker-icon { color: #60a5fa; }
.reaction-chip[data-emoji="fire"]  .reaction-chip-icon,
.reaction-picker-btn[data-emoji="fire"]  .reaction-picker-icon { color: #fb923c; }

.reaction-add-wrap { position: relative; }
.reaction-add {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: transparent; border: 1px dashed var(--border-light);
  color: var(--text-muted); font-size: .8rem; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.reaction-add:hover { color: #fff; border-color: var(--p-color); background: rgba(107, 39, 153, .08); border-style: solid; }
.reaction-add i { font-size: .95em; }
.reaction-add span { font-weight: 600; letter-spacing: .02em; }

.reaction-picker {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20;
  display: flex; gap: .25rem; padding: .4rem;
  background: linear-gradient(180deg, rgba(28,18,40,.98) 0%, rgba(18,12,28,.98) 100%);
  border: 1px solid var(--border-light); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  animation: react-pop .12s ease-out;
}
.reaction-picker[hidden] { display: none; }
@keyframes react-pop {
  from { opacity: 0; transform: translateY(4px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reaction-picker-btn {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .4rem .55rem; border-radius: 8px;
  background: transparent; border: 1px solid transparent; color: #fff;
  font-size: 1.05rem; cursor: pointer;
  transition: background .12s, transform .12s, border-color .12s;
}
.reaction-picker-btn:hover { background: rgba(107, 39, 153, .18); transform: translateY(-2px) scale(1.1); }
.reaction-picker-btn.is-mine { background: rgba(107, 39, 153, .28); border-color: var(--p-color); }
.reaction-picker-icon { line-height: 1; }
.reaction-picker-count { font-size: .68rem; color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Mobile admin */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; max-height: none; }
  .admin-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; }
  .admin-cols { grid-template-columns: 1fr; }
  .admin-main { padding: 1.25rem; }
  .nav-staff-label { display: none; }
}
@media (max-width: 600px) {
  .admin-nav { grid-template-columns: 1fr; }
  .admin-table { font-size: .8rem; }
  .admin-table thead th, .admin-table tbody td { padding: .5rem; }
}

/* ============================================================
   Modes section (home) — Lifesteal + Roleplay cards
   ============================================================ */
.lifesteal-section { background: transparent; }

/* "Aggiungi il server" section */
.addserver-section { padding: 5rem 0; }
.addserver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.addserver-text .section-eyebrow { margin-bottom: 1rem; }
.addserver-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 1.75rem; line-height: 1.1; text-transform: uppercase; letter-spacing: -.02em; }
.addserver-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.addserver-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.addserver-step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: rgba(107, 39, 153, .12); border: 1px solid var(--border-light); color: var(--text-muted); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.addserver-steps li.is-active .addserver-step-num { background: rgba(107, 39, 153, .25); border-color: var(--p-color); color: var(--p-color-light); }
.addserver-step-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.addserver-steps li.is-active .addserver-step-title { color: var(--p-color-light); }
.addserver-step-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.addserver-step-desc strong { color: #fff; font-weight: 600; }

.addserver-card { position: relative; background: linear-gradient(180deg, rgba(20,14,30,.85) 0%, rgba(14,10,24,.95) 100%); border: 1px solid var(--border-light); border-radius: 12px; padding: 2rem 1.75rem 1.75rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.addserver-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: linear-gradient(135deg, #fde047, #facc15); color: #1a0f00; padding: .45rem 1rem; border-radius: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 6px 18px rgba(250, 204, 21, .35); white-space: nowrap; }
.addserver-card-title { text-align: center; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.addserver-field { margin-bottom: 1rem; }
.addserver-field label { display: block; font-size: .68rem; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: .45rem; }
.addserver-input { background: rgba(0,0,0,.35); border: 1px solid var(--border-light); border-radius: 10px; padding: .85rem 1rem; color: #fff; font-size: .95rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.addserver-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
.addserver-actions .btn { padding: .7rem 1rem; font-size: .85rem; }
@media (max-width: 860px) { .addserver-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
/* LifeSteal intro — visual a sinistra, presentazione + richiamo wiki a destra */
.lifesteal-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  overflow: hidden;
}

/* Pannello visivo — galleria con cambio foto (solo immagine, niente gradient) */
.ms-visual {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
  background: #160a24;
}
/* Stage immagini (crossfade) */
.ms-stage { position: absolute; inset: 0; z-index: 1; }
.ms-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s ease, transform 6s ease;
  pointer-events: none;
}
.ms-slide.is-active { opacity: 1; transform: scale(1); }
/* Barra superiore: badge a sinistra, cambio-modalità a destra */
.ms-visual-top {
  position: absolute; top: 1rem; left: 1rem; right: 1rem; z-index: 4;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.ms-switch-btn {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-muted); cursor: pointer;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-light);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.ms-switch-btn i { transition: transform .35s ease; }
.ms-switch-btn:hover { color: #fff; background: rgba(255,255,255,.1); transform: translateY(-1px); }
.ms-switch-btn:hover i { transform: rotate(180deg); }
.ms-switch-btn:active { transform: translateY(0); }
/* Frecce */
.ms-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,5,20,.5); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; font-size: .85rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.ms-arrow--prev { left: .85rem; }
.ms-arrow--next { right: .85rem; }
.ms-visual:hover .ms-arrow, .ms-arrow:focus-visible { opacity: 1; }
.ms-arrow:hover { background: rgba(168,85,247,.65); }
/* Dots */
.ms-dots {
  position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 4;
  display: flex; justify-content: center; gap: .5rem;
}
.ms-dot {
  width: 8px; height: 8px; border-radius: 999px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); border: 0;
  transition: width .25s ease, background .25s ease;
}
.ms-dot.is-active { width: 22px; background: #fff; }
.lifesteal-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lifesteal-intro[data-ms-key="roleplay"] .lifesteal-badge {
  background: rgba(168,85,247,.16); border-color: rgba(168,85,247,.45); color: #d8b4fe;
}
.lifesteal-live {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4);
  color: #d1fae5; font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lifesteal-live strong { color: #fff; font-weight: 700; }
.lifesteal-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok, #22c55e);
  box-shadow: 0 0 6px rgba(34,197,94,.8);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Pannello contenuto */
.ms-content { display: flex; flex-direction: column; padding: 1rem .75rem 1rem .5rem; }
.lifesteal-eyebrow { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--p-color-light); font-weight: 700; margin-bottom: .5rem; }
.lifesteal-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .8rem; text-transform: uppercase; }
.lifesteal-lead { color: var(--text-muted); line-height: 1.65; font-size: .96rem; margin: 0 0 1.4rem; max-width: 46ch; min-height: 3.2em; }
.ms-anim { animation: ms-fade-up .4s ease both; }
@keyframes ms-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }

/* Richiamo wiki */
.lifesteal-wiki {
  margin-top: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.22);
  text-decoration: none; color: inherit;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lifesteal-wiki:hover { background: rgba(168,85,247,.13); border-color: rgba(168,85,247,.45); transform: translateY(-2px); }
.lifesteal-wiki-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--p-accent);
  background: rgba(168,85,247,.14); border: 1px solid rgba(168,85,247,.3);
}
.lifesteal-wiki-text { display: flex; flex-direction: column; gap: .15rem; }
.lifesteal-wiki-text strong { color: #fff; font-size: .92rem; font-weight: 700; }
.lifesteal-wiki-text span { color: var(--text-muted); font-size: .82rem; line-height: 1.45; }
.lifesteal-wiki-arrow { margin-left: auto; flex-shrink: 0; color: var(--p-color-light); font-size: .85rem; transition: transform .2s ease; }
.lifesteal-wiki:hover .lifesteal-wiki-arrow { transform: translate(2px, -2px); }

/* ============================================================
   Discord community CTA (home) — text LEFT, mascot RIGHT
   ============================================================ */
.discord-section { padding-top: 2rem; padding-bottom: 4rem; }
.discord-cta {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(180deg, #5b8df0 0%, #4d7cdb 50%, #3e6ac9 100%);
  border-radius: 24px;
  padding: 4.5rem 3.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(70, 120, 220, .35);
}
.discord-cta-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.discord-cta-wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 110px;
  display: block;
}
.discord-cta-wave--top { top: 0; }
.discord-cta-wave--bottom { bottom: 0; transform: scaleY(-1); }
.discord-cta > .discord-cta-art,
.discord-cta > .discord-cta-body { position: relative; z-index: 1; }

.discord-cta-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 320px; height: 320px;
  justify-self: center;
}
.discord-cta-art img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(20, 40, 90, .45));
  animation: float 4s ease-in-out infinite;
}

.discord-cta-body { color: #fff; }
.discord-cta-body h2 {
  display: flex; align-items: center; gap: .8rem;
  flex-wrap: wrap;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  margin-bottom: 1.1rem;
  color: #fff;
  text-transform: uppercase;
}
.discord-cta-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .15);
}
.discord-cta-logo img { display: block; }
.discord-cta-body p {
  color: rgba(255, 255, 255, .92);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 640px;
}
.discord-cta-body p strong { color: #fff; font-weight: 800; }
.discord-cta-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
/* Versione gialla del bottone Discord — solo nella CTA della home */
.discord-cta .btn-discord {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffd84d;
  color: #161616;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  width: 100%;
  max-width: 460px;
  font-size: 1rem;
  box-shadow: 0 6px 22px rgba(20, 40, 90, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.discord-cta .btn-discord:hover {
  background: #ffe071;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 40, 90, .35);
  color: #000;
}

/* ============================================================
   Mobile responsive — modes + discord cta
   ============================================================ */
@media (max-width: 900px) {
  .lifesteal-intro { grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem; }
  .ms-visual { min-height: 240px; }
  .ms-content { padding: .75rem .5rem .5rem; }
  .ms-arrow { opacity: 1; }
  .discord-cta { grid-template-columns: 1fr; padding: 3rem 1.75rem; gap: 1.25rem; text-align: center; }
  .discord-cta-art { width: 200px; height: 200px; margin: 0 auto; justify-self: center; order: 1; }
  .discord-cta-body { order: 2; }
  .discord-cta-body h2 { justify-content: center; }
  .discord-cta-body p { margin-left: auto; margin-right: auto; }
  .discord-cta-actions { justify-content: center; }
  .discord-cta .btn-discord { width: 100%; }
}

/* ============================================================
   Store ticket flow (Discord-based) — no direct payments
   ============================================================ */
.store-ticket-notice {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-top: 1.25rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, .1);
  border: 1px solid rgba(88, 101, 242, .3);
  color: var(--text);
  font-size: .88rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.store-ticket-notice i { color: #5865F2; font-size: 1rem; flex-shrink: 0; }
.store-ticket-notice strong { color: #fff; }

.store-foot-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.store-foot-actions .btn { white-space: nowrap; }
.store-foot-detail {
  font-size: .78rem;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .3rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .2s ease;
}
.store-foot-detail i { font-size: .65rem; transition: transform .2s ease; }
.store-foot-detail:hover { color: var(--p-color-light); }
.store-foot-detail:hover i { transform: translateX(3px); }

.store-ticket-howto {
  margin-top: 1.25rem;
  padding: 1.2rem 1.4rem;
  background: rgba(88, 101, 242, .06);
  border: 1px solid rgba(88, 101, 242, .25);
  border-radius: 10px;
}
.store-ticket-howto h4 { font-size: .92rem; font-weight: 700; margin-bottom: .8rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.store-ticket-howto h4 i { color: #5865F2; }
.store-ticket-howto ol { margin: 0; padding-left: 1.2rem; }
.store-ticket-howto ol li { color: var(--text-muted); font-size: .88rem; line-height: 1.7; padding: .12rem 0; }
.store-ticket-howto ol li strong { color: #fff; }
.store-ticket-howto ol li code { background: rgba(255, 255, 255, .06); padding: .1rem .4rem; border-radius: 4px; font-size: .82rem; color: var(--p-accent); }

@media (max-width: 640px) {
  .store-foot-actions { align-items: stretch; width: 100%; }
  .store-foot-actions .btn { width: 100%; justify-content: center; }
  .store-foot-detail { justify-content: center; }
}

/* Discord mascot variant (when user-provided image is present) */
.discord-cta-art--mascot { width: 320px; height: 320px; }
.discord-cta-art--mascot img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(20, 40, 90, .5));
  animation: float 4s ease-in-out infinite;
  image-rendering: pixelated;
}

@media (max-width: 900px) {
  .discord-cta-art--mascot { width: 220px; height: 220px; margin: 0 auto; }
}

/* ============================================================
   Minecraft account linking page (/account/links/mc)
   ============================================================ */
.mc-link-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(98, 180, 122, .06);
  border: 1px solid rgba(98, 180, 122, .25);
  border-radius: 10px;
  margin-top: 1.25rem;
}
.mc-link-card--linked { background: rgba(98, 180, 122, .08); border-color: rgba(98, 180, 122, .35); }
.mc-link-avatar img { width: 96px; height: 96px; border-radius: 12px; image-rendering: pixelated; display: block; }
.mc-link-info .mc-link-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #62B47A; }
.mc-link-info .mc-link-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #62B47A; box-shadow: 0 0 8px rgba(98, 180, 122, .8); }
.mc-link-info .mc-link-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin-top: .35rem; line-height: 1.1; }
.mc-link-info .mc-link-uuid { margin-top: .35rem; font-size: .76rem; }
.mc-link-info .mc-link-uuid code { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .04); padding: .2rem .45rem; border-radius: 5px; }

.mc-link-code-box {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(107, 39, 153, .12), rgba(168, 85, 247, .06));
  border: 1px solid rgba(168, 85, 247, .35);
  border-radius: 12px;
  text-align: center;
}
.mc-link-code-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--p-color-light); margin-bottom: 1rem; }
.mc-link-code {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: .25em;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  border: 2px dashed rgba(168, 85, 247, .5);
  padding: .9rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  user-select: all;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.mc-link-code:hover { border-color: var(--p-accent); background: rgba(0, 0, 0, .5); }
.mc-link-code:active { transform: scale(.98); }
.mc-link-code i { font-size: .55em; color: var(--p-color-light); }
.mc-link-code.is-copied { border-color: var(--ok); }
.mc-link-code.is-copied i::before { content: "\f00c"; color: var(--ok); }

.mc-link-code-cmd { margin-top: 1rem; font-size: .95rem; color: var(--text-muted); }
.mc-link-code-cmd code { background: rgba(255, 255, 255, .06); padding: .35rem .7rem; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; font-size: 1rem; }

.mc-link-code-timer { margin-top: 1.25rem; font-size: .85rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .5rem; }
.mc-link-code-timer i { color: var(--warn); }
.mc-link-code-timer.is-soon { color: var(--warn); }
.mc-link-code-timer.is-expired { color: var(--bad); }

.mc-link-howto { margin-top: 1.5rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.25rem 1.5rem; }
.mc-link-howto h3 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: .85rem; display: flex; align-items: center; gap: .5rem; }
.mc-link-howto h3 i { color: var(--p-color-light); }
.mc-link-howto ol { margin: 0; padding-left: 1.3rem; }
.mc-link-howto ol li { color: var(--text-muted); font-size: .92rem; line-height: 1.75; padding: .1rem 0; }
.mc-link-howto ol li strong { color: #fff; }
.mc-link-howto ol li code { background: rgba(255, 255, 255, .06); padding: .12rem .4rem; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--p-accent); font-size: .88rem; }
.mc-link-howto--compact { padding: 1rem 1.25rem; margin-top: 1.25rem; }
.mc-link-howto--compact ol { padding-left: 1.1rem; }
.mc-link-howto--compact ol li { font-size: .85rem; line-height: 1.6; }

@media (max-width: 640px) {
  .mc-link-card { grid-template-columns: 64px 1fr; }
  .mc-link-card .mc-link-actions { grid-column: 1 / -1; justify-self: stretch; }
  .mc-link-avatar img { width: 64px; height: 64px; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

/* ════════════════════════════════════════════════════════════════════
   STORE — Catalogo, dettaglio prodotto, saldo OblivionCoins
   Design system unificato. Tema viola Oblivion su sfondo dark.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Wrapper + Hero ──────────────────────────────────────────────── */

.shop {
  --gold: #f5b921;
  --gold-soft: rgba(245, 185, 33, 0.12);
  --gold-border: rgba(245, 185, 33, 0.32);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.1);

  padding: 4rem 0 6rem;
  min-height: 80vh;
  position: relative;
  background: transparent; /* macchie viola sostituite dal bagliore video ambientale */
}

.shop__hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.shop__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--p-color-light);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.5rem;
}
.shop__eyebrow::before,
.shop__eyebrow::after {
  content: ""; position: absolute; top: 50%;
  width: .8rem; height: 1px;
  background: currentColor; opacity: .45;
}
.shop__eyebrow::before { left: 0; }
.shop__eyebrow::after  { right: 0; }
.shop__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px); font-weight: 800;
  line-height: 1.05;
  letter-spacing: .005em;
  color: #fff;
  margin: 0 0 .85rem;
}
.shop__lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 520px;
}

/* ─── Saldo pill (top-right su catalog, top center come banner) ───── */

.shop__balance {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 1.75rem;
  padding: .7rem 1.1rem .7rem .85rem;
  background: linear-gradient(135deg, rgba(245, 185, 33, .12) 0%, rgba(245, 185, 33, .04) 100%);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop__balance:hover { border-color: var(--gold); color: var(--text); }
.shop__balance__icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5b921 0%, #d49a14 100%);
  color: #1a1208;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(245, 185, 33, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: .85rem;
}
.shop__balance__label { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.shop__balance__value { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop__balance__cta { color: var(--p-accent); font-size: .82rem; font-weight: 700; padding-left: .8rem; margin-left: .2rem; border-left: 1px solid var(--gold-border); transition: color .15s; }
.shop__balance:hover .shop__balance__cta { color: var(--gold); }

/* Versione "guest" (per non loggati): più sobria, invita a loggarsi */
.shop__balance--guest { border-color: var(--border-light); background: rgba(255, 255, 255, 0.03); }
.shop__balance--guest .shop__balance__icon { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); box-shadow: none; }
.shop__balance--guest .shop__balance__value { color: var(--text-muted); font-weight: 600; }

/* ─── Trust strip (3 garanzie, riga sotto hero) ────────────────────── */

.shop__trust {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0;
  max-width: 820px;
  margin: 1.5rem auto 0;
}
.shop__trust li {
  flex: 1 1 220px;
  display: flex; flex-direction: column; gap: .15rem;
  padding: .35rem 1.25rem;
  position: relative;
}
.shop__trust li + li::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: var(--border-light);
}
.shop__trust-k {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  color: var(--p-accent);
  letter-spacing: .14em; text-transform: uppercase;
}
.shop__trust-v {
  font-size: .82rem; color: var(--text-muted); line-height: 1.4;
}
@media (max-width: 720px) {
  .shop__trust li + li::before { display: none; }
  .shop__trust li { padding: .35rem .5rem; }
}

/* ─── Container ────────────────────────────────────────────────────── */

.shop__container { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }

/* ─── Tab categorie orizzontali (sopra i pacchetti) ──────────────── */

.shop__cats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem;
  margin: 2.5rem auto 1.25rem;
  max-width: 1100px;
  padding: 0 1rem;
}
.shop__cat {
  --cat-color: var(--p-color-light);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1.1rem;
  background: #16121e;
  border: 1px solid #2a2238;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.shop__cat-icon { color: var(--cat-color); font-size: .9em; }
.shop__cat-label { line-height: 1; }
.shop__cat-count {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted-2);
  background: rgba(255, 255, 255, .05);
  padding: .15rem .45rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.shop__cat:hover {
  color: #fff;
  border-color: var(--cat-color);
  background: rgba(107, 39, 153, .08);
}
.shop__cat.is-active {
  color: #fff;
  background: var(--cat-color);
  border-color: var(--cat-color);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--cat-color) 30%, transparent);
}
.shop__cat.is-active .shop__cat-icon,
.shop__cat.is-active .shop__cat-count { color: #fff; }
.shop__cat.is-active .shop__cat-count { background: rgba(0, 0, 0, .25); }

/* Nome della categoria attiva sotto le tab */
.shop__cathead {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 720px;
  padding: 0 1rem;
}
.shop__cathead-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .35rem;
  position: relative;
  display: inline-block;
  padding-bottom: .55rem;
}
.shop__cathead-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 3px;
  background: var(--p-color-light);
  border-radius: 2px;
  transform: translateX(-50%);
}
.shop__cathead-desc {
  color: var(--text-muted);
  font-size: .95rem;
  margin: .75rem 0 0;
  line-height: 1.5;
}

/* ─── Stage: solo griglia pacchetti (skin laterali rimosse) ───────── */

.shop__stage {
  max-width: 1180px;
  margin: 1.5rem auto 0;
}

/* ─── Griglia pacchetti stile Coral ───────────────────────────────── */

.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.shop__card {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  background: #14101e;
  border: 1px solid #2a2238;
  border-radius: 10px;
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
  overflow: visible;
}
.shop__card:hover {
  border-color: #3a3148;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
}

/* Highlights: popolare = bordo blu/purple chiaro, miglior valore = bordo oro */
.shop__card--popular {
  border-color: rgba(168, 85, 247, .55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .25), 0 16px 32px rgba(107, 39, 153, .25);
}
.shop__card--popular:hover {
  border-color: rgba(168, 85, 247, .8);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .45), 0 22px 40px rgba(107, 39, 153, .35);
}
.shop__card--bestvalue {
  border-color: rgba(245, 185, 33, .55);
  box-shadow: 0 0 0 1px rgba(245, 185, 33, .22), 0 16px 32px rgba(245, 185, 33, .15);
}
.shop__card--bestvalue:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 185, 33, .4), 0 22px 40px rgba(245, 185, 33, .25);
}

/* Ribbon che si appoggia in cima al bordo */
.shop__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: .4rem .8rem;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
  z-index: 2;
}
.shop__ribbon i { font-size: .8em; }
.shop__ribbon--popular {
  background: linear-gradient(135deg, var(--p-color-light) 0%, var(--p-color) 100%);
  box-shadow: 0 6px 16px rgba(168, 85, 247, .45);
}
.shop__ribbon--value {
  background: linear-gradient(135deg, #f8c640 0%, #d49510 100%);
  color: #2a1c00;
  box-shadow: 0 6px 16px rgba(245, 185, 33, .4);
}

/* Sale tag (sticker in alto a sinistra) */
.shop__sale {
  position: absolute; top: 10px; left: 10px;
  background: #ef4444; color: #fff;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .04em;
  padding: .25rem .5rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(239, 68, 68, .35);
}

/* Immagine grande del pacchetto */
.shop__card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 170px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.shop__card-img img {
  max-width: 85%; max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 12px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55));
  transition: transform .3s ease;
}
.shop__card:hover .shop__card-img img { transform: translateY(-4px) scale(1.03); }
.shop__card-img-ph { color: var(--p-color-light); font-size: 3.5rem; opacity: .3; }

/* Corpo: nome, sub-categoria, "bonus" (qui # vantaggi) */
.shop__card-body {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  width: 100%;
  margin-bottom: .85rem;
}
.shop__card-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .015em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.shop__card-sub {
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  margin-top: .2rem;
}
.shop__card-bonus {
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 600;
  color: var(--gold);
  opacity: .8;
  margin-top: .15rem;
}

/* Pill prezzo */
.shop__card-pill {
  display: inline-flex; align-items: baseline; gap: .4rem;
  background: #0a0812;
  border: 1px solid #2a2238;
  border-radius: 999px;
  padding: .5rem 1.05rem;
  margin-bottom: .85rem;
  font-variant-numeric: tabular-nums;
}
.shop__card-pill-old {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-muted-2);
  text-decoration: line-through;
  font-weight: 600;
}
.shop__card-pill-now {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  color: #fff;
  letter-spacing: .015em;
  line-height: 1;
}
.shop__card--onsale .shop__card-pill-now    { color: var(--emerald); }
.shop__card--popular .shop__card-pill-now   { color: #fff; }
.shop__card--bestvalue .shop__card-pill-now { color: var(--gold); }

/* Bottone Acquista — pieno, vistoso ma non flashy */
.shop__card-buy {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, var(--p-color-light) 0%, var(--p-color) 100%);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.shop__card-buy:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(168, 85, 247, .35);
  color: #fff;
}
.shop__card-buy i { font-size: .9em; }

/* Sale tweaks: bottone più "vivo" */
.shop__card--bestvalue .shop__card-buy {
  background: linear-gradient(135deg, #f5b921 0%, #c98f0a 100%);
  color: #1d1300;
}
.shop__card--bestvalue .shop__card-buy:hover { color: #1d1300; }

@media (max-width: 600px) {
  .shop__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .shop__card { padding: 1rem .75rem .85rem; }
  .shop__card-name { font-size: 1.4rem; }
  .shop__card-pill-now { font-size: 1.05rem; }
}

/* Stato "empty" */
.shop__empty {
  max-width: 460px; margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-light);
  border-radius: 6px;
}
.shop__empty i { font-size: 2.5rem; color: var(--text-muted-2); margin-bottom: 1rem; }
.shop__empty p { color: var(--text-muted); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   STORE DETAIL — pagina prodotto singolo
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   STORE DETAIL — refined dark commerce (minimal, SVG icons, no glow)
   ════════════════════════════════════════════════════════════════════ */
.shop-detail {
  --s-accent: #8b6fc4;
  --s-accent-hover: #9d83d6;
  --s-line: rgba(255,255,255,.09);
  --s-line-strong: rgba(255,255,255,.16);
  --s-surface: rgba(255,255,255,.025);
  --s-text: #ececf1;
  --s-muted: #9b9ba6;
  --s-faint: #6b6b76;
  padding: 0 0 6rem; min-height: 80vh; background: transparent;
}
.shop-detail .ico { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }

/* ── Hero: video ambientale (come la home), overlay neutro, sfuma in basso ── */
.shop-detail__hero {
  position: relative; padding: 2.5rem 0 3rem; margin-bottom: 3.5rem;
  overflow: hidden; border-bottom: 1px solid var(--s-line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 60%);
}
.shop-detail__hero--video { background: var(--bg); }
.shop-detail__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.shop-detail__video::-webkit-media-controls,
.shop-detail__video::-webkit-media-controls-panel,
.shop-detail__video::-webkit-media-controls-start-playback-button,
.shop-detail__video::-webkit-media-controls-overlay-play-button,
.shop-detail__video::-webkit-media-controls-enclosure,
.shop-detail__video::-webkit-media-controls-fullscreen-button,
.shop-detail__video::-webkit-media-controls-overlay-enclosure { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.shop-detail__video-shield { position: absolute; inset: 0; z-index: 0; pointer-events: auto; background: transparent; cursor: default; }
.shop-detail__video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,11,.93) 0%, rgba(8,8,11,.55) 48%, rgba(8,8,11,.12) 100%),
    linear-gradient(180deg, rgba(8,8,11,.20) 0%, rgba(8,8,11,.74) 72%, var(--bg) 100%);
}
.shop-detail__hero > .shop__container { position: relative; z-index: 1; }
.shop-detail__hero-inner { max-width: 760px; }

.shop-detail__back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--s-muted); font-size: .82rem; font-weight: 500;
  margin-bottom: 2rem; transition: color .18s;
}
.shop-detail__back .ico { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.shop-detail__back:hover { color: #fff; }
.shop-detail__back:hover .ico { transform: translateX(-3px); }

.shop-detail__cat {
  display: inline-block; padding: .3rem .7rem;
  border: 1px solid var(--s-line-strong); border-radius: 4px;
  color: var(--s-muted); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.shop-detail__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.75rem); line-height: .92; letter-spacing: .02em;
  color: #fff; margin: 0 0 1.4rem;
}

.shop-detail__pricing { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.shop-detail__price-now {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.shop-detail__price-now--sale { color: #fff; }
.shop-detail__price-old {
  font-size: 1.05rem; color: var(--s-faint); font-weight: 500;
  text-decoration: line-through; text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}
.shop-detail__save {
  align-self: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: var(--s-accent); border: 1px solid rgba(139,111,196,.45);
  padding: .22rem .5rem; border-radius: 4px;
}
.shop-detail__save--code { color: var(--s-muted); border-color: var(--s-line-strong); text-transform: uppercase; }

.shop-detail__sale-deadline {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem;
  color: var(--s-muted); font-size: .82rem; font-weight: 500;
}
.shop-detail__sale-deadline .ico { width: 15px; height: 15px; color: var(--s-faint); }
.shop-detail__sale-deadline strong { color: #fff; font-weight: 600; }

/* ── Layout: rail acquisto a sinistra, contenuto a destra ── */
.shop-detail__layout {
  display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.6fr);
  gap: 3.5rem; align-items: start;
}
.shop-detail__rail { order: 1; }
.shop-detail__main { order: 2; }
@media (max-width: 920px) {
  .shop-detail__layout { grid-template-columns: 1fr; gap: 2rem; }
  .shop-detail__main { order: 1; }
  .shop-detail__rail { order: 2; }
}

.shop-detail__desc {
  font-size: 1.05rem; line-height: 1.75; color: var(--s-muted);
  white-space: pre-line; margin: 0 0 2.25rem; max-width: 62ch;
}

/* ── Perks: lista editoriale con hairline, check animato ── */
.shop-detail__perks { border-top: 1px solid var(--s-line); padding-top: 1.75rem; }
.shop-detail__perks h3 {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--s-muted);
}
.shop-detail__perks h3 .ico { width: 16px; height: 16px; color: var(--s-accent); }
.shop-detail__perks ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 2.5rem;
}
.shop-detail__perks li {
  display: flex; align-items: flex-start; gap: .7rem; padding: .65rem 0;
  font-size: .93rem; line-height: 1.5; color: var(--s-text);
  border-bottom: 1px solid var(--s-line);
}
.shop-detail__perks li .ico--check { width: 17px; height: 17px; color: var(--s-accent); margin-top: .1rem; }

.ico--check { stroke-dasharray: 24; stroke-dashoffset: 24; }
.shop-detail__perks li .ico--check { animation: s-draw .5s cubic-bezier(.5,.1,.2,1) both; }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
.shop-detail__perks li:nth-child(1) .ico--check { animation-delay: .15s; }
.shop-detail__perks li:nth-child(2) .ico--check { animation-delay: .20s; }
.shop-detail__perks li:nth-child(3) .ico--check { animation-delay: .25s; }
.shop-detail__perks li:nth-child(4) .ico--check { animation-delay: .30s; }
.shop-detail__perks li:nth-child(5) .ico--check { animation-delay: .35s; }
.shop-detail__perks li:nth-child(6) .ico--check { animation-delay: .40s; }
.shop-detail__perks li:nth-child(7) .ico--check { animation-delay: .45s; }
.shop-detail__perks li:nth-child(8) .ico--check { animation-delay: .50s; }

/* ── Rail ── */
.shop-detail__rail { display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 1.5rem; }
@media (max-width: 920px) { .shop-detail__rail { position: static; } }

.shop-detail__media {
  margin: 0; border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden;
  background: #0b0a0f; transition: border-color .25s;
}
.shop-detail__media img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shop-detail__media:hover { border-color: var(--s-line-strong); }
.shop-detail__media:hover img { transform: scale(1.025); }

/* Codice sconto */
.shop-detail__promo label {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-muted);
}
.shop-detail__promo label .ico { width: 15px; height: 15px; color: var(--s-faint); }
.shop-detail__promo-row { display: flex; gap: .5rem; }
.shop-detail__promo-row input {
  flex: 1; min-width: 0; background: var(--s-surface); border: 1px solid var(--s-line);
  border-radius: 8px; padding: .7rem .85rem; color: #fff;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .18s;
}
.shop-detail__promo-row input::placeholder { color: var(--s-faint); }
.shop-detail__promo-row input:focus { outline: none; border-color: var(--s-accent); }
.shop-detail__promo-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .95rem;
  background: transparent; border: 1px solid var(--s-line-strong); border-radius: 8px;
  color: var(--s-text); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .18s;
}
.shop-detail__promo-btn .ico { width: 15px; height: 15px; }
.shop-detail__promo-btn:hover { border-color: var(--s-accent); color: #fff; }
.shop-detail__promo-msg { display: flex; align-items: center; gap: .45rem; margin-top: .7rem; font-size: .8rem; }
.shop-detail__promo-msg .ico { width: 15px; height: 15px; }
.shop-detail__promo-msg--err { color: #e6707a; }
.shop-detail__promo-msg--ok { color: #7fb89a; }
.shop-detail__promo-msg strong { color: #fff; }

/* Box acquisto */
.shop-detail__buybox { border: 1px solid var(--s-line); border-radius: 12px; padding: 1.5rem; background: var(--s-surface); }
.shop-detail__bal { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--s-line); }
.shop-detail__bal > div:last-child { text-align: right; }
.shop-detail__bal__label { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-faint); margin-bottom: .5rem; }
.shop-detail__bal__val { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.shop-detail__bal__val--missing { color: #e6707a; }

.shop-detail__state {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem .95rem;
  border: 1px solid var(--s-line); border-radius: 9px; background: rgba(255,255,255,.02);
  color: var(--s-muted); font-size: .86rem; line-height: 1.5; margin-bottom: 1rem;
}
.shop-detail__state .ico { width: 18px; height: 18px; color: var(--s-accent); margin-top: .05rem; }
.shop-detail__state strong { color: #fff; font-weight: 600; }
.shop-detail__state--warn .ico { color: #d9a441; }

.shop-detail__cta {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  padding: .95rem 1.4rem; border: 0; border-radius: 9px;
  background: var(--s-accent); color: #fff; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .15s;
}
.shop-detail__cta .ico { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.shop-detail__cta:hover { background: var(--s-accent-hover); color: #fff; }
.shop-detail__cta:hover .ico { transform: translateX(4px); }
.shop-detail__cta:active { transform: translateY(1px); }
.shop-detail__cta--alt { background: transparent; border: 1px solid var(--s-line-strong); color: #fff; }
.shop-detail__cta--alt:hover { background: rgba(255,255,255,.04); border-color: var(--s-accent); }
.shop-detail__cta--alt .ico { color: var(--s-accent); }

.shop-detail__hint { display: flex; align-items: flex-start; gap: .5rem; margin-top: .9rem; font-size: .76rem; line-height: 1.5; color: var(--s-faint); }
.shop-detail__hint .ico { width: 15px; height: 15px; color: var(--s-faint); margin-top: .1rem; }
.shop-detail__hint--save { color: var(--s-muted); }
.shop-detail__hint--save strong { color: #fff; }

/* ── Entrata coreografata, sobria ── */
@keyframes s-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shop-detail__cat,
.shop-detail__name,
.shop-detail__pricing,
.shop-detail__sale-deadline { animation: s-rise .55s cubic-bezier(.2,.8,.2,1) both; }
.shop-detail__name { animation-delay: .05s; }
.shop-detail__pricing { animation-delay: .1s; }
.shop-detail__sale-deadline { animation-delay: .15s; }
.shop-detail__main { animation: s-rise .55s .12s cubic-bezier(.2,.8,.2,1) both; }
.shop-detail__media { animation: s-rise .55s .08s cubic-bezier(.2,.8,.2,1) both; }
.shop-detail__promo { animation: s-rise .55s .14s cubic-bezier(.2,.8,.2,1) both; }
.shop-detail__buybox { animation: s-rise .55s .2s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .shop-detail * { animation: none !important; }
  .ico--check { stroke-dashoffset: 0 !important; }
}

/* ════════════════════════════════════════════════════════════════════
   COINS PAGE — saldo, ricarica, storico transazioni
   ════════════════════════════════════════════════════════════════════ */

.coins {
  --gold: #f5b921;
  padding: 4rem 0 6rem;
  min-height: 80vh;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(245, 185, 33, 0.08) 0%, transparent 65%),
    radial-gradient(60% 30% at 50% 100%, rgba(107, 39, 153, 0.08) 0%, transparent 70%);
}
.coins__container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.coins__hero { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }

/* Balance card BIG */
.coins__balance-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(245, 185, 33, .08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(35, 24, 12, .7) 0%, rgba(20, 14, 6, .85) 100%);
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  margin: 0 0 1.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.coins__balance-card::before {
  content: "";
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(245, 185, 33, .12) 90deg, transparent 180deg);
  animation: shop-rotate 12s linear infinite;
  z-index: -1; pointer-events: none;
}
.coins__balance-card::after {
  content: "";
  position: absolute; inset: 1px;
  background: linear-gradient(180deg, rgba(20, 14, 6, .98) 0%, rgba(35, 24, 12, .98) 100%);
  border-radius: 21px;
  z-index: -1;
}
.coins__balance-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.coins__balance-value {
  font-size: clamp(48px, 8vw, 76px); font-weight: 800;
  color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: .85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5b921 110%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.coins__balance-value__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5b921 0%, #d49a14 100%);
  color: #1a1208;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(245, 185, 33, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  flex-shrink: 0;
}
.coins__balance-hint { font-size: .9rem; color: var(--text-muted); margin-top: 1rem; }
.coins__balance-hint strong { color: var(--gold); font-weight: 700; }

/* 2-col layout: topup form sx, info dx */
.coins__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 820px) { .coins__grid { grid-template-columns: 1fr; } }

.coins__card {
  background: linear-gradient(180deg, rgba(28, 18, 42, 0.5) 0%, rgba(16, 11, 25, 0.7) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
}
.coins__card h2 {
  font-size: .92rem; font-weight: 700;
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 1.2rem;
  color: #fff;
  text-transform: uppercase; letter-spacing: .12em;
}
.coins__card h2 i { color: var(--p-accent); }

/* Preset chips */
.coins__presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: .55rem;
  margin-bottom: 1.25rem;
}
.coins__preset {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: .8rem .5rem;
  border-radius: 10px;
  font-size: 1rem; font-weight: 800;
  cursor: pointer;
  transition: all .18s ease;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.coins__preset__cur { font-size: .7rem; color: var(--text-muted); font-weight: 600; display: block; margin-top: .15rem; }
.coins__preset:hover { border-color: var(--gold); background: rgba(245, 185, 33, .08); transform: translateY(-2px); }
.coins__preset:hover .coins__preset__cur { color: var(--gold); }
.coins__preset.is-selected { background: linear-gradient(135deg, rgba(245, 185, 33, .15) 0%, rgba(245, 185, 33, .05) 100%); border-color: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(245, 185, 33, .2); }

.coins__form-label {
  display: block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted);
  margin: 1.25rem 0 .5rem;
}
.coins__form-amount {
  display: flex; align-items: stretch;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.coins__form-amount:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 33, .15); }
.coins__form-amount__input {
  flex: 1; background: transparent; border: 0;
  padding: .9rem 1.1rem;
  color: #fff; font-size: 1.25rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.coins__form-amount__suffix {
  padding: 0 1.1rem;
  display: inline-flex; align-items: center;
  background: rgba(245, 185, 33, .08);
  color: var(--gold);
  font-weight: 800; font-size: .95rem;
  border-left: 1px solid var(--border-light);
}
.coins__form-note {
  width: 100%; box-sizing: border-box;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: .7rem .95rem;
  color: #fff; font-size: .9rem;
  font-family: inherit;
  resize: vertical; min-height: 56px;
}
.coins__form-note:focus { outline: none; border-color: var(--p-color); }

.coins__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%;
  padding: .9rem 1.5rem;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: 0; border-radius: 12px;
  color: #fff; font-size: .98rem; font-weight: 800;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: all .22s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 8px 22px rgba(88, 101, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.coins__submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(88, 101, 242, .5); }
.coins__submit i { font-size: 1.1em; }

.coins__sidebar-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-light);
}
.coins__sidebar-item:last-child { border-bottom: 0; }
.coins__sidebar-item__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(107, 39, 153, .15);
  color: var(--p-accent);
  border-radius: 10px;
  flex-shrink: 0;
}
.coins__sidebar-item__body strong { display: block; color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.coins__sidebar-item__body span { color: var(--text-muted); font-size: .82rem; line-height: 1.5; display: block; }

/* Open topups + ledger tables */
.coins__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.coins__table thead th {
  text-align: left;
  padding: .55rem .65rem;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.coins__table tbody td {
  padding: .85rem .65rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  vertical-align: middle;
}
.coins__table tbody tr:last-child td { border-bottom: 0; }
.coins__table tbody tr:hover td { background: rgba(255, 255, 255, .02); }

.coins__tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: rgba(255, 255, 255, .06);
  color: var(--text-muted);
  white-space: nowrap;
}
.coins__tag i { font-size: .75em; }
.coins__tag--up { background: var(--success-soft); color: var(--success); }
.coins__tag--down { background: rgba(239, 68, 68, .12); color: #fca5a5; }
.coins__tag--neutral { background: rgba(148, 163, 184, .12); color: #cbd5e1; }
.coins__amount-up { color: var(--success); font-weight: 700; font-variant-numeric: tabular-nums; }
.coins__amount-down { color: #f87171; font-weight: 700; font-variant-numeric: tabular-nums; }
.coins__amount-neutral { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }

.coins__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.coins__empty i { display: block; font-size: 2rem; color: var(--text-muted-2); margin-bottom: .65rem; }

/* Smaller button variant */
.btn-sm { padding: .4rem .8rem; font-size: .78rem; }

/* ════════════════════════════════════════════════════════════
   /store/coins — nuova UI (oc-coins)
   Stile dashboard pixel-server, no glass/gradient marketing
   ════════════════════════════════════════════════════════════ */
.oc-coins {
  padding: 3.5rem 0 6rem;
  position: relative;
  background: transparent;
}
.oc-coins__wrap {
  max-width: 1480px; margin: 0 auto; padding: 0 1.25rem;
  position: relative; z-index: 1;
}

/* ── Banner saldo: wallet pulito, minimal ── */
.oc-coins__banner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 2rem;
  background: var(--bg-2, #161320);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.oc-coins__banner-coin {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(245, 185, 33, .12);
  border: 1px solid rgba(245, 185, 33, .35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.oc-coins__banner-coin-face {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #f5b921;
  font-weight: 800;
  letter-spacing: -.02em;
}
.oc-coins__banner-info { min-width: 0; }
.oc-coins__banner-eyebrow {
  display: inline-block;
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .35rem;
}
.oc-coins__banner-amount {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 64px);
  line-height: 1;
  color: #fff;
  letter-spacing: .01em;
}
.oc-coins__banner-meta {
  display: block; margin-top: .55rem;
  color: var(--text-muted); font-size: .88rem;
}
@media (max-width: 720px) {
  .oc-coins__banner { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.25rem; }
  .oc-coins__banner-coin { width: 60px; height: 60px; }
  .oc-coins__banner-coin-face { font-size: 1.6rem; }
}

/* ── Layout: solo colonna contenuto (skin laterali rimosse) ── */
.oc-coins__split {
  max-width: 880px;
  margin: 0 auto;
}
.oc-coins__left {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ── Panels (form / howto / open) — card piatte, minimal ── */
.oc-coins__main, .oc-coins__howto, .oc-coins__open, .oc-coins__ledger {
  position: relative;
  background: var(--bg-2, #161320);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem 2rem;
}
.oc-coins__h {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
}
.oc-coins__h--sm { font-size: 1.2rem; }

/* ── Form ricarica ── */
.oc-coins__field { margin-bottom: 1.4rem; }
.oc-coins__field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--text-muted);
  letter-spacing: .04em; text-transform: lowercase;
  margin-bottom: .6rem;
}
.oc-coins__field-label em {
  font-style: normal; color: var(--text-muted-2);
}

.oc-coins__presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: .45rem; margin-bottom: .85rem;
}
.oc-coins__chip {
  position: relative;
  background: #0e0c14;
  border: 1px solid #2a2238;
  border-radius: 4px;
  padding: .9rem .5rem;
  color: #cfc8d8;
  font: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  display: flex; align-items: baseline; justify-content: center; gap: .15rem;
}
.oc-coins__chip::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--emerald); transform: scaleX(0); transform-origin: center;
  transition: transform .2s ease;
}
.oc-coins__chip:hover {
  border-color: var(--p-color-light);
  color: #fff;
  background: rgba(107, 39, 153, .08);
}
.oc-coins__chip.is-selected {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: #fff;
}
.oc-coins__chip.is-selected::before { transform: scaleX(1); }
.oc-coins__chip-num {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: .03em;
  line-height: 1;
}
.oc-coins__chip-cur {
  font-family: var(--font-mono);
  font-size: .78rem; color: var(--text-muted-2);
  margin-left: .15rem;
}
.oc-coins__chip.is-selected .oc-coins__chip-cur { color: var(--emerald); }

.oc-coins__custom {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .85rem;
  background: #0e0c14;
  border: 1px solid #2a2238;
  border-radius: 3px;
}
.oc-coins__custom-hint {
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--text-muted-2);
}
.oc-coins__custom-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff;
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .03em;
  padding: 0;
}
.oc-coins__custom-input::placeholder { color: #3d364a; }
.oc-coins__custom-suffix {
  color: var(--text-muted);
  font-family: var(--font-mono); font-size: .85rem;
}

.oc-coins__note {
  display: block; width: 100%;
  background: #0e0c14;
  border: 1px solid #2a2238;
  border-radius: 3px;
  padding: .7rem .85rem;
  color: #fff; font: inherit; font-size: .9rem;
  resize: vertical; min-height: 60px;
  outline: 0;
  transition: border-color .15s;
}
.oc-coins__note:focus { border-color: var(--p-color-light); }
.oc-coins__note::placeholder { color: var(--text-muted-2); }

.oc-coins__cta {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  width: 100%; padding: 1rem 1rem;
  background: #5865f2;
  color: #fff;
  border: 0; border-radius: 12px;
  font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.oc-coins__cta:hover { background: #4752c4; transform: translateY(-1px); }
.oc-coins__cta i { font-size: 1.1em; }

.oc-coins__note-ok, .oc-coins__note-warn {
  margin: 1rem 0 0; padding: .7rem .85rem;
  font-size: .82rem; line-height: 1.5;
  border-radius: 3px;
}
.oc-coins__note-ok {
  background: var(--emerald-soft);
  border-left: 2px solid var(--emerald);
  color: #cfc8d8;
}
.oc-coins__note-warn {
  background: var(--flame-soft);
  border-left: 2px solid var(--flame);
  color: #cfc8d8;
  display: flex; align-items: center; gap: .5rem;
}
.oc-coins__note-warn a { color: var(--flame); font-weight: 700; }

/* ── How it works steps — gradient tag chips ── */
.oc-coins__steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.oc-coins__steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: .9rem; color: #cfc8d8; line-height: 1.55;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(168, 85, 247, .1);
  border-radius: 10px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.oc-coins__steps li:hover {
  border-color: rgba(168, 85, 247, .3);
  background: rgba(168, 85, 247, .04);
}
.oc-coins__step-tag {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--p-color-light);
  background: rgba(168, 85, 247, .1);
  border: 1px solid rgba(168, 85, 247, .25);
  padding: .3rem .6rem;
  height: fit-content;
  letter-spacing: .04em;
  border-radius: 8px;
  min-width: 40px; text-align: center;
}
.oc-coins__step-tag--ok {
  color: var(--emerald);
  background: var(--emerald-soft);
  border-color: rgba(92, 219, 149, .3);
}

/* ── Ticket aperti ── */
.oc-coins__open {
  background: #16121e;
  border: 1px solid #2a2238;
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
}
.oc-coins__open-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.oc-coins__open-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: .85rem; align-items: center;
  padding: .7rem .9rem;
  background: #0e0c14;
  border-left: 2px solid var(--flame);
}
.oc-coins__open-id {
  font-family: var(--font-mono); color: var(--text-muted-2);
  font-size: .8rem;
}
.oc-coins__open-amount {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--emerald); letter-spacing: .02em;
}
.oc-coins__open-date {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--text-muted);
}
.oc-coins__open-discord {
  color: #5865F2; text-decoration: none; font-size: .85rem; font-weight: 600;
}
.oc-coins__open-discord:hover { color: #7983f5; }
.oc-coins__open-wait {
  color: var(--text-muted-2); font-size: .8rem; font-style: italic;
}
.oc-coins__cancel-btn {
  width: 26px; height: 26px;
  border: 1px solid #3a3148;
  background: transparent;
  color: var(--text-muted);
  border-radius: 3px;
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: all .15s;
}
.oc-coins__cancel-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ── Storico ── */
.oc-coins__ledger {
  background: #16121e;
  border: 1px solid #2a2238;
  border-radius: 4px;
  padding: 1.75rem 2rem;
}
.oc-coins__ledger-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.4rem;
}
.oc-coins__ledger-head .oc-coins__h { margin: 0; }
.oc-coins__ledger-count {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-muted);
}
.oc-coins__tx-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.oc-coins__tx {
  display: grid;
  grid-template-columns: 8px 90px 80px 1fr auto auto;
  gap: .85rem; align-items: center;
  padding: .7rem 0;
  border-top: 1px solid #1f1a2b;
  font-size: .87rem;
}
.oc-coins__tx:first-child { border-top: 0; }
.oc-coins__tx-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.oc-coins__tx-dot--up { background: var(--emerald); }
.oc-coins__tx-dot--down { background: #ef4444; }
.oc-coins__tx-dot--neutral { background: var(--text-muted-2); }
.oc-coins__tx-date {
  font-family: var(--font-mono); font-size: .76rem;
  color: var(--text-muted);
}
.oc-coins__tx-type {
  color: var(--text-muted-2); font-size: .78rem;
  text-transform: lowercase;
}
.oc-coins__tx-desc {
  color: #cfc8d8; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oc-coins__tx-amount {
  font-family: var(--font-display); font-size: 1.05rem;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.oc-coins__tx-amount--up { color: var(--emerald); }
.oc-coins__tx-amount--down { color: #f87171; }
.oc-coins__tx-after {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-muted-2);
}
.oc-coins__empty {
  padding: 2.5rem 1rem; text-align: center;
  color: var(--text-muted); font-size: .9rem;
  border-top: 1px solid #1f1a2b;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .oc-coins__main, .oc-coins__howto,
  .oc-coins__open, .oc-coins__ledger { padding: 1.25rem; }
  .oc-coins__tx { grid-template-columns: 8px 1fr auto; }
  .oc-coins__tx-date, .oc-coins__tx-type, .oc-coins__tx-after { display: none; }
  .oc-coins__open-row { grid-template-columns: auto 1fr auto; }
  .oc-coins__open-date, .oc-coins__open-act { display: none; }
}

/* ──────── Right-click context menu (thread quick actions) ──────── */
.context-menu {
  position: fixed; z-index: 9999;
  min-width: 220px; max-width: 320px;
  background: linear-gradient(180deg, rgba(28,18,40,.98), rgba(18,12,28,.98));
  border: 1px solid var(--border-light); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 0 1px rgba(107,39,153,.15);
  padding: .35rem; backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: ctx-pop .12s ease-out;
}
@keyframes ctx-pop {
  from { opacity: 0; transform: translateY(-4px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.context-menu-title {
  padding: .55rem .8rem .45rem; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--p-color-light); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid var(--border-light); margin-bottom: .25rem;
}
.context-menu-item {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: .55rem .8rem; border: 0; background: transparent;
  color: var(--text); font-size: .85rem; font-weight: 500;
  text-align: left; border-radius: 8px; cursor: pointer;
  transition: background .12s, color .12s;
}
.context-menu-item:hover { background: rgba(107,39,153,.18); color: #fff; }
.context-menu-item i { width: 16px; text-align: center; color: var(--text-muted-2); font-size: .9em; }
.context-menu-item:hover i { color: var(--p-color-light); }
.context-menu-divider { height: 1px; background: var(--border-light); margin: .3rem .35rem; }

/* ════════════════════════════════════════════════════════════
   DETOX LAYER — attenua i marcatori "AI": testo sfumato, glassmorphism,
   glow viola, accento troppo saturo. Caricato per ultimo (vince per ordine).
   Per ripristinare lo stile originale: rimuovere da qui alla fine del file
   (oppure: cp style.css.bak-detox style.css).
   ════════════════════════════════════════════════════════════ */
:root{
  --p-accent: #7c4f9e;        /* era #a855f7 — viola desaturato, meno "AI" */
  --p-color-light: #7a44a6;
}

/* 1 — niente vetro sfocato: superfici piene */
*, *::before, *::after{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
.navbar{ background:#121019 !important; }
.modal-card, .context-menu, .dropdown, .menu, .popover{ background:#16121e !important; }
.navbar::after{ background:rgba(255,255,255,.06) !important; opacity:1 !important; }

/* 2 — testi a colore pieno (niente gradiente clippato) */
.hero-title .accent, .section-title .accent, .about-text h2 .accent,
.stat-num .accent, .nav-logo-text strong, .footer-brand .footer-logo span strong,
.oc-coins__banner-eyebrow{
  background:none !important; -webkit-text-fill-color:currentColor !important; color:var(--p-accent) !important;
}
.stat-num .accent--green{
  background:none !important; -webkit-text-fill-color:currentColor !important; color:var(--emerald) !important;
}
.auth-card h1, .coming-soon h1, .error-page h1, .error-page .code,
.coins__balance-value, .oc-coins__banner-amount,
.hero-row .status-box--side .status-text .bottom{
  background:none !important; -webkit-text-fill-color:currentColor !important; color:#fff !important;
}

/* 3 — via gli aloni colorati: ombre neutre e discrete */
.btn-primary{ box-shadow:none !important; }
.btn-primary:hover{ box-shadow:0 4px 14px rgba(0,0,0,.35) !important; }
.nav-logo-mark, .nav-logo .nav-logo-mark{ box-shadow:none !important; }
.nav-logo-mark img{ filter:none !important; }
.status-box, .modal-card, .context-menu, .post.post-op,
.shop__card--popular, .shop__card--bestvalue, .portal-card .portal-icon, .profile-avatar img{
  box-shadow:0 2px 10px rgba(0,0,0,.28) !important;
}

/* ════════════════════════════════════════════════════════════
   STORE — rifinitura "stile Coral": header con logo + sottolineatura,
   card POPOLARE blu / MIGLIOR VALORE oro, card info-genitori.
   (Dopo il detox: ripristina di proposito gli aloni colorati SOLO sulle
   card store in evidenza — qui il colore è branding voluto, non un tell.)
   ════════════════════════════════════════════════════════════ */

/* Header */
.shop__logo{
  display:block; margin:0 auto 1.1rem; height:96px; width:auto;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.45));
}
.shop__title{ position:relative; padding-bottom:1.15rem; }
.shop__title::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:92px; height:4px; border-radius:2px; background:#38bdf8;
}
.shop__lead{ max-width:600px; }

/* POPOLARE → blu (badge + bordo + alone + bottone) */
.shop__card--popular{
  border-color:rgba(56,189,248,.55) !important;
  box-shadow:0 0 0 1px rgba(56,189,248,.22), 0 16px 32px rgba(56,189,248,.16) !important;
}
.shop__card--popular:hover{
  border-color:rgba(56,189,248,.85) !important;
  box-shadow:0 0 0 1px rgba(56,189,248,.40), 0 22px 40px rgba(56,189,248,.24) !important;
}
.shop__ribbon--popular{
  background:linear-gradient(135deg,#5cc8f5 0%,#2f9fe0 100%) !important;
  color:#04222e !important;
  box-shadow:0 6px 16px rgba(56,189,248,.40) !important;
}
.shop__card--popular .shop__card-buy{
  background:linear-gradient(135deg,#48b8ef 0%,#2f9fe0 100%) !important; color:#04222e !important;
}
.shop__card--popular .shop__card-buy:hover{ color:#04222e !important; box-shadow:0 10px 22px rgba(56,189,248,.35) !important; }

/* MIGLIOR VALORE → ripristina bordo/alone oro (il detox li aveva neutralizzati) */
.shop__card--bestvalue{
  border-color:rgba(245,185,33,.55) !important;
  box-shadow:0 0 0 1px rgba(245,185,33,.22), 0 16px 32px rgba(245,185,33,.15) !important;
}
.shop__card--bestvalue:hover{
  border-color:var(--gold) !important;
  box-shadow:0 0 0 1px rgba(245,185,33,.40), 0 22px 40px rgba(245,185,33,.25) !important;
}

/* Card "Informazioni per i genitori" */
.shop__parents{
  display:flex; align-items:center; gap:1.5rem;
  max-width:900px; margin:3.5rem auto 0;
  background:#14101e; border:1px solid #2a2238; border-radius:12px;
  padding:1.5rem 1.75rem; box-shadow:0 2px 14px rgba(0,0,0,.30);
}
.shop__parents-skin{
  width:110px; height:auto; flex:0 0 auto;
  image-rendering:pixelated;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.5));
  align-self:flex-end;
}
.shop__parents-text h3{
  font-family:var(--font-display); font-size:1.35rem; letter-spacing:.02em;
  text-transform:uppercase; color:#fff; margin:0 0 .5rem;
  display:flex; align-items:center; gap:.6rem;
}
.shop__parents-text h3 i{ color:#ef5a7a; font-size:.9em; }
.shop__parents-text p{ color:var(--text-muted); font-size:.95rem; line-height:1.6; margin:0; }
@media (max-width:640px){
  .shop__parents{ flex-direction:column; text-align:center; gap:.5rem; padding:1.5rem 1.25rem; }
  .shop__parents-skin{ width:90px; align-self:center; }
  .shop__parents-text h3{ justify-content:center; }
}

/* ════════ STORE — card sempre centrate + blocco finale (stile proprio) ════════ */

/* Griglia: flex centrato → anche l'ultima riga incompleta resta centrata */
.shop__grid{ display:flex !important; flex-wrap:wrap; justify-content:center; gap:1rem; }
.shop__card{ flex:0 1 220px; max-width:248px; }
@media (max-width:600px){
  .shop__grid{ grid-template-columns:none !important; }
  .shop__card{ flex-basis:158px; }
}

/* Blocco finale: info genitori (minimal) + garanzie */
.store-foot{ max-width:1080px; margin:4.5rem auto 0; padding:0 1.25rem; }

/* Disclaimer genitori — card pulita, stile store professionale */
.store-parents{
  display:flex; align-items:flex-start; gap:1.25rem;
  padding:1.75rem 1.9rem;
  background:linear-gradient(180deg, rgba(168,85,247,.06) 0%, rgba(255,255,255,.012) 100%);
  border:1px solid var(--border-light);
  border-radius:16px;
}
.store-parents__icon{
  flex:0 0 auto; width:48px; height:48px; border-radius:14px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:1.25rem; color:var(--p-accent);
  background:rgba(168,85,247,.12); border:1px solid rgba(168,85,247,.28);
}
.store-parents__body{ flex:1 1 auto; min-width:0; }
.store-parents__label{
  display:inline-block; margin-bottom:.5rem;
  font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--p-color-light);
}
.store-parents__body h3{
  font-family:var(--font-body); font-size:1.12rem; font-weight:700; color:#fff;
  letter-spacing:0; text-transform:none; margin:0 0 .55rem;
}
.store-parents__body p{ color:var(--text-muted); font-size:.92rem; line-height:1.65; margin:0; max-width:70ch; }
.store-parents__body p strong{ color:#fff; font-weight:600; }

/* Garanzie — riga sotto il disclaimer, divisore leggero sopra */
.store-foot__guarantees{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem;
  margin-top:2.25rem; padding-top:2.25rem; border-top:1px solid var(--border-light);
}
.gtee{ display:flex; align-items:center; gap:.95rem; }
.gtee__ico{
  flex:0 0 auto; width:46px; height:46px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(124,79,158,.14); color:var(--p-accent);
  border:1px solid rgba(124,79,158,.30); font-size:1.1rem;
}
.gtee__txt strong{ display:block; color:#fff; font-size:.97rem; font-weight:700; }
.gtee__txt span{ display:block; color:var(--text-muted); font-size:.82rem; line-height:1.4; margin-top:.12rem; }

@media (max-width:640px){
  .store-parents{ flex-direction:column; gap:1rem; padding:1.5rem 1.4rem; }
  .store-foot__guarantees{ grid-template-columns:1fr; gap:1.1rem; }
}

/* ════════ STORE — sidebar attaccata al bordo sinistro, prodotti centrati ════════ */
.shop__layout{
  display:block;
  margin:1.5rem 0 0;
}
/* La sidebar esce dal flusso e si ancora al bordo sinistro dello viewport,
   in alto: così i prodotti restano centrati come il titolo dell'hero. */
.shop__sidebar{
  position:fixed; left:0; top:50%; transform:translateY(-50%);
  width:248px;
  padding:1.25rem 1rem 1.25rem 1.5rem;
  background:rgba(18,10,28,.55);
  border:1px solid rgba(124,79,158,.15);
  border-left:none;
  border-top-right-radius:16px; border-bottom-right-radius:16px;
}
.shop__sidebar-title{
  display:block; font-family:var(--font-mono); font-size:.68rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--text-muted-2);
  padding:0 .55rem .55rem; margin-top:.25rem;
}

/* Wallet widget nella sidebar */
.shop__sidebar-wallet{
  display:flex; align-items:center; gap:.65rem;
  padding:.7rem .75rem;
  margin-bottom:1.1rem;
  background:linear-gradient(135deg, rgba(245,185,33,.1) 0%, rgba(245,185,33,.03) 100%);
  border:1px solid rgba(245,185,33,.2);
  border-radius:12px;
  text-decoration:none; color:var(--text);
  transition:border-color .15s, background .15s;
}
.shop__sidebar-wallet:hover{ border-color:rgba(245,185,33,.45); background:rgba(245,185,33,.08); }
.shop__sidebar-wallet-icon{
  width:32px; height:32px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, #f5b921, #d49a14);
  color:#1a1208; border-radius:50%;
  font-size:.82rem;
  box-shadow:0 3px 10px rgba(245,185,33,.3);
}
.shop__sidebar-wallet-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:.1rem; }
.shop__sidebar-wallet-label{ font-size:.68rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
.shop__sidebar-wallet-amount{ font-size:.92rem; font-weight:800; color:#fff; font-variant-numeric:tabular-nums; }
.shop__sidebar-wallet-cta{
  width:26px; height:26px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(245,185,33,.15); color:var(--gold);
  border-radius:50%; font-size:.7rem;
  transition:background .15s;
}
.shop__sidebar-wallet:hover .shop__sidebar-wallet-cta{ background:rgba(245,185,33,.3); }
.shop__sidebar-wallet--guest{ border-color:var(--border-light); background:rgba(255,255,255,.03); }
.shop__sidebar-wallet--guest .shop__sidebar-wallet-icon{ background:rgba(255,255,255,.06); color:var(--text-muted); box-shadow:none; }
.shop__sidebar-wallet--guest .shop__sidebar-wallet-amount{ color:var(--text-muted); font-weight:600; font-size:.82rem; }

.shop__catlist{ display:flex; flex-direction:column; gap:.25rem; }
.shop__catlink{
  --cat-color:var(--p-accent);
  display:flex; align-items:center; gap:.6rem;
  padding:.65rem .75rem; border-radius:10px;
  color:var(--text-muted); text-decoration:none;
  font-size:.92rem; font-weight:600; line-height:1.1;
  border:1px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.shop__catlink-ico{ color:var(--cat-color); font-size:.95em; width:1.1em; text-align:center; }
.shop__catlink-label{ flex:1 1 auto; }
.shop__catlink-count{
  font-family:var(--font-mono); font-size:.7rem; font-variant-numeric:tabular-nums;
  color:var(--text-muted-2); background:rgba(255,255,255,.05);
  padding:.12rem .45rem; border-radius:999px;
}
.shop__catlink:hover{ color:#fff; background:rgba(255,255,255,.05); border-color:rgba(124,79,158,.2); }
.shop__catlink.is-active{ color:#fff; background:rgba(124,79,158,.16); border-color:rgba(124,79,158,.40); }
.shop__catlink.is-active .shop__catlink-count{ background:rgba(0,0,0,.25); color:#fff; }
.shop__main{ max-width:1140px; margin:0 auto; min-width:0; padding:0 1rem; }

@media (max-width:1180px){
  /* Sotto certa larghezza la sidebar absolute rischia di coprire i prodotti:
     torna in flusso, a tutta larghezza sopra la griglia. */
  .shop__layout{ display:flex; flex-direction:column; gap:1rem; }
  .shop__sidebar{
    position:static; left:auto; top:auto; transform:none; width:100%;
    border:none; border-bottom:1px solid rgba(124,79,158,.15);
    border-radius:0; padding:1rem 1rem .75rem;
  }
  .shop__main{ max-width:none; }
}
@media (max-width:880px){
  .shop__catlist{ flex-direction:row; flex-wrap:nowrap; overflow-x:auto; gap:.5rem; padding-bottom:.35rem; }
  .shop__catlink{ white-space:nowrap; }
  .shop__sidebar-title{ display:none; }
  .shop__sidebar-wallet{ margin-bottom:.75rem; }
}

/* ════════════════════════════════════════════════════════════════════
   STORE CATALOG — stesso linguaggio della pagina prodotto (.store)
   Refined dark commerce: video hero, Bebas, hairline, accento unico.
   ════════════════════════════════════════════════════════════════════ */
.store {
  --s-accent: #8b6fc4;
  --s-accent-hover: #9d83d6;
  --s-line: rgba(255,255,255,.09);
  --s-line-strong: rgba(255,255,255,.16);
  --s-surface: rgba(255,255,255,.025);
  --s-text: #ececf1;
  --s-muted: #9b9ba6;
  --s-faint: #6b6b76;
  padding: 0 0 6rem; min-height: 80vh; background: transparent;
}
.store .ico { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }

/* ── Hero: video ambientale (come la pagina prodotto), sfuma verso il basso ── */
.store__hero {
  position: relative; padding: 3rem 0 3.25rem; margin-bottom: 3.25rem;
  overflow: hidden; border-bottom: 1px solid var(--s-line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 60%);
}
.store__hero--video { background: var(--bg); }
.store__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.store__video::-webkit-media-controls,
.store__video::-webkit-media-controls-panel,
.store__video::-webkit-media-controls-start-playback-button,
.store__video::-webkit-media-controls-overlay-play-button,
.store__video::-webkit-media-controls-enclosure,
.store__video::-webkit-media-controls-fullscreen-button,
.store__video::-webkit-media-controls-overlay-enclosure { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.store__video-shield { position: absolute; inset: 0; z-index: 0; pointer-events: auto; background: transparent; cursor: default; }
.store__video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,11,.86) 0%, rgba(8,8,11,.5) 52%, rgba(8,8,11,.16) 100%),
    linear-gradient(180deg, rgba(8,8,11,.22) 0%, rgba(8,8,11,.74) 70%, var(--bg) 100%);
}
/* Contenitore del catalogo a tutta larghezza, quasi a bordo schermo */
.store__wrap { width: 100%; max-width: 2040px; margin: 0 auto; padding: 0 clamp(1rem, 2.2vw, 2.5rem); }
.store__hero > .store__wrap { position: relative; z-index: 1; }
.store__hero-inner { max-width: 760px; }
.store__eyebrow {
  display: inline-block; padding: .3rem .7rem; border: 1px solid var(--s-line-strong);
  border-radius: 4px; color: var(--s-muted); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.store__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 8vw, 5.75rem); line-height: .9; letter-spacing: .02em; color: #fff; margin: 0 0 1rem; }
.store__lead { color: var(--s-muted); font-size: 1.05rem; line-height: 1.7; margin: 0; max-width: 56ch; }

/* ── Layout: aside categorie + griglia prodotti ── */
/* Sidebar compatta a sinistra, griglia prodotti che riempie tutto il resto */
.store__layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 920px) { .store__layout { grid-template-columns: 1fr; gap: 2rem; } }

.store__aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 920px) { .store__aside { position: static; } }

/* Wallet — card saldo (linguaggio buybox della pagina prodotto) */
.store__wallet { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); text-decoration: none; transition: border-color .2s; }
.store__wallet:hover { border-color: var(--s-line-strong); }
.store__wallet-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--s-accent); background: rgba(139,111,196,.12); }
.store__wallet-ico .ico { width: 20px; height: 20px; }
.store__wallet-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.store__wallet-label { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-faint); }
.store__wallet-amount { font-size: 1.1rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.store__wallet-add { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--s-muted); border: 1px solid var(--s-line); transition: color .18s, border-color .18s; }
.store__wallet-add .ico { width: 16px; height: 16px; }
.store__wallet-add:hover { color: #fff; border-color: var(--s-accent); }
.store__wallet--guest .store__wallet-ico { color: var(--s-muted); background: rgba(255,255,255,.05); }
.store__wallet--guest .store__wallet-amount { font-size: .92rem; font-weight: 600; color: var(--s-muted); }
.store__wallet--guest:hover .store__wallet-add { color: #fff; border-color: var(--s-accent); }

/* Categorie — lista pulita, accento sulla attiva (niente avatar) */
/* Titolo "Categorie" con hairline che corre fino al bordo */
.store__aside-title { display: flex; align-items: center; gap: .6rem; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-faint); padding-left: .2rem; }
.store__aside-title::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--s-line-strong), transparent); }

/* ── Selettore categorie ── monocromatico: un solo accento (il violetto dello
   store). Niente colori per-categoria. Il dot è un marker neutro che si accende
   in viola solo sulla categoria attiva. Bordo trasparente di base → niente jump. */
.store__cats { display: flex; flex-direction: column; gap: .2rem; }
.store__cat {
  position: relative; display: flex; align-items: center; gap: .7rem;
  padding: .62rem .7rem .62rem .8rem; border-radius: 11px; text-decoration: none;
  color: var(--s-muted); font-size: .93rem; font-weight: 500;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.store__cat-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--s-faint);
  transition: background .18s ease, box-shadow .28s ease;
}
.store__cat-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.004em; }
/* Conteggio → badge pill compatto, tabular */
.store__cat-count {
  flex: none; min-width: 1.55rem; padding: .1rem .45rem; border-radius: 999px;
  text-align: center; font-size: .72rem; font-weight: 600; line-height: 1.45;
  color: var(--s-faint); background: rgba(255,255,255,.05);
  font-variant-numeric: tabular-nums;
  transition: color .18s ease, background .18s ease;
}
.store__cat:hover {
  color: #fff; background: rgba(255,255,255,.045);
  border-color: var(--s-line); transform: translateX(2px);
}
.store__cat:hover .store__cat-dot { background: var(--s-muted); }
.store__cat:hover .store__cat-count { color: var(--s-text); background: rgba(255,255,255,.09); }
/* Attivo: tinta + bordo violetto, barra glow a sinistra, dot acceso, badge tinto. */
.store__cat.is-active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(139,111,196,.16), rgba(139,111,196,.035) 92%);
  border-color: rgba(139,111,196,.3);
}
.store__cat.is-active::before {
  content: ""; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 1.35rem; border-radius: 0 3px 3px 0; background: var(--s-accent);
  box-shadow: 0 0 10px rgba(139,111,196,.6);
}
.store__cat.is-active .store__cat-dot { background: var(--s-accent); box-shadow: 0 0 0 4px rgba(139,111,196,.18); }
.store__cat.is-active .store__cat-count { color: #fff; background: rgba(139,111,196,.32); }
@media (prefers-reduced-motion: reduce) { .store__cat { transition: none; } .store__cat:hover { transform: none; } }

/* ── Cathead ── */
.store__cathead { margin: 0 0 1.75rem; }
.store__cathead-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: .03em; color: #fff; margin: 0; }
.store__cathead-desc { color: var(--s-muted); font-size: .98rem; line-height: 1.6; margin: .55rem 0 0; max-width: 62ch; }

/* ── Griglia + card prodotto ── */
.store__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.store__card { display: flex; flex-direction: column; border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); padding: 1.25rem; transition: border-color .2s, transform .2s; }
.store__card:hover { border-color: var(--s-line-strong); transform: translateY(-4px); }
.store__card--featured { border-color: rgba(139,111,196,.4); }
.store__card--featured:hover { border-color: rgba(139,111,196,.6); }
.store__card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 1.4rem; margin-bottom: .5rem; }
.store__tag { display: inline-flex; align-items: center; gap: .32rem; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.store__tag .ico { width: 13px; height: 13px; }
.store__tag--hot { color: var(--s-accent); }
.store__tag--sale { margin-left: auto; color: var(--s-accent); border: 1px solid rgba(139,111,196,.45); border-radius: 999px; padding: .12rem .55rem; letter-spacing: .04em; }
/* Box quadrato (1:1): le immagini dei pacchetti sono quadrate, così riempiono il
   riquadro senza bande e gli angoli arrotondati si vedono davvero. "contain"
   mantiene l'immagine intera (niente taglio); border-radius sia sul box che
   sull'<img> così l'arrotondamento è netto in ogni caso. */
.store__card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; background: transparent; }
.store__card-media img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; border-radius: 12px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.store__card:hover .store__card-media img { transform: scale(1.045); }
.store__card-ph { color: var(--s-faint); opacity: .45; }
.store__card-ph .ico { width: 44px; height: 44px; }
.store__card-body { flex: 1 1 auto; margin-bottom: 1.1rem; }
.store__card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1; letter-spacing: .02em; margin: 0 0 .45rem; }
.store__card-name a { color: #fff; text-decoration: none; }
.store__card-name a:hover { color: var(--s-accent-hover); }
.store__card-perks { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--s-muted); }
.store__card-perks .ico { width: 14px; height: 14px; color: var(--s-accent); }
.store__card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.1rem; border-top: 1px solid var(--s-line); }
.store__card-price { display: flex; flex-direction: column; line-height: 1.1; }
.store__card-price-old { font-size: .74rem; color: var(--s-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.store__card-price-now { font-size: 1.25rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.store__card-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .95rem; border-radius: 9px; background: var(--s-accent); color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .2s; }
.store__card-cta .ico { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.store__card-cta:hover { background: var(--s-accent-hover); }
.store__card-cta:hover .ico { transform: translateX(3px); }

/* ── Empty ── */
.store__empty { max-width: 460px; margin: 4rem auto; text-align: center; padding: 3rem 2rem; border: 1px dashed var(--s-line-strong); border-radius: 16px; }
.store__empty-ico { width: 42px; height: 42px; color: var(--s-faint); margin-bottom: 1rem; }
.store__empty p { color: var(--s-muted); margin: 0; }

/* ── Foot: genitori + garanzie ── */
.store__foot { margin-top: 5rem; }
.store__parents { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.7rem 1.9rem; border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); }
.store__parents-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--s-accent); background: rgba(139,111,196,.12); border: 1px solid rgba(139,111,196,.26); }
.store__parents-ico .ico { width: 20px; height: 20px; }
.store__parents-body { flex: 1 1 auto; min-width: 0; }
.store__parents-label { display: inline-block; margin-bottom: .5rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); }
.store__parents-body h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.store__parents-body p { color: var(--s-muted); font-size: .93rem; line-height: 1.65; margin: 0; max-width: 74ch; }
.store__parents-body p strong { color: #fff; font-weight: 600; }
.store__guarantees { list-style: none; margin: 2rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--s-line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.store__guarantees li { display: flex; align-items: center; gap: .9rem; }
.store__gtee-ico { flex: none; width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--s-accent); background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.24); }
.store__gtee-ico .ico { width: 19px; height: 19px; }
.store__gtee-txt { display: flex; flex-direction: column; font-size: .83rem; color: var(--s-muted); line-height: 1.4; }
.store__gtee-txt strong { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: .1rem; }
@media (max-width: 700px) { .store__guarantees { grid-template-columns: 1fr; gap: 1.1rem; } .store__parents { flex-direction: column; gap: 1rem; padding: 1.5rem 1.4rem; } }

/* ── Entrata sobria ── */
@keyframes store-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.store__eyebrow, .store__title, .store__lead { animation: store-rise .55s cubic-bezier(.2,.8,.2,1) both; }
.store__title { animation-delay: .05s; }
.store__lead { animation-delay: .1s; }
.store__wallet, .store__cats { animation: store-rise .55s .12s cubic-bezier(.2,.8,.2,1) both; }
.store__card { animation: store-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.store__card:nth-child(1) { animation-delay: .12s; }
.store__card:nth-child(2) { animation-delay: .17s; }
.store__card:nth-child(3) { animation-delay: .22s; }
.store__card:nth-child(4) { animation-delay: .27s; }
.store__card:nth-child(5) { animation-delay: .32s; }
.store__card:nth-child(6) { animation-delay: .37s; }
@media (prefers-reduced-motion: reduce) { .store * { animation: none !important; } }

/* ════════════════════════════════════════════════════════════════════
   UI REFINED — skin "refined dark commerce" (stile store) applicato a
   tutto il sito tranne home, zona staff e pannello admin (body.ui-refined).
   Reskin SOLO visivo (colori / bordi / ombre / accento): nessun cambio di
   layout, così è sicuro e reversibile.
   ════════════════════════════════════════════════════════════════════ */
.ui-refined {
  --s-accent: #8b6fc4;
  --s-accent-hover: #9d83d6;
  --s-line: rgba(255,255,255,.09);
  --s-line-strong: rgba(255,255,255,.16);
  --s-surface: rgba(255,255,255,.025);
}

/* — Bottoni: pieno accento piatto, niente glow viola — */
.ui-refined .btn-primary { background: var(--s-accent); box-shadow: none; }
.ui-refined .btn-primary:hover { background: var(--s-accent-hover); box-shadow: none; transform: translateY(-1px); color: #fff; }
.ui-refined .btn-ghost { background: transparent; border-color: var(--s-line-strong); }
.ui-refined .btn-ghost:hover { background: rgba(255,255,255,.04); border-color: var(--s-accent); color: #fff; }

/* — Card / pannelli: hairline su superficie piatta, niente gradienti/glow — */
.ui-refined .card,
.ui-refined .admin-card,
.ui-refined .stat-card,
.ui-refined .auth-card,
.ui-refined .account-hero,
.ui-refined .account-sidebar,
.ui-refined .forum-row {
  background: var(--s-surface);
  border-color: var(--s-line);
  box-shadow: none;
}
.ui-refined .card:hover,
.ui-refined .stat-card:hover,
.ui-refined .forum-row:hover { border-color: var(--s-line-strong); }

/* chip-icona: accento desaturato coerente con lo store */
.ui-refined .stat-card-icon { background: rgba(139,111,196,.12); color: var(--s-accent); }

/* — Campi / input: hairline + focus accento — */
.ui-refined .field .input { background: rgba(0,0,0,.25); border-color: var(--s-line); }
.ui-refined .field .input:hover { border-color: var(--s-line-strong); }
.ui-refined .field .input:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(139,111,196,.16); }
.ui-refined .field .input:focus-within i,
.ui-refined .field .input:focus-within .svg-icon { color: var(--s-accent); }

/* — Tabelle: divisori hairline — */
.ui-refined .admin-table thead th,
.ui-refined .admin-table tbody td { border-color: var(--s-line); }
.ui-refined .admin-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* — Badge: bordo hairline (lasciati i colori semantici ok/warn/danger) — */
.ui-refined .badge { border-color: var(--s-line-strong); }

/* — Filtri / pill di sezione: accento attivo coerente — */
.ui-refined .admin-filters .is-active,
.ui-refined .account-nav a.active { color: #fff; }

/* ── UI REFINED · Auth: look sobrio come lo store (niente cubi/griglia/glow) ── */
.ui-refined .auth-wrap::before { background: radial-gradient(720px 480px at 82% -12%, rgba(139,111,196,.12), transparent 62%); }
.ui-refined .auth-wrap::after { display: none; }
.ui-refined .auth-block { display: none; }
.ui-refined .auth-card { backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 16px; }
.ui-refined .auth-card::before { display: none; }
.ui-refined .auth-card .logo-mini img { filter: none; }
.ui-refined .auth-card h1 { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.ui-refined .auth-card .alt a,
.ui-refined .checkbox a { color: var(--s-accent-hover); }
.ui-refined .checkbox input:checked { background: var(--s-accent); border-color: var(--s-accent); }
.ui-refined .btn-discord { background: #5865f2; box-shadow: none; }
.ui-refined .btn-discord:hover { background: #4752c4; box-shadow: none; transform: translateY(-1px); }
.ui-refined .btn-discord::before { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   REFINED REBUILD — design system condiviso (.ui-refined) + pagine ridisegnate
   Stesso linguaggio "refined dark commerce" dello store: Bebas Neue per i
   display, hairline su superfici quasi-nere, accento viola unico (#8b6fc4),
   icone SVG lineari (partials.ricon), entrate coreografate sobrie.
   Scoping sotto .ui-refined = +1 specificità sui primitivi → override pulito
   senza !important. Lo store (.store/.shop-detail) NON è toccato (classi proprie).
   ════════════════════════════════════════════════════════════════════════ */
.ui-refined {
  --s-text: #ececf1;
  --s-muted: #9b9ba6;
  --s-faint: #6b6b76;
}
/* Icona base del set refined */
.rico { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.rico--sm { width: 15px; height: 15px; }
.rico--lg { width: 22px; height: 22px; }

/* ── Hero editoriale: hairline in basso, eyebrow a pill, display Bebas ── */
.ui-refined .page-hero {
  padding: 3.25rem 0 2.1rem; margin-bottom: 2.75rem; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--s-line);
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 72%);
}
.ui-refined .page-hero > .container { position: relative; z-index: 1; }

/* ── Video ambientale dell'hero (partials.herovideo) — come lo store ── */
.rf-herovid { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.rf-herovid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rf-herovid__v::-webkit-media-controls,
.rf-herovid__v::-webkit-media-controls-panel,
.rf-herovid__v::-webkit-media-controls-start-playback-button,
.rf-herovid__v::-webkit-media-controls-overlay-play-button,
.rf-herovid__v::-webkit-media-controls-enclosure { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.rf-herovid__shield { position: absolute; inset: 0; background: transparent; }
.rf-herovid__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,11,.93) 0%, rgba(8,8,11,.58) 48%, rgba(8,8,11,.16) 100%),
    linear-gradient(180deg, rgba(8,8,11,.22) 0%, rgba(8,8,11,.72) 72%, var(--bg) 100%);
}
.ui-refined .page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ui-refined .section-eyebrow {
  display: inline-block; padding: .3rem .7rem; margin-bottom: 1.1rem;
  border: 1px solid var(--s-line-strong); border-radius: 4px;
  color: var(--s-muted); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
}
.ui-refined .page-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .92; letter-spacing: .02em;
  color: #fff; margin: 0 0 1rem;
}
.ui-refined .page-title i,
.ui-refined .page-title .rico { color: var(--s-accent); margin-right: .15rem; }
.ui-refined .page-desc { color: var(--s-muted); font-size: 1.02rem; line-height: 1.7; max-width: 62ch; margin: 0; }
.ui-refined .page-desc a { color: #fff; text-decoration: underline; text-decoration-color: var(--s-line-strong); text-underline-offset: 3px; }
.ui-refined .page-desc a:hover { text-decoration-color: var(--s-accent); }

/* statistica accanto al titolo */
.ui-refined .page-hero-stats { display: flex; gap: 2rem; }
.ui-refined .page-hero-stats > div { display: flex; flex-direction: column; gap: .25rem; }
.ui-refined .page-hero-stats .big { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ui-refined .page-hero-stats .lbl { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-faint); }

/* ── Breadcrumb ── */
.ui-refined .breadcrumb { color: var(--s-faint); font-size: .8rem; margin-bottom: 1.4rem; gap: .5rem; }
.ui-refined .breadcrumb a { color: var(--s-muted); transition: color .15s; }
.ui-refined .breadcrumb a:hover { color: #fff; }
.ui-refined .breadcrumb i, .ui-refined .breadcrumb .rico { color: var(--s-faint); font-size: .7em; width: 13px; height: 13px; }
.ui-refined .breadcrumb span { color: var(--s-text); }

/* ── Bottoni refined ── */
.ui-refined .btn { border-radius: 9px; padding: .8rem 1.4rem; font-size: .9rem; letter-spacing: .01em; }
.ui-refined .btn .rico { width: 17px; height: 17px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ui-refined .btn-primary { background: var(--s-accent); color: #fff; box-shadow: none; border-color: transparent; }
.ui-refined .btn-primary:hover { background: var(--s-accent-hover); transform: translateY(-1px); box-shadow: none; color: #fff; }
.ui-refined .btn-primary:hover .rico { transform: translateX(3px); }
.ui-refined .btn-ghost { background: transparent; border-color: var(--s-line-strong); color: var(--s-text); }
.ui-refined .btn-ghost:hover { background: rgba(255,255,255,.04); border-color: var(--s-accent); color: #fff; }
.ui-refined .btn-danger { background: transparent; border-color: rgba(230,112,122,.4); color: #e6707a; }
.ui-refined .btn-danger:hover { background: rgba(230,112,122,.1); border-color: #e6707a; color: #f0939b; }
.ui-refined .btn-sm { padding: .55rem .95rem; font-size: .82rem; border-radius: 8px; }

/* ── Card / pannelli ── */
.ui-refined .card, .ui-refined .card-form {
  background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 14px; box-shadow: none;
}
.rf-panel {
  background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 14px; padding: 1.5rem 1.6rem;
}
.rf-panel--pad-lg { padding: 2rem 2.1rem; }
.rf-panel-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); }
.rf-panel-head .rico { width: 16px; height: 16px; color: var(--s-accent); }

/* ── Intestazione di sezione (eyebrow + display) ── */
.rf-sec-head { margin: 0 0 1.75rem; }
.rf-sec-eyebrow { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-faint); margin-bottom: .5rem; }
.rf-sec-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: .03em; color: #fff; margin: 0; }
.rf-sec-desc { color: var(--s-muted); font-size: .97rem; line-height: 1.6; margin: .5rem 0 0; max-width: 64ch; }

/* ── Form: label, textarea, hint, error, select ── */
.ui-refined .field label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--s-muted); }
.ui-refined .field .input .rico { width: 18px; height: 18px; color: var(--s-faint); flex: none; transition: color .18s; }
.ui-refined .field .input:focus-within .rico { color: var(--s-accent); }
.ui-refined .field textarea,
.ui-refined textarea.rf-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 11px;
  padding: .85rem 1rem; color: #fff; font-family: inherit; font-size: .95rem; line-height: 1.6;
  resize: vertical; transition: border-color .18s, box-shadow .18s;
}
.ui-refined .field textarea:focus,
.ui-refined textarea.rf-textarea:focus { outline: none; border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(139,111,196,.16); }
.ui-refined .field textarea::placeholder,
.ui-refined .field .input input::placeholder { color: var(--s-faint); }
.ui-refined .hint { color: var(--s-faint); font-size: .76rem; }
.ui-refined .error-text { color: #e6707a; font-size: .8rem; display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; }
.ui-refined .form-actions { border-top: 1px solid var(--s-line); padding-top: 1.35rem; margin-top: 1.6rem; }

/* ── Badge / tag refined ── */
.ui-refined .badge {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--s-line-strong); border-radius: 999px;
  padding: .2rem .6rem; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--s-muted); background: transparent;
}
.rf-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--s-muted); border: 1px solid var(--s-line-strong); border-radius: 4px; padding: .22rem .5rem;
}
.rf-tag .rico { width: 12px; height: 12px; }
.rf-tag--accent { color: var(--s-accent); border-color: rgba(139,111,196,.45); }
.rf-tag--ok { color: #7fb89a; border-color: rgba(127,184,154,.4); }
.rf-tag--warn { color: #d9a441; border-color: rgba(217,164,65,.4); }
.rf-tag--danger { color: #e6707a; border-color: rgba(230,112,122,.4); }

/* ── Pagination refined ── */
.ui-refined .pagination { gap: .4rem; margin: 2.75rem 0 0; }
.ui-refined .page-item {
  min-width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--s-line); background: transparent; color: var(--s-muted);
  font-variant-numeric: tabular-nums; transition: all .15s;
}
.ui-refined .page-item:hover { color: #fff; border-color: var(--s-line-strong); background: rgba(255,255,255,.03); }
.ui-refined .page-item.active { background: var(--s-accent); border-color: var(--s-accent); color: #fff; }
.ui-refined .page-item.disabled { opacity: .35; pointer-events: none; }
.ui-refined .page-gap { color: var(--s-faint); }

/* ── Empty state refined ── */
.ui-refined .empty-card, .rf-empty {
  background: transparent; border: 1px dashed var(--s-line-strong); border-radius: 16px;
  padding: 3.25rem 2rem; text-align: center; max-width: 520px; margin: 1rem auto;
}
.ui-refined .empty-card i { color: var(--s-faint); opacity: 1; font-size: 2rem; margin-bottom: 1rem; }
.rf-empty .rico { width: 42px; height: 42px; color: var(--s-faint); margin-bottom: 1rem; }
.ui-refined .empty-card h3, .rf-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; color: #fff; margin: 0 0 .35rem; }
.ui-refined .empty-card p, .rf-empty p { color: var(--s-muted); margin: 0 0 1.25rem; }
.rf-empty > :last-child { margin-bottom: 0; }

/* Avatar tondo con hairline */
.rf-avatar { border-radius: 50%; border: 1px solid var(--s-line); background: #0b0a0f; object-fit: cover; image-rendering: auto; }

/* ════════════════════════════════════════════════════════════════════════
   FORUM — index (categorie), categoria (thread list), thread (post),
   composer. Mantiene gli hook JS: .reveal, [data-thread-row], .post,
   [data-post-content], [data-react-*], [data-edit-*].
   ════════════════════════════════════════════════════════════════════════ */
.ui-refined .forum-section { padding: 0 0 5rem; }
.ui-refined .forum-section .container { max-width: 1180px; }

/* — Index: lista categorie come righe editoriali con hairline — */
.ui-refined .forum-list { display: flex; flex-direction: column; border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; background: var(--s-surface); }
.ui-refined .forum-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.4rem;
  padding: 1.35rem 1.6rem; border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0;
  background: transparent; text-decoration: none; transition: background .18s;
}
.ui-refined .forum-list .forum-row:last-child { border-bottom: 0; }
.ui-refined .forum-row:hover { background: rgba(255,255,255,.025); border-color: var(--s-line); transform: none; }
.ui-refined .forum-row-icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--s-accent); background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.22); font-size: 1.1rem;
}
.ui-refined .forum-row-icon .rico { width: 21px; height: 21px; }
.ui-refined .forum-row-main { min-width: 0; }
.ui-refined .forum-row-title { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1; letter-spacing: .02em; color: #fff; margin-bottom: .35rem; }
.ui-refined .forum-row:hover .forum-row-title { color: var(--s-accent-hover); }
.ui-refined .forum-row-desc { color: var(--s-muted); font-size: .88rem; line-height: 1.5; }
.ui-refined .forum-row-meta { display: flex; gap: 1.5rem; }
.ui-refined .forum-row-meta > div { display: flex; flex-direction: column; align-items: center; }
.ui-refined .forum-row-meta .n { font-size: 1.15rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ui-refined .forum-row-meta .l { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); }
.ui-refined .forum-row-last { width: 190px; padding-left: 1.4rem; border-left: 1px solid var(--s-line); }
.ui-refined .forum-row-last .last-title { color: var(--s-text); font-size: .85rem; font-weight: 500; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-refined .forum-row-last .last-meta { color: var(--s-faint); font-size: .76rem; display: flex; align-items: center; gap: .35rem; }
.ui-refined .forum-row-last .last-meta i, .ui-refined .forum-row-last .last-meta .rico { width: 12px; height: 12px; }
.ui-refined .forum-row-last .last-empty { color: var(--s-faint); font-size: .8rem; font-style: italic; }
@media (max-width: 760px) {
  .ui-refined .forum-row { grid-template-columns: auto 1fr; gap: 1rem; }
  .ui-refined .forum-row-meta, .ui-refined .forum-row-last { display: none; }
}

/* — Categoria: lista thread — */
.ui-refined .thread-list { display: flex; flex-direction: column; border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; background: var(--s-surface); }
.ui-refined .thread-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.2rem;
  padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--s-line); text-decoration: none; transition: background .18s; cursor: pointer;
}
.ui-refined .thread-list .thread-row:last-child { border-bottom: 0; }
.ui-refined .thread-row:hover { background: rgba(255,255,255,.025); }
.ui-refined .thread-row-avatar img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--s-line); background: #0b0a0f; }
.ui-refined .thread-row-main { min-width: 0; }
.ui-refined .thread-row-title { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .3rem; display: flex; align-items: center; gap: .45rem; }
.ui-refined .thread-row-title i { font-size: .8em; color: var(--s-accent); }
.ui-refined .thread-row:hover .thread-row-title { color: var(--s-accent-hover); }
.ui-refined .thread-row-sub { display: flex; gap: 1rem; color: var(--s-faint); font-size: .78rem; }
.ui-refined .thread-row-sub span { display: inline-flex; align-items: center; gap: .35rem; }
.ui-refined .thread-row-sub i, .ui-refined .thread-row-sub .rico { width: 12px; height: 12px; }
.ui-refined .thread-row-stats { display: flex; gap: 1.4rem; }
.ui-refined .thread-row-stats > div { display: flex; flex-direction: column; align-items: center; }
.ui-refined .thread-row-stats .n { font-size: 1.05rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ui-refined .thread-row-stats .l { font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); }
.ui-refined .thread-row-last { width: 130px; text-align: right; }
.ui-refined .thread-row-last .last-meta { color: var(--s-muted); font-size: .8rem; }
.ui-refined .thread-row-last .last-by { color: var(--s-faint); font-size: .76rem; margin-top: .15rem; }
.ui-refined .thread-row-last .last-by strong { color: var(--s-text); font-weight: 600; }
@media (max-width: 760px) {
  .ui-refined .thread-row { grid-template-columns: auto 1fr; }
  .ui-refined .thread-row-stats, .ui-refined .thread-row-last { display: none; }
}

/* — Thread: head (azioni follow/staff) — */
.ui-refined .thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ui-refined .thread-head .page-title { flex: 1 1 auto; min-width: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.ui-refined .thread-actions { display: flex; gap: .5rem; }
.ui-refined .follow-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 9px;
  border: 1px solid var(--s-line-strong); background: transparent; color: var(--s-text);
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .18s;
}
.ui-refined .follow-btn i, .ui-refined .follow-btn .rico { width: 15px; height: 15px; color: var(--s-accent); }
.ui-refined .follow-btn:hover { border-color: var(--s-accent); color: #fff; }
.ui-refined .follow-btn.is-following { background: rgba(139,111,196,.14); border-color: var(--s-accent); color: #fff; }
.ui-refined .follow-count { background: var(--s-accent); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; }
.ui-refined .staff-toolbar { display: flex; align-items: center; gap: .5rem; flex-basis: 100%; padding-top: .9rem; margin-top: .3rem; border-top: 1px dashed var(--s-line); }
.ui-refined .staff-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-accent); }
.ui-refined .staff-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 8px; border: 1px solid var(--s-line); background: transparent; color: var(--s-muted); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.ui-refined .staff-btn:hover { border-color: var(--s-accent); color: #fff; }

/* — Post: rail autore + corpo — */
.ui-refined .post {
  display: grid; grid-template-columns: 168px 1fr; gap: 0; margin-bottom: 1.5rem;
  border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; background: var(--s-surface);
}
.ui-refined .post-op { border-color: rgba(139,111,196,.32); }
.ui-refined .post-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1.6rem 1.1rem; background: rgba(0,0,0,.18); border-right: 1px solid var(--s-line); }
.ui-refined .post-avatar { width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--s-line); background: #0b0a0f; }
.ui-refined .post-author { color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.ui-refined .post-author:hover { color: var(--s-accent-hover); }
.ui-refined .post-role { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 4px; border: 1px solid var(--s-line-strong); color: var(--s-muted); }
.ui-refined .post-role.role-founder { color: #f0a868; border-color: rgba(240,168,104,.4); }
.ui-refined .post-role.role-admin { color: #e6707a; border-color: rgba(230,112,122,.4); }
.ui-refined .post-role.role-staff { color: var(--s-accent); border-color: rgba(139,111,196,.45); }
.ui-refined .post-role.role-vip { color: #d9a441; border-color: rgba(217,164,65,.4); }
.ui-refined .user-tag { font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: .16rem .5rem; border-radius: 4px; color: var(--user-tag-color, var(--s-muted)); border: 1px solid currentColor; opacity: .9; }
.ui-refined .post-meta-side { color: var(--s-faint); font-size: .7rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; }
.ui-refined .post-meta-side i, .ui-refined .post-meta-side .rico { width: 12px; height: 12px; }
.ui-refined .post-body { padding: 1.5rem 1.7rem; min-width: 0; }
.ui-refined .post-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--s-line); color: var(--s-faint); font-size: .76rem; }
.ui-refined .post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.ui-refined .post-meta i, .ui-refined .post-meta .rico { width: 12px; height: 12px; }
.ui-refined .post-meta .post-date { margin-left: auto; }
.ui-refined .post-edited { color: var(--s-accent); }
.ui-refined .post-content { color: var(--s-text); font-size: .98rem; line-height: 1.75; word-wrap: break-word; }
.ui-refined .post-content a { color: var(--s-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.ui-refined .post-signature { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--s-line); color: var(--s-faint); font-size: .82rem; line-height: 1.5; }

/* — Reaction bar — */
.ui-refined .reaction-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.35rem; }
.ui-refined .reaction-summary { display: flex; flex-wrap: wrap; gap: .4rem; }
.ui-refined .reaction-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--s-line); background: rgba(255,255,255,.02); color: var(--s-muted); font-size: .8rem; cursor: pointer; transition: all .15s; }
.ui-refined .reaction-chip:hover { border-color: var(--s-line-strong); color: #fff; }
.ui-refined .reaction-chip.is-mine { border-color: var(--s-accent); background: rgba(139,111,196,.14); color: #fff; }
.ui-refined .reaction-chip-icon { color: var(--s-accent); }
.ui-refined .reaction-chip-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.ui-refined .reaction-add-wrap { position: relative; }
.ui-refined .reaction-add { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px dashed var(--s-line-strong); background: transparent; color: var(--s-muted); font-size: .8rem; cursor: pointer; transition: all .15s; }
.ui-refined .reaction-add:hover { border-style: solid; border-color: var(--s-accent); color: #fff; }
.ui-refined .reaction-picker { position: absolute; bottom: calc(100% + .5rem); left: 0; z-index: 20; display: flex; gap: .25rem; padding: .45rem; border-radius: 12px; border: 1px solid var(--s-line-strong); background: #14131a; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.ui-refined .reaction-picker[hidden] { display: none; }
.ui-refined .reaction-picker-btn { position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--s-muted); cursor: pointer; transition: all .15s; }
.ui-refined .reaction-picker-btn:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateY(-2px); }
.ui-refined .reaction-picker-btn.is-mine { color: var(--s-accent); border-color: rgba(139,111,196,.4); }
.ui-refined .reaction-picker-count { position: absolute; top: -4px; right: -4px; background: var(--s-accent); color: #fff; font-size: .6rem; font-weight: 700; border-radius: 999px; padding: 0 .3rem; }

/* — Post actions / edit — */
.ui-refined .post-actions { display: flex; gap: .35rem; margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--s-line); }
.ui-refined .post-action { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--s-muted); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.ui-refined .post-action:hover { background: rgba(255,255,255,.04); color: #fff; }
.ui-refined .post-action.danger:hover { background: rgba(230,112,122,.1); color: #f0939b; }
.ui-refined .post-action i, .ui-refined .post-action .rico { width: 14px; height: 14px; }
.ui-refined .post-edit-form { margin-top: 1rem; }
.ui-refined .post-edit-form[hidden] { display: none; }

/* — Composer / reply — */
.ui-refined .reply-form { margin-top: 2rem; border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); padding: 1.5rem 1.6rem; }
.ui-refined .reply-form-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: var(--s-text); font-size: .92rem; }
.ui-refined .reply-form-head img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--s-line); }
.ui-refined .reply-form-head strong { color: #fff; font-weight: 600; }
.ui-refined .reply-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.ui-refined .reply-locked { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 2rem; padding: 1.4rem; border: 1px dashed var(--s-line-strong); border-radius: 14px; color: var(--s-muted); font-size: .92rem; }
.ui-refined .reply-locked a { color: var(--s-accent-hover); font-weight: 600; }
.ui-refined .reply-locked i, .ui-refined .reply-locked .rico { color: var(--s-accent); width: 16px; height: 16px; }

@media (max-width: 600px) {
  .ui-refined .post { grid-template-columns: 1fr; }
  .ui-refined .post-side { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid var(--s-line); }
  .ui-refined .post-avatar { width: 48px; height: 48px; }
  .ui-refined .post-meta-side { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════════
   COINS (/store/coins → .oc-coins) — refined: hairline, accento viola, oro
   solo sul saldo/valore (legge come "coins"). Override su .ui-refined .oc-coins
   (+1 specificità) sui token gold/emerald originali. Discord CTA resta blurple.
   ════════════════════════════════════════════════════════════════════════ */
.ui-refined .oc-coins {
  --s-accent: #8b6fc4; --s-accent-hover: #9d83d6;
  --s-line: rgba(255,255,255,.09); --s-line-strong: rgba(255,255,255,.16);
  --s-surface: rgba(255,255,255,.025); --s-text: #ececf1; --s-muted: #9b9ba6; --s-faint: #6b6b76;
  --coin-gold: #f5c451;
  padding: 0 0 6rem;
}
.ui-refined .oc-coins__wrap { max-width: 1180px; }

/* Banner saldo */
.ui-refined .oc-coins__banner {
  grid-template-columns: 84px 1fr; padding: 2rem 2.1rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(245,196,81,.05), transparent 55%), var(--s-surface);
  border: 1px solid var(--s-line); border-radius: 18px;
}
.ui-refined .oc-coins__banner-coin { width: 72px; height: 72px; border-radius: 18px; background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.32); }
.ui-refined .oc-coins__banner-coin-face { color: var(--coin-gold); font-weight: 400; }
.ui-refined .oc-coins__banner-eyebrow { font-size: .64rem; font-weight: 600; letter-spacing: .18em; color: var(--s-muted); }
.ui-refined .oc-coins__banner-amount {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6.5vw, 66px); line-height: 1;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 0%, var(--coin-gold) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ui-refined .oc-coins__banner-meta { color: var(--s-muted); font-size: .85rem; }

/* Pannelli */
.ui-refined .oc-coins__main, .ui-refined .oc-coins__howto,
.ui-refined .oc-coins__open, .ui-refined .oc-coins__ledger {
  background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 16px; padding: 1.75rem 2rem;
}
.ui-refined .oc-coins__h { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; color: #fff; margin: 0 0 1.5rem; }
.ui-refined .oc-coins__h--sm { font-size: 1.35rem; }

/* Form */
.ui-refined .oc-coins__field-label { font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-muted); }
.ui-refined .oc-coins__field-label em { color: var(--s-faint); }
.ui-refined .oc-coins__chip {
  background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 10px; color: var(--s-text); padding: .9rem .5rem;
}
.ui-refined .oc-coins__chip::before { background: var(--s-accent); }
.ui-refined .oc-coins__chip:hover { border-color: var(--s-line-strong); background: rgba(255,255,255,.03); color: #fff; transform: translateY(-2px); }
.ui-refined .oc-coins__chip.is-selected { border-color: var(--s-accent); background: rgba(139,111,196,.14); color: #fff; }
.ui-refined .oc-coins__chip-num { font-family: var(--font-display); font-weight: 400; }
.ui-refined .oc-coins__chip-cur { color: var(--s-faint); }
.ui-refined .oc-coins__chip.is-selected .oc-coins__chip-cur { color: var(--s-accent-hover); }
.ui-refined .oc-coins__custom { background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 11px; padding: .7rem .9rem; transition: border-color .18s, box-shadow .18s; }
.ui-refined .oc-coins__custom:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(139,111,196,.16); }
.ui-refined .oc-coins__custom-hint { color: var(--s-faint); }
.ui-refined .oc-coins__custom-input { font-family: var(--font-display); font-weight: 400; color: #fff; }
.ui-refined .oc-coins__custom-input::placeholder { color: var(--s-faint); }
.ui-refined .oc-coins__custom-suffix { color: var(--s-muted); }
.ui-refined .oc-coins__note { background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 11px; color: #fff; }
.ui-refined .oc-coins__note:focus { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(139,111,196,.16); }
.ui-refined .oc-coins__note::placeholder { color: var(--s-faint); }

/* Discord CTA — blurple di brand (apre il ticket su Discord) */
.ui-refined .oc-coins__cta { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; border-radius: 11px; }
.ui-refined .oc-coins__cta .rico { width: 20px; height: 20px; }

.ui-refined .oc-coins__note-ok { background: rgba(127,184,154,.08); border-left: 2px solid #7fb89a; border-radius: 9px; color: var(--s-muted); }
.ui-refined .oc-coins__note-warn { background: rgba(217,164,65,.08); border-left: 2px solid #d9a441; border-radius: 9px; color: var(--s-muted); }
.ui-refined .oc-coins__note-warn a { color: #e3b75e; font-weight: 600; }
.ui-refined .oc-coins__note-warn .rico { width: 16px; height: 16px; color: #d9a441; flex: none; }

/* Steps */
.ui-refined .oc-coins__steps li { background: rgba(255,255,255,.015); border: 1px solid var(--s-line); border-radius: 12px; color: var(--s-text); }
.ui-refined .oc-coins__steps li:hover { border-color: var(--s-line-strong); background: rgba(255,255,255,.03); }
.ui-refined .oc-coins__step-tag { font-family: var(--font-display); font-weight: 400; color: var(--s-accent); background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.26); border-radius: 9px; }
.ui-refined .oc-coins__step-tag--ok { color: #7fb89a; background: rgba(127,184,154,.1); border-color: rgba(127,184,154,.3); }

/* Ticket aperti */
.ui-refined .oc-coins__open { border-radius: 16px; }
.ui-refined .oc-coins__open-row { background: rgba(0,0,0,.22); border-left: 2px solid #d9a441; border-radius: 10px; }
.ui-refined .oc-coins__open-id { color: var(--s-faint); }
.ui-refined .oc-coins__open-amount { font-family: var(--font-display); font-weight: 400; color: var(--coin-gold); }
.ui-refined .oc-coins__open-date { color: var(--s-muted); }
.ui-refined .oc-coins__open-discord { color: #8b93f5; }
.ui-refined .oc-coins__open-discord:hover { color: #a7adf7; }
.ui-refined .oc-coins__open-discord .rico { width: 15px; height: 15px; vertical-align: -2px; }
.ui-refined .oc-coins__open-wait { color: var(--s-faint); }
.ui-refined .oc-coins__cancel-btn { border: 1px solid var(--s-line-strong); border-radius: 8px; color: var(--s-muted); }
.ui-refined .oc-coins__cancel-btn:hover { border-color: #e6707a; color: #e6707a; }

/* ════════════════════════════════════════════════════════════════════════
   SANZIONI (/bans) — refined. Filtri hairline, tabella editoriale, scheda
   giocatore, pill di tipo/stato. Tabella .admin-table ridisegnata sotto
   .ui-refined (vale anche per account: ordini, sessioni).
   ════════════════════════════════════════════════════════════════════════ */
.ui-refined .sanz { padding: 0 0 5rem; }
.ui-refined .sanz .container { max-width: 1180px; }

/* Filtri */
.ui-refined .sanz-filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.5rem; align-items: stretch; }
.ui-refined .sanz-search { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 11px; transition: border-color .18s, box-shadow .18s; }
.ui-refined .sanz-search:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(139,111,196,.16); }
.ui-refined .sanz-search .rico { color: var(--s-faint); flex: none; }
.ui-refined .sanz-search:focus-within .rico { color: var(--s-accent); }
.ui-refined .sanz-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: .92rem; }
.ui-refined .sanz-search input::placeholder { color: var(--s-faint); }
.ui-refined .sanz-select {
  background: rgba(0,0,0,.25); border: 1px solid var(--s-line); border-radius: 11px; padding: .7rem 2.2rem .7rem 1rem;
  color: var(--s-text); font-size: .88rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b9ba6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.ui-refined .sanz-select:focus { outline: none; border-color: var(--s-accent); }
.ui-refined .sanz-select option { background: #14131a; color: #fff; }

/* Tabella refined (condivisa con account) */
.ui-refined .admin-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 16px; box-shadow: none; overflow: hidden; }
.ui-refined .sanz-table-card { padding: 0; }
.ui-refined .admin-table { width: 100%; border-collapse: collapse; }
.ui-refined .admin-table thead th { text-align: left; padding: .85rem 1.1rem; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.ui-refined .admin-table tbody td { padding: .85rem 1.1rem; font-size: .9rem; color: var(--s-text); border-bottom: 1px solid var(--s-line); vertical-align: middle; }
.ui-refined .admin-table tbody tr:last-child td { border-bottom: 0; }
.ui-refined .admin-table tbody tr:hover td { background: rgba(255,255,255,.022); }
.ui-refined .muted { color: var(--s-muted); }
.ui-refined .admin-table code, .ui-refined .ban-player-uuid code { font-family: var(--font-mono); font-size: .82em; color: var(--s-text); }
.ui-refined .admin-user-cell { display: inline-flex; align-items: center; gap: .55rem; }
.ui-refined .admin-user-cell img { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--s-line); }
.ui-refined .admin-user-cell a { color: var(--s-text); text-decoration: none; }
.ui-refined .admin-user-cell a:hover code { color: var(--s-accent-hover); }

/* Pill tipo provvedimento */
.ui-refined .ban-kind-pill { display: inline-flex; align-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .6rem; border-radius: 4px; color: var(--kind-color, var(--s-muted)); border: 1px solid currentColor; background: color-mix(in srgb, var(--kind-color, #9b9ba6) 10%, transparent); }
@supports not (background: color-mix(in srgb, red, blue)) { .ui-refined .ban-kind-pill { background: rgba(255,255,255,.03); } }

/* Stati */
.ui-refined .sanz-state { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-faint); }
.ui-refined .sanz-state--on { color: #e6707a; }
.ui-refined .sanz-state--off { color: #7fb89a; }
.ui-refined .sanz-state--warn { color: #d9a441; }

/* Contatori colorati */
.ui-refined .ban-c-ban { color: #e6707a; }
.ui-refined .ban-c-mute { color: #d9a441; }
.ui-refined .ban-c-kick { color: #e0935a; }
.ui-refined .ban-c-warn { color: var(--s-accent-hover); }

/* Scheda giocatore */
.ui-refined .ban-player-card { border: 1px solid var(--s-line); border-radius: 18px; background: var(--s-surface); padding: 1.75rem 1.9rem; margin-bottom: 1.75rem; }
.ui-refined .ban-player-head { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.ui-refined .ban-player-avatar { width: 80px; height: 80px; border-radius: 16px; border: 1px solid var(--s-line); background: #0b0a0f; }
.ui-refined .ban-player-info { flex: 1; min-width: 200px; }
.ui-refined .ban-player-name { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .02em; color: #fff; margin-bottom: .4rem; }
.ui-refined .ban-player-uuid { margin-bottom: .7rem; }
.ui-refined .ban-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; border: 1px solid currentColor; }
.ui-refined .ban-status--banned { color: #e6707a; }
.ui-refined .ban-status--muted { color: #d9a441; }
.ui-refined .ban-status--clean { color: #7fb89a; }
.ui-refined .ban-player-stats { display: flex; gap: 1.5rem; }
.ui-refined .ban-player-stats > div { display: flex; flex-direction: column; align-items: center; }
.ui-refined .ban-player-stats .big { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.ui-refined .ban-player-stats .lbl { font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); }
.ui-refined .ban-active-banner { margin-top: 1.5rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(230,112,122,.3); border-left: 2px solid #e6707a; border-radius: 12px; background: rgba(230,112,122,.05); }
.ui-refined .ban-active-banner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.ui-refined .ban-active-banner-row .lbl { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); margin-bottom: .25rem; }
.ui-refined .ban-active-banner-row .val { color: var(--s-text); font-size: .92rem; }
.ui-refined .ban-history-block { margin-top: 1.75rem; }
.ui-refined .ban-history-block h4 { display: flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.ui-refined .ban-history-block .admin-table { border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; }
@media (max-width: 720px) {
  .ui-refined .ban-player-stats { width: 100%; justify-content: space-between; }
  .ui-refined .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ════════════════════════════════════════════════════════════════════════
   STAFF (/staff) — refined. Hero hairline, sezioni per gruppo (--g-color
   conserva l'identità del gruppo), card team. Mantiene .reveal.
   ════════════════════════════════════════════════════════════════════════ */
.ui-refined .staff-page { padding: 3.5rem 0 5rem; }

.ui-refined .staff-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 2.5rem 2.2rem; margin-bottom: 3rem; border: 1px solid var(--s-line); border-radius: 20px;
  background: linear-gradient(135deg, rgba(139,111,196,.06), transparent 55%), var(--s-surface);
}
.ui-refined .staff-hero-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(420px 200px at 88% -10%, rgba(139,111,196,.16), transparent 64%); pointer-events: none; }
.ui-refined .staff-hero .rf-herovid__overlay { background: linear-gradient(90deg, rgba(8,8,11,.9) 0%, rgba(8,8,11,.55) 55%, rgba(8,8,11,.3) 100%); }
.ui-refined .staff-hero-content { position: relative; z-index: 1; }
.ui-refined .staff-hero-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 1rem; }
.ui-refined .staff-hero-eyebrow .rico { color: var(--s-accent); }
.ui-refined .staff-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: .9; letter-spacing: .02em; color: #fff; margin: 0 0 .5rem; }
.ui-refined .staff-hero p { margin: 0; color: var(--s-muted); font-size: 1.02rem; }
.ui-refined .staff-hero-count { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 1rem 1.4rem; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(0,0,0,.2); }
.ui-refined .staff-hero-count-n { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: #fff; }
.ui-refined .staff-hero-count-l { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--s-faint); margin-top: .25rem; }

.ui-refined .staff-section { margin-bottom: 2.75rem; }
.ui-refined .staff-section-title { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.ui-refined .staff-section-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g-color, var(--s-accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--g-color, #8b6fc4) 60%, transparent); }
.ui-refined .staff-section-name { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.ui-refined .staff-section-count { font-size: .7rem; font-weight: 700; color: var(--s-muted); border: 1px solid var(--s-line-strong); border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; }

.ui-refined .staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.ui-refined .staff-card {
  position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface);
  text-decoration: none; transition: border-color .2s, transform .2s, background .2s; overflow: hidden;
}
.ui-refined .staff-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--g-color, var(--s-accent)); opacity: 0; transition: opacity .2s; }
.ui-refined .staff-card:hover { border-color: color-mix(in srgb, var(--g-color, #8b6fc4) 45%, var(--s-line-strong)); transform: translateY(-3px); background: rgba(255,255,255,.03); }
.ui-refined .staff-card:hover::before { opacity: 1; }
.ui-refined .staff-card-avatar img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--s-line); background: #0b0a0f; image-rendering: pixelated; }
.ui-refined .staff-card-info { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.ui-refined .staff-card-name { color: #fff; font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-refined .staff-card-sub { display: inline-flex; align-items: center; gap: .35rem; color: var(--s-muted); font-size: .8rem; }
.ui-refined .staff-card-sub .rico { width: 14px; height: 14px; color: var(--s-faint); }

.ui-refined .staff-empty { color: var(--s-muted); padding: 3.5rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.ui-refined .staff-empty .rico { width: 38px; height: 38px; color: var(--s-faint); }
@media (max-width: 620px) { .ui-refined .staff-hero { flex-direction: column; align-items: flex-start; } }

/* ════════════════════════════════════════════════════════════════════════
   ACCOUNT (/account/*) — refined. Restyle SOLO visivo della chrome condivisa
   (sidebar, nav, hero, stat-card, section-card, kv, quick-grid): trasforma
   tutte le sotto-pagine. Layout/collapse (.account-layout grid, .is-collapsed)
   resta invariato. Form/tabelle ereditano i primitivi refined.
   ════════════════════════════════════════════════════════════════════════ */
/* Sidebar */
.ui-refined .account-sidebar { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 16px; box-shadow: none; }
.ui-refined .user-mini-row { border-bottom: 1px solid var(--s-line); }
.ui-refined .user-mini { text-decoration: none; }
.ui-refined .user-mini img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--s-line); }
.ui-refined .user-mini .name { color: #fff; font-weight: 600; font-size: .92rem; }
.ui-refined .user-mini .role-mini { color: var(--s-muted); font-size: .72rem; }
.ui-refined .user-mini-link { color: var(--s-faint); transition: color .15s; }
.ui-refined .user-mini:hover .user-mini-link { color: var(--s-accent); }
.ui-refined .account-toggle, .ui-refined .account-toggle-fab { color: var(--s-muted); border: 1px solid var(--s-line); border-radius: 9px; background: rgba(0,0,0,.2); transition: all .15s; }
.ui-refined .account-toggle:hover, .ui-refined .account-toggle-fab:hover { color: #fff; border-color: var(--s-accent); }
.ui-refined .account-toggle-fab { background: var(--s-accent); border-color: var(--s-accent); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.4); }

/* Nav */
.ui-refined .account-nav { list-style: none; margin: 0 0 .35rem; padding: 0; }
.ui-refined .account-nav li { margin: 0; }
.ui-refined .account-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 10px;
  color: var(--s-muted); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; position: relative;
}
.ui-refined .account-nav a i, .ui-refined .account-nav a .rico { width: 17px; height: 17px; text-align: center; color: var(--s-faint); transition: color .15s; }
.ui-refined .account-nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.ui-refined .account-nav a:hover i, .ui-refined .account-nav a:hover .rico { color: var(--s-muted); }
.ui-refined .account-nav a.active { background: rgba(139,111,196,.14); color: #fff; }
.ui-refined .account-nav a.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 1.1rem; border-radius: 2px; background: var(--s-accent); }
.ui-refined .account-nav a.active i, .ui-refined .account-nav a.active .rico { color: var(--s-accent); }

/* Hero */
.ui-refined .account-hero { position: relative; overflow: hidden; border: 1px solid var(--s-line); border-radius: 18px; background: var(--s-surface); box-shadow: none; padding: 2rem 2.1rem; }
.ui-refined .account-hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(440px 220px at 90% -20%, rgba(139,111,196,.14), transparent 64%); pointer-events: none; }
.ui-refined .account-hero .rf-herovid__overlay { background: linear-gradient(90deg, rgba(8,8,11,.92) 0%, rgba(8,8,11,.6) 55%, rgba(8,8,11,.32) 100%); }
.ui-refined .account-hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.ui-refined .account-hero-avatar { width: 88px; height: 88px; border-radius: 18px; border: 1px solid var(--s-line); background: #0b0a0f; image-rendering: pixelated; }
.ui-refined .account-hero-text .eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); margin-bottom: .6rem; }
.ui-refined .account-hero-text .eyebrow i, .ui-refined .account-hero-text .eyebrow .rico { color: var(--s-accent); }
.ui-refined .account-hero-text h1 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: .02em; color: #fff; margin: 0 0 .55rem; }
.ui-refined .account-hero-text p { margin: 0; color: var(--s-muted); font-size: .88rem; }

/* Stat grid */
.ui-refined .account-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ui-refined .stat-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); box-shadow: none; }
.ui-refined .stat-card--ok { border-color: rgba(127,184,154,.3); }
.ui-refined .stat-card--warn { border-color: rgba(217,164,65,.3); }
.ui-refined .stat-card-brand-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.03); border: 1px solid var(--s-line); }
.ui-refined .stat-card-brand-icon i { color: var(--s-accent); font-size: 1.2rem; }
.ui-refined .stat-card-num { color: #fff; font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .4rem; }
.ui-refined .stat-card-label { color: var(--s-faint); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }

/* Section card */
.ui-refined .account-section-card { border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); box-shadow: none; padding: 1.75rem 1.9rem; margin-bottom: 1.5rem; }
.ui-refined .account-section-card h2 { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; color: #fff; margin: 0 0 .35rem; }
.ui-refined .account-section-card h2 i, .ui-refined .account-section-card h2 .rico { color: var(--s-accent); font-size: .8em; width: 20px; height: 20px; }
.ui-refined .account-section-card .lead { color: var(--s-muted); font-size: .92rem; margin: 0 0 1.4rem; }

/* Key/value list */
.ui-refined .kv-list { display: flex; flex-direction: column; }
.ui-refined .kv { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--s-line); font-size: .92rem; }
.ui-refined .kv:last-child { border-bottom: 0; }
.ui-refined .kv .k { color: var(--s-faint); font-size: .8rem; font-weight: 500; }
.ui-refined .kv .v { color: var(--s-text); text-align: right; display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.ui-refined .kv-faint { color: var(--s-faint); }
.ui-refined .kv-email { font-family: var(--font-mono); font-size: .85em; }
.ui-refined .kv-warn { color: #d9a441; font-size: .78rem; display: inline-flex; align-items: center; gap: .3rem; }
.ui-refined .kv-ok { color: #7fb89a; font-size: .78rem; display: inline-flex; align-items: center; gap: .3rem; }
.ui-refined .btn-tiny { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid var(--s-line-strong); border-radius: 7px; background: transparent; color: var(--s-text); font-size: .74rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.ui-refined .btn-tiny:hover { border-color: var(--s-accent); color: #fff; }

/* Quick actions */
.ui-refined .quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.ui-refined .quick-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(255,255,255,.015); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.ui-refined .quick-card i, .ui-refined .quick-card .rico { width: 22px; height: 22px; color: var(--s-accent); font-size: 1.2rem; margin-bottom: .35rem; }
.ui-refined .quick-card strong { color: #fff; font-size: .98rem; font-weight: 600; }
.ui-refined .quick-card span { color: var(--s-muted); font-size: .82rem; }
.ui-refined .quick-card:hover { border-color: var(--s-line-strong); transform: translateY(-3px); background: rgba(255,255,255,.03); }
.ui-refined .quick-card.primary { border-color: rgba(139,111,196,.4); background: rgba(139,111,196,.08); }
.ui-refined .quick-card.primary:hover { border-color: var(--s-accent); }

/* ── Account · Collegamenti ── */
.ui-refined .link-list { display: flex; flex-direction: column; }
.ui-refined .link-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--s-line); flex-wrap: wrap; }
.ui-refined .link-row:last-child { border-bottom: 0; }
.ui-refined .link-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--s-line); overflow: hidden; }
.ui-refined .link-icon img { width: 60%; height: 60%; object-fit: contain; }
.ui-refined .link-icon-img img { width: 100%; height: 100%; }
.ui-refined .link-main { flex: 1; min-width: 180px; }
.ui-refined .link-name { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.ui-refined .link-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--s-muted); }
.ui-refined .link-status strong { color: var(--s-text); }
.ui-refined .link-status code { font-family: var(--font-mono); font-size: .85em; color: var(--s-accent-hover); }
.ui-refined .link-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s-faint); flex: none; }
.ui-refined .link-status.linked { color: var(--s-text); }
.ui-refined .link-status.linked .dot { background: #7fb89a; box-shadow: 0 0 7px rgba(127,184,154,.6); }
.ui-refined .link-status.warn { color: #d9a441; }
.ui-refined .link-status.warn .dot { background: #d9a441; }
.ui-refined .btn-google { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border: 1px solid var(--s-line-strong); border-radius: 9px; background: #fff; color: #1a1a1a; font-weight: 600; font-size: .84rem; text-decoration: none; transition: opacity .15s; }
.ui-refined .btn-google:hover { opacity: .9; }

/* ── Account · Sicurezza (2FA) ── */
.ui-refined .security-hero { display: flex; align-items: center; gap: 1.4rem; padding: 2rem 2.1rem; border: 1px solid var(--s-line); border-radius: 18px; background: var(--s-surface); margin-bottom: 1.5rem; flex-wrap: wrap; }
.ui-refined .security-hero.is-on { border-color: rgba(127,184,154,.3); }
.ui-refined .security-hero.is-off { border-color: rgba(217,164,65,.3); }
.ui-refined .security-hero-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.24); color: var(--s-accent); }
.ui-refined .security-hero.is-on .security-hero-icon { background: rgba(127,184,154,.1); border-color: rgba(127,184,154,.28); color: #7fb89a; }
.ui-refined .security-hero.is-off .security-hero-icon { background: rgba(217,164,65,.1); border-color: rgba(217,164,65,.28); color: #d9a441; }
.ui-refined .security-hero-body { flex: 1; min-width: 200px; }
.ui-refined .security-hero-eyebrow { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); margin-bottom: .5rem; }
.ui-refined .security-hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1; letter-spacing: .02em; color: #fff; margin: 0 0 .5rem; }
.ui-refined .security-hero-sub { color: var(--s-muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.ui-refined .security-hero-badge { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; border: 1px solid currentColor; }
.ui-refined .security-hero.is-on .security-hero-badge { color: #7fb89a; }
.ui-refined .security-hero.is-off .security-hero-badge { color: #d9a441; }
.ui-refined .security-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ui-refined .security-stat { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.ui-refined .security-stat-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.ui-refined .security-stat-val { color: #fff; font-weight: 600; font-size: .95rem; }
.ui-refined .security-stat-lbl { color: var(--s-faint); font-size: .74rem; }
.ui-refined .security-alert { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: .9rem; line-height: 1.5; }
.ui-refined .security-alert strong { color: #fff; }
.ui-refined .security-alert-warn { border: 1px solid rgba(217,164,65,.3); border-left: 2px solid #d9a441; background: rgba(217,164,65,.06); color: var(--s-muted); }
.ui-refined .security-alert-warn i { color: #d9a441; }
.ui-refined .security-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.ui-refined .security-action-card { border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); padding: 1.5rem 1.6rem; }
.ui-refined .security-action-card.danger { border-color: rgba(230,112,122,.3); }
.ui-refined .security-action-head { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.ui-refined .security-action-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ui-refined .security-action-head h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 .3rem; }
.ui-refined .security-action-head .muted { color: var(--s-muted); font-size: .85rem; line-height: 1.45; margin: 0; }
.ui-refined .security-steps { display: flex; flex-direction: column; gap: .85rem; }
.ui-refined .security-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.ui-refined .security-step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--s-accent); background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.26); }
.ui-refined .security-step strong { color: #fff; font-weight: 600; display: block; margin-bottom: .25rem; }
.ui-refined .security-step .muted { color: var(--s-muted); font-size: .85rem; line-height: 1.5; margin: 0; }

/* ── Account · Avvisi ── */
.ui-refined .alerts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ui-refined .alerts-list { display: flex; flex-direction: column; }
.ui-refined .alert-row { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem .4rem; border-bottom: 1px solid var(--s-line); border-radius: 0; }
.ui-refined .alert-row:last-child { border-bottom: 0; }
.ui-refined .alert-row.is-unread { box-shadow: inset 2px 0 0 var(--s-accent); background: rgba(139,111,196,.04); }
.ui-refined .alert-icon { position: relative; flex: none; }
.ui-refined .alert-icon img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--s-line); }
.ui-refined .alert-iconbox { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.22); color: var(--s-accent); }
.ui-refined .alert-multiplier { position: absolute; bottom: -4px; right: -4px; background: var(--s-accent); color: #fff; font-size: .6rem; font-weight: 700; border-radius: 999px; padding: 0 .3rem; }
.ui-refined .alert-body { flex: 1; min-width: 0; }
.ui-refined .alert-title { color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; display: block; }
.ui-refined .alert-title:hover { color: var(--s-accent-hover); }
.ui-refined .alert-preview { color: var(--s-muted); font-size: .84rem; margin-top: .2rem; line-height: 1.45; }
.ui-refined .alert-meta { color: var(--s-faint); font-size: .76rem; margin-top: .3rem; }
.ui-refined .alert-new { color: var(--s-accent); font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }

/* ── Account · Placeholder / empty ── */
.ui-refined .placeholder-card { text-align: center; padding: 3rem 2rem; border: 1px dashed var(--s-line-strong); border-radius: 16px; background: transparent; }
.ui-refined .placeholder-card .icon-big { font-size: 2.2rem; color: var(--s-faint); margin-bottom: 1rem; }
.ui-refined .placeholder-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; color: #fff; margin: 0 0 .35rem; }
.ui-refined .placeholder-card p { color: var(--s-muted); margin: 0 auto; max-width: 46ch; }

/* ── Account · Messaggi diretti (recolor) ── */
.ui-refined .dm-msg-bubble { border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.ui-refined .dm-msg-meta { color: var(--s-faint); }
.ui-refined .dm-read-tick { color: var(--s-accent); }
.ui-refined .dm-flagged-tag { color: #d9a441; border: 1px solid rgba(217,164,65,.4); border-radius: 4px; }

/* ── Account · helper vari ── */
.ui-refined .btn-secondary { background: transparent; border: 1px solid var(--s-line-strong); color: var(--s-text); }
.ui-refined .btn-secondary:hover { border-color: var(--s-accent); color: #fff; }
.ui-refined .account-form .field:last-child { margin-bottom: 0; }
.ui-refined .mc-link-howto { border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }

/* ════════════════════════════════════════════════════════════════════════
   REFINED PAGES — Coins (.cns) · Staff (.stf) · Evento (.ev)
   Stesso linguaggio "refined dark commerce" dello store: hairline su superfici
   quasi-nere, accento viola unico (--s-accent), display Bebas sui numeri/titoli,
   tabular-nums, hover sobri. Tutto sotto body.ui-refined → token in scope.
   ════════════════════════════════════════════════════════════════════════ */

/* ──────────────── COINS · /store/coins ──────────────── */
.cns { padding-bottom: 1rem; }
.cns__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (max-width: 880px) { .cns__grid { grid-template-columns: 1fr; } }

.cns__form .field { margin-bottom: 1.5rem; }
.cns__opt { font-style: normal; color: var(--s-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }

.cns__presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.cns__chip {
  flex: 1 1 7rem; display: inline-flex; align-items: baseline; justify-content: center; gap: .2rem;
  padding: .7rem 1rem; border: 1px solid var(--s-line); border-radius: 12px;
  background: rgba(255,255,255,.02); color: var(--s-text);
  transition: border-color .16s, background .16s, transform .16s;
}
.cns__chip:hover { border-color: var(--s-line-strong); transform: translateY(-1px); }
.cns__chip.is-selected { border-color: var(--s-accent); background: rgba(139,111,196,.14); }
.cns__chip-n { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cns__chip-c { font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--s-muted); text-transform: uppercase; }
.cns__chip.is-selected .cns__chip-c { color: var(--s-accent); }

.cns__amount {
  display: flex; flex-direction: column; gap: .2rem;
  border: 1px solid var(--s-line); border-radius: 16px;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(139,111,196,.10), transparent 55%),
    rgba(0,0,0,.30);
  padding: .95rem 1.4rem 1.05rem;
  transition: border-color .2s, box-shadow .2s;
}
.cns__amount:focus-within {
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px rgba(139,111,196,.15), 0 20px 45px -28px rgba(139,111,196,.55);
}
.cns__amount-label { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--s-faint); }
.cns__amount-field { display: flex; align-items: baseline; gap: .5rem; width: 100%; }
/* (0,3,0): batte .field input[type=text] (0,2,1 — l'attributo [type] conta come una classe) */
.cns .cns__amount .cns__amount-input {
  flex: 1 1 auto; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0;
  color: #fff; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(3rem, 8vw, 5rem); line-height: 1.04;
  text-align: right; font-variant-numeric: tabular-nums; padding: 0;
}
.cns .cns__amount .cns__amount-input::placeholder { color: var(--s-line-strong); }
.cns__amount-suffix {
  flex: none; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); color: var(--s-accent);
  letter-spacing: .04em; line-height: 1;
}
.cns__amount-eur {
  align-self: flex-end; margin-top: .1rem;
  font-size: .9rem; font-weight: 500; color: var(--s-muted);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.cns__amount-eur b { color: var(--s-text); font-weight: 600; }

.cns__cta { margin-top: .35rem; justify-content: center; }
.cns__inline { display: flex; align-items: flex-start; gap: .55rem; margin: 1rem 0 0; font-size: .85rem; color: var(--s-muted); line-height: 1.5; }
.cns__inline .rico { margin-top: .1rem; color: var(--s-accent); }
.cns__inline a { color: #fff; text-decoration: underline; text-decoration-color: var(--s-line-strong); text-underline-offset: 3px; }
.cns__inline a:hover { text-decoration-color: var(--s-accent); }
.cns__inline--warn .rico { color: #d9a441; }

.cns__side { display: flex; flex-direction: column; gap: 1.25rem; }

.cns__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.cns__steps li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.cns__steps p { margin: 0; color: var(--s-muted); font-size: .9rem; line-height: 1.5; }
.cns__step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex: none; border-radius: 9px;
  border: 1px solid var(--s-line-strong); color: var(--s-text);
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.cns__step-n--ok { border-color: var(--s-accent); color: var(--s-accent); }
.cns__step-n--ok .rico { width: 15px; height: 15px; }

.cns__tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cns__ticket {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: .5rem .8rem; align-items: center;
  padding: .8rem 0; border-top: 1px solid var(--s-line);
}
.cns__ticket:first-child { border-top: 0; }
.cns__ticket-id { font-family: var(--font-mono); font-size: .78rem; color: var(--s-faint); }
.cns__ticket-amt { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cns__ticket-date { font-size: .76rem; color: var(--s-muted); grid-column: 2; }
.cns__ticket-act { grid-row: 1; grid-column: 3; }
.cns__ticket-go { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--s-accent); }
.cns__ticket-go:hover { color: var(--s-accent-hover); }
.cns__ticket-cancel { grid-row: 1; grid-column: 4; line-height: 0; }
.cns__ticket-x {
  width: 1.7rem; height: 1.7rem; border-radius: 7px; border: 1px solid var(--s-line);
  color: var(--s-faint); font-size: 1.1rem; line-height: 1; transition: all .15s;
}
.cns__ticket-x:hover { border-color: #e6707a; color: #e6707a; background: rgba(230,112,122,.08); }

.cns__safe { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(139,111,196,.05); }
.cns__safe-ico { flex: none; color: var(--s-accent); }
.cns__safe-ico .rico { width: 22px; height: 22px; }
.cns__safe strong { display: block; color: #fff; font-size: .92rem; margin-bottom: .2rem; }
.cns__safe p { margin: 0; color: var(--s-muted); font-size: .82rem; line-height: 1.5; }

/* ──────────────── STAFF · /staff ──────────────── */
.stf__group { --g-color: var(--s-accent); margin-bottom: 3.5rem; }
.stf__group:last-child { margin-bottom: 0; }

/* Divisore decorativo a diamante sopra ogni sezione */
.stf__divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.4rem; color: var(--g-color); }
.stf__divider span { height: 1px; width: min(120px, 18vw); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g-color) 45%, transparent)); }
.stf__divider span:last-child { background: linear-gradient(90deg, color-mix(in srgb, var(--g-color) 45%, transparent), transparent); }
.stf__divider .rico { width: 13px; height: 13px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--g-color) 70%, transparent)); }

/* Header sezione = "pill" centrata, testo colorato col gruppo */
.stf__group-head { display: flex; justify-content: center; margin: 0 0 1.6rem; }
.stf__pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .62rem 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid color-mix(in srgb, var(--g-color) 30%, var(--s-line));
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 8px 24px -12px color-mix(in srgb, var(--g-color) 55%, transparent);
}
.stf__pill .rico { color: var(--g-color); width: 16px; height: 16px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--g-color) 65%, transparent)); }
.stf__pill-label {
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--g-color); text-shadow: 0 0 18px color-mix(in srgb, var(--g-color) 35%, transparent);
}

/* Griglia centrata di card */
.stf__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.15rem; }
.stf__card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  width: 188px; padding: 1.6rem 1rem 1.15rem;
  border: 1px solid var(--s-line); border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--g-color) 12%, transparent), transparent 60%),
    var(--s-surface);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stf__card:hover {
  border-color: color-mix(in srgb, var(--g-color) 50%, var(--s-line-strong));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--g-color) 60%, transparent);
}

/* Avatar a figura intera dentro un cerchio con anello colorato */
.stf__avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: start center; margin-bottom: .45rem;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), rgba(0,0,0,.25));
  border: 2px solid color-mix(in srgb, var(--g-color) 55%, transparent);
  box-shadow: inset 0 0 22px rgba(0,0,0,.45), 0 0 18px -6px color-mix(in srgb, var(--g-color) 60%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.stf__avatar img {
  width: 128%; height: auto; image-rendering: pixelated; display: block;
  margin-top: 10%; /* mostra testa+busto, gambe oltre il cerchio in basso */
}
.stf__card:hover .stf__avatar {
  border-color: var(--g-color);
  box-shadow: inset 0 0 22px rgba(0,0,0,.45), 0 0 26px -4px color-mix(in srgb, var(--g-color) 75%, transparent);
}

.stf__name { font-weight: 700; color: #fff; font-size: 1rem; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stf__role {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g-color); text-align: center; line-height: 1.3;
}

@media (max-width: 520px) {
  .stf__card { width: calc(50% - .6rem); }
  .stf__pill-label { font-size: 1.1rem; letter-spacing: .16em; }
}

/* ──────────────── EVENTO · /evento (+ HoF, team) ──────────────── */
.ev { padding-bottom: 4rem; }
.ev .container { max-width: 1180px; }

/* Hero */
.ev__hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--s-line); padding: 3.25rem 0 3rem; margin-bottom: 3rem; background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 72%); }
.ev__hero-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 264px; gap: 2.75rem; align-items: end; }
.ev__hero--compact .ev__hero-wrap { grid-template-columns: minmax(0,1fr); }
.ev__hero--compact { padding: 2.75rem 0 2.25rem; margin-bottom: 2.5rem; }
@media (max-width: 880px) { .ev__hero-wrap { grid-template-columns: 1fr; gap: 1.75rem; } }

.ev__state { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--s-line-strong); color: var(--s-muted); margin-bottom: 1.1rem; }
.ev__state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s-faint); }
.ev__state--live { color: #7fb89a; border-color: rgba(127,184,154,.45); }
.ev__state--live .ev__state-dot { background: #5cdb95; box-shadow: 0 0 0 0 rgba(92,219,149,.6); animation: ev-pulse 1.8s ease-out infinite; }
.ev__state--lobby { color: #d9a441; border-color: rgba(217,164,65,.45); }
.ev__state--lobby .ev__state-dot { background: #d9a441; }
@keyframes ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(92,219,149,.55); } 70% { box-shadow: 0 0 0 7px rgba(92,219,149,0); } 100% { box-shadow: 0 0 0 0 rgba(92,219,149,0); } }

.ev__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .92; letter-spacing: .02em; color: #fff; margin: 0 0 1rem; }
.ev__lead { color: var(--s-muted); font-size: 1.02rem; line-height: 1.7; max-width: 60ch; margin: 0; }
.ev__lead strong { color: #fff; font-weight: 600; }

.ev__timer-wrap { display: flex; align-items: baseline; gap: .8rem; margin-top: 1.6rem; }
.ev__timer-label { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-faint); }
.ev__timer { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }

.ev__counters { display: flex; gap: 2rem; margin-top: 1.6rem; }
.ev__counter { display: flex; flex-direction: column; gap: .2rem; }
.ev__counter-n { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
.ev__counter-n--accent { color: var(--s-accent); }
.ev__counter-l { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--s-faint); }

.ev__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

/* Hero · premi */
.ev__prizes { display: flex; flex-direction: column; gap: .6rem; }
.ev__prizes-title { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-faint); margin-bottom: .2rem; }
.ev__prize { position: relative; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--s-line); border-radius: 13px; background: var(--s-surface); overflow: hidden; }
.ev__prize-rank { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--s-faint); width: 1.3rem; text-align: center; flex: none; }
.ev__prize-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ev__prize-body strong { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.ev__prize-body small { color: var(--s-muted); font-size: .74rem; }
.ev__prize-ico { width: 17px; height: 17px; color: var(--s-faint); flex: none; }
.ev__prize--1 { border-color: rgba(139,111,196,.4); background: rgba(139,111,196,.08); }
.ev__prize--1 .ev__prize-rank, .ev__prize--1 .ev__prize-ico { color: var(--s-accent); }

.ev__section { margin-bottom: 3.25rem; }
.ev__section:last-child { margin-bottom: 0; }

/* Leaderboard */
.ev__lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ev__live { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); white-space: nowrap; }
.ev__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-faint); transition: background .25s; }
.ev__live-dot.is-on, .ev__live-dot.active { background: #5cdb95; box-shadow: 0 0 10px rgba(92,219,149,.5); animation: ev-pulse 1.8s ease-out infinite; }

.ev__lb { list-style: none; margin: 0; padding: 0; border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; background: var(--s-surface); }
.ev__lb-row { border-top: 1px solid var(--s-line); }
.ev__lb-row:first-child { border-top: 0; }
.ev__lb-link {
  display: grid; grid-template-columns: 3rem minmax(0,1fr) auto auto auto; gap: 1.1rem; align-items: center;
  padding: .95rem 1.25rem; text-decoration: none; transition: background .15s; position: relative;
}
.ev__lb-link:hover { background: rgba(255,255,255,.03); }
.ev__lb-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; }
.ev__lb-row--p1 .ev__lb-link, .ev__lb-row--p2 .ev__lb-link, .ev__lb-row--p3 .ev__lb-link { padding-left: 1.4rem; }
.ev__lb-row--p1 { background: rgba(139,111,196,.07); }
.ev__lb-row--p1::before { background: var(--s-accent); }
.ev__lb-row--p2::before { background: var(--s-line-strong); }
.ev__lb-row--p3::before { background: rgba(139,111,196,.35); }
.ev__lb-rank-n { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; color: var(--s-faint); font-variant-numeric: tabular-nums; }
.ev__lb-row--p1 .ev__lb-rank-n { color: var(--s-accent); }
.ev__lb-row--p1 .ev__lb-rank-n, .ev__lb-row--p2 .ev__lb-rank-n, .ev__lb-row--p3 .ev__lb-rank-n { font-size: 1.85rem; }
.ev__lb-team { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.ev__lb-team-name { font-weight: 700; color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__lb-team-capo { font-size: .76rem; color: var(--s-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__lb-points { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.ev__lb-points-n { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
.ev__lb-points-l { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--s-faint); }
.ev__lb-kills { display: flex; flex-direction: column; gap: .15rem; font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--s-muted); text-align: right; }
.ev__lb-kills-d { color: var(--s-faint); }
.ev__lb-status { font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); border: 1px solid var(--s-line-strong); border-radius: 4px; padding: .2rem .45rem; white-space: nowrap; }
.ev__lb-status--winner { color: var(--s-accent); border-color: rgba(139,111,196,.45); }
.ev__lb-status--in_game { color: #7fb89a; border-color: rgba(127,184,154,.4); }
.ev__lb-status--lobby { color: #d9a441; border-color: rgba(217,164,65,.4); }
.ev__lb-status--eliminated { color: #e6707a; border-color: rgba(230,112,122,.4); }
@media (max-width: 680px) {
  .ev__lb-link { grid-template-columns: 2.4rem minmax(0,1fr) auto; gap: .75rem; padding: .85rem 1rem; }
  .ev__lb-kills { display: none; }
  .ev__lb-status { display: none; }
}

/* Leaderboard · empty */
.ev__empty { position: relative; border: 1px dashed var(--s-line-strong); border-radius: 16px; padding: 1.25rem; overflow: hidden; }
.ev__empty-ghost { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; opacity: .5; }
.ev__empty-ghost li { display: grid; grid-template-columns: 2rem 1fr 4rem; gap: 1rem; align-items: center; }
.ev__empty-ghost-rank { font-family: var(--font-display); font-size: 1.3rem; color: var(--s-faint); }
.ev__empty-ghost-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02), rgba(255,255,255,.06)); background-size: 200% 100%; animation: ev-shimmer 1.6s linear infinite; }
.ev__empty-ghost-bar--pts { width: 100%; }
@keyframes ev-shimmer { to { background-position: -200% 0; } }
.ev__empty-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1rem; background: radial-gradient(ellipse at center, var(--bg) 40%, transparent); }
.ev__empty-msg strong { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; }
.ev__empty-msg span { color: var(--s-muted); font-size: .88rem; max-width: 42ch; }
.ev__empty-msg code, .ev__rule code { font-family: var(--font-mono); font-size: .82em; color: var(--s-accent); background: rgba(139,111,196,.1); border-radius: 4px; padding: .08em .35em; }

/* Regole · rulebook */
.ev__rulebook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--s-line); border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .ev__rulebook { grid-template-columns: 1fr; } }
.ev__rule { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem; background: var(--bg); }
.ev__rule-tag { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--s-accent); background: rgba(139,111,196,.1); border: 1px solid rgba(139,111,196,.25); border-radius: 6px; padding: .25rem .55rem; }
.ev__rule-tag .rico { color: var(--s-accent); }
.ev__rule-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: #fff; margin: 0 0 .35rem; letter-spacing: 0; }
.ev__rule-body p { margin: 0; color: var(--s-muted); font-size: .9rem; line-height: 1.6; }
.ev__rule-body b { color: var(--s-text); font-weight: 700; }

/* Eventi speciali */
.ev__special-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 1rem; }
.ev__sp { border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); padding: 1.25rem 1.3rem; }
.ev__sp-cat { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-accent); margin-bottom: .85rem; }
.ev__sp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ev__sp li { position: relative; padding-left: 1rem; color: var(--s-muted); font-size: .86rem; line-height: 1.45; }
.ev__sp li::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--s-line-strong); }
.ev__sp li b { color: #fff; font-weight: 700; }
.ev__sp li em { color: var(--s-faint); font-style: normal; }

/* Hall of Fame */
.ev__hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(308px, 1fr)); gap: 1.25rem; }
.ev__hof-card { border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-surface); padding: 1.4rem 1.5rem; }
.ev__hof-head { margin-bottom: 1.2rem; }
.ev__hof-podio { display: flex; flex-direction: column; gap: .5rem; }
.ev__hof-pos { display: flex; align-items: center; gap: .85rem; padding: .65rem .8rem; border: 1px solid var(--s-line); border-radius: 11px; background: rgba(0,0,0,.2); }
.ev__hof-pos--1 { border-color: rgba(139,111,196,.4); background: rgba(139,111,196,.08); }
.ev__hof-medal { position: relative; flex: none; color: var(--s-faint); display: inline-flex; }
.ev__hof-medal .rico { width: 22px; height: 22px; }
.ev__hof-pos--1 .ev__hof-medal { color: var(--s-accent); }
.ev__hof-medal-n { position: absolute; right: -5px; bottom: -4px; font-family: var(--font-display); font-size: .8rem; line-height: 1; color: var(--s-muted); background: var(--bg); border-radius: 50%; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; }
.ev__hof-team { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ev__hof-team strong { color: #fff; font-size: .98rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__hof-team small { color: var(--s-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.ev__hof-team--empty strong { color: var(--s-faint); }
.ev__hof-mvps { display: flex; flex-wrap: wrap; gap: .5rem .85rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--s-line); }
.ev__hof-mvps-title { width: 100%; font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--s-faint); }
.ev__hof-mvp { display: flex; flex-direction: column; gap: .1rem; }
.ev__hof-mvp-cat { display: inline-flex; align-items: center; gap: .3rem; font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.ev__hof-mvp-cat .rico { color: var(--s-accent); }
.ev__hof-mvp strong { color: #fff; font-size: .88rem; font-weight: 600; }
.ev__hof-mvp small { color: var(--s-accent); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Team detail */
.ev__team-body { display: block; }
.ev__members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.ev__member { display: flex; align-items: center; gap: .85rem; padding: .85rem .95rem; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-surface); }
.ev__member-head { width: 48px; height: 48px; border-radius: 11px; image-rendering: pixelated; flex: none; }
.ev__member-body { min-width: 0; flex: 1 1 auto; }
.ev__member-name { display: block; color: #fff; font-size: .96rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__member-stats { display: flex; flex-wrap: wrap; gap: .2rem .7rem; margin-top: .3rem; font-size: .76rem; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.ev__member-stats span { display: inline-flex; align-items: center; gap: .25rem; }
.ev__member-stats .rico { color: var(--s-faint); }
.ev__member-kd { color: var(--s-accent) !important; font-weight: 600; }

.ev__beacon { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.ev__beacon-hp { flex: 1 1 240px; }
.ev__beacon-bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,.35); border: 1px solid var(--s-line); overflow: hidden; }
.ev__beacon-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--s-accent), var(--s-accent-hover)); border-radius: 6px; transition: width .4s ease; }
.ev__beacon-bar.is-dead span { background: linear-gradient(90deg, #e6707a, #b8505a); }
.ev__beacon-hp small { display: block; margin-top: .45rem; font-size: .76rem; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.ev__beacon-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.ev__table-wrap { border: 1px solid var(--s-line); border-radius: 14px; overflow: hidden; }
.ev__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ev__table thead th { text-align: left; padding: .7rem 1rem; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--s-line); }
.ev__table tbody td { padding: .72rem 1rem; border-top: 1px solid var(--s-line); color: var(--s-text); }
.ev__table tbody tr:first-child td { border-top: 0; }
.ev__num { text-align: right; font-variant-numeric: tabular-nums; }
.ev__num--accent { color: var(--s-accent); font-weight: 700; }
.ev__muted { color: var(--s-muted); }

/* ═══════════════════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy / Termini / Regolamento
   "refined dark commerce" — stesso linguaggio dei token --s-* dello store.
   ═══════════════════════════════════════════════════════════════════════ */
.legal {
  --s-accent: #8b6fc4;
  --s-accent-hover: #9d83d6;
  --s-line: rgba(255,255,255,.09);
  --s-line-strong: rgba(255,255,255,.16);
  --s-surface: rgba(255,255,255,.025);
  --s-text: #ececf1;
  --s-muted: #9b9ba6;
  --s-faint: #6b6b76;
  color: var(--s-text);
  background: #08080b;
  position: relative;
}
.legal .ico { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.legal__wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HERO ── */
.legal__hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--s-line);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(139,111,196,.16), transparent 55%),
    radial-gradient(90% 80% at 100% 0%, rgba(139,111,196,.07), transparent 60%);
}
.legal__hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--s-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 90% at 18% -10%, #000 0%, transparent 62%);
          mask-image: radial-gradient(110% 90% at 18% -10%, #000 0%, transparent 62%);
  opacity: .5;
}
/* Video ambientale (come lo store): copre l'hero, sfumato verso il contenuto */
.legal__hero--video { background: var(--bg); }
.legal__hero--video::after { display: none; }
.legal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.legal__video::-webkit-media-controls,
.legal__video::-webkit-media-controls-panel,
.legal__video::-webkit-media-controls-start-playback-button,
.legal__video::-webkit-media-controls-overlay-play-button,
.legal__video::-webkit-media-controls-enclosure,
.legal__video::-webkit-media-controls-fullscreen-button,
.legal__video::-webkit-media-controls-overlay-enclosure { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.legal__video-shield { position: absolute; inset: 0; z-index: 0; pointer-events: auto; background: transparent; cursor: default; }
.legal__video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,11,.88) 0%, rgba(8,8,11,.55) 50%, rgba(8,8,11,.2) 100%),
    linear-gradient(180deg, rgba(8,8,11,.25) 0%, rgba(8,8,11,.78) 72%, #08080b 100%);
}
.legal__hero-inner { position: relative; z-index: 1; max-width: 760px; }
.legal__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--s-accent); margin-bottom: 1.1rem;
}
.legal__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--s-accent); opacity: .7; }
.legal__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5rem); line-height: .92; letter-spacing: .01em;
  color: #fff; margin: 0;
}
.legal__lead {
  margin: 1.1rem 0 0; max-width: 56ch;
  color: var(--s-muted); font-size: 1.02rem; line-height: 1.65;
}
.legal__meta {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.6rem;
  padding: .42rem .85rem; border: 1px solid var(--s-line-strong); border-radius: 999px;
  font-size: .74rem; letter-spacing: .03em; color: var(--s-faint);
}
.legal__meta .ico { width: 14px; height: 14px; color: var(--s-accent); }
.legal__meta b { color: var(--s-muted); font-weight: 600; }

/* ── LAYOUT ── */
.legal__layout {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
}

/* ── TOC ── */
.legal__toc { position: sticky; top: 92px; align-self: start; }
.legal__toc-title {
  display: block; font-size: .64rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--s-faint); padding: 0 .9rem; margin-bottom: .85rem;
}
.legal__toc-nav { display: flex; flex-direction: column; gap: 1px; }
.legal__toc-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .58rem .9rem; border-radius: 7px;
  color: var(--s-muted); font-size: .86rem; font-weight: 500;
  text-decoration: none; transition: color .2s, background .2s;
}
.legal__toc-num {
  font-family: var(--font-mono, monospace); font-size: .7rem; color: var(--s-faint);
  font-variant-numeric: tabular-nums; transition: color .2s;
}
.legal__toc-link:hover { color: #fff; background: var(--s-surface); }
.legal__toc-link.is-active { color: #fff; background: rgba(139,111,196,.1); }
.legal__toc-link.is-active .legal__toc-num { color: var(--s-accent); }

/* ── BODY ── */
.legal__main { min-width: 0; }
.legal__section { scroll-margin-top: 96px; padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.legal__section + .legal__section { border-top: 1px solid var(--s-line); padding-top: clamp(2.25rem, 4vw, 3.25rem); }
.legal__section-head { display: flex; align-items: baseline; gap: .85rem; margin-bottom: 1.1rem; }
.legal__section-num {
  font-family: var(--font-mono, monospace); font-size: .8rem; font-weight: 700;
  color: var(--s-accent); letter-spacing: .04em; flex: none;
}
.legal__h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.05; letter-spacing: .015em;
  color: #fff; margin: 0;
}
.legal__prose { color: var(--s-muted); font-size: .96rem; line-height: 1.72; max-width: 68ch; }
.legal__prose > * + * { margin-top: 1rem; }
.legal__prose p { margin: 0; }
.legal__prose strong { color: var(--s-text); font-weight: 600; }
.legal__prose a { color: var(--s-accent); text-decoration: none; border-bottom: 1px solid rgba(139,111,196,.35); transition: color .2s, border-color .2s; }
.legal__prose a:hover { color: var(--s-accent-hover); border-color: var(--s-accent-hover); }
.legal__prose h3 {
  color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  margin-top: 1.9rem; margin-bottom: -.1rem;
}
.legal__prose ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.legal__prose li { position: relative; padding-left: 1.5rem; }
.legal__prose li::before {
  content: ""; position: absolute; left: .15rem; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--s-accent);
}
.legal__prose li strong { color: var(--s-text); }

/* definition rows (es. dati raccolti) */
.legal__defs { display: grid; gap: 1px; margin-top: 1.2rem; border: 1px solid var(--s-line); border-radius: 10px; overflow: hidden; background: var(--s-line); }
.legal__def { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; padding: .95rem 1.15rem; background: #0b0b0f; }
.legal__def-key { color: var(--s-text); font-weight: 600; font-size: .9rem; }
.legal__def-val { color: var(--s-muted); font-size: .9rem; line-height: 1.6; }

/* callout */
.legal__note {
  display: flex; gap: .9rem; margin-top: 1.4rem;
  padding: 1rem 1.15rem; border: 1px solid var(--s-line-strong); border-radius: 10px;
  background: rgba(139,111,196,.05);
}
.legal__note .ico { color: var(--s-accent); margin-top: .15rem; }
.legal__note p { color: var(--s-muted); font-size: .88rem; line-height: 1.6; margin: 0; }
.legal__note strong { color: #fff; }

/* ── FOOT ── */
.legal__foot {
  margin-top: 1rem; padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--s-line);
}
.legal__foot-card {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem; border: 1px solid var(--s-line); border-radius: 14px;
  background: var(--s-surface);
}
.legal__foot-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--s-line-strong); border-radius: 11px; color: var(--s-accent);
}
.legal__foot-ico .ico { width: 22px; height: 22px; }
.legal__foot-body { flex: 1 1 260px; }
.legal__foot-body h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 .2rem; }
.legal__foot-body p { color: var(--s-muted); font-size: .9rem; margin: 0; line-height: 1.55; }
.legal__foot-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.3rem; border-radius: 9px; flex: none;
  background: var(--s-accent); color: #fff; font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: background .2s, transform .2s;
}
.legal__foot-cta:hover { background: var(--s-accent-hover); transform: translateY(-1px); }
.legal__foot-cta .ico { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.legal__foot-cta:hover .ico { transform: translateX(3px); }
.legal__siblings { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.5rem; }
.legal__sibling {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border: 1px solid var(--s-line); border-radius: 8px;
  color: var(--s-muted); font-size: .82rem; font-weight: 500; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.legal__sibling .ico { width: 15px; height: 15px; color: var(--s-faint); transition: color .2s; }
.legal__sibling:hover { color: #fff; border-color: var(--s-line-strong); background: var(--s-surface); }
.legal__sibling:hover .ico { color: var(--s-accent); }
.legal__sibling.is-current { color: #fff; border-color: var(--s-accent); background: rgba(139,111,196,.08); pointer-events: none; }
.legal__sibling.is-current .ico { color: var(--s-accent); }

@media (max-width: 860px) {
  .legal__layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .legal__toc {
    position: static; top: auto;
    border: 1px solid var(--s-line); border-radius: 12px; padding: 1rem; background: var(--s-surface);
  }
  .legal__def { grid-template-columns: 1fr; gap: .3rem; }
  .legal__def-key { font-size: .86rem; }
}

/* Editor pagine legali (admin) */
.legal-edit-sec { border: 1px solid var(--border-light); border-radius: 10px; padding: .85rem; margin-bottom: .85rem; background: rgba(255,255,255,.015); }
.legal-edit-sec-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.legal-edit-sec-num { font-family: var(--font-mono, monospace); font-size: .8rem; font-weight: 700; color: var(--accent, #8b6fc4); flex: none; width: 1.6rem; text-align: center; }
.legal-edit-sec-title { flex: 1 1 auto; }
.legal-edit-sec-del { padding: .4rem .55rem !important; flex: none; }
.legal-edit-sec-body { width: 100%; font-family: var(--font-mono, ui-monospace, monospace); font-size: .82rem; line-height: 1.5; }

/* Store: accettazione legale obbligatoria prima dell'acquisto */
.shop-detail__accept {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 0 0 .9rem; padding: .75rem .9rem;
  border: 1px solid var(--s-line, rgba(255,255,255,.09)); border-radius: 9px;
  background: var(--s-surface, rgba(255,255,255,.025));
  color: var(--s-muted, #9b9ba6); font-size: .82rem; line-height: 1.5; cursor: pointer;
}
.shop-detail__accept input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: .1rem 0 0; flex: none;
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid var(--s-line-strong, rgba(255,255,255,.16));
  background: transparent; cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
}
.shop-detail__accept input[type="checkbox"]:checked {
  background: var(--s-accent, #8b6fc4); border-color: var(--s-accent, #8b6fc4);
}
.shop-detail__accept input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.shop-detail__accept input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--s-accent, #8b6fc4); outline-offset: 2px;
}
.shop-detail__accept a { color: var(--s-text, #ececf1); text-decoration: underline; text-underline-offset: 2px; }
.shop-detail__accept a:hover { color: var(--s-accent-hover, #9d83d6); }

/* ════════════════════════════════════════════════════════════════════
   ADMIN — skin "professionale" (dark neutro)
   Obiettivo: stesso sfondo scuro ma più pulito e leggibile — niente
   glow viola, neon, gradienti gamey o texture rumore. Grigi neutri,
   bordi sottili, gerarchia più netta. TUTTO scoping su body.admin-area
   così il resto del sito (ui-refined, store, account) resta intoccato.
   Le regole stanno in fondo al file e usano selettori più specifici,
   quindi vincono sulle regole .admin-* originali senza doverle cancellare.
   ════════════════════════════════════════════════════════════════════ */
body.admin-area {
  /* Override mirato dei token del tema → grigi freddi neutri.
     L'accento brand (--p-color*) resta, ma usato con parsimonia. */
  --bg:            #0c0d11;   /* sfondo input/campi, codice */
  --bg-2:          #14161b;   /* superfici: card, filtri, header sidebar */
  --bg-3:          #1b1e24;
  --border-light:  rgba(255,255,255,.07);
  --border:        rgba(255,255,255,.10);
  --text-muted:    #9aa1ab;
  --text-muted-2:  #6a717b;
  background: #0a0b0e;
}
/* Via la texture "noise": è la cosa che fa sembrare il pannello meno pulito */
body.admin-area::before { display: none !important; }

/* Heading in font corpo (Inter) invece di Bebas Neue: più sobrio/leggibile */
body.admin-area .admin-page-head h1,
body.admin-area .admin-card-head h3,
body.admin-area .admin-main h1,
body.admin-area .admin-main h2,
body.admin-area .admin-main h3 {
  font-family: var(--font-body);
  letter-spacing: -.01em;
}

/* ── Sidebar ── superficie neutra, niente nero pieno né bagliori viola */
body.admin-area .admin-sidebar {
  background: #0a0b0e !important;
  border-right: 1px solid var(--border-light);
}
body.admin-area .admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.10); border: 0;
}
body.admin-area .admin-sidebar { scrollbar-color: rgba(255,255,255,.14) transparent; }

/* Header sidebar: box piatto, niente gradiente viola */
body.admin-area .admin-side-head {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
body.admin-area .admin-side-head > i { color: var(--p-color-light); }

/* Voci nav: hover/active neutri, barra attiva con accento ma senza glow */
body.admin-area .admin-nav a { border-radius: 7px; }
body.admin-area .admin-nav a:hover { background: rgba(255,255,255,.045); color: #fff; }
body.admin-area .admin-nav a.active { background: rgba(138,59,196,.15); color: #fff; }
body.admin-area .admin-nav a.active::before { background: var(--p-accent); }
body.admin-area .admin-nav a:hover i,
body.admin-area .admin-nav a.active i { color: var(--p-accent); }

/* Pallini di notifica: niente alone/pulsazione, restano leggibili */
body.admin-area .admin-nav-dot { background: var(--p-accent); box-shadow: none; animation: none; }
body.admin-area .admin-nav-dot--alert { box-shadow: none; }

/* ── Intestazione pagina ── divisore per dare struttura */
body.admin-area .admin-page-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}
body.admin-area .admin-eyebrow { color: var(--p-color-light); }

/* ── Stat tiles ── superfici neutre, icona in chip neutro */
body.admin-area .stat-tile { border-radius: 12px; }
body.admin-area .stat-tile:hover { border-color: rgba(255,255,255,.16); }
body.admin-area .stat-tile-icon {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  color: var(--p-color-light);
  border-radius: 10px;
}

/* ── Card / tabelle ── bordi sottili, hover riga neutro */
body.admin-area .admin-card { border-radius: 12px; }
body.admin-area .admin-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* ── Stat row cliccabile (filtri utenti/store) ── hover neutro */
body.admin-area .admin-stat-row .stat-card:hover { border-color: rgba(255,255,255,.16); }
body.admin-area .admin-stat-row .stat-card.is-active { border-color: var(--p-color-light); background: rgba(138,59,196,.12); }

/* ── Subtabs (settings) ── superficie neutra, attivo senza alone */
body.admin-area .admin-subtabs { background: rgba(255,255,255,.02); }
body.admin-area .admin-subtab:hover { background: rgba(255,255,255,.045); }
body.admin-area .admin-subtab.active { background: rgba(138,59,196,.18); box-shadow: none; }
body.admin-area .admin-subtab i { color: var(--p-color-light); }

/* ── Toggle switch ── niente glow viola quando attivo */
body.admin-area .switch input:checked + span { box-shadow: none; }

/* ── Bottoni ── nel pannello niente "rimbalzo": feeling più sobrio */
body.admin-area .btn-primary:hover,
body.admin-area .btn-secondary:hover { transform: none; }
