/* Auth pages */
.bms-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  min-height: calc(100vh - 140px);
  width: 100%;
}
.bms-auth { position: relative; }
.bms-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 22rem at 50% -10%, rgba(77, 142, 83, 0.18) 0%, transparent 60%),
    radial-gradient(34rem 22rem at 100% 100%, rgba(251, 53, 94, 0.12) 0%, transparent 60%);
}
.bms-auth__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid var(--bms-border);
  background:
    linear-gradient(165deg, rgba(30, 40, 75, 0.85) 0%, rgba(22, 29, 53, 0.95) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.bms-auth__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bms-accent-strong), var(--bms-cta-from), var(--bms-blue));
}
.bms-auth__title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--bms-text);
}
.bms-auth__block { margin-bottom: 0.25rem; }
.bms-auth__block-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bms-text-muted);
  margin: 0 0 0.5rem;
}
.bms-auth__hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--bms-text-muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}
.bms-auth__divider--section { margin: 1.35rem 0; }
.bms-auth__btn-user { opacity: 0.92; }
.bms-auth-kick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #53fc18 0%, #3db812 100%);
  color: #0f172a !important;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
}
.bms-auth-kick:hover { filter: brightness(1.05); }
.bms-auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--bms-text-muted);
  font-size: 0.75rem;
}
.bms-auth__divider::before,
.bms-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bms-border);
}
.bms-auth__form { display: flex; flex-direction: column; gap: 1rem; }
.bms-auth__label {
  display: block;
  font-size: 0.8rem;
  color: var(--bms-text-muted);
  margin-bottom: 0.35rem;
}
.bms-auth__footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--bms-text-muted);
  margin-top: 1.25rem;
}
.bms-auth__footer a { color: var(--bms-accent); }

/* Area loggata (senza Tailwind): layout minimo */
.bms-app-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bms-bg);
  color: var(--bms-text);
  --bms-layout-max: 1680px;
  --bms-layout-gutter: 1.75rem;
}
.bms-layout-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--bms-layout-max);
  margin-inline: auto;
  padding-inline: var(--bms-layout-gutter);
}
.bms-app-shell {
  min-height: calc(100vh - 3.5rem);
}
.bms-app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bms-app-main {
  flex: 1 0 auto;
  min-width: 0;
  width: 100%;
  padding-block: 1.5rem 3rem;
}

/* ===== Footer area loggata ===== */
.bms-footer {
  position: relative;
  border-top: 1px solid var(--bms-chrome-border);
  background: linear-gradient(180deg, var(--bms-chrome) 0%, var(--bms-chrome-2) 100%);
  padding: 2rem 0 1.25rem;
  margin-top: auto;
}
.bms-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bms-accent-strong), var(--bms-cta-from));
  opacity: 0.7;
}
.bms-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .bms-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bms-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.bms-footer__tagline { margin: 0.5rem 0 0; color: var(--bms-text-muted); font-size: 0.86rem; max-width: 30ch; }
.bms-footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.bms-footer__title {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bms-text-muted);
}
.bms-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bms-text);
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.85;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.bms-footer__link:hover { color: var(--bms-accent-strong); opacity: 1; }
.bms-footer__icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  flex-shrink: 0;
  color: var(--ic, var(--bms-text-muted));
  background: color-mix(in srgb, var(--ic, #8893b5) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic, #8893b5) 32%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bms-footer__icon { width: 0.9rem; height: 0.9rem; }
.bms-footer__link:hover .bms-footer__icon-box {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ic, #000) 35%, transparent);
}
.bms-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--bms-border-soft);
  font-size: 0.76rem;
  color: var(--bms-text-muted);
}
.bms-footer__copy {
  justify-self: start;
  min-width: 0;
}
.bms-footer__bottom .bms-wa-widget {
  justify-self: center;
}
.bms-footer__version {
  justify-self: end;
}
.bms-guest-footer__meta .bms-wa-widget {
  margin-inline: 0.15rem;
}
.bms-footer__warn { color: var(--bms-gold); opacity: 0.9; }

/* ===== Disclaimer legale ===== */
.bms-legal-disclaimer {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08) 0%, rgba(251, 53, 94, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bms-legal-disclaimer__badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1400;
  background: linear-gradient(90deg, #facc15, #fbbf24);
}
.bms-legal-disclaimer__not-betting {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #991b1b 100%);
  border: 2px solid rgba(254, 202, 202, 0.65);
  box-shadow:
    0 6px 22px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.bms-legal-disclaimer__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.25;
}
.bms-legal-disclaimer__lead,
.bms-legal-disclaimer__text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--bms-text);
}
.bms-legal-disclaimer__text { color: var(--bms-text-muted); }
.bms-legal-disclaimer__meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--bms-text-muted);
  line-height: 1.5;
}
.bms-legal-disclaimer__meta a { color: var(--bms-accent-strong); font-weight: 600; }
.bms-legal-disclaimer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  margin-right: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #dc2626;
  vertical-align: middle;
}

.bms-guest-footer {
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--bms-chrome-border);
  background: linear-gradient(180deg, var(--bms-chrome) 0%, var(--bms-chrome-2) 100%);
}
.bms-guest-footer__inner { max-width: 960px; margin: 0 auto; width: 100%; }
.bms-guest-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bms-border-soft);
  font-size: 0.8rem;
  color: var(--bms-text-muted);
}
.bms-guest-footer__meta a { color: var(--bms-accent-strong); }

.bms-legal-page__body {
  padding: 1.5rem 1.75rem 2rem;
  max-width: 52rem;
}
.bms-legal-page__body section { margin-bottom: 1.35rem; }
.bms-legal-page__body h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--bms-text);
}
.bms-legal-page__body p,
.bms-legal-page__body li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bms-text-muted);
}
.bms-legal-page__body ul { margin: 0.35rem 0 0.75rem; padding-left: 1.25rem; }
.bms-legal-page__body a { color: var(--bms-accent-strong); }
.bms-legal-callout {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bms-text);
}
.bms-legal-callout--modal { margin-bottom: 0.85rem; }
.bms-legal-gate__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bms-text-muted);
}
.bms-legal-gate__text a { color: var(--bms-accent-strong); font-weight: 600; }
.bms-legal-gate__check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--bms-text);
  cursor: pointer;
}
.bms-legal-gate__check input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--bms-accent-strong); }
.bms-legal-gate__check a { color: var(--bms-accent-strong); }
.bms-auth__terms { margin-top: 0.25rem; text-align: left; }
.bms-auth__hint--legal { margin-top: 0.35rem; font-size: 0.78rem; }
.bms-modal--blocking .bms-modal__overlay--blocking { cursor: default; }
.bms-modal__panel--legal { width: min(94vw, 34rem); }

/* Topbar / sidebar (area loggata, senza Tailwind) */
