/* ============================================================
   HUNTER STATUS WINDOW — Solo Leveling-style player panel
   Shown on home page (replaces "Today Dungeon" header)
   ============================================================ */

.hs-window {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.06), rgba(123, 45, 255, 0.04));
  border: 1px solid rgba(0, 246, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.15), inset 0 0 30px rgba(0, 246, 255, 0.04);
  font-family: 'Rajdhani', sans-serif;
  color: #d8e6ff;
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0, 100% 14px,
    100% calc(100% - 14px), calc(100% - 14px) 100%,
    14px 100%, 0 calc(100% - 14px), 0 14px
  );
}

.hs-window::before,
.hs-window::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
}
.hs-window::before {
  top: 4px; left: 4px;
  border-top: 2px solid #00f6ff;
  border-left: 2px solid #00f6ff;
}
.hs-window::after {
  bottom: 4px; right: 4px;
  border-bottom: 2px solid #7b2dff;
  border-right: 2px solid #7b2dff;
}

.hs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #00f6ff;
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.7);
  margin-bottom: 4px;
}
.hs-header span:first-child::before { content: '◆ '; }
.hs-header .hs-greeting {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.hs-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 246, 255, 0.6), transparent);
  margin-bottom: 14px;
}

/* Rank + Level row */
.hs-rank-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
.hs-rank-badge {
  position: relative;
  width: 64px; height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 246, 255, 0.18), rgba(0, 246, 255, 0.04));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border: 1px solid #00f6ff;
}
.hs-rank-badge.rank-D { background: radial-gradient(circle, rgba(0, 246, 255, 0.18), rgba(0, 246, 255, 0.04)); border-color: #00f6ff; }
.hs-rank-badge.rank-C { background: radial-gradient(circle, rgba(123, 45, 255, 0.18), rgba(123, 45, 255, 0.04)); border-color: #7b2dff; }
.hs-rank-badge.rank-B { background: radial-gradient(circle, rgba(255, 100, 200, 0.18), rgba(255, 100, 200, 0.04)); border-color: #ff64c8; }
.hs-rank-badge.rank-A { background: radial-gradient(circle, rgba(255, 51, 102, 0.18), rgba(255, 51, 102, 0.04)); border-color: #ff3366; }
.hs-rank-badge.rank-S { background: radial-gradient(circle, rgba(255, 215, 0, 0.22), rgba(255, 215, 0, 0.08)); border-color: #ffd700; box-shadow: 0 0 24px rgba(255, 215, 0, 0.5); }

.hs-rank-letter {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 14px currentColor;
}
.hs-rank-label {
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.hs-level-info {
  flex: 1;
}
.hs-level-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  margin-bottom: 6px;
}
.hs-level-num {
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 246, 255, 0.7);
}
.hs-level-num::before {
  content: 'LV ';
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.15em;
  color: #00f6ff;
}
.hs-xp-text {
  font-size: 11px;
  color: #00f6ff;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.hs-xp-bar {
  position: relative;
  height: 6px;
  background: rgba(0, 246, 255, 0.08);
  border: 1px solid rgba(0, 246, 255, 0.3);
  overflow: hidden;
}
.hs-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f6ff, #7b2dff);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.6);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stats grid (STR/AGI/STA/INT) */
.hs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px dashed rgba(0, 246, 255, 0.18);
  border-bottom: 1px dashed rgba(0, 246, 255, 0.18);
}
.hs-stat {
  text-align: center;
  font-family: 'Orbitron', monospace;
}
.hs-stat-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(0, 246, 255, 0.85);
}
.hs-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 246, 255, 0.6);
  line-height: 1.1;
}
.hs-stat-bar {
  height: 3px;
  background: rgba(0, 246, 255, 0.12);
  margin-top: 4px;
  overflow: hidden;
}
.hs-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f6ff, #7b2dff);
  box-shadow: 0 0 6px rgba(0, 246, 255, 0.5);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Buffs / active effects */
.hs-buffs-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00ffa3;
  text-shadow: 0 0 6px rgba(0, 255, 163, 0.5);
  margin-bottom: 6px;
}
.hs-buffs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.hs-buff {
  font-family: 'Orbitron', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  background: rgba(0, 255, 163, 0.06);
  border: 1px solid rgba(0, 255, 163, 0.4);
  color: #a8ffd6;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.hs-buff.danger {
  background: rgba(255, 51, 102, 0.06);
  border-color: rgba(255, 51, 102, 0.4);
  color: #ffadc0;
}
.hs-buff.gold {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffe680;
}

