/* =============================================
   FOXY GYM — DARK PREMIUM THEME
   ============================================= */

/* ═══ RESET & BASE ═══ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #1a1a1e;
  --bg-card: rgba(35, 33, 38, 0.85);
  --bg-card-hover: rgba(45, 43, 48, 0.95);
  --bg-elevated: rgba(40, 38, 44, 0.8);
  --bg-glass: rgba(25, 23, 28, 0.95);
  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.65);
  --text-muted: rgba(240, 236, 228, 0.35);
  --accent: #F5960A;
  --accent-glow: rgba(245, 150, 10, 0.35);
  --accent-dark: #D07A00;
  --accent-light: #FFB84D;
  --accent-gradient: linear-gradient(135deg, #D07A00 0%, #F5960A 40%, #FFB84D 100%);
  --green: #4CAF50;
  --green-glow: rgba(76, 175, 80, 0.25);
  --blue: #42A5F5;
  --blue-glow: rgba(66, 165, 245, 0.25);
  --red: #FF5252;
  --gold: #FFD54F;
  --purple: #CE82FF;
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-card: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(245, 150, 10, 0.15);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background: #0e0e10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* ═══ APP CONTAINER ═══ */
.app-container {
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  box-shadow: var(--shadow-medium);
}

/* Diagonal stripe pattern overlay */
.app-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.015) 20px,
    rgba(255, 255, 255, 0.015) 21px
  );
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow at top */
.app-container::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(245, 150, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 440px) {
  .app-container {
    border-radius: 44px;
    margin: 12px;
  }
}

/* ═══ SCREENS ═══ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  animation: fadeIn 0.35s ease;
  scrollbar-width: none;
  z-index: 1;
}

.screen::-webkit-scrollbar { display: none; }

.screen.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   SCREEN 1: HOME
   ═══════════════════════════════════════════════ */

/* Mascot area at top */
.home-mascot-area {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  padding-top: 20px;
  padding-bottom: 0;
  flex-shrink: 0;
  min-height: 130px;
}

.home-fox-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transform: rotate(-8deg);
  margin-top: 10px;
  margin-left: -8px;
}

.panda-hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(245, 150, 10, 0.3));
  animation: pandaPeek 3s ease-in-out infinite;
}

@keyframes pandaPeek {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* Big speech bubble at top like mockup */
.home-speech-bubble {
  position: absolute;
  top: 0;
  right: 0;
  left: 100px;
  background: #f5f0e8;
  border-radius: 24px;
  padding: 18px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #2b2017;
  text-align: center;
  z-index: 2;
  animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

/* Tail pointing to fox */
.home-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 24px;
  width: 20px;
  height: 20px;
  background: #f5f0e8;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.home-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #f5f0e8;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@keyframes bubblePop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Spacer fills the dramatic empty space */
.home-spacer {
  flex: 1;
  min-height: 80px;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  flex-shrink: 0;
}

/* Version text */
.version-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
  font-weight: 500;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 
    0 0 20px rgba(245, 150, 10, 0.4),
    0 0 60px rgba(245, 150, 10, 0.15),
    0 4px 15px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25);
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
  z-index: 1;
}

.btn-primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 0 12px rgba(245, 150, 10, 0.3), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Enhanced glow for home screen main button */
.btn-glow {
  animation: btnGlowPulse 2.5s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(245, 150, 10, 0.4),
      0 0 50px rgba(245, 150, 10, 0.12),
      0 4px 15px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(245, 150, 10, 0.6),
      0 0 80px rgba(245, 150, 10, 0.2),
      0 0 120px rgba(245, 150, 10, 0.08),
      0 4px 15px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
}

.btn-secondary {
  background: rgba(50, 47, 55, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: var(--shadow-soft);
}

.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(60, 57, 65, 0.95);
}

.btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-size: 18px;
  min-height: 60px;
}

.btn-icon {
  font-size: 20px;
}

/* Orange dot icon for secondary button */
.btn-icon-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 150, 10, 0.5);
  flex-shrink: 0;
}

.btn-label {
  letter-spacing: 0.3px;
}

/* ═══ SAVED PANEL ═══ */
.saved-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 8px;
  animation: slideUp 0.3s ease;
  flex-shrink: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.saved-panel.hidden { display: none; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.saved-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.saved-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.saved-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.saved-close:active { background: rgba(255, 255, 255, 0.15); }

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid var(--border-card);
}

.saved-card:active {
  background: rgba(245, 150, 10, 0.08);
}

.saved-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.saved-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.saved-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.saved-del {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.saved-del:active { opacity: 1; }

.no-saved {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   SCREEN 2: WORKOUT SETUP
   ═══════════════════════════════════════════════ */
.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  flex-shrink: 0;
}

.back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  box-shadow: var(--shadow-soft);
}

.back-btn:active { background: rgba(255, 255, 255, 0.12); }

.setup-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s;
  box-shadow: 0 2px 8px var(--accent-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.add-btn:active { transform: scale(0.95); }

.setup-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
  scrollbar-width: none;
}

.setup-list::-webkit-scrollbar { display: none; }

/* Exercise card in setup */
.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.setup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setup-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.setup-card-name .emoji {
  font-size: 18px;
}

.setup-card-del {
  background: none;
  border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.setup-card-del:active { opacity: 1; }

/* ═══ DRAG & DROP ═══ */
.drag-handle {
  font-size: 18px;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px 6px;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.drag-handle:active {
  color: var(--accent);
  background: rgba(245, 150, 10, 0.1);
  cursor: grabbing;
}

.drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.92;
  transform: scale(1.03);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(245, 150, 10, 0.3), 0 0 0 2px var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  transition: none;
}

.drag-placeholder {
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  background: rgba(245, 150, 10, 0.05);
  transition: height 0.15s ease;
  flex-shrink: 0;
}

.setup-card.drag-hidden {
  opacity: 0;
  height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  pointer-events: none;
}

.setup-card-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.setup-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.setup-field-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stepper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  border: 1px solid var(--border-card);
}

.stepper-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:active {
  color: var(--accent-light);
}

.stepper-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 28px;
  text-align: center;
}

