/* ============================================================
   winFocus Gamification — Phase 1 Styles
   BEM-ish, wf- prefixed. Mobile-first.
   ============================================================ */

/* ------------------------------------------------------------------
   Nav badges: streak flame + points star
   ------------------------------------------------------------------ */

.wf-gam-badges,
#wf-gam-badges {
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  user-select: none;
  position: relative;
}

.wf-gam-streak,
.wf-gam-points {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: default;
  transition: all 0.3s ease;
}

.wf-gam-streak {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
}

.wf-gam-streak--active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.wf-gam-streak--hot {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.wf-gam-streak--hot .fa-fire {
  animation: wf-flame-pulse 1.5s ease-in-out infinite;
}

.wf-gam-streak--fire {
  color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.wf-gam-streak--fire .fa-fire {
  animation: wf-flame-pulse 0.8s ease-in-out infinite;
}

.wf-gam-points {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.wf-gam-points .fa-star {
  color: #f59e0b;
  font-size: 0.7rem;
}

@keyframes wf-flame-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ------------------------------------------------------------------
   Streak/points popup — opens from the nav badges instead of
   navigating to the dashboard. JS sets top/right at open time,
   same pattern as .wf-hdr-slider-panel.
   ------------------------------------------------------------------ */

.wf-gam-nav-popup {
  position: fixed;
  z-index: 1050;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 16px;
  width: 260px;
}

.wf-gam-nav-popup__row {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.wf-gam-nav-popup__stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.wf-gam-nav-popup__stat-label {
  font-size: 0.68rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wf-gam-nav-popup__divider {
  margin: 12px 0;
  border-color: #f3f4f6;
}

.wf-gam-nav-popup__level {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.wf-gam-nav-popup__level-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-gam-nav-popup__level-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111827;
}

.wf-gam-nav-popup__level-pts {
  font-size: 0.75rem;
  color: #6b7280;
}

.wf-gam-nav-popup__progress {
  height: 6px;
  background: rgba(124, 58, 237, 0.1);
}

.wf-gam-nav-popup__progress-label {
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 4px;
}

.wf-gam-nav-popup__link {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}
.wf-gam-nav-popup__link:hover {
  color: #6d28d9;
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Header Focus/Guide controls
   ------------------------------------------------------------------ */

.wf-hdr-focus-toggle,
.wf-hdr-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s;
}
.wf-hdr-focus-toggle span,
.wf-hdr-guide-toggle span {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
}
.wf-hdr-focus-toggle:hover { background: rgba(99, 102, 241, 0.12); }
.wf-hdr-guide-toggle:hover { background: rgba(6, 182, 212, 0.12); }

.wf-hdr-slider-panel {
  position: fixed; /* JS sets top/right at open time — never shifts on layout change */
  z-index: 1050;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 14px 18px;
  min-width: 220px;
}

.wf-hdr-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wf-hdr-slider-row:last-child { margin-bottom: 0; }
.wf-hdr-slider-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  min-width: 55px;
  margin: 0;
}
.wf-hdr-slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: #6366f1;
}
.wf-hdr-slider-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: #111827;
}

/* ------------------------------------------------------------------
   Focus Timer — global nav chip
   ------------------------------------------------------------------ */
.wf-timer-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  border: 1.5px solid transparent; transition: all .15s;
  user-select: none; position: relative;
}
.wf-timer-chip--idle {
  color: #9ca3af; border-color: #e5e7eb; background: #f9fafb;
}
.wf-timer-chip--idle:hover { border-color: #7c3aed; color: #7c3aed; background: #f5f3ff; }
.wf-timer-chip--hidden {
  color: #9ca3af; border-color: transparent; background: transparent; padding: 4px 6px;
}
.wf-timer-chip--running {
  color: #7c3aed; border-color: #c4b5fd; background: #f5f3ff;
  animation: timer-tick-border 1s step-end infinite;
}
.wf-timer-chip--paused { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.wf-timer-chip--done {
  color: #d97706; border-color: #fde68a; background: #fffbeb;
  animation: pomo-pulse 1s ease-in-out infinite;
}
@keyframes timer-tick-border { 0%,100%{border-color:#c4b5fd} 50%{border-color:#7c3aed} }
.wf-timer-chip-label {
  display: inline-block;
  min-width: 3.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: opacity .2s;
}
.wf-timer-chip--idle .wf-timer-chip-label { min-width: auto; }
.wf-timer-chip--hidden .wf-timer-chip-label { display: none; }
.wf-timer-chip-hide {
  font-size: .7rem; color: #c4b5fd; margin-left: 2px; opacity: 0;
  transition: opacity .15s; line-height: 1;
}
.wf-timer-chip:hover .wf-timer-chip-hide { opacity: 1; }
.wf-timer-chip--hidden .wf-timer-chip-hide { display: none; }

.wf-timer-panel {
  position: fixed; z-index: 1060;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 16px 18px; width: 260px;
}
.wf-timer-panel__task {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 7px;
  padding: 6px 10px; font-size: .82rem; color: #374151; margin-bottom: 12px;
  outline: none;
}
.wf-timer-panel__task:focus { border-color: #7c3aed; }
.wf-timer-panel__display {
  font-size: 2.2rem; font-weight: 900; color: #1f2937;
  text-align: center; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  margin-bottom: 10px; line-height: 1;
}
.wf-timer-panel__display.running { color: #7c3aed; }
.wf-timer-panel__display.done { color: #d97706; }
.wf-timer-times { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.wf-timer-time {
  flex: 0 0 auto; padding: 4px 8px; border: 1.5px solid #e5e7eb;
  border-radius: 6px; font-size: .75rem; font-weight: 700; color: #6b7280;
  background: #fff; cursor: pointer; transition: all .1s;
}
.wf-timer-time:hover { border-color: #7c3aed; color: #7c3aed; }
.wf-timer-time.is-selected { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.wf-timer-btns { display: flex; gap: 6px; }
.wf-timer-btn {
  flex: 1; padding: 7px; border: none; border-radius: 7px; font-size: .78rem;
  font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.wf-timer-btn--primary { background: linear-gradient(135deg,#7c3aed,#6366f1); color: #fff; }
.wf-timer-btn--primary:hover { opacity: .88; }
.wf-timer-btn--secondary { background: #f3f4f6; color: #374151; }
.wf-timer-btn--secondary:hover { background: #e5e7eb; }

/* ------------------------------------------------------------------
   Check-in modal
   ------------------------------------------------------------------ */

.wf-checkin {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.wf-checkin .modal-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px 12px;
}

.wf-checkin .modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
}

.wf-checkin .modal-header .close:hover {
  opacity: 1;
}

.wf-checkin__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  text-align: center;
}

/* Energy picker — bolt icons */
.wf-checkin__energy {
  gap: 6px;
}

.wf-checkin__energy-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #d1d5db;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wf-checkin__energy-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  transform: scale(1.1);
}

.wf-checkin__energy-btn.is-selected {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #f59e0b;
}

/* Goal movement buttons */
.wf-checkin__movement {
  gap: 8px;
}

.wf-checkin__move-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.wf-checkin__move-btn i {
  font-size: 1.2rem;
}

.wf-checkin__move-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.wf-checkin__move-btn.is-selected {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  font-weight: 600;
}

.wf-checkin__move-btn[data-value="yes"].is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.wf-checkin__move-btn[data-value="no"].is-selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

/* ------------------------------------------------------------------
   Points toast — floats near nav, fades up
   ------------------------------------------------------------------ */

.wf-points-toast {
  position: fixed;
  top: 60px;
  right: 120px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ------------------------------------------------------------------
   Celebration overlay
   ------------------------------------------------------------------ */

.wf-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wf-celebration--confetti {
  background: rgba(0, 0, 0, 0.3);
}

.wf-celebration--fireworks {
  background: rgba(0, 0, 0, 0.5);
}

.wf-celebration--full_screen {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(59, 130, 246, 0.9));
}

.wf-celebration--badge_reveal {
  background: rgba(0, 0, 0, 0.4);
}

.wf-celebration--subtle {
  background: transparent;
  pointer-events: none;
}

.wf-celebration__content {
  text-align: center;
  color: #fff;
  max-width: 400px;
  padding: 32px;
  animation: wf-celebrate-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wf-celebration__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.wf-celebration--full_screen .wf-celebration__icon {
  font-size: 4.5rem;
}

.wf-celebration__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.wf-celebration__msg {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

@keyframes wf-celebrate-pop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------------
   Confetti canvas
   ------------------------------------------------------------------ */

.wf-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Mobile (< 576px)
   ------------------------------------------------------------------ */

@media (max-width: 575.98px) {
  .wf-gam-badges {
    gap: 4px;
    font-size: 0.7rem;
  }

  .wf-gam-streak,
  .wf-gam-points {
    padding: 2px 6px;
  }

  .wf-checkin__energy-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .wf-checkin__move-btn {
    padding: 8px 12px;
    min-width: 65px;
    font-size: 0.75rem;
  }

  .wf-points-toast {
    right: 16px;
    top: 50px;
  }

  .wf-celebration__content {
    padding: 24px 16px;
  }

  .wf-celebration__title {
    font-size: 1.25rem;
  }
}

/* ==============================================================
   Phase 2 — Gamification Panel, Badge Gallery, Level, Nudges
   ============================================================== */

/* ------------------------------------------------------------------
   Panel sections
   ------------------------------------------------------------------ */

.wf-gam-panel {
  max-width: 800px;
}

.wf-gam-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------------
   Level card + progress
   ------------------------------------------------------------------ */

.wf-gam-level-card {
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 16px;
}

.wf-gam-level-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wf-gam-level-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.wf-gam-progress-bar {
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ------------------------------------------------------------------
   Level roadmap
   ------------------------------------------------------------------ */

.wf-gam-level-roadmap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-gam-level-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.wf-gam-level-row--current {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-weight: 600;
}

.wf-gam-level-row--achieved {
  opacity: 0.7;
}

.wf-gam-level-row--achieved .wf-gam-level-row__num {
  color: #10b981;
}

.wf-gam-level-row--locked {
  opacity: 0.5;
}

.wf-gam-level-row__num {
  font-weight: 700;
  width: 20px;
  text-align: center;
  color: #6b7280;
}

.wf-gam-level-row__title {
  font-weight: 600;
  min-width: 100px;
  color: #374151;
}

.wf-gam-level-row__pts {
  font-size: 0.75rem;
}

.wf-gam-level-row__unlock {
  font-size: 0.75rem;
  color: #7c3aed;
  margin-left: auto;
}

.wf-gam-level-row__unlock .fa-lock-open {
  font-size: 0.65rem;
  margin-right: 2px;
}

/* ------------------------------------------------------------------
   Stat cards (streak, freezes)
   ------------------------------------------------------------------ */

.wf-gam-stat-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  min-width: 100px;
}

.wf-gam-stat-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
}

.wf-gam-stat-card__label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

/* Comeback banner */
.wf-gam-comeback-banner {
  margin-top: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #92400e;
}

.wf-gam-comeback-banner .fa-bolt {
  color: #f59e0b;
}

/* ------------------------------------------------------------------
   Badge gallery
   ------------------------------------------------------------------ */

.wf-gam-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.wf-gam-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.wf-gam-badge--locked {
  opacity: 0.35;
  filter: grayscale(1);
}

.wf-gam-badge--locked .wf-gam-badge-item__icon {
  color: #9ca3af;
}

.wf-gam-badge--earned {
  opacity: 1;
  filter: none;
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff, #fff);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.wf-gam-badge--earned .wf-gam-badge-item__icon {
  color: #7c3aed;
}

.wf-gam-badge-item__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.wf-gam-badge-item__title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
}

/* ------------------------------------------------------------------
   Nudges
   ------------------------------------------------------------------ */

.wf-gam-nudge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: opacity 0.3s;
}

.wf-gam-nudge--gentle {
  border-left: 3px solid #6366f1;
}

.wf-gam-nudge--encouraging {
  border-left: 3px solid #10b981;
}

.wf-gam-nudge--urgent {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.wf-gam-nudge__icon {
  font-size: 1.2rem;
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 2px;
}

.wf-gam-nudge--gentle .wf-gam-nudge__icon { color: #6366f1; }
.wf-gam-nudge--encouraging .wf-gam-nudge__icon { color: #10b981; }
.wf-gam-nudge--urgent .wf-gam-nudge__icon { color: #f59e0b; }

.wf-gam-nudge__body {
  flex: 1;
}

.wf-gam-nudge__title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 2px;
}

.wf-gam-nudge__msg {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.wf-gam-nudge__dismiss {
  color: #9ca3af;
  padding: 2px;
  flex-shrink: 0;
}

.wf-gam-nudge__dismiss:hover {
  color: #ef4444;
}

/* ------------------------------------------------------------------
   Phase 2 mobile
   ------------------------------------------------------------------ */

@media (max-width: 575.98px) {
  .wf-gam-badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 6px;
  }

  .wf-gam-badge-item {
    padding: 8px 4px;
  }

  .wf-gam-badge-item__icon {
    font-size: 1.2rem;
  }

  .wf-gam-badge-item__title {
    font-size: 0.65rem;
  }

  .wf-gam-level-row {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .wf-gam-level-row__unlock {
    display: none;
  }

  .wf-gam-stat-card {
    padding: 8px 12px;
    min-width: 80px;
  }

  .wf-gam-stat-card__value {
    font-size: 1.2rem;
  }

  .wf-gam-nudge {
    padding: 10px;
    gap: 8px;
  }
}

/* ==============================================================
   Rewards Page (/winfocus/rewards)
   ============================================================== */

.wf-rewards-page {
  max-width: 1000px;
}

.wf-rw-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

/* Level hero */
.wf-rw-level-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.wf-rw-level-hero__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wf-rw-level-hero__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1f2937;
}

.wf-rw-level-hero__points {
  color: #6b7280;
  font-size: 0.9rem;
}

.wf-rw-level-hero__stats {
  gap: 16px;
}

.wf-rw-mini-stat {
  text-align: center;
}

.wf-rw-mini-stat__val {
  font-size: 1.1rem;
  font-weight: 700;
}

.wf-rw-mini-stat__label {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Level table */
.wf-rw-level-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  border-top: none;
}

.wf-rw-level-table--current {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(59, 130, 246, 0.08));
  font-weight: 600;
}

.wf-rw-level-table--done {
  opacity: 0.65;
}

.wf-rw-level-table--locked {
  opacity: 0.45;
}

/* Earn tables */
.wf-rw-earn-table td {
  padding: 4px 0;
  font-size: 0.85rem;
  border: none;
}

/* Reward cards */
.wf-rw-reward-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  height: 100%;
  transition: all 0.2s ease;
}

.wf-rw-reward-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.wf-rw-reward-card--temporary {
  border-color: #fbbf24;
  background: #fffbeb;
}

.wf-rw-reward-card__icon {
  font-size: 1.5rem;
  color: #7c3aed;
  margin-bottom: 8px;
}

.wf-rw-reward-card__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1f2937;
  margin-bottom: 4px;
}

.wf-rw-reward-card__desc {
  font-size: 0.75rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.wf-rw-reward-card__credit {
  font-weight: 700;
  color: #10b981;
  font-size: 0.85rem;
}

.wf-rw-reward-card__temp {
  color: #92400e;
  margin-top: 4px;
}

.wf-rw-reward-card__type {
  margin-top: 6px;
}

.wf-rw-reward-card__type .badge {
  font-size: 0.65rem;
  font-weight: 400;
}

/* Points → Credits flow diagram */
.wf-rw-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0;
}

.wf-rw-flow__step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
}

.wf-rw-flow__icon {
  font-size: 1.2rem;
  color: #7c3aed;
}

.wf-rw-flow__arrow {
  color: #d1d5db;
  font-size: 0.9rem;
}

/* Rewards page mobile */
@media (max-width: 575.98px) {
  .wf-rw-level-hero {
    padding: 14px 16px;
    gap: 12px;
  }

  .wf-rw-level-hero__badge {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .wf-rw-level-hero__title {
    font-size: 1.1rem;
  }

  .wf-rw-level-hero__stats {
    display: flex !important;
    width: 100%;
    justify-content: space-around;
    margin-top: 8px;
  }

  .wf-rw-flow {
    flex-direction: column;
  }

  .wf-rw-flow__arrow {
    transform: rotate(90deg);
  }
}

/* ------------------------------------------------------------------
   Focus-level header hiding (site-wide, mirrors winfocus.css rules)
   ------------------------------------------------------------------ */
body.wf-level-2  .wf-hdr-hide--2up { display: none !important; }
body.wf-level-4  .wf-hdr-hide--4up { display: none !important; }
body.wf-level-6  .wf-hdr-hide--6up { display: none !important; }
body.wf-level-7  .wf-hdr-hide--7up { display: none !important; }
body.wf-level-8  .wf-hdr-hide--8up { display: none !important; }
body.wf-level-9  .wf-hdr-hide--9up { display: none !important; }
body.wf-level-10 .wf-hdr-hide--10up { display: none !important; }

/* Profile dropdown — brand-consistent hover */
#main-nav .dropdown-menu .dropdown-item:hover,
#main-nav .dropdown-menu .dropdown-item:focus {
  background-color: #eef2ff !important;
  color: #4F46E5 !important;
}