/* Skills row — POWERFUL Solo Leveling style */
.hs-skills-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #7b2dff;
  text-shadow: 0 0 6px rgba(123, 45, 255, 0.6);
  margin-bottom: 8px;
}
.hs-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}
.hs-skill {
  position: relative;
  padding: 14px 6px 10px;
  min-height: 92px;
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 45, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(8, 18, 38, 0.85), rgba(15, 25, 50, 0.6));
  border: 1px solid rgba(123, 45, 255, 0.35);
  text-align: center;
  font-family: 'Orbitron', monospace;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 0 1px rgba(123, 45, 255, 0.12) inset;
}
.hs-skill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7b2dff, transparent);
  box-shadow: 0 0 8px #7b2dff;
}
.hs-skill::after {
  content: '';
  position: absolute;
  top: 8px; left: 8px;
  width: 8px; height: 8px;
  border-top: 1px solid rgba(123, 45, 255, 0.7);
  border-left: 1px solid rgba(123, 45, 255, 0.7);
  pointer-events: none;
}
.hs-skill:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 45, 255, 0.32), transparent 60%),
    linear-gradient(180deg, rgba(15, 25, 50, 0.95), rgba(20, 35, 70, 0.8));
  border-color: #7b2dff;
  box-shadow:
    0 0 0 1px rgba(123, 45, 255, 0.4) inset,
    0 0 24px rgba(123, 45, 255, 0.6);
  transform: translateY(-2px);
}
.hs-skill.locked {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px),
    rgba(8, 18, 38, 0.5);
  border: 1px dashed rgba(120, 120, 120, 0.3);
  cursor: not-allowed;
  filter: brightness(0.7);
}
.hs-skill.locked::before { background: linear-gradient(90deg, transparent, rgba(120,120,120,0.4), transparent); box-shadow: none; }
.hs-skill.locked::after { border-color: rgba(120,120,120,0.4); }

.hs-skill-icon-frame {
  width: 38px; height: 38px;
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(123, 45, 255, 0.25), rgba(123, 45, 255, 0.05));
  border: 1px solid rgba(123, 45, 255, 0.6);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  position: relative;
}
.hs-skill.locked .hs-skill-icon-frame {
  background: radial-gradient(circle, rgba(120,120,120,0.18), transparent);
  border-color: rgba(120,120,120,0.3);
}
.hs-skill-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(123, 45, 255, 0.7));
}
.hs-skill.locked .hs-skill-icon { filter: grayscale(1) brightness(0.6); }
.hs-skill-name {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(123, 45, 255, 0.6);
}
.hs-skill.locked .hs-skill-name { color: rgba(255,255,255,0.4); text-shadow: none; }
.hs-skill-lvl {
  position: absolute;
  top: 4px; right: 6px;
  font-size: 8px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
  background: rgba(2, 6, 17, 0.7);
  padding: 1px 4px;
  border: 1px solid rgba(255, 215, 0, 0.5);
}
.hs-skill-lock-icon {
  position: absolute;
  bottom: 4px; right: 6px;
  font-size: 9px;
  color: rgba(255, 51, 102, 0.7);
}

/* ============================================================
   ACTIVITY LOG — system feed
   ============================================================ */
.al-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(8, 18, 38, 0.5);
  border: 1px solid rgba(0, 246, 255, 0.1);
  border-left: 2px solid var(--sl-cyan-dim, rgba(0,246,255,0.4));
  margin-bottom: 6px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.2s;
}
.al-row:hover {
  background: rgba(8, 18, 38, 0.8);
  border-left-color: #00f6ff;
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.18);
}
.al-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 900;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(2, 6, 17, 0.7);
  flex-shrink: 0;
}
.al-content {
  min-width: 0;
}
.al-tag {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 0 4px currentColor;
  margin-bottom: 2px;
}
.al-detail {
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.al-reward {
  margin-top: 3px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}
.al-time {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  align-self: center;
}
.al-empty {
  padding: 30px;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(0, 246, 255, 0.2);
}

/* ============================================================
   DAILY QUEST EDITABLE
   ============================================================ */
.qi-goal.editable {
  grid-template-columns: auto 1fr auto auto auto;
}
.qi-goal-edit {
  width: 22px; height: 22px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  background: rgba(0, 246, 255, 0.05);
  color: #00f6ff;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qi-goal-edit:hover {
  border-color: #00f6ff;
  background: rgba(0, 246, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 246, 255, 0.5);
}

.qi-goal-edit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 90px 90px auto;
  gap: 6px;
  margin-top: 4px;
  padding: 8px;
  background: rgba(0, 246, 255, 0.04);
  border: 1px solid rgba(0, 246, 255, 0.25);
}
.qi-goal-edit-row input {
  background: rgba(2, 6, 17, 0.7) !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  padding: 6px 8px !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  color: #d8e6ff !important;
}
.qi-goal-edit-actions {
  display: flex;
  gap: 4px;
}
.qi-goal-edit-actions button {
  padding: 4px 10px;
  font-size: 10px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.1em;
  background: rgba(0, 246, 255, 0.08);
  border: 1px solid rgba(0, 246, 255, 0.4);
  color: #00f6ff;
  cursor: pointer;
}
.qi-goal-edit-actions button.del {
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.4);
  background: rgba(255, 51, 102, 0.05);
}
.qi-goal-edit-actions button:hover { box-shadow: 0 0 8px currentColor; }