.setup-stats {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  flex-shrink: 0;
}

.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}

.stat-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.setup-actions {
  flex-shrink: 0;
  padding-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   SCREEN 3: ACTIVE WORKOUT
   ═══════════════════════════════════════════════ */
.active-top-bar, .rest-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.active-elapsed {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}

.active-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
}

.active-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  border-radius: 50px;
  transition: width 0.5s ease;
  position: relative;
}

.active-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s infinite;
  border-radius: 50px;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.active-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}

.active-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}

.active-timer {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(245, 150, 10, 0.15);
}

.active-exercise {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}

.active-set-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--accent-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.active-details {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.detail-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.detail-val {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
}

.detail-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-divider {
  width: 1px;
  height: 36px;
  background: var(--border-card);
}

/* ═══ COACHING ═══ */
.coaching-area {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 8px 0;
  flex-shrink: 0;
  animation: fadeIn 0.4s ease;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.coaching-panda {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.coaching-bubble {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.4;
}

.active-action, .rest-action {
  flex-shrink: 0;
  padding: 8px 0 12px;
}

.btn-finish {
  background: linear-gradient(135deg, #388E3C, #4CAF50, #66BB6A) !important;
  box-shadow: 0 6px 24px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* ═══════════════════════════════════════════════
   SCREEN 4: REST
   ═══════════════════════════════════════════════ */
.rest-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  position: relative;
}

.rest-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.rest-timer {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 0 30px rgba(66, 165, 245, 0.15);
}

.rest-timer.overtime {
  color: var(--red);
  animation: pulse 1s ease infinite;
  text-shadow: 0 0 30px rgba(255, 82, 82, 0.2);
}

.rest-ring-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 200px;
  height: 200px;
  z-index: 1;
}

.rest-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rest-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 4;
}

.rest-ring-fg {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.rest-ring-fg.overtime {
  stroke: var(--red);
}

.rest-motivational {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 260px;
  z-index: 2;
  margin-top: 16px;
}

.rest-next {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════
   SCREEN 5: COMPLETION
   ═══════════════════════════════════════════════ */
.complete-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0 8px;
  position: relative;
}

.complete-panda {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(245, 150, 10, 0.25));
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(0.5) translateY(20px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-8px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.complete-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.complete-sub {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.complete-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.cstat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  box-shadow: var(--shadow-soft);
}

.cstat-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.cstat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.complete-rest-report {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 160px;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}

.complete-rest-report:empty { display: none; }

.complete-rest-report strong {
  color: var(--text-primary);
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 16px;
}

/* ═══ CONFETTI ═══ */
.confetti-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(300px) rotate(720deg) scale(0); opacity: 0; }
}

/* ═══ EXERCISE PICKER MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.picker-card {
  background: #1e1c22;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.picker-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.picker-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.picker-close:active { background: rgba(255, 255, 255, 0.15); }

.picker-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.picker-tabs::-webkit-scrollbar { display: none; }

.picker-tab {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.picker-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.picker-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
}

.picker-list::-webkit-scrollbar { display: none; }

.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.picker-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.picker-item.selected {
  border-color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
}

.picker-item-emoji {
  font-size: 22px;
}

.picker-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.picker-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.picker-item-defaults {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.picker-item-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  flex-shrink: 0;
  color: transparent;
}

.picker-item.selected .picker-item-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.picker-done {
  padding: 14px;
  font-size: 15px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ═══ SAVE MODAL ═══ */
.save-card {
  background: #1e1c22;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.save-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: var(--text-primary);
}

.save-input {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.save-input:focus {
  border-color: var(--accent);
}

.save-input::placeholder {
  color: var(--text-muted);
}

.save-btns {
  display: flex;
  gap: 10px;
}

.save-btn {
  flex: 1;
  padding: 14px 10px;
  font-size: 14px;
  border-radius: 50px;
}

/* ═══ UTILITY ═══ */
.hidden { display: none !important; }

/* ═══ RESPONSIVE ═══ */
@media (max-height: 680px) {
  .home-fox-wrap { width: 80px; height: 80px; }
  .home-speech-bubble { font-size: 22px; padding: 14px 20px; }
  .active-timer { font-size: 56px; }
  .rest-timer { font-size: 60px; }
  .rest-ring-wrap { width: 160px; height: 160px; }
  .complete-panda { width: 90px; height: 90px; }
  .detail-val { font-size: 22px; }
}

@media (max-height: 560px) {
  .home-fox-wrap { width: 60px; height: 60px; }
  .home-speech-bubble { font-size: 18px; padding: 10px 16px; }
  .coaching-area { padding: 8px 10px; }
  .coaching-panda { width: 30px; height: 30px; }
  .active-timer { font-size: 44px; }
  .rest-timer { font-size: 48px; }
}

/* ═══════════════════════════════════════════════
   PT BOOKING SCREEN
   ═══════════════════════════════════════════════ */

/* PT Button on home */
.btn-pt {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 0 15px rgba(245, 150, 10, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-pt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 150, 10, 0.08), transparent);
  pointer-events: none;
}

.btn-pt:active {
  transform: scale(0.97);
  background: rgba(245, 150, 10, 0.1);
}

.btn-pt-icon {
  font-size: 20px;
}

/* PT Header */
.pt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  flex-shrink: 0;
}

/* PT Section */
.pt-section {
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.pt-section.hidden { display: none; }

.pt-section-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ═══ CALENDAR ═══ */
.pt-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.pt-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.pt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.pt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  border: none;
  background: none;
}

/* Empty placeholder cells */
.pt-cal-day.empty {
  pointer-events: none;
}

/* Past dates or dates outside range */
.pt-cal-day.disabled {
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Days WITHOUT any PT available */
.pt-cal-day.unavailable {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.pt-cal-day.unavailable:active {
  background: rgba(255, 255, 255, 0.04);
}

/* Days WITH PT available — highlighted */
.pt-cal-day.available {
  color: #fff;
  background: rgba(245, 150, 10, 0.15);
  border: 1px solid rgba(245, 150, 10, 0.3);
}

.pt-cal-day.available:active {
  background: rgba(245, 150, 10, 0.25);
}

/* Has a glowing dot indicator */
.pt-cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(245, 150, 10, 0.5);
}

/* Selected day */
.pt-cal-day.selected {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(245, 150, 10, 0.4);
  border-color: var(--accent) !important;
}

.pt-cal-day.selected::after {
  display: none;
}

/* Today */
.pt-cal-day.today {
  box-shadow: inset 0 0 0 2px var(--accent-light);
}

/* ═══ TIME PICKER ═══ */
.pt-time-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pt-time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-time-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pt-time-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F5960A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.pt-time-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 150, 10, 0.2);
}

