/* ======================================================================
   FutStory — Design System
   ====================================================================== */
:root {
  /* Brand */
  --fs-dark: #0b1220;
  --fs-navy: #122038;
  --fs-blue: #1e90ff;
  --fs-cyan: #25d0ff;
  --fs-green: #22c55e;

  /* Surfaces & text */
  --fs-bg: #f2f5fa;
  --fs-surface: #ffffff;
  --fs-border: #e6eaf1;
  --fs-text: #1b2534;
  --fs-muted: #6b7688;

  /* Effects */
  --fs-radius: 16px;
  --fs-radius-sm: 10px;
  --fs-nav-h: 64px;
  --fs-bottomnav-h: 60px;
  --fs-ring: 0 0 0 .2rem rgba(30, 144, 255, .22);
  color-scheme: light;
  --fs-shadow-sm: 0 1px 3px rgba(16, 30, 54, .06), 0 1px 2px rgba(16, 30, 54, .04);
  --fs-shadow: 0 4px 16px rgba(16, 30, 54, .08);
  --fs-shadow-lg: 0 12px 32px rgba(16, 30, 54, .14);

  /* Bootstrap overrides */
  --bs-primary: var(--fs-blue);
  --bs-body-color: var(--fs-text);
  --bs-border-color: var(--fs-border);
  --bs-link-color: #1668c9;
  --bs-link-hover-color: #0f4d97;
}

/* ===== Tema escuro ===== */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --fs-bg: #0b1119;
  --fs-surface: #151e2c;
  --fs-border: #253246;
  --fs-text: #e6ebf3;
  --fs-muted: #93a0b4;
  --fs-shadow-sm: 0 1px 3px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .3);
  --fs-shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --fs-shadow-lg: 0 12px 32px rgba(0, 0, 0, .6);

  /* Harmoniza os componentes Bootstrap com a paleta FutStory. */
  --bs-body-bg: #16202f;
  --bs-body-color: #e6ebf3;
  --bs-border-color: #243043;
  --bs-secondary-color: #93a0b4;
  --bs-tertiary-bg: #1c2839;
  --bs-link-color: #4da3ff;
  --bs-link-hover-color: #7db9ff;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin-bottom: 60px;
  background: var(--fs-bg);
  color: var(--fs-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .display-4, .display-6 {
  font-family: "Poppins", "Inter", sans-serif;
  letter-spacing: -.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }
/* Sem o atraso de 300 ms do toque duplo e sem zoom acidental nos controles. */
a, button, .btn, input, select, textarea, label, [data-href] { touch-action: manipulation; }
/* Campos do iOS: 16px evita o zoom automático ao focar. */
@media (max-width: 767.98px) { .form-control, .form-select { font-size: 16px; } }
.nav-link, .btn, .card a, .list-group-item { text-decoration: none !important; }

/* ===== Focus ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(30, 144, 255, .25);
}

/* Foco de teclado bem visível (acessibilidade) sem atrapalhar o mouse. */
a:focus-visible, button:focus-visible, [data-href]:focus-visible,
.list-group-item:focus-visible, .dropdown-item:focus-visible, .card.fs-card:focus-visible {
  outline: 3px solid var(--fs-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Navbar ===== */
.fs-navbar {
  background: linear-gradient(100deg, rgba(11, 18, 32, .96), rgba(18, 32, 56, .96));
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(11, 18, 32, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: .45rem;
  padding-bottom: .45rem;
  min-height: var(--fs-nav-h);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .fs-navbar {
    background: linear-gradient(100deg, rgba(11, 18, 32, .86), rgba(18, 32, 56, .86));
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
  }
}
.fs-navbar .fs-btn-criar { border-radius: 999px; padding: .32rem .75rem; }

.fs-navbar .navbar-brand {
  color: #f3f6fb !important;
  font-weight: 800;
  font-size: 1.35rem;
  padding: 0;
}

/* Logo oficial: fundo escuro da arte se mistura com a navbar. */
.fs-logo {
  height: 40px;
  width: auto;
  display: block;
}

.fs-logo-hero {
  max-width: min(420px, 80%);
  height: auto;
  border-radius: 14px;
}

.fs-navbar .nav-link {
  color: #cdd6e5 !important;
  font-weight: 500;
  border-radius: 8px;
  padding: .4rem .7rem !important;
  transition: color .15s ease, background .15s ease;
}

.fs-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
}

.fs-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(37, 208, 255, .16);
}

.fs-navbar .nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  margin-top: 3px;
  background: var(--fs-cyan);
}

/* ===== Hero ===== */
.fs-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 400px at 20% -10%, rgba(37, 208, 255, .25), transparent 60%),
              linear-gradient(120deg, var(--fs-dark), #14243f);
  color: #fff;
  border-radius: var(--fs-radius);
  padding: 3.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--fs-shadow);
}

.fs-hero h1 {
  font-weight: 800;
  letter-spacing: -1px;
}

.fs-hero .lead { color: #dbe4f0; }

/* ===== Cards ===== */
.card {
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: var(--fs-surface);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--fs-border);
  padding: .85rem 1.1rem;
  font-weight: 600;
}

.fs-card {
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

@media (hover: hover) {
  .fs-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fs-shadow-lg);
    border-color: #d3ddec;
  }
}
/* No toque: feedback rápido de "apertado", sem o card ficar flutuando. */
.fs-card:active, [data-href]:active { transform: scale(.992); transition-duration: .06s; }

/* Clickable launcher tiles */
a.fs-card { color: inherit; }
a.fs-card:hover { text-decoration: none; }

/* Padrão global: card inteiro clicável (ver site.js) */
[data-href] { cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: .55rem 1.1rem;
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  transition: transform .1s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn-sm { min-height: 34px; }
.btn-lg { min-height: 50px; }
/* Botões de link e os "ícone" da barra não ganham altura mínima. */
.btn-link, .btn-close, .navbar .btn, .dropdown-item.btn { min-height: 0; display: inline; }

.btn:active { transform: translateY(1px); }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; }
.btn-lg { border-radius: 12px; }

.btn-info {
  --bs-btn-bg: var(--fs-blue);
  --bs-btn-border-color: var(--fs-blue);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1878d6;
  --bs-btn-hover-border-color: #1878d6;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1668c9;
  --bs-btn-active-color: #fff;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  box-shadow: 0 4px 12px rgba(30, 144, 255, .28);
}
.btn-info:hover { background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); }