.qi-add-goal {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  background: rgba(0, 246, 255, 0.04);
  border: 1px dashed rgba(0, 246, 255, 0.4);
  color: #00f6ff;
  cursor: pointer;
  text-transform: uppercase;
}
.qi-add-goal:hover {
  background: rgba(0, 246, 255, 0.1);
  border-style: solid;
  border-color: #00f6ff;
}

/* ============================================================
   SOLO LEVELING — Stat Cards (Workouts/Volume/Duration/Streak)
   ============================================================ */
.summary-cards-sl {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1100px) {
  .summary-cards-sl { grid-template-columns: repeat(4, 1fr) !important; gap: 18px; }
}

.summary-cards-sl .stat-card {
  position: relative;
  padding: 22px 20px 20px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.08), rgba(123, 45, 255, 0.06)) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.08), inset 0 1px 0 rgba(0, 246, 255, 0.18) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
body.dark-mode .summary-cards-sl .stat-card { background: linear-gradient(135deg, rgba(0,246,255,0.08), rgba(123,45,255,0.06)) !important; }

.summary-cards-sl .stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.7);
}
.summary-cards-sl .stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(0,246,255,0.18), transparent 60%);
  pointer-events: none;
}
.summary-cards-sl .stat-card:hover {
  transform: translateY(-3px);
  border-color: #00f6ff !important;
  box-shadow: 0 6px 22px rgba(0, 246, 255, 0.25), inset 0 1px 0 rgba(0,246,255,0.3) !important;
}