.pt-time-select option {
  background: #1e1c22;
  color: var(--text-primary);
}

.pt-time-divider {
  font-size: 20px;
  color: var(--accent);
  font-weight: 800;
  margin-top: 20px;
}

.pt-find-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font-size: 16px;
  border-radius: 50px;
}

/* ═══ PT RESULTS ═══ */
.pt-results-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.pt-results-scroll::-webkit-scrollbar { display: none; }

.pt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.pt-card:active {
  background: rgba(245, 150, 10, 0.08);
  border-color: rgba(245, 150, 10, 0.3);
}

.pt-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pt-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pt-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}

.pt-card-specialty {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.pt-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.pt-card-rating {
  color: var(--gold);
}

.pt-card-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pt-card-book-btn {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s;
  box-shadow: 0 2px 8px var(--accent-glow);
  align-self: flex-start;
}

.pt-card-book-btn:active {
  transform: scale(0.95);
}

/* ═══ NO PT RESULT ═══ */
.pt-no-result {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.pt-no-result-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.pt-no-result-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pt-no-result-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══ BOOKING SUCCESS MODAL ═══ */
.pt-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.pt-success-overlay.hidden { display: none; }

.pt-success-card {
  background: #1e1c22;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 85%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bounce 0.5s ease;
}

.pt-success-emoji {
  font-size: 56px;
}

.pt-success-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
}

.pt-success-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pt-success-btn {
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 50px;
  width: 100%;
}

/* ═══ SPARKLE PARTICLES ═══ */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  animation: sparkleFloat 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes sparkleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.8; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; transform: translateY(-60px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-80px) scale(0); }
}

/* ═══ VIDEO MODAL (from previous feature) ═══ */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.video-modal-overlay.hidden { display: none; }

.video-modal-content {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.video-modal-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  border: none;
}

.btn-tutorial {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
}

.btn-tutorial:active {
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   PT BOOKING — Complete Styling
   ═══════════════════════════════════════════════════════ */

/* ── Home Screen: "Tập với PT" Button ─────────────── */
.btn-pt {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--accent-light);
  border: 1px solid rgba(245, 150, 10, 0.2);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.3s;
  box-shadow:
    0 0 20px rgba(245, 150, 10, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.btn-pt::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(245, 150, 10, 0.08) 60deg,
    transparent 120deg
  );
  animation: ptBtnSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes ptBtnSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-pt:active {
  transform: scale(0.97) translateY(1px);
  border-color: rgba(245, 150, 10, 0.4);
}

.btn-pt-icon {
  font-size: 22px;
}

/* ── PT Booking Screen ────────────────────────────── */
#screen-pt-booking {
  padding: 16px 20px;
}

.pt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.pt-section {
  margin-bottom: 20px;
  animation: ptSectionIn 0.4s ease both;
}

.pt-section.hidden {
  display: none;
}

@keyframes ptSectionIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.pt-section-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Calendar ─────────────────────────────────────── */
.pt-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pt-cal-month-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.pt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.pt-cal-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.pt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text-secondary);
  border: 1.5px solid transparent;
}

.pt-cal-day.empty {
  cursor: default;
}

/* Days with PT available */
.pt-cal-day.available {
  color: var(--text-primary);
  background: rgba(245, 150, 10, 0.08);
  border-color: rgba(245, 150, 10, 0.15);
}

.pt-cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(245, 150, 10, 0.6);
}

.pt-cal-day.available:active {
  background: rgba(245, 150, 10, 0.2);
  transform: scale(0.92);
}

/* Dimmed days (no PT / past) */
.pt-cal-day.dimmed {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.pt-cal-day.past {
  color: var(--text-muted);
  opacity: 0.25;
  cursor: not-allowed;
}

/* Selected day */
.pt-cal-day.selected {
  background: var(--accent-gradient);
  color: #fff;
  border-color: var(--accent);
  font-weight: 900;
  box-shadow: 0 0 16px rgba(245, 150, 10, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.pt-cal-day.selected::after {
  display: none;
}

/* Today marker */
.pt-cal-day.today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.pt-cal-day.today.selected {
  box-shadow: 0 0 16px rgba(245, 150, 10, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Time Picker ──────────────────────────────────── */
.pt-time-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 14px;
}

.pt-time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-time-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
}

.pt-time-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  padding: 12px 8px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.pt-time-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 150, 10, 0.15);
}

.pt-time-divider {
  font-size: 20px;
  color: var(--accent);
  font-weight: 900;
  padding-top: 20px;
}

.pt-find-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 16px;
}

/* ── PT Results ───────────────────────────────────── */
.pt-results-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}

/* PT Card */
.pt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  animation: ptCardIn 0.5s ease both;
  position: relative;
  overflow: hidden;
}

.pt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.pt-card:active {
  transform: scale(0.98);
}

.pt-card:active::before {
  opacity: 1;
}

@keyframes ptCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pt-card:nth-child(1) { animation-delay: 0s; }
.pt-card:nth-child(2) { animation-delay: 0.08s; }
.pt-card:nth-child(3) { animation-delay: 0.16s; }
.pt-card:nth-child(4) { animation-delay: 0.24s; }
.pt-card:nth-child(5) { animation-delay: 0.32s; }

.pt-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pt-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(245, 150, 10, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
}

.pt-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(245, 150, 10, 0.15));
  pointer-events: none;
}

.pt-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-info {
  flex: 1;
  min-width: 0;
}

