/* =====================================================================
   Template professionale â€” header pagina, breadcrumb, pannelli, tabelle
   Layer condiviso applicato a tutte le pagine dell'area loggata.
   ===================================================================== */

/* Header pagina in stile PerediOn (banner con titolo + breadcrumb + azioni) */
.bms-page-head {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(77, 142, 83, 0.18) 0%, transparent 55%),
    radial-gradient(120% 160% at 100% 0%, rgba(251, 53, 94, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
}
.bms-page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%232c3661' stroke-width='0.7' d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3C/svg%3E");
  background-size: 42px 75px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.bms-page-head > * { position: relative; z-index: 1; }
.bms-page-head__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bms-accent-strong);
  margin: 0 0 0.35rem;
}
.bms-page-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bms-page-head__sub {
  margin: 0.4rem 0 0;
  color: var(--bms-text-muted);
  font-size: 0.92rem;
  max-width: 46rem;
}
.bms-page-head__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Dashboard: header unificato con KPI e chart card */
.bms-page-head--dashboard {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.1rem;
  margin-bottom: 0.75rem;
}
.bms-page-head--dashboard .bms-page-head__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.bms-page-head--dashboard .bms-page-head__titles {
  min-width: 0;
}
.bms-page-head--dashboard .bms-page-head__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.bms-page-head--dashboard .bms-breadcrumb {
  margin-top: 0;
  flex-shrink: 0;
}
.bms-page-head--dashboard .bms-page-head__analytics:empty {
  display: none;
}
.bms-page-head--dashboard .bms-dash-row {
  margin-bottom: 0;
}
.bms-page-head--dashboard .bms-kpi__label svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  display: block;
}

.bms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--bms-text-muted);
}
.bms-breadcrumb a { color: var(--bms-text-muted); text-decoration: none; }
.bms-breadcrumb a:hover { color: var(--bms-accent-strong); }
.bms-breadcrumb__sep { opacity: 0.5; }
.bms-breadcrumb__current { color: var(--bms-text); font-weight: 600; }

/* Pannello generico professionale */
.bms-panel {
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background: linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.bms-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bms-border-soft);
}
.bms-panel__title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.bms-panel__body { padding: 1.25rem; }