.summary-cards-sl .stat-card-icon {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  position: relative;
  z-index: 1;
}
.summary-cards-sl .stat-card-icon svg { color: #fff !important; width: 20px; height: 20px; filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)); }

/* Per-color hex icons */
.summary-cards-sl .stat-card--blue .stat-card-icon { background: linear-gradient(135deg, #00f6ff, #0a1929) !important; box-shadow: 0 0 14px rgba(0,246,255,0.6); }
.summary-cards-sl .stat-card--green .stat-card-icon { background: linear-gradient(135deg, #00ffa3, #0a3a26) !important; box-shadow: 0 0 14px rgba(0,255,163,0.5); }
.summary-cards-sl .stat-card--purple .stat-card-icon { background: linear-gradient(135deg, #b07bff, #2a1240) !important; box-shadow: 0 0 14px rgba(176,123,255,0.5); }
.summary-cards-sl .stat-card--orange .stat-card-icon { background: linear-gradient(135deg, #ffd700, #4a3500) !important; box-shadow: 0 0 14px rgba(255,215,0,0.55); }

.summary-cards-sl .stat-value {
  font-family: 'Orbitron', monospace !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  margin: 6px 0 4px;
  text-shadow: 0 0 14px currentColor;
}
.summary-cards-sl .stat-card--blue .stat-value, body.dark-mode .summary-cards-sl .stat-card--blue .stat-value { color: #00f6ff !important; }
.summary-cards-sl .stat-card--green .stat-value, body.dark-mode .summary-cards-sl .stat-card--green .stat-value { color: #00ffa3 !important; }
.summary-cards-sl .stat-card--purple .stat-value, body.dark-mode .summary-cards-sl .stat-card--purple .stat-value { color: #b07bff !important; }
.summary-cards-sl .stat-card--orange .stat-value, body.dark-mode .summary-cards-sl .stat-card--orange .stat-value { color: #ffd700 !important; }

.summary-cards-sl .stat-label {
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.7) !important;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SOLO LEVELING — Activity Heatmap (full history)
   ============================================================ */
.heatmap-scroll-sl {
  position: relative;
  overflow-x: hidden;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.04), rgba(123, 45, 255, 0.04));
  border: 1px solid rgba(0, 246, 255, 0.3);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  box-shadow: 0 0 22px rgba(0, 246, 255, 0.07), inset 0 1px 0 rgba(0,246,255,0.15);
  --heat-cols: 26;
  --heat-gap: 3px;
}
.heatmap-scroll-sl::-webkit-scrollbar { height: 8px; }
.heatmap-scroll-sl::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.heatmap-scroll-sl::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #00f6ff, #7b2dff); border-radius: 0; }

.heatmap-meta-sl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.heatmap-pill {
  font-family: 'Orbitron', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #00f6ff;
  padding: 4px 10px;
  border: 1px solid rgba(0, 246, 255, 0.4);
  background: rgba(0, 246, 255, 0.05);
  text-shadow: 0 0 6px rgba(0,246,255,0.5);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.heatmap-months {
  display: flex;
  margin-bottom: 4px;
}
.heatmap-day-labels-spacer { width: 36px; flex-shrink: 0; }
.heatmap-months-row {
  display: grid;
  grid-template-columns: repeat(var(--heat-cols), 1fr);
  gap: var(--heat-gap);
  flex: 1;
  position: relative;
  height: 14px;
}
.heatmap-month-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(0, 246, 255, 0.65);
  white-space: nowrap;
  align-self: end;
}

.heatmap-scroll-sl > div[style*="display:flex"] { align-items: stretch; }
.heatmap-scroll-sl .heatmap-day-labels {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: var(--heat-gap);
  margin-right: 8px;
  width: 28px;
  flex-shrink: 0;
}
.heatmap-scroll-sl .heatmap-day-labels span {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(0, 246, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
}

.heatmap-scroll-sl .heatmap-grid {
  display: grid;
  grid-template-columns: repeat(var(--heat-cols), 1fr);
  gap: var(--heat-gap);
  flex: 1;
  min-width: 0;
}
.heatmap-scroll-sl .heatmap-col {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: var(--heat-gap);
  min-width: 0;
}
.heatmap-scroll-sl .heatmap-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.heatmap-scroll-sl .heatmap-cell:hover { transform: scale(1.5); z-index: 5; }
.heatmap-scroll-sl .heatmap-cell.l0 { background: rgba(0, 246, 255, 0.06); border: 1px solid rgba(0, 246, 255, 0.12); }
.heatmap-scroll-sl .heatmap-cell.l1 { background: rgba(0, 246, 255, 0.35); box-shadow: 0 0 4px rgba(0, 246, 255, 0.4); }
.heatmap-scroll-sl .heatmap-cell.l2 { background: linear-gradient(135deg, #00f6ff, #7b2dff); box-shadow: 0 0 6px rgba(0, 246, 255, 0.6); }
.heatmap-scroll-sl .heatmap-cell.l3 { background: linear-gradient(135deg, #ffd700, #ff3366); box-shadow: 0 0 8px rgba(255, 215, 0, 0.7); }
.heatmap-scroll-sl .heatmap-cell.l-future { background: transparent; border: 1px dashed rgba(0, 246, 255, 0.08); }

.heatmap-legend-sl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-left: 28px;
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(0, 246, 255, 0.6);
}
.heatmap-legend-sl .heatmap-cell { width: 12px; height: 12px; }

/* ============================================================
   SOLO LEVELING — Achievements (powerful skill-card style)
   ============================================================ */
#achievementsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px !important;
}

#achievementsGrid .achievement-card {
  position: relative;
  padding: 18px 12px 14px !important;
  min-height: 130px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.10), rgba(255, 51, 102, 0.06)) !important;
  border: 1px solid rgba(255, 215, 0, 0.45) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  overflow: hidden;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#achievementsGrid .achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  box-shadow: 0 0 10px rgba(255,215,0,0.7);
}
#achievementsGrid .achievement-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,215,0,0.2), transparent 60%);
  pointer-events: none;
}
#achievementsGrid .achievement-card.unlocked:hover {
  transform: translateY(-4px);
  border-color: #ffd700 !important;
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255,215,0,0.4) !important;
}

#achievementsGrid .achievement-icon {
  position: relative;
  z-index: 1;
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 51, 102, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.5);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.25);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

#achievementsGrid .achievement-label {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd700 !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
  line-height: 1.3;
}

/* LOCKED state — striped, dim, no hover lift */
#achievementsGrid .achievement-card.locked {
  background: repeating-linear-gradient(
      135deg,
      rgba(80, 90, 110, 0.18) 0,
      rgba(80, 90, 110, 0.18) 6px,
      rgba(0, 0, 0, 0.35) 6px,
      rgba(0, 0, 0, 0.35) 12px
    ) !important;
  border-color: rgba(120, 130, 150, 0.35) !important;
  box-shadow: none !important;
  opacity: 0.55 !important;
}
#achievementsGrid .achievement-card.locked::before { background: linear-gradient(90deg, transparent, rgba(160,170,190,0.4), transparent); box-shadow: none; }
#achievementsGrid .achievement-card.locked::after { background: none; }
#achievementsGrid .achievement-card.locked .achievement-icon {
  background: linear-gradient(135deg, rgba(80,90,110,0.3), rgba(40,50,70,0.3));
  border-color: rgba(120, 130, 150, 0.3);
  filter: grayscale(1) brightness(0.7);
  box-shadow: none;
}
#achievementsGrid .achievement-card.locked .achievement-label {
  color: rgba(180, 195, 220, 0.5) !important;
  text-shadow: none;
}
#achievementsGrid .achievement-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  background: none;
  inset: auto;
  z-index: 2;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.6));
}