.pt-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pt-specialty {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.pt-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pt-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.pt-rating-stars {
  font-size: 11px;
  letter-spacing: 1px;
}

.pt-experience {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pt-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

.pt-certs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pt-cert-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(245, 150, 10, 0.1);
  border: 1px solid rgba(245, 150, 10, 0.15);
  border-radius: 8px;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

.pt-book-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 14px;
  margin-top: 2px;
}

/* ── Empty State ──────────────────────────────────── */
.pt-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pt-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: ptEmptyBounce 2s ease-in-out infinite;
}

@keyframes ptEmptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pt-empty-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pt-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* ── Booking Confirmation Modal ───────────────────── */
.pt-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pt-confirm-overlay.hidden {
  display: none;
}

.pt-confirm-card {
  width: 90%;
  max-width: 360px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  animation: confirmPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  position: relative;
  overflow: hidden;
}

.pt-confirm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

@keyframes confirmPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pt-confirm-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: confirmBounce 0.6s ease 0.3s both;
}

@keyframes confirmBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.pt-confirm-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pt-confirm-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pt-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.pt-confirm-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pt-confirm-row-value {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-light);
}

.pt-confirm-btns {
  display: flex;
  gap: 10px;
}

.pt-confirm-btns .btn-secondary,
.pt-confirm-btns .btn-primary {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 14px;
}

/* ── Selected Date Pill (shown above time picker) ─── */
.pt-selected-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 150, 10, 0.1);
  border: 1px solid rgba(245, 150, 10, 0.2);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.pt-selected-date-icon {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   MY GYM BUTTON (HOME)
   ═══════════════════════════════════════════════════════ */
.btn-gym {
  background: rgba(40, 38, 44, 0.7);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: not-allowed;
  transition: transform 0.15s;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.btn-gym:disabled {
  opacity: 0.6;
}

.btn-badge-soon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(18, 16, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  flex-shrink: 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 16px;
  transition: color 0.2s;
  position: relative;
}

.bottom-nav-item .nav-icon {
  width: 22px;
  height: 22px;
  transition: all 0.2s;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(245, 150, 10, 0.4));
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════
   QUICK WORKOUT PREVIEW — REDESIGNED
   ═══════════════════════════════════════════════════════ */
#screen-quick-workout {
  padding: 16px 16px 0;
  padding-bottom: 72px; /* space for bottom nav */
}

/* Title Row: emoji + name + "Thay đổi" button */
.qw-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.qw-title-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.qw-title-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.qw-title-text {
  flex: 1;
  min-width: 0;
}

.qw-title-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.qw-title-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1px;
}

.qw-change-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 150, 10, 0.12);
  border: 1px solid rgba(245, 150, 10, 0.25);
  border-radius: 50px;
  padding: 8px 14px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.qw-change-btn:active {
  transform: scale(0.95);
  background: rgba(245, 150, 10, 0.2);
}

.qw-change-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* Horizontal Scroll Controls */
.qw-hscroll-wrap {
  margin-bottom: 12px;
  overflow: hidden;
}

.qw-hscroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.qw-hscroll::-webkit-scrollbar { display: none; }

.qw-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-heading);
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.qw-pill:active {
  background: rgba(245, 150, 10, 0.08);
  border-color: rgba(245, 150, 10, 0.2);
  transform: scale(0.96);
}

.qw-pill-val {
  font-size: 13px;
  font-weight: 800;
}

.qw-pill-arrow {
  width: 10px;
  height: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Toggle pills for Core / Warmup */
.qw-pill-toggle {
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.qw-pill-toggle.active {
  background: rgba(245, 150, 10, 0.12);
  border-color: rgba(245, 150, 10, 0.3);
  color: var(--accent);
}

.qw-pill-sign {
  font-size: 14px;
  font-weight: 900;
  min-width: 14px;
  text-align: center;
}

/* Exercise Preview */
.qw-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.qw-preview-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.qw-preview-est {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.qw-exercise-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  scrollbar-width: none;
  min-height: 60px;
}

.qw-exercise-list::-webkit-scrollbar { display: none; }

.qw-ex-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 12px;
  animation: fadeIn 0.3s ease;
}

.qw-ex-item .qw-ex-emoji { font-size: 16px; flex-shrink: 0; }
.qw-ex-item .qw-ex-info { flex: 1; min-width: 0; }
.qw-ex-item .qw-ex-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qw-ex-item .qw-ex-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.qw-ex-item .qw-ex-category-tag {
  font-size: 8px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
  padding: 2px 7px;
  border-radius: 50px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qw-ex-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 4px 2px;
}

.qw-start-action {
  flex-shrink: 0;
  padding: 8px 0 4px;
}

/* ═══════════════════════════════════════════════════════
   CHANGE WORKOUT SCREEN
   ═══════════════════════════════════════════════════════ */
#screen-change-workout { padding: 16px 20px; }

.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.cw-section-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cw-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.cw-type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--text-primary);
  text-align: left;
}

.cw-type-btn:active {
  transform: scale(0.96);
  border-color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
}

.cw-type-btn.selected {
  border-color: var(--accent);
  background: rgba(245, 150, 10, 0.1);
  box-shadow: 0 0 12px rgba(245, 150, 10, 0.15);
}

.cw-type-emoji { font-size: 22px; flex-shrink: 0; }
.cw-type-info { flex: 1; min-width: 0; }
.cw-type-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}
.cw-type-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.cw-divider {
  height: 1px;
  background: var(--border-card);
  margin: 16px 0;
}

.cw-saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: none;
}
.cw-saved-list::-webkit-scrollbar { display: none; }

.cw-saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.cw-saved-card:active {
  background: rgba(245, 150, 10, 0.06);
  border-color: rgba(245, 150, 10, 0.2);
  transform: scale(0.98);
}
.cw-saved-icon { font-size: 20px; flex-shrink: 0; }
.cw-saved-info { flex: 1; min-width: 0; }
.cw-saved-name {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
}
.cw-saved-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.cw-saved-arrow { color: var(--text-muted); font-size: 14px; }
.cw-no-saved {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px;
  font-weight: 600;
}
.cw-create-btn { margin-top: 4px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════
   DURATION PICKER MODAL
   ═══════════════════════════════════════════════════════ */
.duration-card {
  background: #1e1c22;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 85%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: confirmPop 0.3s ease both;
}
.duration-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}
.duration-display {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(245, 150, 10, 0.3);
}
.duration-slider-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.duration-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.duration-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(245, 150, 10, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.duration-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245, 150, 10, 0.4);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.duration-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.duration-btns { display: flex; gap: 10px; width: 100%; }
.duration-btn {
  flex: 1;
  padding: 14px 10px;
  font-size: 14px;
  border-radius: 50px;
}