/* Card hive (dashboard) */
.bms-hive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 1.1rem;
}
.bms-hive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background: linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bms-hive-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bms-accent-strong), var(--bms-cta-from));
  opacity: 0.9;
  z-index: 1;
}
.bms-hive-card--profit::before {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}
.bms-hive-card--loss::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.bms-hive-card--even::before {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}
.bms-hive-card-wrap:hover .bms-hive-card {
  border-color: rgba(98, 181, 105, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.bms-hive-card__header {
  position: relative;
  padding: calc(0.9rem + 4px) 1rem 0.8rem;
  border-bottom: 1px solid var(--bms-border-soft);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}
.bms-hive-card--profit .bms-hive-card__header {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.14) 0%,
    rgba(34, 197, 94, 0.04) 100%
  );
  border-bottom-color: rgba(34, 197, 94, 0.24);
}
.bms-hive-card--loss .bms-hive-card__header {
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.14) 0%,
    rgba(239, 68, 68, 0.04) 100%
  );
  border-bottom-color: rgba(239, 68, 68, 0.24);
}
.bms-hive-card--even .bms-hive-card__header {
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.12) 0%,
    rgba(148, 163, 184, 0.04) 100%
  );
  border-bottom-color: rgba(148, 163, 184, 0.22);
}
.bms-hive-card__footer {
  padding: 0.55rem 0.65rem 0.65rem;
  background: color-mix(in srgb, var(--bms-bg) 55%, var(--bms-card-soft));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bms-hive-card--profit .bms-hive-card__footer {
  border-top-color: rgba(34, 197, 94, 0.12);
}
.bms-hive-card--loss .bms-hive-card__footer {
  border-top-color: rgba(239, 68, 68, 0.12);
}
.bms-hive-card--even .bms-hive-card__footer {
  border-top-color: rgba(148, 163, 184, 0.1);
}
[data-theme="light"] .bms-hive-card__header {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
[data-theme="light"] .bms-hive-card--profit .bms-hive-card__header {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border-bottom-color: rgba(34, 197, 94, 0.28);
}
[data-theme="light"] .bms-hive-card--loss .bms-hive-card__header {
  background: linear-gradient(180deg, #fef2f2 0%, #fff1f2 100%);
  border-bottom-color: rgba(239, 68, 68, 0.28);
}
[data-theme="light"] .bms-hive-card__footer {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}
.bms-hive-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.bms-hive-card__title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}
.bms-hive-card__name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bms-hive-card__bank {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bms-accent-strong);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.bms-hive-card__bank-start {
  font-size: 0.72rem;
  color: var(--bms-text-muted);
  font-weight: 500;
  line-height: 1.2;
}
.bms-hive-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.bms-hive-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 3rem;
  padding: 0.42rem 0.3rem;
  border-radius: 0.45rem;
  border: 1px solid var(--bms-border-soft);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.bms-hive-card__stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bms-text-muted);
  line-height: 1.2;
}
.bms-hive-card__stat-value {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--bms-text);
}
.bms-hive-card__stat--pl {
  background: rgba(148, 160, 200, 0.06);
}
.bms-hive-card__stat--roi {
  background: rgba(148, 160, 200, 0.06);
}
.bms-hive-card__stat--dd {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
}
.bms-hive-card__stat--dd .bms-hive-card__stat-value {
  color: #fbbf24;
}
.bms-hive-card--profit .bms-hive-card__stat--pl {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
}
.bms-hive-card--loss .bms-hive-card__stat--pl {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
}
.bms-hive-card__progress {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--bms-bg-elevated);
  border: 1px solid var(--bms-border-soft);
  overflow: hidden;
}
.bms-hive-card__progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bms-accent-strong), var(--bms-cta-from));
}
.bms-hive-card__progress-label { font-size: 0.7rem; color: var(--bms-text-muted); margin-top: -0.35rem; }

/* Wrapper card + azioni */
.bms-hive-card-wrap { display: flex; flex-direction: column; }
.bms-hive-card-wrap .bms-hive-card { flex: 1 1 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.bms-hive-card-wrap.is-archived .bms-hive-card { opacity: 0.78; }
.bms-hive-card__actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--bms-border-soft);
  border-top: 0;
  border-bottom-left-radius: var(--bms-radius);
  border-bottom-right-radius: var(--bms-radius);
  background: var(--bms-bg-elevated);
}
.bms-hive-act {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: calc(var(--bms-radius) - 6px);
  border: 1px solid var(--bms-border-soft);
  background: var(--bms-card);
  color: var(--bms-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.bms-hive-act svg { width: 16px; height: 16px; flex: none; }
.bms-hive-act--open {
  background: linear-gradient(
    180deg,
    #eceef2 0%,
    #d4d8e0 46%,
    #b8bec8 100%
  );
  border-color: #9aa3b0;
  color: #161d35;
  text-decoration: none;
  flex: 1.15 1 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.bms-hive-act--open:hover {
  background: linear-gradient(
    180deg,
    #f4f5f7 0%,
    #e2e6ec 50%,
    #c8ced8 100%
  );
  border-color: var(--bms-accent-strong);
  color: var(--bms-accent-strong);
  text-decoration: none;
}
.bms-hive-act[data-act="archive"] {
  background: #facc15;
  border-color: #eab308;
  color: #422006;
}
.bms-hive-act[data-act="archive"]:hover {
  background: #fde047;
  border-color: #ca8a04;
  color: #292524;
}
.bms-hive-act[data-act="unarchive"] {
  background: rgba(98, 181, 105, 0.16);
  border-color: rgba(98, 181, 105, 0.42);
  color: var(--bms-accent-strong);
}
.bms-hive-act[data-act="unarchive"]:hover {
  background: rgba(98, 181, 105, 0.28);
  border-color: rgba(98, 181, 105, 0.62);
  color: #8ee09a;
}
.bms-hive-act--danger {
  background: #fb355e;
  border-color: #e11d48;
  color: #ffffff;
}
.bms-hive-act--danger:hover {
  background: #ffffff;
  border-color: #fb355e;
  color: #fb355e;
}

/* Tabs filtro lista */
.bms-list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.bms-list-head__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.bms-filter-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; border: 1px solid var(--bms-border-soft); background: var(--bms-bg-elevated); }
.bms-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bms-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.bms-filter-tab:hover { color: var(--bms-text); }
.bms-filter-tab.is-active { background: var(--bms-accent-strong); color: #0b1220; }
.bms-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0 0.35rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(148, 160, 200, 0.18);
  font-size: 0.68rem;
}
.bms-filter-tab.is-active .bms-filter-count { background: rgba(11, 18, 32, 0.22); }

.bms-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--bms-border-soft);
  color: var(--bms-text-muted);
  background: var(--bms-bg-elevated);
}
.bms-tag--sim { color: var(--bms-blue); border-color: rgba(41, 88, 154, 0.5); background: rgba(41, 88, 154, 0.14); }
.bms-tag--real { color: var(--bms-accent-strong); border-color: rgba(98, 181, 105, 0.5); background: rgba(98, 181, 105, 0.14); }
.bms-tag--archived { color: var(--bms-gold); border-color: rgba(255, 193, 101, 0.5); background: rgba(255, 193, 101, 0.12); }
.bms-tag--wc-sync {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.45rem 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  color: #fef08a;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.07) 100%);
  border-color: rgba(250, 204, 21, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 14px rgba(250, 204, 21, 0.1);
}
.bms-tag--wc-sync .bms-tag__label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(253, 224, 71, 0.78);
}
.bms-tag--wc-sync .bms-tag__value {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fde047;
  line-height: 1.2;
}