/* ============================================================
   SOLO LEVELING — History Page (calendar + workout cards)
   ============================================================ */

/* Calendar wrapper */
body #calendarCard {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.06), rgba(123, 45, 255, 0.04)) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 0 22px rgba(0, 246, 255, 0.08), inset 0 1px 0 rgba(0, 246, 255, 0.18) !important;
  position: relative;
  padding: 18px 18px 16px !important;
  margin-bottom: 18px;
}
body #calendarCard::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.7);
}

#calendarCard #calendarTitle {
  font-family: 'Orbitron', monospace !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  color: #00f6ff !important;
  text-shadow: 0 0 10px rgba(0, 246, 255, 0.6);
  text-transform: uppercase;
}

#calendarCard .icon-btn {
  background: rgba(0, 246, 255, 0.08) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  color: #00f6ff !important;
  transition: all 0.2s;
}
#calendarCard .icon-btn:hover {
  background: rgba(0, 246, 255, 0.18) !important;
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.4);
}
#calendarCard .icon-btn svg { color: #00f6ff !important; }

/* Calendar grid */
.calendar-grid { gap: 4px !important; }

.cal-header {
  font-family: 'Orbitron', monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  color: rgba(0, 246, 255, 0.65) !important;
  text-transform: uppercase;
  padding: 4px 0 !important;
}

.cal-day {
  font-family: 'Orbitron', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(0, 246, 255, 0.04) !important;
  border: 1px solid rgba(0, 246, 255, 0.15) !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.2s;
  aspect-ratio: 1 / 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.cal-day.empty {
  background: transparent !important;
  border-color: transparent !important;
}

.cal-day:not(.empty):hover {
  background: rgba(0, 246, 255, 0.18) !important;
  border-color: #00f6ff !important;
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.4);
  transform: translateY(-1px);
}

.cal-day.today {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.25), rgba(123, 45, 255, 0.18)) !important;
  border: 1px solid #00f6ff !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 246, 255, 0.9);
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.5), inset 0 0 10px rgba(0, 246, 255, 0.2);
}

.cal-day.has-workout {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 51, 102, 0.12)) !important;
  border: 1px solid rgba(255, 215, 0, 0.55) !important;
  color: #ffd700 !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  position: relative;
}
.cal-day.has-workout::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd700;
}

.cal-day.today.has-workout {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(0, 246, 255, 0.25)) !important;
  border: 1px solid #ffd700 !important;
  color: #fff !important;
}

body.dark-mode .cal-day,
body.dark-mode .cal-day.today,
body.dark-mode .cal-day.has-workout { color: inherit; }

/* Filter pills (inherit ZamZam SL pill style) */
body .filter-pills {
  gap: 8px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap;
}

body .filter-pill {
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  padding: 8px 16px !important;
  background: rgba(0, 246, 255, 0.05) !important;
  border: 1px solid rgba(0, 246, 255, 0.35) !important;
  border-radius: 0 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  color: rgba(0, 246, 255, 0.75) !important;
  transition: all 0.2s;
  cursor: pointer;
}

body .filter-pill:hover {
  background: rgba(0, 246, 255, 0.12) !important;
  border-color: #00f6ff !important;
  color: #00f6ff !important;
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}

body .filter-pill.active {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.3), rgba(123, 45, 255, 0.2)) !important;
  border: 1px solid #00f6ff !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 246, 255, 0.7);
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.45), inset 0 1px 0 rgba(0, 246, 255, 0.3);
}

/* Workout history cards */
body .sheet-history-card {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.06), rgba(123, 45, 255, 0.04)) !important;
  border: 1px solid rgba(0, 246, 255, 0.35) !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.06), inset 0 1px 0 rgba(0, 246, 255, 0.15) !important;
  margin-bottom: 12px !important;
  padding: 16px 16px 14px !important;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}

body .sheet-history-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  opacity: 0.7;
  transition: opacity 0.2s;
}

body .sheet-history-card:hover {
  border-color: #00f6ff !important;
  box-shadow: 0 4px 18px rgba(0, 246, 255, 0.25), inset 0 1px 0 rgba(0, 246, 255, 0.3) !important;
  transform: translateY(-2px);
}
body .sheet-history-card:hover::before { opacity: 1; }

.sheet-history-header { gap: 14px !important; align-items: center; }

.sheet-history-icon {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.25), rgba(123, 45, 255, 0.15)) !important;
  border: 1px solid rgba(0, 246, 255, 0.5) !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.4), inset 0 0 8px rgba(0, 246, 255, 0.15);
  filter: drop-shadow(0 0 4px rgba(0, 246, 255, 0.4));
}