/* ═══════════════════════════════════════════════════════
   INTENSITY PICKER MODAL
   ═══════════════════════════════════════════════════════ */
.intensity-card {
  background: #1e1c22;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: slideUp 0.3s ease;
}
.intensity-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}
.intensity-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.intensity-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--text-primary);
}
.intensity-option:active { transform: scale(0.97); }
.intensity-option.selected {
  border-color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
  box-shadow: 0 0 12px rgba(245, 150, 10, 0.12);
}
.intensity-option-emoji { font-size: 24px; flex-shrink: 0; }
.intensity-option-info { flex: 1; }
.intensity-option-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.intensity-option-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.intensity-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}
.intensity-option.selected .intensity-option-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   MY PROFILE SCREEN
   ═══════════════════════════════════════════════════════ */
#screen-profile {
  padding: 16px 20px 0;
  padding-bottom: 72px;
}

.profile-header {
  text-align: center;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.profile-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}
.profile-scroll::-webkit-scrollbar { display: none; }

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-input {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 150, 10, 0.12);
}
.profile-input::placeholder {
  color: var(--text-muted);
}

/* Chip Selection */
.profile-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.profile-chips::-webkit-scrollbar { display: none; }
.profile-chips-wrap {
  flex-wrap: wrap;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 50px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-chip:active {
  transform: scale(0.95);
}
.profile-chip.selected {
  background: rgba(245, 150, 10, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(245, 150, 10, 0.12);
}

/* Duration Slider in Profile */
.profile-duration-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.profile-slider {
  flex: 1;
  height: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.profile-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 8px rgba(245, 150, 10, 0.3);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.profile-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.profile-duration-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

/* Toggle Row in Profile */
.profile-toggle-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.profile-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Toggle Switch (shared with QW) */
.qw-toggle {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.qw-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.qw-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
}
.qw-toggle.active::after {
  left: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.profile-save-area {
  padding: 8px 0 12px;
}
/* ═══════════════════════════════════════════════════════
   CHANGE WORKOUT SCREEN
   ═══════════════════════════════════════════════════════ */
#screen-change-workout {
  padding: 16px 20px;
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════
   EXERCISE LIST (QUICK WORKOUT PREVIEW)
   ═══════════════════════════════════════════════════════ */
.qw-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.qw-preview-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.qw-preview-est {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.qw-exercise-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
  scrollbar-width: none;
  min-height: 80px;
}

.qw-exercise-list::-webkit-scrollbar { display: none; }

.qw-ex-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  animation: fadeIn 0.3s ease;
}

.qw-ex-item .qw-ex-emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.qw-ex-item .qw-ex-info {
  flex: 1;
  min-width: 0;
}

.qw-ex-item .qw-ex-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qw-ex-item .qw-ex-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.qw-ex-item .qw-ex-category-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Warmup/Core/Cooldown section dividers */
.qw-ex-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 4px 2px;
}


.qw-start-action {
  flex-shrink: 0;
  padding: 8px 0 12px;
}

/* ═══════════════════════════════════════════════════════
   QUICK WORKOUT SCREEN LAYOUT
   ═══════════════════════════════════════════════════════ */
#screen-quick-workout {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 0;
  gap: 12px;
  overflow: hidden;
}

/* Title Row */
.qw-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qw-title-emoji {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.qw-title-text {
  flex: 1;
  min-width: 0;
}

.qw-title-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.qw-title-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.qw-change-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 150, 10, 0.12);
  border: 1.5px solid rgba(245, 150, 10, 0.35);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.qw-change-btn:hover,
.qw-change-btn:active {
  background: rgba(245, 150, 10, 0.22);
  transform: scale(0.97);
}

.qw-change-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Horizontal Scroll Pills */
.qw-hscroll-wrap {
  flex-shrink: 0;
  overflow: hidden;
  margin: 0 -18px;
}

.qw-hscroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 18px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.qw-hscroll::-webkit-scrollbar { display: none; }

.qw-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  border-radius: 50px;
  padding: 7px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.qw-pill:hover,
.qw-pill:active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.qw-pill-val {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.qw-pill-arrow {
  width: 10px;
  height: 6px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.qw-pill-sign {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-muted);
  width: 14px;
  text-align: center;
  transition: color 0.2s;
}

.qw-pill-toggle.active {
  background: rgba(245, 150, 10, 0.12);
  border-color: var(--accent);
}

.qw-pill-toggle.active .qw-pill-val {
  color: var(--accent);
}

.qw-pill-toggle.active .qw-pill-sign {
  color: var(--accent);
}

/* Preview header */
.qw-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  flex-shrink: 0;
}

.qw-preview-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.qw-preview-est {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

/* Exercise list */
.qw-exercise-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
  scrollbar-width: none;
  min-height: 60px;
}

.qw-exercise-list::-webkit-scrollbar { display: none; }

.qw-ex-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 13px;
  animation: fadeIn 0.25s ease;
}

.qw-ex-emoji { font-size: 18px; flex-shrink: 0; }
.qw-ex-info { flex: 1; min-width: 0; }
.qw-ex-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qw-ex-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.qw-ex-category-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 150, 10, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qw-ex-section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 2px 2px;
}

/* ═══════════════════════════════════════════════════════
   CHANGE WORKOUT SCREEN
   ═══════════════════════════════════════════════════════ */
#screen-change-workout {
  padding: 0 18px 20px;
  overflow-y: auto;
}

.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.cw-section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 8px;
}

.cw-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cw-type-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cw-type-btn:hover,
.cw-type-btn.selected {
  background: rgba(245, 150, 10, 0.1);
  border-color: var(--accent);
}