/* Outline na mesma cor da marca (o ciano padrão do Bootstrap some no fundo branco). */
.btn-outline-info {
  --bs-btn-color: #1668c9;
  --bs-btn-border-color: #1668c9;
  --bs-btn-hover-bg: var(--fs-blue);
  --bs-btn-hover-border-color: var(--fs-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1668c9;
  --bs-btn-active-border-color: #1668c9;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #1668c9;
  --bs-btn-disabled-border-color: #1668c9;
}
[data-bs-theme="dark"] .btn-outline-info {
  --bs-btn-color: #5aaeff;
  --bs-btn-border-color: #5aaeff;
  --bs-btn-disabled-color: #5aaeff;
  --bs-btn-disabled-border-color: #5aaeff;
}

.btn-primary {
  --bs-btn-bg: var(--fs-blue);
  --bs-btn-border-color: var(--fs-blue);
  --bs-btn-hover-bg: #1878d6;
  --bs-btn-hover-border-color: #1878d6;
}

/* ===== Badges ===== */
.badge { font-weight: 600; border-radius: 8px; padding: .38em .6em; }
.text-bg-info { background-color: var(--fs-blue) !important; color: #fff !important; }

/* ===== Lists ===== */
.list-group-item-action { transition: background .12s ease; }
.list-group-item-action:hover { background: #f6f9fe; }

/* ===== Forms ===== */
.form-control, .form-select {
  border-radius: 12px;
  border-color: var(--fs-border);
  padding: .6rem .85rem;
  background-color: var(--fs-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus { border-color: var(--fs-blue); box-shadow: var(--fs-ring); }
.form-control-sm { border-radius: 10px; padding: .35rem .7rem; }
.input-group > .form-control, .input-group > .form-select, .input-group > .btn { border-radius: 12px; }

.form-label { font-weight: 600; font-size: .9rem; }

/* ===== Alerts / toasts ===== */
main .alert {
  border: none;
  border-radius: 14px;
  box-shadow: var(--fs-shadow-sm);
}

.alert-success {
  background: #eafaf0;
  color: #0f7a3d;
  border-left: 4px solid var(--fs-green);
}

/* ===== Crests ===== */
.fs-team-crest {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--fs-border);
  background: #f8f9fa;
}

.fs-crest-lg {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--fs-border);
  background: #f8f9fa;
}

.fs-color-dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .2);
  vertical-align: middle;
}

.fs-scoreboard {
  font-size: 2.2rem;
  font-weight: 800;
}

/* ===== Footer ===== */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background: var(--fs-surface);
  border-top: 1px solid var(--fs-border) !important;
  color: var(--fs-muted);
}

/* ===== Bottom nav estilo app (mobile) ===== */
.fs-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  display: flex;
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--fs-border);
  box-shadow: 0 -4px 16px rgba(16, 30, 54, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .fs-bottomnav { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
}
[data-bs-theme="dark"] .fs-bottomnav { background: rgba(21, 30, 44, .9); }

.fs-bottomnav a {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: .4rem 0 .35rem;
  min-height: var(--fs-bottomnav-h);
  justify-content: center;
  font-size: .66rem; font-weight: 500; line-height: 1;
  color: var(--fs-muted); text-decoration: none !important;
  -webkit-user-select: none; user-select: none;
}

/* Ícone dentro de uma pílula: a aba ativa ganha o fundo azul claro (padrão Material 3 / iOS 17). */
.fs-bottomnav a .bn-ico {
  font-size: 1.25rem; line-height: 1;
  padding: .2rem .8rem; border-radius: 999px;
  transition: background-color .18s ease, transform .18s ease;
}
.fs-bottomnav a .badge { position: absolute; top: -4px; left: 60%; font-size: .58rem; }
.fs-bottomnav a.active { color: var(--fs-blue); font-weight: 700; }
.fs-bottomnav a.active .bn-ico { background: rgba(30, 144, 255, .14); }
.fs-bottomnav a:active .bn-ico { transform: scale(.9); }

/* Botão Criar: círculo flutuante no centro, igual aos apps nativos. */
.fs-bottomnav a.bn-criar { color: var(--fs-blue); font-weight: 700; }
.fs-bottomnav a.bn-criar .bn-ico {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--fs-cyan), var(--fs-blue));
  color: #fff; font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(30, 144, 255, .4), 0 0 0 4px var(--fs-bg);
}

@media (max-width: 991.98px) {
  /* Espaço para a bottom nav; o footer institucional some no mobile. */
  body { margin-bottom: calc(var(--fs-bottomnav-h) + 20px + env(safe-area-inset-bottom)); }
  .footer { display: none; }
}

/* ===== Page entrance =====
   Sem fill-mode "both": o transform NÃO pode persistir após a animação,
   senão o elemento vira containing block e quebra position:fixed (ex.: gaveta do banco). */