/* Tabella professionale, responsive */
.bms-table-wrap {
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background: var(--bms-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bms-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
.bms-table thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bms-text-muted);
  background: var(--bms-bg-elevated);
  border-bottom: 1px solid var(--bms-border-soft);
  white-space: nowrap;
}
.bms-table tbody td { padding: 0.75rem 1rem; border-top: 1px solid var(--bms-border-soft); }
.bms-table tbody tr { transition: background-color 0.12s ease; }
.bms-table tbody tr:hover { background: var(--bms-card-soft); }

/* Pricing plans */
.bms-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 920px;
}
.bms-price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background: linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
}
.bms-price--pro {
  border-color: rgba(98, 181, 105, 0.5);
  box-shadow: 0 18px 40px -20px rgba(98, 181, 105, 0.5);
}
.bms-price--launch {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 40px -20px rgba(56, 189, 248, 0.35);
}
.bms-price__badge--launch {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.bms-price__lead {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--bms-text-muted);
}
.bms-price__lead strong { color: var(--bms-text); font-weight: 700; }
.bms-price__list--contact li::before { content: "\2022"; color: #38bdf8; }
.bms-price__list--contact a {
  color: var(--bms-accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.bms-price__list--contact a:hover { text-decoration: underline; }

/* WhatsApp — icona nel footer (copyright · WA · versione) */
.bms-wa-widget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 8px 20px -8px rgba(37, 211, 102, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bms-wa-widget:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px -8px rgba(37, 211, 102, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.24);
  color: #fff;
}
.bms-wa-widget:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.bms-wa-widget__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: transparent;
}
.bms-wa-widget__label { display: none; }

.bms-price__badge {
  position: absolute;
  top: -0.7rem;
  right: 1.2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--bms-cta-from), var(--bms-cta-to));
}
.bms-price__name { margin: 0; font-size: 1.25rem; font-weight: 800; }
.bms-price__price { font-size: 2rem; font-weight: 800; line-height: 1; }
.bms-price__price small { font-size: 0.85rem; font-weight: 600; color: var(--bms-text-muted); }
.bms-price__list { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.bms-price__list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--bms-text); }
.bms-price__list li::before { content: "\2713"; color: var(--bms-accent-strong); font-weight: 800; }
.bms-price__cta { margin-top: auto; }