.cw-type-emoji { font-size: 20px; }
.cw-type-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}
.cw-type-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cw-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.cw-saved-list { display: flex; flex-direction: column; gap: 8px; }

.cw-saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cw-saved-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255,255,255,0.2);
}

.cw-saved-icon { font-size: 20px; }
.cw-saved-info { flex: 1; min-width: 0; }
.cw-saved-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-saved-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cw-saved-arrow { font-size: 16px; color: var(--text-muted); }
.cw-no-saved { color: var(--text-muted); font-size: 13px; text-align: center; padding: 12px 0; }

.cw-create-btn { margin-top: 4px; width: 100%; }

/* ═══════════════════════════════════════════════════════
   DURATION MODAL
   ═══════════════════════════════════════════════════════ */
.duration-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 28px 24px;
  width: min(340px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duration-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
}

.duration-display {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  text-align: center;
}

.duration-slider-wrap { display: flex; flex-direction: column; gap: 6px; }
.duration-slider {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
}

.duration-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.duration-btns {
  display: flex;
  gap: 10px;
}

.duration-btn { flex: 1; }

/* ═══════════════════════════════════════════════════════
   INTENSITY MODAL
   ═══════════════════════════════════════════════════════ */
.intensity-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px 20px;
  width: min(340px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intensity-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.intensity-options { display: flex; flex-direction: column; gap: 8px; }

.intensity-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.intensity-option:hover,
.intensity-option.selected {
  background: rgba(245, 150, 10, 0.1);
  border-color: var(--accent);
}

.intensity-option-emoji { font-size: 20px; }
.intensity-option-info { flex: 1; }
.intensity-option-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.intensity-option-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.intensity-option-check {
  font-size: 16px;
  color: var(--accent);
  font-weight: 900;
  width: 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 15, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bottom-nav-item:hover {
  color: rgba(255,255,255,0.7);
}

.bottom-nav-item.active {
  color: var(--accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active .nav-icon {
  transform: scale(1.15);
}

/* Push screen content up to not overlap bottom nav */
#screen-home .home-actions,
#screen-quick-workout,
#screen-profile .profile-scroll {
  padding-bottom: 68px;
}

#screen-quick-workout { padding-bottom: 0; }

/* ═══════════════════════════════════════════════════════
   MY PROFILE SCREEN
   ═══════════════════════════════════════════════════════ */
#screen-profile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-header {
  padding: 20px 18px 8px;
  flex-shrink: 0;
}

.profile-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 80px;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-scroll::-webkit-scrollbar { display: none; }

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.profile-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.profile-chips::-webkit-scrollbar { display: none; }

.profile-chips-wrap {
  flex-wrap: wrap;
  overflow-x: visible;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.profile-chip:hover {
  background: rgba(255,255,255,0.09);
}

.profile-chip.active {
  background: rgba(245, 150, 10, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.profile-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.profile-input:focus {
  border-color: var(--accent);
}

.profile-duration-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-slider {
  flex: 1;
  accent-color: var(--accent);
}

.profile-duration-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  min-width: 64px;
  text-align: right;
}

.profile-toggle-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.profile-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.qw-toggle {
  display: inline-block;
  width: 44px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.qw-toggle::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.qw-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
}

.qw-toggle.active::after {
  left: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.profile-save-area {
  padding: 4px 0 8px;
}

/* ═══════════════════════════════════════════════════════
   MODAL OVERLAY
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none !important;
}

/* ═══ GLOBAL PROFILE AVATAR ═══ */
.global-avatar-btn {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 14px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.global-avatar-btn:active { transform: scale(0.93); }
.global-avatar-initials { font-family: var(--font-heading); font-size: 13px; font-weight: 900; color: #fff; letter-spacing: 0.5px; }

/* ═══ QW BOTTOM NAV FIX ═══ */
.qw-bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; }
.qw-start-action { padding-bottom: 80px; }

/* ═══ QW EXERCISE LIST INTERACTIVE ═══ */
.qw-ex-item { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 6px; }
.qw-ex-drag { font-size: 16px; color: var(--text-muted); cursor: grab; padding: 2px 4px; flex-shrink: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.qw-ex-emoji { font-size: 20px; flex-shrink: 0; }
.qw-ex-info { flex: 1; min-width: 0; }
.qw-ex-name { font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-ex-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.qw-ex-actions { display: flex; gap: 3px; flex-shrink: 0; }
.qw-ex-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border-card); border-radius: 8px; width: 28px; height: 28px; font-size: 13px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.qw-ex-btn:active { background: rgba(245,150,10,0.15); color: var(--accent); }
.qw-ex-section-label { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; padding: 8px 2px 4px; }
.qw-ex-add-btn { width: 100%; background: rgba(245,150,10,0.08); border: 1.5px dashed var(--accent); border-radius: 50px; color: var(--accent); font-family: var(--font-heading); font-size: 13px; font-weight: 800; padding: 9px; margin: 6px 0; cursor: pointer; }

/* ═══ GUIDANCE MODAL ═══ */
.guidance-card { background: var(--bg-glass); border-radius: var(--radius-lg); width: 92%; max-width: 380px; max-height: 82vh; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-card); box-shadow: var(--shadow-medium); animation: slideUp 0.3s ease; }
.guidance-header { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border-card); flex-shrink: 0; }
.guidance-fox { font-size: 24px; }
.guidance-title { font-family: var(--font-heading); font-size: 15px; font-weight: 900; color: var(--text-primary); flex: 1; }
.guidance-close { background: rgba(255,255,255,0.08); border: none; color: var(--text-secondary); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.guidance-body { overflow-y: auto; padding: 16px; flex: 1; }
.guidance-text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 16px; }
.guidance-video-wrap { border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.guidance-video-wrap iframe { width: 100%; height: 100%; border: none; }

/* ═══ SWAP MODAL ═══ */
.swap-card { background: var(--bg-glass); border-radius: var(--radius-lg); width: 92%; max-width: 380px; max-height: 75vh; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-card); box-shadow: var(--shadow-medium); animation: slideUp 0.3s ease; }
.swap-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border-card); font-family: var(--font-heading); font-size: 15px; font-weight: 900; color: var(--text-primary); flex-shrink: 0; }
.swap-subtitle { padding: 8px 16px 4px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.swap-list { overflow-y: auto; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.swap-item { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; transition: border-color 0.15s; }
.swap-item:active { border-color: var(--accent); background: rgba(245,150,10,0.08); }
.swap-item-emoji { font-size: 20px; }
.swap-item-name { font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: var(--text-primary); }
.swap-item-meta { font-size: 11px; color: var(--text-muted); }

/* ═══ WORKOUT EDIT PANEL ═══ */
.wep-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; backdrop-filter: blur(4px); }
.wep-overlay.hidden { display: none; }
.wep-panel { position: absolute; bottom: 0; left: 0; right: 0; background: var(--bg-glass); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 1px solid var(--border-card); border-bottom: none; z-index: 301; max-height: 70vh; display: flex; flex-direction: column; box-shadow: 0 -8px 32px rgba(0,0,0,0.5); animation: slideUp 0.3s ease; }
.wep-panel.hidden { display: none; }
.wep-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border-card); flex-shrink: 0; }
.wep-title { font-family: var(--font-heading); font-size: 16px; font-weight: 900; color: var(--text-primary); }
.wep-note { padding: 6px 16px; font-size: 11px; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.wep-list { overflow-y: auto; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.wep-floating-btn { position: absolute; bottom: 90px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border-card); color: var(--text-primary); font-size: 20px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.4); transition: transform 0.15s; }
.wep-floating-btn:active { transform: scale(0.93); }
.wep-floating-btn.hidden { display: none; }

/* ═══ PT BOOKING 3-TAB ═══ */
.pt-tab-bar { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); border: 1px solid var(--border-card); flex-shrink: 0; }
.pt-tab-btn { flex: 1; padding: 8px 4px; background: transparent; border: none; border-radius: 10px; font-family: var(--font-heading); font-size: 11px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.pt-tab-btn.active { background: var(--accent-gradient); color: #fff; box-shadow: 0 2px 8px var(--accent-glow); }
.pt-tab-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pt-tab-content.hidden { display: none; }

/* date chips */
.pt-date-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pt-date-row::-webkit-scrollbar { display: none; }
.pt-date-chip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-card); cursor: pointer; min-width: 52px; transition: all 0.15s; }
.pt-date-chip.selected { border-color: var(--accent); background: rgba(245,150,10,0.1); }
.pt-date-chip.locked { opacity: 0.4; cursor: not-allowed; }
.pt-date-dow { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.pt-date-num { font-family: var(--font-heading); font-size: 18px; font-weight: 900; color: var(--text-primary); }
.pt-date-chip.selected .pt-date-num { color: var(--accent); }

/* Outlook timeline */
.pt-timeline-wrap { height: 260px; overflow-y: auto; position: relative; background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-card); }
.pt-timeline-inner { position: relative; width: 100%; }
.pt-timeline-hour { display: flex; align-items: flex-start; border-top: 1px solid rgba(255,255,255,0.06); height: 60px; position: relative; }
.pt-timeline-hour:first-child { border-top: none; }
.pt-timeline-hour-label { width: 44px; flex-shrink: 0; padding: 4px 8px 0; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.pt-timeline-slots { flex: 1; position: relative; height: 60px; }
.pt-timeline-slot { position: absolute; left: 0; right: 0; height: 30px; border-top: 1px dashed rgba(255,255,255,0.04); cursor: pointer; transition: background 0.12s; }
.pt-timeline-slot:last-child { top: 30px; }
.pt-timeline-slot.locked { background: rgba(255,255,255,0.03); cursor: not-allowed; pointer-events: none; }
.pt-timeline-slot.available:hover { background: rgba(245,150,10,0.08); }
.pt-timeline-selection { position: absolute; left: 2px; right: 2px; background: rgba(245,150,10,0.2); border: 2px solid var(--accent); border-radius: 8px; z-index: 5; cursor: move; min-height: 30px; }
.pt-sel-label-inner { padding: 4px 8px; font-size: 11px; font-weight: 800; color: var(--accent); font-family: var(--font-heading); }
.pt-resize-handle { position: absolute; left: 0; right: 0; height: 10px; cursor: ns-resize; z-index: 6; }
.pt-resize-handle.top { top: 0; }
.pt-resize-handle.bottom { bottom: 0; }
.pt-selection-info { background: rgba(245,150,10,0.08); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pt-selection-info.hidden { display: none; }
.pt-sel-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.pt-sel-time { font-family: var(--font-heading); font-size: 14px; font-weight: 900; color: var(--accent); flex: 1; }
.pt-find-btn { padding: 8px 16px !important; font-size: 13px !important; min-height: unset !important; flex-shrink: 0; }
.pt-training-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pt-training-day { font-family: var(--font-heading); font-size: 13px; font-weight: 900; color: var(--accent); }
.pt-training-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-training-field { font-size: 12px; color: var(--text-secondary); }
.pt-training-content { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.pt-mypts-tabs { display: flex; gap: 8px; margin-bottom: 8px; flex-shrink: 0; }
.pt-mypts-subtab { flex: 1; padding: 8px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-card); font-family: var(--font-heading); font-size: 12px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.pt-mypts-subtab.active { background: rgba(245,150,10,0.15); border-color: var(--accent); color: var(--accent); }
.pt-filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex-shrink: 0; }
.pt-filter-row::-webkit-scrollbar { display: none; }
.pt-filter-chip { flex-shrink: 0; padding: 6px 12px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-card); font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.pt-filter-chip.active { background: rgba(245,150,10,0.15); border-color: var(--accent); color: var(--accent); }
.pt-card-fav-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 8px; transition: transform 0.15s; align-self: flex-start; }
.pt-card-fav-btn:active { transform: scale(1.3); }

/* ═══ MY GYM ═══ */
.mygym-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; flex-shrink: 0; }
.mygym-tab-content { flex: 1; overflow-y: auto; }
.mygym-tab-content.hidden { display: none; }
.mygym-bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; }
.mygym-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0 100px; }
.mygym-qr-label { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.mygym-qr-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 0 30px rgba(245,150,10,0.2), 0 8px 32px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mygym-blink-img { width: 60px; height: 60px; object-fit: contain; animation: gymBlink 1s step-start infinite; }
@keyframes gymBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
#mygym-qr-canvas { border-radius: 8px; }
.mygym-member-info { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.mygym-member-name { font-family: var(--font-heading); font-size: 20px; font-weight: 900; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mygym-member-id { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.mygym-member-exp { font-size: 12px; color: var(--text-muted); }
.mygym-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.mygym-filter-row::-webkit-scrollbar { display: none; }
.mygym-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 100px; }
.mygym-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mygym-card-name { font-family: var(--font-heading); font-size: 14px; font-weight: 900; color: var(--text-primary); }
.mygym-card-meta { font-size: 12px; color: var(--text-muted); }
.mygym-card-badge { align-self: flex-start; padding: 2px 10px; border-radius: 50px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: rgba(245,150,10,0.15); color: var(--accent); }
.mygym-class-time { font-size: 13px; font-weight: 700; color: var(--accent); }

.qw-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.qw-inline-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  font-size: 10px;
  color: var(--text-muted);
}

.qw-inline-stepper button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: rgba(245,150,10,0.16);
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.qw-inline-stepper strong {
  min-width: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-primary);
}

/* ═══ QUICK WORKOUT SIMPLICITY LAYOUT ═══ */
#screen-quick-workout {
  padding: 0;
  overflow: hidden;
  background: var(--bg-primary);
}

