/* ===== Stat tiles ===== */
.bms-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .bms-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bms-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--bms-border-soft);
  background: linear-gradient(165deg, var(--bms-card) 0%, var(--bms-bg-elevated) 100%);
}
.bms-stat__value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.bms-stat__label { font-size: 0.75rem; color: var(--bms-text-muted); }

/* ===== Toolbar filtri ===== */
.bms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--bms-border-soft);
  background: var(--bms-card-soft);
}
.bms-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  align-items: center;
}
.bms-toolbar__search svg {
  position: absolute;
  left: 0.7rem;
  width: 1rem;
  height: 1rem;
  color: var(--bms-text-muted);
  pointer-events: none;
}
.bms-toolbar__search .form-input { padding-left: 2.1rem; }
.bms-toolbar__select { width: auto; min-width: 9.5rem; flex: 0 0 auto; }
.bms-toolbar__select--sm { min-width: 6.5rem; }
.bms-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--bms-text-muted);
  white-space: nowrap;
}
.bms-toolbar__check input { accent-color: var(--bms-accent); width: 1rem; height: 1rem; }

/* ===== Card pronostico ===== */
.bms-pred { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem; }
.bms-pred__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.bms-pred__title { margin: 0.1rem 0 0; font-size: 1.02rem; font-weight: 600; }
.bms-pred__event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--bms-text-muted);
}
.bms-pred__teams { display: inline-flex; align-items: center; gap: 0.2rem; }
.bms-pred__team { width: 1.25rem; height: 1.25rem; }
.bms-pred__sel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(77, 142, 83, 0.10);
  border: 1px solid rgba(98, 181, 105, 0.25);
  font-size: 0.9rem;
}
.bms-pred__odds { font-weight: 800; color: var(--bms-accent-strong); white-space: nowrap; }
.bms-pred__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--bms-text-muted);
  margin-top: auto;
}
.bms-pred__roi { font-size: 0.78rem; font-weight: 600; }

/* chip e badge */
.bms-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bms-bg-elevated);
  border: 1px solid var(--bms-border-soft);
  color: var(--bms-text-muted);
}
.bms-chip--star { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); }
.bms-badge {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.bms-badge.is-approved { color: var(--bms-accent-strong); background: rgba(98, 181, 105, 0.16); border-color: rgba(98, 181, 105, 0.4); }
.bms-badge.is-win { color: var(--bms-positive); background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); }
.bms-badge.is-loss { color: var(--bms-negative); background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.35); }
.bms-badge.is-pending { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }

/* empty state */
.bms-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--bms-text-muted);
  border: 1px dashed var(--bms-border);
  border-radius: 0.85rem;
}

/* ===== Paginazione ===== */
.bms-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}
.bms-pager__btn {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--bms-border);
  background: var(--bms-surface);
  color: var(--bms-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.bms-pager__btn:hover:not(:disabled) { border-color: var(--bms-accent); }
.bms-pager__btn:disabled { opacity: 0.4; cursor: default; }
.bms-pager__btn.is-active {
  background: linear-gradient(135deg, var(--bms-cta-from), var(--bms-cta-to));
  border-color: transparent;
  color: #fff;
}
.bms-pager__dots { padding: 0 0.25rem; color: var(--bms-text-muted); }

/* =====================================================================
   Utility layer â€” riproduce le classi Tailwind usate nei template
   dell'area loggata, dato che in produzione Tailwind NON Ã¨ compilato.
   Senza questo blocco dashboard/serie-a/tipster/account appaiono grezze.
   ===================================================================== */

/* display & flexbox */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* grid columns (mobile-first) */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* spacing verticale tra figli */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* margini / padding */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

/* dimensioni */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }

/* tipografia */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* bordi / raggi / transizioni */
.border { border-width: 1px; border-style: solid; border-color: var(--bms-border); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.transition { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; }

/* accenti colore (rimappati sulla palette PerediOn) */
.text-sky-400 { color: var(--bms-accent-strong); }
.text-emerald-400 { color: var(--bms-positive); }
.text-amber-400 { color: var(--bms-gold); }
.bg-red-600 { background: var(--bms-negative) !important; }
.border-emerald-500\/40 { border-color: rgba(98, 181, 105, 0.4); }
.hover\:border-sky-500\/50:hover { border-color: rgba(98, 181, 105, 0.5); }

/* breakpoint responsivi (Tailwind: sm 640 / md 768 / lg 1024) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* =====================================================================
   Rifiniture visive area loggata
   ===================================================================== */
/* Padding verticale main: vedi .bms-app-main in 03-auth-layout + .bms-layout-shell */

/* card con profonditÃ  e gradiente sottile */
.bms-card-bg {
  background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* card cliccabili (es. hive in dashboard): leggero sollevamento */
a.bms-card-bg { text-decoration: none; color: inherit; }
a.bms-card-bg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

/* titoli sezione piÃ¹ ariosi */
.bms-app-main h1.text-2xl { letter-spacing: -0.01em; }

/* riepilogo bankroll come stat card in evidenza */
#bankroll-summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
#bankroll-summary strong { font-size: 1.35rem; color: var(--bms-accent-strong); }

/* Nuova hive — form compatto su una riga */
.bms-create-hive-page {
  max-width: 52rem;
}
.bms-create-hive-page__head {
  margin-bottom: 1rem;
}
.bms-create-hive-page__hint {
  margin: 0.35rem 0 0;
  max-width: 42rem;
}
.bms-create-hive-form {
  padding: 0.85rem 1rem;
}
.bms-create-hive-form__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.65rem;
}
.bms-create-hive-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.bms-create-hive-form__field--name {
  flex: 1 1 12rem;
}
.bms-create-hive-form__field--bankroll {
  flex: 0 0 7.5rem;
}
.bms-create-hive-form__field--roi {
  flex: 0 0 8.5rem;
}
.bms-create-hive-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bms-text-muted);
  line-height: 1.2;
}
.bms-create-hive-form__field .form-input {
  min-height: 2.35rem;
}
.bms-create-hive-form__submit {
  flex: 0 0 auto;
  align-self: flex-end;
  min-height: 2.35rem;
  white-space: nowrap;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.bms-create-hive-form__note {
  margin: 0.55rem 0 0;
}
@media (max-width: 640px) {
  .bms-create-hive-form__row {
    flex-wrap: wrap;
  }
  .bms-create-hive-form__field--name,
  .bms-create-hive-form__field--bankroll,
  .bms-create-hive-form__field--roi {
    flex: 1 1 100%;
  }
  .bms-create-hive-form__submit {
    width: 100%;
  }
}

