/* ── TutorFlow Free Mode Styles ─────────────────────────────────────────── */

/* ── Upgrade modal ── */
#tfUpgradeModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tfUpgradeModal.hidden { display: none; }

.tf-upgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,17,23,0.72);
  backdrop-filter: blur(4px);
}

.tf-upgrade-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.tf-upgrade-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.tf-upgrade-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1f2e;
  margin: 0 0 10px;
}

.tf-upgrade-body {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 22px;
}

.tf-upgrade-btn {
  display: block;
  background: #c8a96e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  padding: 14px 24px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.tf-upgrade-btn:hover { background: #b8944f; }

.tf-upgrade-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 12px;
}
.tf-upgrade-close:hover { color: #4a5568; }

/* ── Locked desk slots ── */
.tf-locked {
  position: relative;
  pointer-events: none;
  opacity: 0.45;
  filter: blur(1px);
}
.tf-locked .tf-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  pointer-events: all;
  cursor: pointer;
  z-index: 2;
  border-radius: inherit;
  background: rgba(255,255,255,0.18);
  opacity: 1;
  filter: none;
}

/* ── Tour overlay ── */
#tfTourOverlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  pointer-events: none;
}
#tfTourOverlay.hidden { display: none; }

.tf-tour-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tf-tour-bubble {
  position: absolute;
  width: 300px;
  background: #1a1f2e;
  color: #fff;
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  pointer-events: all;
  z-index: 2;
}

.tf-tour-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: none;
  border-bottom-color: #1a1f2e;
}

.tf-tour-counter {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8a96e;
  margin-bottom: 6px;
}

.tf-tour-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tf-tour-text {
  font-size: 0.88rem;
  color: #c9d1e0;
  line-height: 1.5;
  margin-bottom: 16px;
}

.tf-tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tf-tour-skip {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 0;
}
.tf-tour-skip:hover { color: #9ca3af; }

.tf-tour-next {
  background: #c8a96e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.tf-tour-next:hover { background: #b8944f; }

/* ── Tour highlight ── */
.tf-tour-highlight {
  outline: 3px solid #c8a96e !important;
  outline-offset: 4px !important;
  border-radius: 8px;
  position: relative;
  z-index: 8889 !important;
}

/* ── Free mode banner ── */
.tf-free-banner {
  background: linear-gradient(90deg, #c8a96e, #e8c97e);
  color: #1a1f2e;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tf-free-banner a {
  color: #1a1f2e;
  text-decoration: underline;
  white-space: nowrap;
}