#screen-quick-workout .qw-bottom-nav {
  display: flex;
}

.qw-simple-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 22px 18px 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
}

.qw-simple-scroll::-webkit-scrollbar {
  display: none;
}

.qw-simple-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.qw-square-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.qw-square-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qw-hero-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 14px;
  align-items: center;
  min-height: 152px;
}

.qw-hero-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.04;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0;
}

.qw-hero-copy p {
  margin: 12px 0 0;
  max-width: 196px;
  font-size: 15px;
  line-height: 1.38;
  color: var(--text-secondary);
  font-weight: 700;
}

.qw-hero-fox {
  width: min(100%, 156px);
  justify-self: end;
  align-self: center;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.32));
}

#screen-quick-workout .qw-workout-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
}

#screen-quick-workout .qw-title-row::before {
  display: none;
}

#screen-quick-workout .qw-title-emoji {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-gradient);
  box-shadow: 0 8px 18px rgba(245,150,10,0.25);
  font-size: 26px;
}

#screen-quick-workout .qw-title-name {
  font-size: 22px;
  line-height: 1.1;
}

#screen-quick-workout .qw-title-sub {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-top: 5px;
}

#screen-quick-workout .qw-change-btn {
  min-width: 116px;
  height: 48px;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(245,150,10,0.28);
  background: rgba(245,150,10,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.qw-hidden-pill,
#screen-quick-workout #btn-qw-gym {
  display: none !important;
}