.sheet-history-title {
  font-family: 'Orbitron', monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #00f6ff !important;
  text-shadow: 0 0 8px rgba(0, 246, 255, 0.5);
}

.sheet-history-meta {
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  color: rgba(200, 220, 255, 0.6) !important;
  text-transform: uppercase;
  margin-top: 3px;
}

.sheet-history-exercises {
  margin-top: 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body .history-ex-tag {
  font-family: 'Orbitron', monospace !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  background: rgba(255, 215, 0, 0.1) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: #ffd700 !important;
  border-radius: 0 !important;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

.history-ex-more {
  font-family: 'Orbitron', monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  background: rgba(123, 45, 255, 0.15) !important;
  border: 1px solid rgba(123, 45, 255, 0.5) !important;
  color: #b07bff !important;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.sheet-history-notes {
  font-family: 'Orbitron', monospace;
  font-size: 11px !important;
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(200, 220, 255, 0.55) !important;
  border-left: 2px solid rgba(0, 246, 255, 0.4);
  padding-left: 10px;
  margin-top: 10px !important;
}

/* Empty state */
body .empty-state {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.04), rgba(123, 45, 255, 0.03)) !important;
  border: 1px dashed rgba(0, 246, 255, 0.3) !important;
  padding: 36px 18px !important;
  text-align: center;
}

body .empty-state .empty-icon {
  font-size: 38px !important;
  filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5));
  opacity: 0.7;
}

body .empty-state p {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase;
  color: rgba(0, 246, 255, 0.55) !important;
  margin-top: 10px;
}

/* History page header */
body header h1 {
  font-family: 'Orbitron', monospace !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.32em !important;
  color: #00f6ff !important;
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.6);
  text-transform: uppercase;
}

/* ============================================================
   SOLO LEVELING — Workout Picker Modal ("Выбери тренировку")
   ============================================================ */
body #workoutPickerModal.modal-overlay {
  background: rgba(2, 8, 20, 0.85) !important;
  backdrop-filter: blur(8px);
}

body #workoutPickerModal .modal-sheet {
  background: linear-gradient(180deg, rgba(8, 18, 38, 0.98), rgba(15, 8, 35, 0.96)) !important;
  border: 1px solid rgba(0, 246, 255, 0.45) !important;
  border-radius: 0 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
  box-shadow: 0 -10px 50px rgba(0, 246, 255, 0.18), inset 0 1px 0 rgba(0, 246, 255, 0.2) !important;
  padding: 22px 18px 20px !important;
  position: relative;
}
body #workoutPickerModal .modal-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.7);
}

body #workoutPickerModal .modal-handle {
  background: linear-gradient(90deg, transparent, #00f6ff, transparent) !important;
  width: 60px !important;
  height: 3px !important;
  opacity: 0.7;
  box-shadow: 0 0 8px rgba(0, 246, 255, 0.6);
}

body #workoutPickerModal .modal-title {
  font-family: 'Orbitron', monospace !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: #00f6ff !important;
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.6);
  margin: 8px 0 18px !important;
  padding-left: 4px;
}
body #workoutPickerModal .modal-title::before { content: '◆ '; color: #00f6ff; }

/* Picker items */
body .workout-pick-btn {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.06), rgba(123, 45, 255, 0.05)) !important;
  border: 1px solid rgba(0, 246, 255, 0.35) !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-align: left;
}
body .workout-pick-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  opacity: 0.5;
  transition: opacity 0.2s;
}
body .workout-pick-btn:hover {
  border-color: #00f6ff !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.12), rgba(123, 45, 255, 0.08)) !important;
  box-shadow: 0 4px 18px rgba(0, 246, 255, 0.3), inset 0 1px 0 rgba(0, 246, 255, 0.3) !important;
  transform: translateY(-2px);
}
body .workout-pick-btn:hover::before { opacity: 1; }

body .workout-pick-btn.workout-pick-today {
  border-color: #ffd700 !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.10), rgba(0, 246, 255, 0.05)) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 215, 0, 0.2) !important;
}
body .workout-pick-btn.workout-pick-today::before {
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

body .workout-pick-icon {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.22), rgba(123, 45, 255, 0.14)) !important;
  border: 1px solid rgba(0, 246, 255, 0.5) !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.35), inset 0 0 8px rgba(0, 246, 255, 0.15);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0, 246, 255, 0.5));
}
body .workout-pick-today .workout-pick-icon {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(255, 51, 102, 0.14)) !important;
  border-color: rgba(255, 215, 0, 0.6) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.18);
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

