/* Prancheta CBFS — UI dark navy, mobile-first */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0D1330;
  --panel: #151C42;
  --panel-2: #1B2452;
  --line: rgba(255,255,255,.10);
  --text: #F2F3F8;
  --dim: #9AA1C2;
  --accent: #F2A900;
  --danger: #E84C4C;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
html, body { height: 100%; overscroll-behavior: none; }
body {
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none; -webkit-user-select: none;
}

/* ---------- topbar ---------- */
#topbar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + var(--sat)) 12px 8px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 7px; color: var(--accent); flex: none; }
.wm-ball { width: 24px; height: 24px; }
.wm-txt { font-size: 17px; font-weight: 800; letter-spacing: -.03em; color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; }
.tb-emblem { height: 38px; width: auto; flex: none; display: block; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
#playName {
  font-size: 15px; font-weight: 600; padding: 4px 8px; border-radius: 8px;
  max-width: 40vw; overflow: hidden; white-space: nowrap; outline: none;
}
#playName:focus { background: var(--panel-2); }
.spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border: none; border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:active { background: var(--panel-2); }
.icon-btn.accent { background: var(--accent); color: #14172B; }
.icon-btn.authed { color: var(--accent); }

/* ---------- board ---------- */
main { flex: 1; position: relative; min-height: 0; }
#board { position: absolute; inset: 0; display: block; }

/* ---------- timeline ---------- */
#timeline {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--panel); border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
#timeline::-webkit-scrollbar { display: none; }
#frameChips { display: flex; gap: 6px; }
.frame-chip {
  min-width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--dim); font-weight: 700; font-size: 14px; cursor: pointer;
}
.frame-chip.on { background: var(--accent); border-color: var(--accent); color: #14172B; }
.frame-chip.add { color: var(--accent); border-style: dashed; font-size: 18px; }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #14172B; font-size: 15px; font-weight: 700; flex: none;
}
.play-btn.pulse { animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(242,169,0,.45); } 50% { box-shadow: 0 0 0 9px rgba(242,169,0,0); } }

/* ---------- toolbar ---------- */
#toolbar {
  display: flex; align-items: stretch; justify-content: center; gap: 2px;
  padding: 6px 8px calc(8px + var(--sab));
  background: var(--panel); border-top: 1px solid var(--line);
}
.tool {
  flex: 1; max-width: 96px; border: none; background: transparent; color: var(--dim);
  border-radius: 12px; padding: 6px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tool svg { width: 22px; height: 22px; }
.tool span { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tool.on { color: var(--accent); background: rgba(242,169,0,.10); }
.divider { width: 1px; background: var(--line); margin: 6px 4px; }
.hidden { display: none !important; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(4,6,18,.66);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s;
}
.sheet-backdrop.dark { background: rgba(5,8,22,.88); }
.sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--panel); border-radius: 22px 22px 0 0;
  padding: 16px 18px calc(20px + var(--sab));
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .25s cubic-bezier(.3,1,.4,1), visibility 0s .25s;
  max-height: 78vh; overflow-y: auto;
  border-top: 1px solid var(--line);
}
.sheet.open .sheet-card { visibility: visible; transition: transform .25s cubic-bezier(.3,1,.4,1); }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-card { transform: translateY(0); }
.sheet-card.narrow { max-width: 420px; margin: 0 auto; }
.sheet-card.center {
  top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(92vw, 400px); border-radius: 22px; text-align: center; opacity: 0;
  transition: opacity .25s, transform .25s;
}
.sheet.open .sheet-card.center { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 700; margin-bottom: 12px;
}
/* header do login com a marca */
.auth-logo { display: block; width: min(42vw, 128px); height: auto; margin: 6px auto 12px; }
.auth-title { justify-content: center; margin-bottom: 16px; }
.auth-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.linklike { display: block; width: 100%; background: none; border: none; color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 10px 4px 2px; text-align: center; }
.linklike[hidden] { display: none; }
.linklike:hover { text-decoration: underline; }
.auth-toggle { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--dim); }
.auth-toggle .linklike { display: inline; width: auto; padding: 0 0 0 4px; }
@media (min-width: 720px) {
  .sheet-card { left: 50%; right: auto; transform: translate(-50%, 105%); width: 460px; border-radius: 22px; bottom: 24px; }
  .sheet.open .sheet-card { transform: translate(-50%, 0); }
  .sheet.open .sheet-card.center { transform: translate(-50%, -50%) scale(1); }
  .sheet-card.center { bottom: auto; }

  /* login/criar conta = painel lateral (direita) no desktop */
  #modalAuth .sheet-card {
    top: 0; bottom: 0; left: auto; right: 0;
    width: 420px; max-width: 94vw; height: 100%; max-height: none;
    border-radius: 26px 0 0 26px; padding: 34px 30px calc(30px + var(--sab));
    transform: translateX(106%);
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: -34px 0 90px rgba(0,0,0,.42);
  }
  #modalAuth.open .sheet-card { transform: translateX(0); }
}