.qw-section-label {
  margin: 2px 0 -6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

#screen-quick-workout .qw-hscroll-wrap {
  margin: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qw-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#screen-quick-workout .qw-goal-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.qw-goal-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.qw-goal-label {
  grid-column: 2 / 3;
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
}

#screen-quick-workout .qw-goal-card .qw-pill-val {
  grid-column: 2 / 3;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.1;
  white-space: normal;
}

#screen-quick-workout .qw-goal-card .qw-pill-arrow {
  display: none;
}

.qw-chevron {
  color: var(--text-muted);
  font-size: 32px;
  line-height: 1;
}

.qw-addon-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
}

#screen-quick-workout .qw-addon-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
}

#screen-quick-workout .qw-addon-row + .qw-addon-row {
  border-top: 1px solid var(--border-card);
}

.qw-addon-fox {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.qw-addon-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.qw-addon-copy strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
}

.qw-addon-copy small {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
}

#screen-quick-workout .qw-addon-row .qw-pill-sign {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3px;
  background: rgba(255,255,255,0.12);
  color: transparent;
}

#screen-quick-workout .qw-addon-row .qw-pill-sign::after {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

#screen-quick-workout .qw-addon-row.active .qw-pill-sign {
  background: var(--accent-gradient);
}

#screen-quick-workout .qw-addon-row.active .qw-pill-sign::after {
  transform: translateX(0);
}

#screen-quick-workout .qw-preview-header {
  margin: 4px 0 -8px;
  padding: 0;
}

#screen-quick-workout .qw-preview-title {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

#screen-quick-workout .qw-preview-est {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
}

#screen-quick-workout .qw-exercise-list {
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
  overflow: visible;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
}

.qw-simple-ex-row {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--border-card);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.qw-simple-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
}

.qw-simple-ex-fox {
  width: 72px;
  height: 56px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 14px;
}

.qw-simple-ex-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.qw-simple-ex-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
}

.qw-simple-ex-copy small {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-secondary);
  font-weight: 700;
}

.qw-simple-more {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

#screen-quick-workout .qw-ex-add-btn {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border-card);
  border-radius: 0 0 18px 18px;
  background: transparent;
}

#screen-quick-workout .qw-start-action {
  padding: 8px 0 0;
}

#screen-quick-workout #btn-qw-start {
  width: 100%;
  min-height: 96px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-align: left;
  box-shadow: 0 8px 0 rgba(125,63,11,0.85), 0 18px 30px rgba(0,0,0,0.35);
}

.qw-start-fox {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 15px;
}

#screen-quick-workout #btn-qw-start .btn-label {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
}

.qw-start-arrow {
  font-size: 46px;
  line-height: 1;
  font-weight: 400;
}

@media (max-width: 390px) {
  .qw-hero-copy h1 { font-size: 30px; }
  .qw-hero-copy p { font-size: 14px; max-width: 174px; }
  .qw-hero-simple { grid-template-columns: 1fr 126px; min-height: 134px; }
  .qw-hero-fox { width: 126px; }
  .qw-goal-grid { grid-template-columns: 1fr; }
  #screen-quick-workout #btn-qw-start .btn-label { font-size: 23px; }
}