body .workout-pick-info { flex: 1; min-width: 0; }
body .workout-pick-name {
  font-family: 'Orbitron', monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #00f6ff !important;
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.5);
  margin-bottom: 3px;
}
body .workout-pick-today .workout-pick-name {
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

body .workout-pick-sub {
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  color: rgba(200, 220, 255, 0.6) !important;
  text-transform: uppercase;
}

body .workout-pick-badge {
  font-family: 'Orbitron', monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  padding: 4px 10px !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 51, 102, 0.15)) !important;
  border: 1px solid #ffd700 !important;
  color: #ffd700 !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  flex-shrink: 0;
}

/* Cancel button */
body #workoutPickerModal .btn-ghost {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  background: rgba(255, 51, 102, 0.05) !important;
  border: 1px solid rgba(255, 51, 102, 0.4) !important;
  color: #ff7a99 !important;
  border-radius: 0 !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  padding: 12px !important;
  margin-top: 14px !important;
  transition: all 0.2s;
  text-shadow: 0 0 6px rgba(255, 51, 102, 0.4);
}
body #workoutPickerModal .btn-ghost:hover {
  background: rgba(255, 51, 102, 0.15) !important;
  border-color: #ff3366 !important;
  color: #ffadc0 !important;
  box-shadow: 0 0 14px rgba(255, 51, 102, 0.4);
}

/* ============================================================
   SOLO LEVELING — Warm-up Wizard
   ============================================================ */
body .wizard-top-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.06), rgba(123, 45, 255, 0.04)) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.08), inset 0 1px 0 rgba(0, 246, 255, 0.15);
}

body .wizard-cancel-btn {
  background: rgba(255, 51, 102, 0.08) !important;
  border: 1px solid rgba(255, 51, 102, 0.5) !important;
  color: #ff7a99 !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  width: 36px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
body .wizard-cancel-btn:hover {
  background: rgba(255, 51, 102, 0.2) !important;
  border-color: #ff3366 !important;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

body .wizard-timer {
  font-family: 'Orbitron', monospace !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  color: #00f6ff !important;
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.6);
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body .wizard-step-counter {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: #00f6ff !important;
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.5);
  padding: 4px 12px !important;
  background: rgba(0, 246, 255, 0.1) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 100%, 0 100%);
}

body .wizard-progress {
  height: 4px !important;
  background: rgba(0, 246, 255, 0.08) !important;
  border: 1px solid rgba(0, 246, 255, 0.2) !important;
  border-radius: 0 !important;
  margin-bottom: 14px !important;
  overflow: hidden;
}
body .wizard-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #00f6ff, #7b2dff) !important;
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.7);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body .wizard-card {
  position: relative;
  padding: 22px 20px 20px !important;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.05), rgba(123, 45, 255, 0.04)) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 0 22px rgba(0, 246, 255, 0.08), inset 0 1px 0 rgba(0, 246, 255, 0.18) !important;
  margin-bottom: 14px !important;
}
body .wizard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f6ff, transparent);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.6);
}

.wizard-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.wz-action-btn {
  font-family: 'Orbitron', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 5px 12px;
  background: rgba(0, 246, 255, 0.08);
  border: 1px solid rgba(0, 246, 255, 0.4);
  color: #00f6ff;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  cursor: pointer;
  transition: all 0.2s;
}
.wz-action-btn:hover {
  background: rgba(0, 246, 255, 0.18);
  border-color: #00f6ff;
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}
.wz-action-btn.wz-del {
  color: #ff7a99;
  background: rgba(255, 51, 102, 0.05);
  border-color: rgba(255, 51, 102, 0.4);
}
.wz-action-btn.wz-del:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: #ff3366;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

body .wizard-exercise-header {
  display: block !important;
  text-align: center;
  margin-bottom: 18px !important;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 246, 255, 0.2);
}
body .wizard-exercise-header > div:not(.wizard-exercise-name):not(.wizard-exercise-desc) {
  /* In case JS still emits an inner div wrapper, neutralize it */
  display: contents;
}
body .wizard-exercise-icon { display: none !important; }

body .wizard-exercise-name {
  font-family: 'Bebas Neue', 'Orbitron', sans-serif !important;
  font-size: 28px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 0 14px rgba(0, 246, 255, 0.6);
  line-height: 1;
  margin-bottom: 8px;
}
body .wizard-exercise-desc {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-style: normal !important;
  letter-spacing: 0.06em !important;
  color: rgba(200, 220, 255, 0.65) !important;
  line-height: 1.4;
}

body .wizard-done-badge {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-align: center;
  padding: 8px 14px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.1), rgba(0, 246, 255, 0.06)) !important;
  border: 1px solid rgba(0, 255, 163, 0.5) !important;
  color: #00ffa3 !important;
  text-shadow: 0 0 8px rgba(0, 255, 163, 0.6);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