/* Match card (Serie A) */
.bms-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--bms-radius);
  border: 1px solid var(--bms-border-soft);
  background: linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
}
.bms-match__team { display: flex; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.bms-match__team--away {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row;
}
.bms-match__team--away span {
  text-align: right;
}
.bms-match__team img { width: 2rem; height: 2rem; flex-shrink: 0; object-fit: contain; }
.bms-match__flag {
  width: 2.25rem;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 1.5rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 2px;
  margin-top: 0.1rem;
}
.bms-match__team span {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.bms-match__center { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding-top: 0.15rem; }
.bms-match__score { font-size: 1.2rem; font-weight: 800; }
.bms-match__vs { font-size: 0.75rem; font-weight: 700; color: var(--bms-text-muted); padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--bms-border-soft); }
.bms-match__odds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.25rem; }
.bms-odd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: rgba(77, 142, 83, 0.10);
  border: 1px solid rgba(98, 181, 105, 0.25);
}
.bms-odd__k { font-size: 0.68rem; color: var(--bms-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.bms-odd__v { font-weight: 800; color: var(--bms-accent-strong); }

/* Account — bookmaker preferiti (stella) */
.bms-bm-fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.bms-bm-fav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid var(--bms-border-soft);
  background: rgba(255, 255, 255, 0.03);
}
.bms-bm-fav.is-fav {
  border-color: rgba(255, 196, 77, 0.45);
  background: rgba(255, 196, 77, 0.08);
}
.bms-bm-fav__logo {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}
.bms-bm-fav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bms-bm-fav__logo-fallback {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bms-text-muted);
}
.bms-bm-fav__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.bms-bm-fav__name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}
.bms-bm-fav__meta {
  font-size: 0.72rem;
  color: var(--bms-text-muted);
}
.bms-bm-fav__star {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.bms-bm-fav__star:hover {
  background: rgba(255, 255, 255, 0.06);
}
.bms-bm-fav__star:active {
  transform: scale(0.94);
}
.bms-bm-fav__star-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  background: currentColor;
  color: var(--bms-text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bms-bm-fav.is-fav .bms-bm-fav__star-icon {
  color: #ffc44d;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc44d'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc44d'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Responsive: padding ridotto e header impilato su mobile */
@media (max-width: 640px) {
  .bms-app-main { padding-block: 1rem 2.5rem; }
  .bms-page-head { padding: 1.1rem 1.1rem; }
  .bms-page-head__actions { width: 100%; }
  .bms-page-head__actions .btn-primary,
  .bms-page-head__actions .btn-ghost { flex: 1 1 auto; text-align: center; }
  .bms-list-head__tools {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .bms-list-head__tools .btn-primary {
    flex: 0 0 auto;
  }
}

/* ---- Changelog / Novità ---- */
.bms-changelog__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 760px;
}
.bms-changelog__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.9rem;
  padding-bottom: 1.6rem;
}
.bms-changelog__item:last-child { padding-bottom: 0; }
.bms-changelog__marker {
  display: flex;
  justify-content: center;
  position: relative;
}
.bms-changelog__marker::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: -1.6rem;
  width: 2px;
  background: var(--bms-border-soft);
}
.bms-changelog__item:last-child .bms-changelog__marker::before { display: none; }
.bms-changelog__dot {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bms-border);
  border: 2px solid var(--bms-bg);
}
.bms-changelog__dot.is-current {
  background: var(--bms-positive);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}
.bms-changelog__card {
  background: var(--bms-surface);
  border: 1px solid var(--bms-border-soft);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
}
.bms-changelog__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.bms-changelog__ver {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.bms-changelog__tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  color: var(--bms-positive);
  background: rgba(52, 211, 153, 0.14);
}
.bms-changelog__date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--bms-text-muted);
  font-variant-numeric: tabular-nums;
}
.bms-changelog__title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.bms-changelog__changes {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--bms-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.bms-changelog__changes li { margin: 0.15rem 0; }

