/* FBTL progress engine — next step, baseline, academy progress */

.fbtl-nextbar {
  position: sticky;
  top: 72px;
  z-index: 1200;
  background: #092242;
  color: #fff;
  border-bottom: 3px solid #c9db00;
  box-shadow: 0 8px 24px rgba(9, 34, 66, 0.18);
}

.fbtl-nextbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fbtl-nextbar-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dce85c;
  font-weight: 700;
}

.fbtl-nextbar-copy {
  flex: 1;
  min-width: 180px;
  font-size: 14px;
  font-weight: 600;
}

.fbtl-nextbar-copy small {
  display: block;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

.fbtl-nextbar-cta {
  display: inline-flex;
  align-items: center;
  background: #c9db00;
  color: #092242 !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none !important;
}

.fbtl-nextbar-cta:hover {
  background: #e4f15a;
}

.fbtl-nextbar-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.fbtl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 34, 66, 0.55);
  z-index: 30000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fbtl-overlay.is-open {
  display: flex;
}

.fbtl-overlay-box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fbtl-overlay-box h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 32px;
  margin: 0 0 8px;
  color: #092242;
}

.fbtl-overlay-box .fbtl-overlay-lead {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 18px;
}

.fbtl-q {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.fbtl-q p {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.fbtl-scale {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fbtl-scale label {
  flex: 1;
  min-width: 52px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
}

.fbtl-scale input {
  display: block;
  margin: 0 auto 4px;
}

.fbtl-overlay-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.fbtl-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.fbtl-btn-green {
  background: #00ab3b;
  color: #fff;
}

.fbtl-btn-navy {
  background: #092242;
  color: #fff;
}

.fbtl-btn-ghost {
  background: #f8fafc;
  color: #092242;
  border: 1px solid #e2e8f0;
}

.fbtl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #092242;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 31000;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
}

.fbtl-toast.is-on {
  display: block;
}

.ta-week.is-done {
  outline: 2px solid #00ab3b;
}

.ta-week.is-now {
  outline: 2px solid #c9db00;
}

.ta-week-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00ab3b;
}

.fbtl-stage-panel {
  max-width: 720px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(9, 34, 66, 0.08);
}

.fbtl-stage-panel h3 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  color: #092242;
}

.fbtl-stage-panel p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.wn-live-card {
  border: 2px solid #c9db00 !important;
}

.emotion-pill.is-on,
.emotion-pill[data-selected] {
  background: #092242 !important;
  color: #fff !important;
  border-color: #092242 !important;
}

@media (max-width: 767px) {
  .fbtl-nextbar {
    top: auto;
    bottom: 0;
    border-bottom: 0;
    border-top: 3px solid #c9db00;
  }
  .fbtl-toast {
    left: 16px;
    right: 16px;
    bottom: 88px;
  }
}