body .wizard-fields {
  display: grid !important;
  gap: 10px;
}
body .wizard-field {
  display: grid !important;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 12px;
}
body .wizard-field label {
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: rgba(0, 246, 255, 0.85) !important;
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.3);
}
body .wizard-field input {
  font-family: 'Orbitron', monospace !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center;
  padding: 10px 12px !important;
  background: rgba(0, 246, 255, 0.05) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  color: #fff !important;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.4);
  outline: none;
  transition: all 0.2s;
}
body .wizard-field input:focus {
  background: rgba(0, 246, 255, 0.12) !important;
  border-color: #00f6ff !important;
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.4);
}

body .wizard-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto 1fr;
  gap: 8px !important;
  margin-top: 14px;
}
body .wizard-nav-btn {
  font-family: 'Orbitron', monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase;
  padding: 12px 10px !important;
  background: rgba(0, 246, 255, 0.06) !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  color: #00f6ff !important;
  border-radius: 0 !important;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.3);
}
body .wizard-nav-btn:hover:not(:disabled) {
  background: rgba(0, 246, 255, 0.18) !important;
  border-color: #00f6ff !important;
  box-shadow: 0 0 14px rgba(0, 246, 255, 0.4);
}
body .wizard-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
body .wizard-nav-btn.wizard-finish {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 51, 102, 0.1)) !important;
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}
body .wizard-nav-btn.wizard-rest {
  background: rgba(123, 45, 255, 0.08) !important;
  border-color: rgba(123, 45, 255, 0.5) !important;
  color: #b07bff !important;
}
body .wizard-nav-btn.wizard-again {
  padding: 12px 8px !important;
  min-width: 44px;
}
body .wizard-nav-btn.wizard-again svg { color: rgba(0, 246, 255, 0.7); }

/* ============================================================
   Header logo — SL text-style (replaces small image)
   ============================================================ */
.sl-header-logo {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 !important;
  padding: 4px 12px 4px 14px;
  position: relative;
  border-left: 3px solid #00f6ff;
}
.sl-header-logo::before {
  content: '';
  position: absolute;
  left: -3px; top: 0;
  width: 3px; height: 6px;
  background: #00f6ff;
  box-shadow: 0 0 8px #00f6ff;
}
.sl-header-tag {
  font-family: 'Orbitron', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(0, 246, 255, 0.85);
  text-shadow: 0 0 6px rgba(0, 246, 255, 0.6);
  text-transform: uppercase;
}
.sl-header-name {
  font-family: 'Bebas Neue', 'Orbitron', sans-serif;
  font-size: 26px;
  letter-spacing: 0.16em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.7), 0 0 24px rgba(123, 45, 255, 0.4);
  text-transform: uppercase;
}

/* ============================================================
   Header sync dot — cyan=synced, red pulse=syncing, etc.
   ============================================================ */
.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.sync-dot-synced {
  background: #00f6ff;
  box-shadow: 0 0 10px #00f6ff, 0 0 4px rgba(0, 246, 255, 0.7) inset;
}
.sync-dot-syncing {
  background: #ff3366;
  box-shadow: 0 0 12px #ff3366;
  animation: sync-dot-pulse 0.9s ease-in-out infinite;
}
.sync-dot-offline {
  background: #ffb84d;
  box-shadow: 0 0 10px #ffb84d;
}
.sync-dot-error {
  background: #ff3366;
  box-shadow: 0 0 14px #ff3366;
  animation: sync-dot-flash 1.1s ease-in-out infinite;
}
@keyframes sync-dot-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 10px #ff3366; }
  50%      { transform: scale(1.4); box-shadow: 0 0 18px #ff3366; }
}
@keyframes sync-dot-flash {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.4; }
}

/* Globally hide the legacy bottom sync bar — header dot is the source of truth */
.sync-status { display: none !important; }

/* ============================================================
   Daily Quest button — red when incomplete, gold when cleared
   ============================================================ */
.daily-quest-btn {
  position: relative;
  font-family: 'Orbitron', monospace !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  border-radius: 0 !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  transition: all 0.3s;
}

.daily-quest-btn.quest-incomplete {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.18), rgba(255, 51, 102, 0.08)) !important;
  border: 1px solid #ff3366 !important;
  color: #ff7a99 !important;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.7);
  box-shadow: 0 0 18px rgba(255, 51, 102, 0.35), inset 0 1px 0 rgba(255, 51, 102, 0.3);
  animation: dq-pulse 1.6s ease-in-out infinite;
}
@keyframes dq-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 51, 102, 0.35), inset 0 1px 0 rgba(255, 51, 102, 0.3); }
  50%      { box-shadow: 0 0 30px rgba(255, 51, 102, 0.7),  inset 0 1px 0 rgba(255, 51, 102, 0.5); }
}

.daily-quest-btn.quest-complete {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.18), rgba(255, 215, 0, 0.1)) !important;
  border: 1px solid #ffd700 !important;
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.3);
}