/* chips e controles */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--dim); font-weight: 700; cursor: pointer;
}
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #14172B; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin: 12px 0 7px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.chip.small { padding: 6px 12px; font-size: 12.5px; flex: none; }
.chip.primary { background: var(--accent); border-color: var(--accent); color: #14172B; }
.chip.danger { color: var(--danger); border-color: rgba(232,76,76,.4); }
.chip.wide { width: 100%; text-align: center; padding: 12px; font-size: 15px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.25);
}
.swatch.on { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.row-toggle { display: flex; align-items: center; gap: 9px; padding: 12px 0; font-size: 14px; }
.row-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

/* share */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-btn {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2);
  color: var(--text); padding: 16px 10px; font-size: 22px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.share-btn b { font-size: 14.5px; }
.share-btn span { font-size: 11px; color: var(--dim); }
.share-btn:active { background: var(--panel); }

/* adicionar */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-btn {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2);
  color: var(--text); padding: 15px 10px; font-size: 22px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.add-btn b { font-size: 14.5px; }
.add-btn span { font-size: 10.5px; color: var(--dim); }
.add-btn:active { background: var(--panel); }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 12px; line-height: 1.5; text-align: center; }

/* modo apresentação */
#presentBar { display: none; }
body.presenting #topbar,
body.presenting #timeline,
body.presenting #toolbar { display: none; }
body.presenting #presentBar {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  position: fixed; left: 50%; bottom: calc(18px + var(--sab)); transform: translateX(-50%);
  background: rgba(21,28,66,.92); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; z-index: 70; backdrop-filter: blur(10px);
}
#presentBar button {
  border: none; background: transparent; color: var(--text); cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 8px 10px; border-radius: 999px;
}
#presentBar #pPlay { background: var(--accent); color: #14172B; width: 40px; height: 40px; }
#presentBar #pExit { color: var(--dim); font-size: 12.5px; }
#presentBar #pInfo { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }

/* biblioteca */
.lib-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lib-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lib-info b { font-size: 14.5px; }
.lib-info span { font-size: 12px; color: var(--dim); }
.empty { color: var(--dim); text-align: center; padding: 22px 0; font-size: 14px; line-height: 1.6; }
.lib-sec { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin: 14px 0 4px; }
.acct { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; }
.acct span { flex: 1; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.acct b { color: var(--text); font-size: 14px; }
.acct-days { display: inline-block; margin-top: 4px; font-size: 11.5px; font-style: normal; color: var(--accent); font-weight: 600; }
.acct .chip { flex: none; }

/* card de conta (logado) */
.acct-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 8px; }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #14172B; background: linear-gradient(135deg, var(--accent), #ffd77a); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.acct-id { min-width: 0; display: flex; flex-direction: column; }
.acct-id b { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-id span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-badge { display: flex; align-items: center; gap: 7px; margin: 12px 0 2px; padding: 8px 11px; border-radius: 11px; background: rgba(242,169,0,.12); border: 1px solid rgba(242,169,0,.28); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.acct-badge b { font-weight: 800; }
.acct-actions { display: flex; gap: 8px; margin-top: 12px; }
.acct-actions .chip { flex: 1; }
.acct-edit { display: flex; gap: 8px; margin-top: 12px; }
.acct-edit input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; outline: none; }
.acct-edit input:focus { border-color: var(--accent); }
.acct-edit .chip { flex: none; }

/* nome na topbar */
.tb-name {
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer;
  padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  flex: none; transition: background .15s;
}
.tb-name:hover { background: var(--panel); }

/* campos */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 14px; }
.field input {
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--accent); }