main[role="main"] > * {
  animation: fs-fade-in .24s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@keyframes fs-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Ajustes de componentes no tema escuro ===== */
[data-bs-theme="dark"] .list-group-item-action:hover { background: #1c2839; }
[data-bs-theme="dark"] .alert-success { background: #10331f; color: #7ee2a8; }
[data-bs-theme="dark"] .fs-team-crest,
[data-bs-theme="dark"] .fs-crest-lg { background: #1c2839; border-color: var(--fs-border); }
[data-bs-theme="dark"] .fs-card:hover { border-color: #33425c; }
[data-bs-theme="dark"] .badge.text-bg-light {
  background: #223047 !important; color: #cdd6e5 !important; border-color: var(--fs-border) !important;
}
[data-bs-theme="dark"] .table-light { --bs-table-bg: #1c2839; --bs-table-color: #cdd6e5; --bs-table-border-color: #243043; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #aab6c8; --bs-btn-border-color: #3a4a63; --bs-btn-hover-bg: #223047; --bs-btn-hover-border-color: #3a4a63; --bs-btn-hover-color: #e6ebf3; }
[data-bs-theme="dark"] .alert-light { background: #1c2839; color: var(--fs-muted); border-color: var(--fs-border); }

/* ===== Botão de tema (navbar) ===== */
.fs-theme-btn {
  background: none; border: none; font-size: 1.25rem; line-height: 1;
  padding: .3rem .45rem; border-radius: 8px; cursor: pointer;
}
.fs-theme-btn:hover { background: rgba(255, 255, 255, .1); }

/* ===== Sino de notificações (navbar) ===== */
.fs-bell-btn {
  position: relative; background: none; border: none; font-size: 1.25rem; line-height: 1;
  padding: .3rem .45rem; border-radius: 8px; cursor: pointer;
}
.fs-bell-btn:hover { background: rgba(255, 255, 255, .1); }

.fs-bell-badge {
  position: absolute; top: -3px; right: -1px;
  background: #dc3545; color: #fff; font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--fs-dark);
}

.fs-bell-menu {
  width: 330px; max-width: 92vw; max-height: 70vh; overflow-y: auto;
  border-radius: 12px; border: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-lg); padding: .5rem .4rem .3rem;
}

/* No mobile o menu alinhado ao sino estoura pela esquerda; fixa na viewport */
@media (max-width: 575.98px) {
  .fs-bell-menu.dropdown-menu {
    position: fixed;
    top: 62px; left: 4vw; right: 4vw;
    width: auto; max-width: none;
  }
}

.fs-notif {
  display: flex; gap: .6rem; align-items: flex-start;
  white-space: normal; border-radius: 8px; padding: .5rem .6rem; font-size: .88rem;
}
.fs-notif .fn-ico { font-size: 1.15rem; flex: none; line-height: 1.2; }
.fs-notif .fn-time { font-size: .72rem; color: var(--fs-muted); }
.fs-notif.unread { background: rgba(30, 144, 255, .1); font-weight: 600; }

/* Item "novo" na página de notificações */
.fs-notif-new { background: rgba(30, 144, 255, .07); }

/* ===== Modal de compartilhar imagem (escalação / súmula) ===== */
.share-overlay {
  position: fixed; inset: 0; background: rgba(5, 9, 18, .82); z-index: 2100;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.share-dialog {
  background: #0b1220; color: #fff; border-radius: 16px; max-width: 420px; width: 100%;
  max-height: 94vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); border: 1px solid #243043;
}
.share-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; font-weight: 700; border-bottom: 1px solid #243043;
}
.share-body { overflow-y: auto; padding: .8rem; text-align: center; }
.share-body img { max-width: 100%; border-radius: 10px; }
.share-actions { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid #243043; }
.share-actions .btn { flex: 1; }

/* ===== Pop na curtida ===== */
.like-pop { animation: fs-like-pop .3s ease; display: inline-block; }
@keyframes fs-like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ===== Card do jogador estilo FIFA ===== */
.fifa-card {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.4rem 1.3rem 1.1rem;
  border-radius: 20px;
  color: #f7f2d8;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(37, 208, 255, .35), transparent 55%),
    linear-gradient(160deg, #1a2c4a 0%, #0b1220 60%, #12233f 100%);
  border: 2px solid #d9b64e;
  box-shadow: 0 18px 44px rgba(6, 12, 24, .45), inset 0 0 40px rgba(217, 182, 78, .08);
  overflow: hidden;
}

.fifa-card::before {
  /* brilho diagonal sutil */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%);
  pointer-events: none;
}

.fifa-top {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.fifa-rating {
  text-align: center;
  line-height: 1;
  flex: none;
  min-width: 62px;
}
.fifa-ovr {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #f6d878;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.fifa-pos {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #f6d878;
  margin-top: .1rem;
}
.fifa-rating .fifa-num {
  font-size: .8rem;
  font-weight: 600;
  color: #cdd9ea;
  margin-top: .35rem;
}

.fifa-photo {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fifa-photo img,
.fifa-photo .fifa-ph {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(246, 216, 120, .5);
  background: #1c2a3f;
}
.fifa-photo .fifa-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
}

.fifa-name {
  margin-top: .7rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  border-bottom: 2px solid rgba(246, 216, 120, .35);
  padding-bottom: .5rem;
}
.fifa-nick { font-size: .8rem; font-weight: 600; color: #f6d878; text-transform: none; }

.fifa-tier {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .8rem; border-radius: 999px;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; border: 1px solid transparent;
}
.fifa-tier.tier-ouro { background: rgba(244,196,48,.18); color: #f4c430; border-color: rgba(244,196,48,.5); }
.fifa-tier.tier-prata { background: rgba(192,199,208,.16); color: #d4dae2; border-color: rgba(192,199,208,.45); }
.fifa-tier.tier-bronze { background: rgba(205,139,78,.18); color: #d89a63; border-color: rgba(205,139,78,.5); }
.fifa-tier.tier-base { background: rgba(159,176,200,.14); color: #9fb0c8; border-color: rgba(159,176,200,.4); }

.fifa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .3rem;
  margin-top: .7rem;
}
.fifa-stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.fifa-stat { text-align: center; }
.fifa-stat .v { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.fifa-stat .l { font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: #9fb0c8; text-transform: uppercase; margin-top: .2rem; }

/* ===== Conquistas / medalhas ===== */
.fs-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.fs-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-sm);
  font-size: .82rem; font-weight: 600;
}
.fs-badge .fb-ico { font-size: 1.1rem; line-height: 1; }
.fs-badge small { color: var(--fs-muted); font-weight: 500; }

/* ===== Pódio de artilharia ===== */
.fs-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: .6rem;
  padding: 1rem .5rem .3rem;
}
.fs-podium-step { flex: 1; max-width: 150px; text-align: center; }
.fs-podium-av {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--fs-border); background: var(--fs-surface);
  margin: 0 auto .35rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.fs-podium-step.p1 .fs-podium-av { width: 76px; height: 76px; border-color: #f4c430; box-shadow: 0 0 0 3px rgba(244,196,48,.25); }
.fs-podium-step.p2 .fs-podium-av { border-color: #c0c7d0; }
.fs-podium-step.p3 .fs-podium-av { border-color: #cd8b4e; }
.fs-podium-name { font-weight: 700; font-size: .9rem; }
.fs-podium-goals { color: var(--fs-muted); font-size: .8rem; }
.fs-podium-bar {
  margin-top: .5rem; border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--fs-navy), var(--fs-dark));
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: flex-start; justify-content: center; padding-top: .5rem;
}
.fs-podium-step.p1 .fs-podium-bar { height: 96px; background: linear-gradient(180deg, #b8942e, #7a611b); }
.fs-podium-step.p2 .fs-podium-bar { height: 72px; background: linear-gradient(180deg, #7d8593, #565d68); }
.fs-podium-step.p3 .fs-podium-bar { height: 56px; background: linear-gradient(180deg, #a06a3a, #6d4622); }

/* Botão em estado "copiado" */
.fs-copied { color: var(--fs-green) !important; border-color: var(--fs-green) !important; }

/* QR Code do Pix */
.fs-pix-qr { background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--fs-border); line-height: 0; }
.fs-pix-qr svg { width: 150px; height: 150px; display: block; }

/* Banner "próximo compromisso" na home */
.fs-next { border-left: 4px solid var(--fs-blue); }
.fs-next-when { min-width: 52px; color: var(--fs-blue); }


/* ===== Estado vazio ===== */
.fs-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--fs-border);
  border-radius: var(--fs-radius);
  background: var(--fs-surface);
}
.fs-empty .fs-empty-ico { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.fs-empty h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.fs-empty p { color: var(--fs-muted); max-width: 32rem; margin: 0 auto 1rem; }

/* ===== Floating helpers ===== */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Onboarding por feature (js/onboarding.js) ===== */
/* Camada invisível que bloqueia cliques na página durante o tour */
.fs-onb-overlay { position: fixed; inset: 0; z-index: 3000; }
/* "Furo" de destaque: a sombra gigante escurece todo o resto da tela */
.fs-onb-spot {
  position: fixed; z-index: 3001; pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(5, 9, 18, .62), 0 0 0 3px rgba(255, 255, 255, .35);
  transition: all .3s ease;
}
.fs-onb-card {
  position: fixed; z-index: 3002;
  left: 50%; transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 24px));
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  padding: 1.1rem 1.2rem;
}
.fs-onb-card.no-topo { bottom: auto; top: 16px; }
.fs-onb-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: .4rem; }
.fs-onb-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; }
.fs-onb-text { color: var(--fs-muted); font-size: .9rem; margin-top: .25rem; }
.fs-onb-dots { display: flex; gap: .35rem; margin-top: .8rem; }
.fs-onb-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fs-border); transition: background .2s;
}
.fs-onb-dots .dot.on { background: var(--fs-blue); }
.fs-onb-card .btn-close { margin-top: .1rem; }
/* Botão "❓ Como funciona" presente em cada feature */
.fs-howto { white-space: nowrap; }

/* Convite discreto da primeira visita (não bloqueia a tela) — acima da barra inferior no celular */
.fs-onb-convite {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--fs-bottomnav-h) + 12px + env(safe-area-inset-bottom));
  z-index: 1055; width: min(460px, calc(100vw - 24px));
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem .6rem .9rem;
  background: var(--fs-surface); color: var(--fs-text);
  border: 1px solid var(--fs-border); border-left: 4px solid var(--fs-blue);
  border-radius: 14px; box-shadow: var(--fs-shadow-lg);
  animation: fs-convite-in .25s ease-out;
}
@media (min-width: 992px) { .fs-onb-convite { bottom: 24px; } }
@keyframes fs-convite-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .fs-onb-convite { animation: none; } }

/* Boas-vindas por perfil (Home/Bemvindo) */
.fs-bemvindo { max-width: 560px; margin: 0 auto; }
.fs-perfis { display: flex; flex-direction: column; gap: .6rem; }
.fs-perfil-opcao {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; min-height: 64px;
  background: var(--fs-surface); color: var(--fs-text); text-decoration: none;
  border: 1px solid var(--fs-border); border-radius: var(--fs-radius);
  transition: border-color .15s, transform .15s;
}
.fs-perfil-opcao:hover, .fs-perfil-opcao:focus-visible { border-color: var(--fs-blue); color: var(--fs-text); }
.fs-perfil-opcao:active { transform: scale(.99); }
.fs-perfil-ico { font-size: 1.8rem; line-height: 1; width: 2.2rem; text-align: center; flex-shrink: 0; }
.fs-perfil-titulo { display: block; font-weight: 600; }
.fs-perfil-texto { display: block; color: var(--fs-muted); font-size: .85rem; }
.fs-perfil-seta { color: var(--fs-muted); font-size: 1.5rem; line-height: 1; }

/* Card "Comece aqui" do Início (quem ainda não tem time, pelada nem copa) */
.fs-comece { border-left: 4px solid var(--fs-blue); }
.fs-comece-ico { font-size: 2rem; line-height: 1; }
.fs-comece-mais { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.fs-comece-mais a {
  font-size: .85rem; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid var(--fs-border); color: var(--fs-text); text-decoration: none;
}
.fs-comece-mais a:hover { border-color: var(--fs-blue); }

/* "Próximos passos" de quem acabou de criar algo (partial _PrimeirosPassos) */
.fs-guia-lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.fs-guia-lista li { display: flex; align-items: center; gap: .6rem; min-height: 36px; }
.fs-guia-marca {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--fs-border); display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}
.fs-guia-lista li.feito { color: var(--fs-muted); }
.fs-guia-lista li.feito > .flex-grow-1 { text-decoration: line-through; }
.fs-guia-lista li.feito .fs-guia-marca { background: var(--fs-green, #22c55e); border-color: var(--fs-green, #22c55e); color: #fff; }
.fs-guia-lista li.atual { font-weight: 600; }
.fs-guia-lista li.atual .fs-guia-marca { border-color: var(--fs-blue); }

/* Dica de novidade (partial _Dica com "Novo") */
.fs-selo-novo { background: var(--fs-blue); color: #fff; font-size: .65rem; letter-spacing: .04em; }
.fs-dica-novo { border-left: 4px solid var(--fs-blue); }

/* Instalar o app: página /Home/Instalar e aviso do iPhone (js/instalar.js) */
.fs-instalar { max-width: 560px; }
.fs-instalar-qr { width: 132px; flex-shrink: 0; background: #fff; padding: 6px; border-radius: 10px; }
.fs-instalar-qr svg { display: block; width: 100%; height: auto; }
.fs-passos-ios { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; counter-reset: passo; }
.fs-passos-ios li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; }
.fs-ios-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30, 144, 255, .14); color: var(--fs-blue); font-weight: 700;
}
.fs-ios-ok { background: rgba(34, 197, 94, .16); color: var(--fs-green); }
.fs-instalar-ios {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--fs-bottomnav-h) + 12px + env(safe-area-inset-bottom));
  z-index: 1055; width: min(460px, calc(100vw - 20px));
  padding: .9rem 1rem; background: var(--fs-surface); color: var(--fs-text);
  border: 1px solid var(--fs-border); border-radius: 16px; box-shadow: var(--fs-shadow-lg);
  animation: fs-convite-in .25s ease-out;
}
/* Visitante (sem barra inferior): encosta no rodapé da tela */
body:not(:has(.fs-bottomnav)) .fs-instalar-ios { bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .fs-instalar-ios { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .fs-instalar-ios { animation: none; } }

/* ===== Recorte de imagem (js/recorte.js) — editor escuro estilo Instagram/WhatsApp, nos dois temas ===== */
html.fs-recorte-aberto, html.fs-recorte-aberto body { overflow: hidden; }
.fs-recorte {
  position: fixed; inset: 0; z-index: 3100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 16, .72);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  opacity: 0; transition: opacity .18s ease;
}
.fs-recorte.on { opacity: 1; }
.fs-recorte-caixa {
  width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 18px 18px;
  color: #f4f7fb;
  background: linear-gradient(180deg, #111c2f 0%, #0b1322 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: translateY(16px) scale(.98); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.fs-recorte.on .fs-recorte-caixa { transform: none; }
/* Celular: painel que sobe de baixo e ocupa a largura toda */
@media (max-width: 575.98px) {
  .fs-recorte { align-items: flex-end; padding: 0; }
  .fs-recorte-caixa {
    border-radius: 24px 24px 0 0; border-bottom: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
}
.fs-recorte-topo { display: flex; align-items: center; gap: 8px; }
.fs-recorte-titulo { flex: 1; text-align: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.fs-recorte-ico {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #f4f7fb; background: rgba(255, 255, 255, .08);
  transition: background .15s, transform .15s;
}
.fs-recorte-ico:hover { background: rgba(255, 255, 255, .16); }
.fs-recorte-ico:active { transform: scale(.94); }
.fs-recorte-ico:focus-visible { outline: 2px solid #25d0ff; outline-offset: 2px; }

.fs-recorte-palco {
  position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto;
  overflow: hidden; border-radius: 20px; touch-action: none; cursor: grab;
  background: #000; user-select: none; -webkit-user-select: none;
}
.fs-recorte-palco.mexendo { cursor: grabbing; }
.fs-recorte-palco:focus-visible { outline: 2px solid #25d0ff; outline-offset: 3px; }
/* Escudo: xadrez mostra onde vai ficar transparente */
.fs-recorte-palco.escudo {
  background-color: #1a2436;
  background-image:
    linear-gradient(45deg, #243049 25%, transparent 25%), linear-gradient(-45deg, #243049 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #243049 75%), linear-gradient(-45deg, transparent 75%, #243049 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.fs-recorte-palco img {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: center center;
  pointer-events: none; will-change: transform;
}
.fs-recorte-palco img.girando { transition: transform .2s ease; }
/* Guia: círculo com o resto escurecido (foto) ou moldura com cantos (escudo) */
.fs-recorte-guia { position: absolute; inset: 0; pointer-events: none; }
.fs-recorte-palco.foto .fs-recorte-guia {
  inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 999px rgba(4, 8, 16, .58);
}
.fs-recorte-palco.escudo .fs-recorte-guia {
  border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
  background:
    linear-gradient(#fff, #fff) top left / 22px 3px no-repeat, linear-gradient(#fff, #fff) top left / 3px 22px no-repeat,
    linear-gradient(#fff, #fff) top right / 22px 3px no-repeat, linear-gradient(#fff, #fff) top right / 3px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 22px 3px no-repeat, linear-gradient(#fff, #fff) bottom left / 3px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 22px 3px no-repeat, linear-gradient(#fff, #fff) bottom right / 3px 22px no-repeat;
}
/* Grade 3x3 só enquanto arrasta/dá zoom */
.fs-recorte-grade { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.fs-recorte-palco.mexendo .fs-recorte-grade { opacity: 1; }
.fs-recorte-grade i { position: absolute; background: rgba(255, 255, 255, .45); }
.fs-recorte-grade i:nth-child(1), .fs-recorte-grade i:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.fs-recorte-grade i:nth-child(1) { left: 33.333%; } .fs-recorte-grade i:nth-child(2) { left: 66.666%; }
.fs-recorte-grade i:nth-child(3), .fs-recorte-grade i:nth-child(4) { left: 0; right: 0; height: 1px; }
.fs-recorte-grade i:nth-child(3) { top: 33.333%; } .fs-recorte-grade i:nth-child(4) { top: 66.666%; }

.fs-recorte-dica { text-align: center; font-size: .82rem; color: rgba(244, 247, 251, .62); margin-top: -4px; }
/* Barra de zoom: trilho com preenchimento em gradiente da marca */
.fs-recorte-zoom { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 4px; color: rgba(244, 247, 251, .7); font-size: 1.1rem; }
.fs-recorte-zoom input[type=range] {
  flex: 1; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.fs-recorte-zoom input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #1e90ff, #25d0ff var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%));
}
.fs-recorte-zoom input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.fs-recorte-zoom input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1e90ff, #25d0ff); }
.fs-recorte-zoom input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 4px rgba(37, 208, 255, .25);
}
.fs-recorte-zoom input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 4px rgba(37, 208, 255, .25);
}
.fs-recorte-zoom input[type=range]:focus-visible { outline: none; }
.fs-recorte-zoom input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(37, 208, 255, .6); }

.fs-recorte-acoes { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.fs-recorte-btn, .fs-recorte-btn-sec { min-height: 48px; border-radius: 14px; font-weight: 600; }
.fs-recorte-btn {
  color: #fff; border: 0;
  background: linear-gradient(135deg, #1e90ff 0%, #25d0ff 100%);
  box-shadow: 0 8px 24px rgba(30, 144, 255, .35);
}
.fs-recorte-btn:hover, .fs-recorte-btn:focus-visible { color: #fff; filter: brightness(1.08); }
.fs-recorte-btn-sec { color: #f4f7fb; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.fs-recorte-btn-sec:hover { color: #fff; background: rgba(255, 255, 255, .14); }
@media (prefers-reduced-motion: reduce) {
  .fs-recorte, .fs-recorte-caixa, .fs-recorte-palco img.girando, .fs-recorte-grade { transition: none; }
}

/* Prévia do recorte ao lado do campo */
.fs-recorte-previa { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; font-size: .85rem; }
.fs-recorte-previa img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid var(--fs-border);
  background: repeating-conic-gradient(#d9dee7 0% 25%, #fff 0% 50%) 50% / 12px 12px;
}
.fs-recorte-previa.redondo img { border-radius: 50%; }
.fs-recorte-previa strong { color: var(--fs-green); font-weight: 600; }

/* ===== Rachão: times salvos e gols da pelada ===== */
.fs-times-pelada { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.fs-time-pelada { padding: .65rem .8rem; border: 1px solid var(--fs-border); border-radius: var(--fs-radius-sm); background: rgba(30, 144, 255, .05); }
.fs-time-pelada li { padding: .12rem 0; }
.fs-gol-grupo + .fs-gol-grupo { margin-top: .9rem; }
.fs-gol-linha { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--fs-border); }
.fs-gol-linha:last-child { border-bottom: 0; }
.fs-gol-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--fs-border);
  background: var(--fs-surface); color: var(--fs-text); font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.fs-gol-btn.mais { background: linear-gradient(135deg, #1e90ff, #25d0ff); color: #fff; border: 0; }
.fs-gol-btn:active { transform: scale(.94); }
.fs-gol-btn:disabled { opacity: .6; }
.fs-gol-n { min-width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--fs-muted); }
.fs-gol-n.tem { color: var(--fs-text); }
.fs-gol-n.pulo { animation: fs-gol-pulo .35s ease-out; }
@keyframes fs-gol-pulo { 40% { transform: scale(1.45); color: var(--fs-green); } }
@media (prefers-reduced-motion: reduce) { .fs-gol-n.pulo { animation: none; } }
.fs-presenca > summary { cursor: pointer; list-style: none; }
.fs-presenca > summary::-webkit-details-marker { display: none; }
.fs-presenca > summary > span:first-child::after { content: " ▾"; color: var(--fs-muted); }
.fs-presenca:not([open]) > summary { border-bottom: 0; }
.fs-salvar-times {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: .9rem 1rem; border-radius: var(--fs-radius); border: 1px solid rgba(34, 197, 94, .45);
  background: rgba(34, 197, 94, .08);
}

/* Estado vazio que ensina: passos numerados */
.fs-empty-passos {
  text-align: left; max-width: 22rem; margin: 0 auto 1.1rem; padding-left: 1.3rem;
  color: var(--fs-muted); font-size: .92rem;
}
.fs-empty-passos li { margin-bottom: .2rem; }

/* "Mais opções" dos formulários de criar (rachão, time): o essencial à vista, o resto recolhido */
.fs-mais-opcoes { border: 1px dashed var(--fs-border); border-radius: var(--fs-radius-sm); padding: .2rem .9rem; }
.fs-mais-opcoes > summary { cursor: pointer; padding: .55rem 0; font-weight: 600; list-style: none; }
.fs-mais-opcoes > summary::-webkit-details-marker { display: none; }
.fs-mais-opcoes > summary::before { content: "＋ "; color: var(--fs-blue); }
.fs-mais-opcoes[open] > summary::before { content: "－ "; }
.fs-mais-opcoes[open] { padding-bottom: .9rem; }

/* ===== Painel admin (/admin: saúde, uso, usuários, auditoria) ===== */
.fs-adm-stat { background: var(--fs-surface); border: 1px solid var(--fs-border); border-radius: var(--fs-radius-sm); padding: .6rem .8rem; height: 100%; }
.fs-adm-stat .rotulo { color: var(--fs-muted); font-size: .78rem; }
.fs-adm-stat .valor { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fs-adm-stat .sub { color: var(--fs-muted); font-size: .75rem; }
.fs-adm-check { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .8rem; border-bottom: 1px solid var(--fs-border); }
.fs-adm-check:last-child { border-bottom: 0; }
.fs-adm-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; margin-top: .3rem; background: var(--fs-muted); }
.fs-adm-dot.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.fs-adm-dot.alerta { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.fs-adm-dot.falha { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.fs-adm-barra { position: relative; height: 8px; border-radius: 999px; background: var(--fs-border); overflow: hidden; }
.fs-adm-barra > span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--fs-blue); }
.fs-adm-barra.erro > span { background: #ef4444; }
.fs-adm-colunas { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.fs-adm-colunas .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; height: 100%; padding: 0; }
.fs-adm-colunas .col .b { background: var(--fs-blue); opacity: .85; border-radius: 4px 4px 0 0; }
.fs-adm-colunas .col .n { font-size: .6rem; color: var(--fs-muted); line-height: 1.1; white-space: nowrap; }
.fs-adm-colunas .col .d { font-size: .55rem; color: var(--fs-muted); line-height: 1.3; white-space: nowrap; }
/* Muitas colunas (30 dias) no celular: esconde os números em cima das barras (ficam no title). */
@media (max-width: 575.98px) { .fs-adm-colunas.denso .col .n { visibility: hidden; } }
.fs-adm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; white-space: pre-wrap; word-break: break-word; }
.fs-adm-perm { border: 1px solid var(--fs-border); border-radius: var(--fs-radius-sm); padding: .5rem .7rem .5rem 2.2rem; }

/* ===== Foto de perfil (Meu perfil) ===== */
.fs-perfil-foto {
  position: relative; flex: none; cursor: pointer; margin: 0;
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--fs-border); border: 3px solid var(--fs-blue);
}
.fs-perfil-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fs-perfil-foto-ph { font-size: 2rem; font-weight: 700; color: var(--fs-blue); }
.fs-perfil-foto-cam {
  position: absolute; right: -4px; bottom: -4px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  background: var(--fs-surface); border: 1px solid var(--fs-border);
  box-shadow: 0 1px 4px rgba(16, 30, 54, .2);
}

/* ===== Home: atalhos compactos + título da timeline ===== */
.fs-atalhos { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; scrollbar-width: none; }
.fs-atalhos::-webkit-scrollbar { display: none; }
.fs-atalhos a {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: 999px; white-space: nowrap;
  background: var(--fs-surface); border: 1px solid var(--fs-border);
  color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600;
}
.fs-atalhos a:hover { border-color: var(--fs-blue); }
.fs-timeline-titulo { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .6rem; }
.fs-timeline-titulo h2 { font-size: 1.1rem; margin: 0; }


/* ======================================================================
   v2 — percepção de velocidade, toasts, acessibilidade e polimento
   ====================================================================== */

/* Link "pular para o conteúdo" (teclado/leitor de tela): só aparece ao focar. */
.fs-skip {
  position: absolute; left: 8px; top: -60px; z-index: 5000;
  padding: .5rem .9rem; border-radius: 10px;
  background: var(--fs-blue); color: #fff !important; font-weight: 600;
  transition: top .15s ease;
}
.fs-skip:focus { top: 8px; outline: 3px solid var(--fs-cyan); }
#conteudo:focus { outline: none; }

/* Faixas de aviso acima da navbar */
.fs-faixa { font-size: .9rem; }
.fs-faixa-app { background: #0b1220; color: #fff; }
.fs-faixa-atualizar { background: #f59e0b; color: #111; }

/* Barra de progresso de navegação (site.js) */
.fs-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 5000;
  background: linear-gradient(90deg, var(--fs-blue), var(--fs-cyan));
  box-shadow: 0 0 10px rgba(37, 208, 255, .7);
  opacity: 0; pointer-events: none;
  transition: width .25s ease, opacity .25s ease;
}
.fs-progress.ativo { opacity: 1; animation: fs-progress-run 6s cubic-bezier(.1, .6, .2, 1) forwards; }
.fs-progress.fim { width: 100%; opacity: 0; transition: width .15s ease, opacity .3s ease .15s; }
@keyframes fs-progress-run {
  0% { width: 0; }
  15% { width: 35%; }
  50% { width: 70%; }
  100% { width: 92%; }
}

/* Botão travado enquanto o formulário envia (site.js) */
.btn.fs-enviando { opacity: .85; cursor: progress; }
.fs-spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: fs-spin .7s linear infinite;
}
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* Toasts flutuantes (acima da barra inferior no celular) */
.fs-avisos {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--fs-bottomnav-h) + 14px + env(safe-area-inset-bottom));
  z-index: 1060; width: min(520px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
@media (min-width: 992px) { .fs-avisos { bottom: 24px; } }
.fs-aviso {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem .8rem .75rem .95rem;
  border-radius: 14px;
  background: var(--fs-surface); color: var(--fs-text);
  border: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-lg);
  font-size: .92rem; line-height: 1.35;
  animation: fs-aviso-in .26s cubic-bezier(.2, .9, .3, 1.2);
}
.fs-aviso.ok { border-left: 4px solid var(--fs-green); }
.fs-aviso.erro { border-left: 4px solid #ef4444; }
.fs-aviso .ft-ico { flex: none; font-size: 1.05rem; line-height: 1.3; }
.fs-aviso .ft-txt { flex: 1; }
.fs-aviso .ft-x {
  flex: none; background: none; border: 0; color: var(--fs-muted); font-size: .9rem; line-height: 1;
  padding: .15rem .35rem; border-radius: 6px; cursor: pointer;
}
.fs-aviso .ft-x:hover { background: var(--fs-bg); color: var(--fs-text); }
.fs-aviso.saindo { animation: fs-aviso-out .25s ease forwards; }
@keyframes fs-aviso-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fs-aviso-out { to { opacity: 0; transform: translateY(8px); } }

/* Imagens que falharam: some o shimmer e mostra um fundo neutro. */
img.fs-img-erro { animation: none !important; background: var(--fs-border) !important; }

/* Títulos de página mais marcantes e consistentes */
main h1.h3, main h1.h4 { font-weight: 800; letter-spacing: -.02em; }

/* Lista "clicável" — seta sutil ao passar o mouse em cards de navegação */
@media (hover: hover) {
  .list-group-item-action:hover { background: rgba(30, 144, 255, .06); }
}

/* Dropdowns com cantos arredondados e sombra suave */
.dropdown-menu { border-radius: 14px; border: 1px solid var(--fs-border); box-shadow: var(--fs-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--fs-blue); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(30, 144, 255, .08); color: inherit; }
[data-bs-theme="dark"] .dropdown-item:hover, [data-bs-theme="dark"] .dropdown-item:focus { background: rgba(77, 163, 255, .12); color: #fff; }

/* Modais e offcanvas: cantos e fundo do tema */
.modal-content { border-radius: 18px; border: 1px solid var(--fs-border); background: var(--fs-surface); }
.modal-backdrop { --bs-backdrop-opacity: .6; }
@media (max-width: 575.98px) {
  /* No celular o modal sobe de baixo, como uma folha (bottom sheet). */
  .modal-dialog:not(.modal-fullscreen):not(.modal-dialog-centered) { margin: auto .5rem .5rem; display: flex; align-items: flex-end; min-height: calc(100% - 1rem); }
  .modal.fade .modal-dialog:not(.modal-fullscreen):not(.modal-dialog-centered) { transform: translateY(40px); }
  .modal.show .modal-dialog:not(.modal-fullscreen):not(.modal-dialog-centered) { transform: none; }
}

/* Tabelas: rolagem lateral suave no celular, sem estourar a tela */
.table-responsive { -webkit-overflow-scrolling: touch; border-radius: 12px; }

/* Nav pills (abas) estilo "segmented control" */
.nav-pills { gap: .25rem; }
.nav-pills .nav-link { border-radius: 999px; padding: .4rem .9rem; font-weight: 600; color: var(--fs-muted); }
.nav-pills .nav-link:hover { background: rgba(30, 144, 255, .08); color: var(--fs-text); }
.nav-pills .nav-link.active { background: var(--fs-blue); color: #fff; box-shadow: 0 3px 10px rgba(30, 144, 255, .3); }

/* Busca da navbar */
.fs-busca .form-control { max-width: 210px; border-radius: 999px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); color: #fff; }
.fs-busca .form-control::placeholder { color: #aab6c8; }
.fs-busca .form-control:focus { background: rgba(255, 255, 255, .16); border-color: var(--fs-cyan); box-shadow: 0 0 0 .2rem rgba(37, 208, 255, .2); color: #fff; }
@media (max-width: 991.98px) { .fs-busca .form-control { max-width: none; } }

/* Scrollbar discreta (desktop) */
@media (hover: hover) {
  * { scrollbar-width: thin; scrollbar-color: rgba(107, 118, 136, .4) transparent; }
}

/* Cartaz de "carregando" para listas assíncronas (rolagem infinita, chat) */
.fs-carregando { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--fs-muted); padding: 1rem; font-size: .9rem; }

/* ===== Entrar / Criar conta ===== */
.fs-auth { border-radius: 20px; }
.fs-auth-logo { width: min(220px, 60%); height: auto; }
.fs-auth .form-control-lg { font-size: 1rem; padding: .7rem .9rem; }
.fs-senha { position: relative; }
.fs-senha .form-control { padding-right: 2.8rem; }
.fs-senha-olho {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 1.1rem; line-height: 1; padding: .35rem .45rem; border-radius: 8px;
  cursor: pointer; opacity: .75;
}
.fs-senha-olho:hover { opacity: 1; background: var(--fs-bg); }
.fs-navbar .fs-btn-criar .fs-mais { font-size: 1.15rem; font-weight: 800; line-height: 1; }

/* ===== "Fale com o dono" (ícone 💡 na navbar + modal com WhatsApp) — partial _FaleComDono ===== */
/* Ícone do topo com cara de "novidade": anel dourado que respira + pontinho vermelho até o 1º toque. */
.dono-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  background: radial-gradient(circle at 50% 40%, #2b2410, #161b22 70%);
  box-shadow: 0 0 0 2px #f5b301, 0 0 12px 2px rgba(245, 179, 1, .45);
  animation: donoGlow 2.2s ease-in-out infinite;
}
.dono-icon.is-seen { animation: none; box-shadow: 0 0 0 2px rgba(245, 179, 1, .75); }
.dono-icon .dono-dot {
  position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: #ff3b30; border: 2px solid var(--fs-dark);
}
.dono-icon.is-seen .dono-dot { display: none; }
.dono-navlink .dono-new {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; vertical-align: middle; color: #1a1300; background: #f5b301;
}
.dono-navlink.is-seen .dono-new { display: none; }
@keyframes donoGlow {
  0%, 100% { box-shadow: 0 0 0 2px #f5b301, 0 0 6px 0 rgba(245, 179, 1, .35); }
  50% { box-shadow: 0 0 0 2px #ffd25e, 0 0 16px 4px rgba(245, 179, 1, .6); }
}

/* Modal */
.dono-modal {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.dono-modal[hidden] { display: none; }
.dono-sheet {
  position: relative; width: 100%; max-width: 380px; padding: 28px 22px 20px; text-align: center;
  border-radius: 20px; color: #e6edf3; background: linear-gradient(180deg, #1c2537, #0f1727);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: donoIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
.dono-x {
  position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #8b949e;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.dono-foto {
  width: 104px; height: 104px; margin: 0 auto 12px; padding: 4px; border-radius: 50%;
  background: conic-gradient(#25d366, #f5b301, #25d366);
}
.dono-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #121a2a; }
.dono-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f5b301; }
.dono-title { margin: 4px 0 8px; font-size: 1.4rem; font-weight: 800; color: #fff; }
.dono-sub { margin: 0 0 18px; font-size: .95rem; line-height: 1.45; color: #c9d1d9; }
.dono-whats {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 16px; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none !important;
  color: #fff !important; background: #25d366; box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}
.dono-whats:hover, .dono-whats:focus { background: #1fbe5a; }
.dono-whats svg { width: 22px; height: 22px; }
.dono-later { margin-top: 10px; border: 0; background: none; color: #8b949e; font-size: .9rem; cursor: pointer; }
.dono-nota { margin-top: 6px; font-size: .75rem; color: #6e7681; }
@keyframes donoIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dono-icon, .dono-sheet { animation: none; } }

.dono-apoiar {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: .88rem; text-align: left;
  color: #e6edf3; background: rgba(245, 179, 1, .1); border: 1px solid rgba(245, 179, 1, .35);
}
.dono-apoiar-t { font-weight: 700; color: #ffd25e; margin-bottom: 6px; }
.dono-apoiar-row { display: flex; align-items: center; gap: 8px; }
.dono-apoiar-row code { flex: 1; font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .3); padding: .4rem .6rem; border-radius: 8px; }
.dono-apoiar a { display: inline-block; margin-top: 6px; font-size: .8rem; color: #ffd25e !important; }

/* ===== Apoiar o FutStory (doações por Pix) — /Home/Apoiar ===== */
.apoiar-wrap { max-width: 520px; margin: 0 auto; }
.apoiar-card { border-radius: 20px; }
.apoiar-foto { width: 96px; height: 96px; }
.apoiar-foto img { border-color: var(--fs-surface); }
.apoiar-valores { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.apoiar-valor {
  border: 1px solid var(--fs-border); background: var(--fs-surface); color: var(--fs-text);
  border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.apoiar-valor:hover { border-color: var(--fs-blue); }
.apoiar-valor.active { background: var(--fs-blue); border-color: var(--fs-blue); color: #fff; box-shadow: 0 3px 10px rgba(30, 144, 255, .3); }
.apoiar-qr { width: fit-content; }
.apoiar-qr svg { width: 200px; height: 200px; }
.apoiar-bloco { position: relative; text-align: center; padding: 1.1rem 1rem 1rem; border: 1px solid var(--fs-border); border-radius: 16px; background: var(--fs-bg); }
.apoiar-passo {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--fs-blue); color: #fff; font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--fs-surface);
}
.apoiar-bloco-titulo { font-weight: 700; margin-bottom: .6rem; }
.apoiar-chave-txt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 800; letter-spacing: .05em;
  padding: .5rem .6rem; margin-bottom: .6rem; border-radius: 10px; background: var(--fs-surface); border: 1px dashed var(--fs-border);
  -webkit-user-select: all; user-select: all;
}
.apoiar-copiar { font-size: 1rem; }
.apoiar-ou { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--fs-muted); font-size: .85rem; }
.apoiar-ou::before, .apoiar-ou::after { content: ""; flex: 1; height: 1px; background: var(--fs-border); }
.apoiar-valores { margin-bottom: .7rem; }
.apoiar-qr-box summary { cursor: pointer; list-style: none; }
.apoiar-qr-box summary::-webkit-details-marker { display: none; }
.apoiar-qr-box summary::before { content: "▸ "; }
.apoiar-qr-box[open] summary::before { content: "▾ "; }

/* Cadastro do jogador: posição em cada tipo de jogo (opcional) */
.fs-pos-tipos { padding: .75rem .9rem; border: 1px dashed var(--fs-border); border-radius: var(--fs-radius-sm); }
.fs-pos-perfil > summary { list-style: none; display: inline-block; }
.fs-pos-perfil > summary::-webkit-details-marker { display: none; }
.fs-pos-perfil[open] > summary { display: none; }