/* onboarding */
/* tela de boas-vindas */
#welcome {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-start; justify-content: center; padding: 28px; overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 0%, #1A2352 0%, var(--bg) 60%);
}
#welcome.show { display: flex; }
.wl-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wl-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.wl-glow.a { width: 60vw; height: 60vw; background: var(--accent); top: -20vw; left: -14vw; opacity: .28; }
.wl-glow.b { width: 50vw; height: 50vw; background: #2B62C9; bottom: -18vw; right: -12vw; opacity: .35; }
.wl-inner { position: relative; text-align: center; max-width: 400px; width: 100%; margin: auto 0; animation: wlUp .5s cubic-bezier(.2,.9,.3,1); }
.wl-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 4px 0 10px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.wl-unlock { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 8px; margin: 20px 0 16px; }
.wl-unlock-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.wl-tool { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.wl-tool-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(242,169,0,.14); color: var(--accent); }
.wl-tool-ic svg { width: 21px; height: 21px; }
.wl-tool > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-tool b { font-size: 14px; color: var(--text); font-weight: 700; }
.wl-tool span { font-size: 12px; color: var(--dim); line-height: 1.3; }
.wl-voice { font-size: 13.5px; line-height: 1.5; color: var(--dim); margin-bottom: 22px; font-style: italic; }
.wl-voice b { color: var(--text); font-weight: 700; font-style: normal; }
/* lockup editorial "sou Futsal" (SF Pro Rounded) */
.logo-lockup {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -.035em; line-height: .82;
  color: var(--text); display: inline-block; text-align: left;
}
.wl-emblem { width: min(52vw, 190px); height: auto; margin: 0 auto 14px; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.wl-logolock { font-size: clamp(50px, 15vw, 66px); margin: 6px auto 12px; }
.ll-r1 { display: flex; align-items: center; gap: .14em; }
.ll-ball { width: .58em; height: .58em; color: var(--accent); flex: none; }
.ll-sou { color: var(--text); }
.ll-r2 { display: flex; align-items: flex-start; }
.ll-reg { font-size: .24em; font-weight: 700; letter-spacing: 0; margin: .35em 0 0 .14em; color: var(--dim); }
.wl-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: #14172B;
  background: linear-gradient(135deg, var(--accent), #FFD35A);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(242,169,0,.4);
  animation: badgePulse 2.6s ease-in-out infinite;
}
.wl-badge b { font-weight: 800; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 8px 24px rgba(242,169,0,.4); } 50% { box-shadow: 0 8px 30px rgba(242,169,0,.65); } }
.wl-congrats { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.wl-tag b { color: var(--text); font-weight: 700; }
.wl-perk {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(242,169,0,.10); border: 1px solid rgba(242,169,0,.32);
  border-radius: 14px; padding: 12px 14px; margin: 4px 0 22px;
}
.wl-perk-ic { width: 24px; height: 24px; color: var(--accent); flex: none; }
.wl-perk span:last-child { font-size: 12.8px; line-height: 1.45; color: var(--dim); }
.wl-perk b { color: var(--accent); font-weight: 700; }
@keyframes wlUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.wl-brand { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--accent); margin-bottom: 18px; }
.wl-ball { width: 46px; height: 46px; filter: drop-shadow(0 4px 14px rgba(242,169,0,.35)); }
.wl-name { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.wl-name b { color: var(--accent); }
.wl-tag { font-size: 15.5px; line-height: 1.5; color: var(--dim); margin-bottom: 20px; font-weight: 300; }
.wl-feats { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.wl-feats span { font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.wl-cta { display: flex; flex-direction: column; gap: 10px; }
.wl-ghost { background: transparent; border: none; color: var(--dim); font-size: 14px; font-weight: 600; padding: 8px; cursor: pointer; }
.wl-ghost:active { color: var(--text); }
.wl-note { font-size: 11.5px; color: var(--dim); margin-top: 20px; opacity: .8; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: calc(120px + var(--sab)); transform: translateX(-50%) translateY(8px);
  background: #232C5E; color: var(--text);
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 300; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- HUB de ferramentas ---------- */
#hub {
  position: fixed; inset: 0; z-index: 50; display: none;
  flex-direction: column; overflow-y: auto;
  background: radial-gradient(130% 80% at 50% -10%, #1E2A63 0%, var(--bg) 55%);
}
#hub.show { display: flex; }
.hub-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--sat)) 18px 6px; flex: none;
}
.hub-logo { height: 40px; width: auto; }
.hub-acct { display: flex; align-items: center; gap: 9px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; }
.hub-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #14172B; background: linear-gradient(135deg, var(--accent), #ffd77a); }
.hub-acct-name { font-size: 14px; font-weight: 700; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-body { flex: 1; padding: 14px 20px calc(30px + var(--sab)); max-width: 720px; width: 100%; margin: 0 auto; }
.hub-h1 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.hub-sub { color: var(--dim); font-size: 15px; margin-bottom: 22px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 620px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 16px 16px; text-align: left; cursor: pointer; color: var(--text);
  transition: transform .12s ease, border-color .15s, background .15s;
  min-height: 148px;
}
.tool-card:not(.soon):hover { transform: translateY(-3px); border-color: rgba(242,169,0,.5); background: var(--panel); }
.tool-card:not(.soon):active { transform: translateY(-1px) scale(.99); }
.tool-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(242,169,0,.14); color: var(--accent); margin-bottom: 4px; }
.tool-ic svg { width: 26px; height: 26px; }
.tool-name { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.tool-desc { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.tool-go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.tool-card.soon { cursor: default; }
.tool-card.soon .tool-ic { background: rgba(255,255,255,.06); color: var(--dim); }
.tool-card.soon .tool-name, .tool-card.soon .tool-desc { color: var(--dim); }
.tool-card.soon .tool-desc { text-transform: uppercase; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent); opacity: .8; }
.hub-tutorial {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.hub-tutorial:hover { border-color: rgba(242,169,0,.5); color: var(--accent); }
.hub-tutorial svg { color: var(--accent); }
/* botão home na topbar */
#btnHome { display: none; }
#btnHome.show { display: inline-flex; }

/* passos do tutorial */
.tut-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.tut-step:first-of-type { border-top: none; }
.tut-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #14172B; background: var(--accent); margin-top: 1px; }
.tut-step > div { display: flex; flex-direction: column; gap: 2px; }
.tut-step b { font-size: 14.5px; color: var(--text); }
.tut-step span { font-size: 13px; color: var(--dim); line-height: 1.45; }

/* Bola Parada — seletor de cenário */
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 15px; padding: 14px 14px; cursor: pointer; color: var(--text); transition: transform .1s, border-color .15s, background .15s; }
.bp-opt:hover { border-color: rgba(242,169,0,.5); background: var(--panel); }
.bp-opt:active { transform: scale(.98); }
.bp-opt b { font-size: 14.5px; font-weight: 750; }
.bp-opt span { font-size: 11.5px; color: var(--dim); line-height: 1.3; }

/* selos do hub — vidro discreto, sem ouro gritante */
.tool-badge { position: absolute; top: 11px; right: 11px; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tool-badge.free { background: rgba(255,255,255,.07); color: var(--dim); border: 1px solid var(--line); }
.tool-badge.titular { background: rgba(242,169,0,.10); color: var(--accent); border: 1px solid rgba(242,169,0,.32); }
.tool-card.pro .tool-ic { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.tool-card.pro:hover .tool-ic { background: rgba(242,169,0,.14); color: var(--accent); }
.tool-card.pro:hover { border-color: rgba(242,169,0,.4); background: var(--panel); transform: translateY(-3px); }
.titular-go { color: var(--accent) !important; display: inline-flex; align-items: center; gap: 5px; }
.titular-go::before { content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor; -webkit-mask: var(--lock) center/contain no-repeat; mask: var(--lock) center/contain no-repeat; }
:root { --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
/* CTA do time titular — vidro com anel dourado, não pílula de ouro */
.hub-pro-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 18px;
  background: rgba(242,169,0,.08); color: var(--accent); border: 1px solid rgba(242,169,0,.36);
  border-radius: 15px; padding: 15px; font-size: 15px; font-weight: 750; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .15s, border-color .15s; }
.hub-pro-cta:hover { background: rgba(242,169,0,.14); border-color: rgba(242,169,0,.55); }
.hub-pro-cta:active { transform: scale(.99); }
/* botão do paywall — vidro claro, sofisticado */
.pw-btn { width: 100%; padding: 16px; border-radius: 15px; cursor: pointer; font-size: 16px; font-weight: 750;
  color: #0B1020; background: linear-gradient(180deg, #fff, #f0f2fa); border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .1s, filter .15s; }
.pw-btn:hover { filter: brightness(1.02); }
.pw-btn:active { transform: scale(.99); }

/* checkbox de consentimento LGPD */
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.consent span { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.consent a { color: var(--accent); font-weight: 600; }

/* ---------- Paywall PRO ---------- */
#paywall { position: fixed; inset: 0; z-index: 130; display: none; overflow-y: auto; background: var(--bg); }
#paywall.show { display: block; }
.pw-hero { position: absolute; inset: 0; background: url('../assets/hero-bg.webp') center/cover no-repeat; }
.pw-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,12,26,.55) 0%, rgba(9,12,26,.72) 42%, rgba(9,12,26,.94) 78%, var(--bg) 100%); }
.pw-close { position: absolute; top: calc(12px + var(--sat)); right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,23,43,.6); color: #fff; font-size: 16px; cursor: pointer; backdrop-filter: blur(6px); }
.pw-inner { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; padding: 32vh 24px calc(30px + var(--sab)); min-height: 100%; }
.pw-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); background: rgba(242,169,0,.14); border: 1px solid rgba(242,169,0,.4); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.pw-badge b { color: var(--accent); }
.pw-h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 10px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.pw-sub { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); margin-bottom: 22px; }
.pw-tools { display: flex; flex-direction: column; gap: 12px; background: rgba(20,23,43,.5); border: 1px solid var(--line); border-radius: 20px; padding: 16px; backdrop-filter: blur(8px); margin-bottom: 18px; }
.pw-tool { display: flex; align-items: flex-start; gap: 11px; }
.pw-check { flex: none; width: 22px; height: 22px; border-radius: 50%; position: relative; margin-top: 1px;
  background: rgba(242,169,0,.14); border: 1px solid rgba(242,169,0,.4); }
.pw-check::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); }
.pw-badge { text-transform: uppercase; }
.pw-tool > div { display: flex; flex-direction: column; gap: 1px; }
.pw-tool b { font-size: 14.5px; font-weight: 750; }
.pw-tool span { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.pw-voice { font-size: 13.5px; font-style: italic; color: rgba(255,255,255,.7); line-height: 1.5; margin-bottom: 22px; }
.pw-cta-wrap { position: sticky; bottom: 0; }
.pw-price { text-align: center; font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.pw-price b { color: var(--accent); }
.pw-later { display: block; width: 100%; background: none; border: none; color: var(--dim); font-size: 13.5px; font-weight: 600; padding: 12px; cursor: pointer; }

/* ---------- telas de ferramenta (tv = tool view) ---------- */
#toolView { position: fixed; inset: 0; z-index: 55; display: none; flex-direction: column; overflow-y: auto;
  background: radial-gradient(130% 80% at 50% -10%, #1E2A63 0%, var(--bg) 55%); }
#toolView.show { display: flex; }
.tv-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--sat)) 16px 10px; flex: none; }
.tv-head { display: flex; flex-direction: column; }
.tv-head b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.tv-head span { font-size: 12.5px; color: var(--dim); }
.tv-body { flex: 1; padding: 8px 18px calc(30px + var(--sab)); max-width: 640px; width: 100%; margin: 0 auto; }
.tv-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.tv-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tv-actions .chip { flex: 1; min-width: 110px; }
.tv-total { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--accent); text-align: center; }
.tv-empty { color: var(--dim); font-size: 14px; text-align: center; padding: 14px 0; }
/* montador */
.mt-bloco { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.mt-bloco-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.mt-move button { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 30px; height: 30px; margin-left: 4px; cursor: pointer; }
.mt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.mt-row select { flex: 1; }
.mt-row input[type=number] { width: 70px; text-align: center; }
.mt-min { font-size: 12.5px; color: var(--dim); }
.mt-bloco input[type=text], .mt-bloco textarea, .mt-row select, .mt-row input, .ev-new input, .tv-filtros select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; outline: none; width: 100%; font-family: inherit; }
.mt-bloco input[type=text] { margin-bottom: 8px; }
.mt-bloco textarea { resize: vertical; }
.mt-bloco input:focus, .mt-bloco textarea:focus, .ev-new input:focus { border-color: var(--accent); }
/* exercícios */
.tv-filtros { display: flex; gap: 8px; margin-bottom: 14px; }
.ex-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.ex-tags { display: flex; gap: 6px; margin-bottom: 7px; }
.ex-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--dim); border: 1px solid var(--line); }
.ex-tag.idade { background: rgba(242,169,0,.10); color: var(--accent); border-color: rgba(242,169,0,.3); }
.ex-card b { font-size: 15px; }
.ex-card p { font-size: 13px; color: var(--dim); line-height: 1.5; margin-top: 4px; }
/* evolução */
.ev-new { display: flex; gap: 8px; margin-bottom: 14px; }
.ev-new .chip { flex: none; }
.ev-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: none; }
.ev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-info b { font-size: 14.5px; }
.ev-info span { font-size: 12px; color: var(--dim); }
.ev-aval b { font-size: 15.5px; display: block; margin-bottom: 10px; }
.ev-fund { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ev-fund > span:first-child { font-size: 14.5px; font-weight: 600; }
.ev-stars button { background: none; border: none; color: var(--accent); font-size: 24px; cursor: pointer; padding: 2px 3px; }
/* Titular logado: sem cadeado */
.tool-card.unlocked .titular-go::before { content: none; }
.tool-card.unlocked .tool-ic { background: rgba(242,169,0,.14); color: var(--accent); }

/* evolução do atleta — ficha + avaliação */
.ev-cad-row { display: flex; gap: 8px; margin: 10px 0; }
.ev-cad-row label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--dim); font-weight: 600; }
.ev-cad-row input, .ev-cad-row select, .ev-stats input { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 10px; font-size: 15px; outline: none; width: 100%; font-family: inherit; }
.ev-cad > input { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 13px; font-size: 16px; outline: none; width: 100%; }
.ev-aval-h { font-size: 17px; }
.ev-legenda { font-size: 11.5px; color: var(--dim); line-height: 1.4; margin: 6px 0 14px; }
.ev-stats { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.ev-stats > b { font-size: 12.5px; color: var(--dim); }
.ev-stats-row { display: flex; gap: 8px; margin-top: 8px; }
.ev-stats-row label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--dim); }
.ev-dim { margin-bottom: 16px; }
.ev-dim h3 { font-size: 14px; font-weight: 750; color: var(--accent); margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.ev-fund-l { display: flex; flex-direction: column; }
.ev-desc { font-size: 11px; color: var(--accent); font-style: normal; min-height: 13px; }
.ev-obs { display: block; font-size: 12.5px; color: var(--dim); font-weight: 600; margin-top: 6px; }
.ev-obs textarea { width: 100%; margin-top: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; outline: none; }
.ev-obs textarea:focus, .ev-stats input:focus, .ev-cad-row input:focus, .ev-cad-row select:focus, .ev-cad > input:focus { border-color: var(--accent); }
