/* ============================================================
   ApexFit — Authentic Apple Liquid Glass Design System
   iOS 26 & visionOS Light Meta-Material Edition
   Refraction, Specular Bevels, Chromatic Sheen & Continuous Squircles
   ============================================================ */

/* ── Apple Liquid Glass Design Tokens ───────────────────────── */
:root {
  /* Dynamic Glass Refraction Tints */
  --lg-bg-canvas:        #F1F5F9;
  --lg-bg-glass:         rgba(255, 255, 255, 0.42);
  --lg-bg-glass-card:    rgba(255, 255, 255, 0.52);
  --lg-bg-glass-hover:   rgba(255, 255, 255, 0.68);
  --lg-bg-glass-pressed: rgba(255, 255, 255, 0.35);
  --lg-bg-glass-input:   rgba(255, 255, 255, 0.60);
  --lg-bg-toolbar:       rgba(255, 255, 255, 0.65);
  --lg-bg-scrim:         rgba(15, 23, 42, 0.30);

  /* Specular Rim Lighting (Top Sunlight Catch vs Bottom Occlusion) */
  --lg-border-rim:       rgba(255, 255, 255, 0.88);
  --lg-border-top:       rgba(255, 255, 255, 0.98);
  --lg-border-bottom:    rgba(255, 255, 255, 0.40);
  --lg-border-subtle:    rgba(255, 255, 255, 0.55);

  /* Razor-Sharp Contrast Typography (Apple Dark Slate) */
  --text-primary:        #0A0F1D;  /* Deepest Slate / Obsidian */
  --text-secondary:      #2A374A;  /* Slate 800 */
  --text-muted:          #556982;  /* Slate 600 */
  --text-dimmed:         #889BB0;  /* Slate 400 */

  /* Semantic Jewel Tone Accents (Liquid Saturated) */
  --emerald-vibrant:     #10B981;
  --emerald-deep:        #047857;
  --emerald-glass:       rgba(16, 185, 129, 0.16);
  --emerald-rim:         rgba(16, 185, 129, 0.45);

  --cyan-vibrant:        #06B6D4;
  --cyan-deep:           #0284C7;
  --cyan-glass:          rgba(6, 182, 212, 0.16);
  --cyan-rim:            rgba(6, 182, 212, 0.45);

  --amber-vibrant:       #F59E0B;
  --amber-deep:          #D97706;
  --amber-glass:         rgba(245, 158, 11, 0.16);

  --rose-vibrant:        #F43F5E;
  --rose-deep:           #E11D48;
  --rose-glass:          rgba(244, 63, 94, 0.16);

  --violet-vibrant:      #8B5CF6;
  --violet-glass:        rgba(139, 92, 246, 0.16);

  /* Apple Squircle Continuous Radii */
  --r-xs:   10px;
  --r-sm:   14px;
  --r-md:   20px;
  --r-lg:   26px;
  --r-xl:   34px;
  --r-capsule: 9999px;

  /* Physical Optical Shadows (Caustics + Inset Specular Bevels) */
  --shadow-liquid-card:
    0 20px 48px -12px rgba(15, 23, 42, 0.10),
    0 6px 16px -2px rgba(15, 23, 42, 0.04),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.04);

  --shadow-liquid-floating:
    0 28px 64px -14px rgba(15, 23, 42, 0.15),
    0 10px 24px -4px rgba(15, 23, 42, 0.06),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 1.0);

  --shadow-liquid-btn:
    0 10px 26px rgba(16, 185, 129, 0.35),
    0 2px 8px rgba(16, 185, 129, 0.20),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.10);

  --shadow-glass-btn:
    0 6px 16px rgba(15, 23, 42, 0.05),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.03);

  /* Meta-Material Backdrop Filter (Frost + Super Saturation) */
  --blur-liquid-heavy: blur(40px) saturate(230%) brightness(108%);
  --blur-liquid-card:  blur(32px) saturate(215%) brightness(106%);
  --blur-liquid-sm:    blur(20px) saturate(190%) brightness(104%);

  /* Typography */
  --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Spring Physics Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-mid:  0.25s;

  /* App Geometry */
  --app-max-w: 430px;
  --header-h: 64px;
  --nav-h: 70px;
  --content-pad: 16px;
}

/* ── Reset & Baseline ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--lg-bg-canvas);
  color: var(--text-primary);
  font-family: var(--font);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;

  /* Authentic Apple Silk Abstract Fluid Background + Ambient Mesh */
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 245, 251, 0.45) 100%),
    url('/assets/apple_sonoma_light_fluid.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ── App Shell Container ────────────────────────────────────── */
#app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--app-max-w);
  margin: 0 auto;
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border-left: 1px solid var(--lg-border-subtle);
  border-right: 1px solid var(--lg-border-subtle);
  box-shadow: 0 0 80px rgba(15, 23, 42, 0.08);
}

/* ── Floating Liquid Glass Header ───────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--lg-bg-toolbar);
  backdrop-filter: var(--blur-liquid-heavy);
  -webkit-backdrop-filter: var(--blur-liquid-heavy);
  border-bottom: 1px solid var(--lg-border-rim);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.app-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.brand-text-wrap { display: flex; flex-direction: column; }
.brand-name {
  font-size: 18.5px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.1;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-capsule);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--lg-border-rim);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--emerald-deep);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-liquid-sm);
}
.status-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: var(--emerald-vibrant);
  box-shadow: 0 0 10px var(--emerald-vibrant);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

/* ── Main Content Container ─────────────────────────────────── */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px var(--content-pad) calc(var(--nav-h) + 32px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ── Floating Liquid Glass Capsule Bottom Nav (Apple Island) ── */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--app-max-w) - 24px);
  height: var(--nav-h);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--blur-liquid-heavy);
  -webkit-backdrop-filter: var(--blur-liquid-heavy);
  border: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-capsule);
  box-shadow:
    0 16px 40px -6px rgba(15, 23, 42, 0.15),
    0 4px 12px rgba(15, 23, 42, 0.05),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.98);
  padding: 0 10px;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: var(--r-capsule);
  transition: all var(--t-fast) var(--ease-spring);
  position: relative;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--t-mid) var(--ease-spring);
}

.nav-tab:active { transform: scale(0.92); }

.nav-tab.active {
  color: var(--emerald-deep);
  font-weight: 900;
}
.nav-tab.active svg {
  transform: translateY(-2px) scale(1.12);
  stroke: var(--emerald-vibrant);
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 20px;
  height: 3.5px;
  border-radius: var(--r-capsule);
  background: var(--emerald-vibrant);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

/* ── View Transitions ───────────────────────────────────────── */
.view-enter {
  animation: viewIn var(--t-mid) var(--ease-spring) forwards;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Apple Liquid Glass Card Material ───────────────────────── */
.card {
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-bottom: 1px solid var(--lg-border-bottom);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
  backdrop-filter: var(--blur-liquid-card);
  -webkit-backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
  transition: all var(--t-fast) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

/* Specular Light Edge Angle Sheen */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.98) 30%, rgba(255, 255, 255, 0.98) 70%, transparent 100%);
  pointer-events: none;
}

.card:hover {
  background: var(--lg-bg-glass-hover);
  box-shadow: var(--shadow-liquid-floating);
  transform: translateY(-2px);
}

.card--glow-emerald {
  border-color: var(--emerald-rim);
  border-top-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 20px 48px -10px rgba(16, 185, 129, 0.16),
    0 6px 16px rgba(15, 23, 42, 0.04),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.98);
}

.card--glow-cyan {
  border-color: var(--cyan-rim);
  border-top-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 20px 48px -10px rgba(6, 182, 212, 0.16),
    0 6px 16px rgba(15, 23, 42, 0.04),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.98);
}

/* ── Primary High-Energy Emerald Capsule Button ─────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: var(--r-capsule);
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: var(--shadow-liquid-btn);
  transition: all var(--t-fast) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, transparent 100%);
  pointer-events: none;
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* Secondary Glass Capsule Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--blur-liquid-sm);
  -webkit-backdrop-filter: var(--blur-liquid-sm);
  color: var(--text-primary);
  border: 1.5px solid var(--lg-border-rim);
  border-radius: var(--r-capsule);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  transition: all var(--t-fast) var(--ease-spring);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.btn-secondary:active { transform: scale(0.96); }

/* Liquid Glass Icon Button */
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--lg-border-rim);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glass-btn);
  backdrop-filter: var(--blur-liquid-sm);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.90); color: var(--text-primary); }
.btn-icon:active { transform: scale(0.92); }
.btn-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* ── Interactive Liquid Chips ───────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-capsule);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid var(--lg-border-subtle);
  border-top-color: var(--lg-border-top);
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: var(--blur-liquid-sm);
  color: var(--text-secondary);
  box-shadow: var(--shadow-glass-btn);
  transition: all var(--t-fast) var(--ease-spring);
  white-space: nowrap;
  user-select: none;
}
.chip:hover { background: rgba(255, 255, 255, 0.85); }
.chip:active { transform: scale(0.94); }

.chip.selected {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald-vibrant);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--emerald-deep);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.chip.chip-rose.selected {
  background: rgba(244, 63, 94, 0.20);
  border-color: var(--rose-vibrant);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--rose-deep);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ── Section Label ───────────────────────────────────────────── */
.section-label {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 6px;
}

/* ── High-Def Progress Bar ───────────────────────────────────── */
.progress-track {
  height: 7px;
  border-radius: var(--r-capsule);
  background: rgba(15, 23, 42, 0.10);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-capsule);
  background: linear-gradient(90deg, #10B981, #06B6D4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.50);
  transition: width 0.5s var(--ease-spring);
}

/* ================================================================
   SCREEN: Live Gym Tracker (Authentic Apple Liquid Glass)
   ================================================================ */

.live-session-banner {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-xl);
  margin-bottom: 14px;
  backdrop-filter: var(--blur-liquid-card);
  -webkit-backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
  position: relative;
  overflow: hidden;
}

.live-session-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}
.live-session-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.live-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
}
.live-meta-pill svg {
  width: 15px; height: 15px;
  stroke: var(--emerald-deep); stroke-width: 2.4; fill: none;
}

/* Giant Luminous Rest Timer Lens */
.timer-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--cyan-rim);
  border-top: 1.5px solid rgba(255, 255, 255, 0.98);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: var(--blur-liquid-heavy);
  -webkit-backdrop-filter: var(--blur-liquid-heavy);
  box-shadow:
    0 20px 48px -10px rgba(6, 182, 212, 0.18),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.98);
}
.timer-label {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 4px;
}
.timer-display {
  font-size: 46px;
  font-weight: 900;
  color: var(--cyan-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(6, 182, 212, 0.30);
  transition: all 0.3s;
}
.timer-display.timer-urgent { color: var(--rose-deep); text-shadow: 0 2px 14px rgba(244, 63, 94, 0.35); }
.timer-display.timer-ready  { color: var(--emerald-deep); animation: timerPop 0.35s var(--ease-spring); }

@keyframes timerPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.timer-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.timer-btn {
  padding: 8px 16px;
  border-radius: var(--r-capsule);
  border: 1px solid var(--lg-border-rim);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.timer-btn:active { transform: scale(0.94); }
.timer-btn.primary {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.60);
  color: var(--cyan-deep);
  font-weight: 900;
}

/* Volume Stats Strip */
.volume-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.volume-stat {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-glass-btn);
}
.volume-stat-val {
  font-size: 21px;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.volume-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Exercise Navigation Pills */
.exercise-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 4px;
}
.exercise-nav::-webkit-scrollbar { display: none; }
.exercise-nav-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--r-capsule);
  border: 1px solid var(--lg-border-subtle);
  border-top-color: var(--lg-border-top);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  backdrop-filter: var(--blur-liquid-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.exercise-nav-pill.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald-vibrant);
  border-top-color: rgba(255, 255, 255, 0.98);
  color: var(--emerald-deep);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Exercise Details */
.exercise-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.exercise-name-fa {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
}
.exercise-name-en {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  direction: ltr;
}
.exercise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.exercise-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-capsule);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--lg-border-rim);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tempo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: var(--amber-deep);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.40);
  padding: 4px 12px;
  border-radius: var(--r-capsule);
}
.coach-cue {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.45);
  border-right: 3.5px solid var(--emerald-vibrant);
  padding: 10px 14px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Set Table (Debossed Frosted Troughs) */
.set-table-head {
  display: grid;
  grid-template-columns: 30px 1fr 1fr 58px 44px;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1.5px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 8px;
}
.set-th {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.set-th:first-child { text-align: right; }

.set-row {
  display: grid;
  grid-template-columns: 30px 1fr 1fr 58px 44px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.set-row.completed { opacity: 0.65; }
.set-row:last-child { border-bottom: none; }

.set-num {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}

.set-input {
  width: 100%;
  height: 42px;
  background: var(--lg-bg-glass-input);
  border: 1px solid var(--lg-border-subtle);
  border-radius: var(--r-xs);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all var(--t-fast);
  -webkit-appearance: none;
}
.set-input:focus {
  border-color: var(--emerald-vibrant);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  outline: none;
}

.rpe-badge {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.set-check {
  width: 42px;
  height: 42px;
  border-radius: var(--r-xs);
  border: 1px solid var(--lg-border-rim);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glass-btn);
  transition: all var(--t-fast) var(--ease-spring);
  flex-shrink: 0;
}
.set-check svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.set-check.done {
  background: var(--emerald-vibrant);
  border-color: var(--emerald-vibrant);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.40);
}
.set-check.done svg { stroke: #FFFFFF; }
.set-check:active { transform: scale(0.90); }

/* Quick Swap Trigger Capsule */
.swap-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-capsule);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.40);
  color: var(--amber-deep);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  margin-top: 16px;
  transition: all var(--t-fast);
}
.swap-trigger:active { transform: scale(0.97); background: rgba(245, 158, 11, 0.22); }
.swap-trigger svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* Sticky Finish Bar */
.finish-bar {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--app-max-w) - 24px);
  padding: 0;
  z-index: 35;
}

/* ================================================================
   SCREEN: Program Calendar (Apple Liquid Glass)
   ================================================================ */

.program-header {
  text-align: center;
  padding: 18px 0 16px;
  margin-bottom: 14px;
}
.program-split-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.program-week-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--r-capsule);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.40);
  color: var(--emerald-deep);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.volume-matrix {
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
}
.volume-matrix-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.volume-row {
  display: grid;
  grid-template-columns: 85px 1fr 65px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.volume-row:last-child { margin-bottom: 0; }
.vol-label { font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.vol-value { font-size: 13px; font-weight: 900; color: var(--text-primary); text-align: left; direction: ltr; }

/* Day Card */
.day-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  cursor: pointer;
  backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
  transition: all var(--t-fast) var(--ease-spring);
}
.day-card:hover {
  background: var(--lg-bg-glass-hover);
  transform: translateY(-2px);
}
.day-card.active-day {
  border-color: var(--emerald-rim);
  border-top-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px -4px rgba(16, 185, 129, 0.20), inset 0 1.5px 0 rgba(255, 255, 255, 0.98);
}
.day-card.rest-day { opacity: 0.65; cursor: default; }

.day-badge {
  min-width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--lg-border-rim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glass-btn);
  flex-shrink: 0;
}
.day-badge-num { font-size: 16px; font-weight: 900; line-height: 1; }
.day-badge-lbl { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.day-card.active-day .day-badge {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald-vibrant);
}
.day-card.active-day .day-badge-num { color: var(--emerald-deep); }

.day-info { flex: 1; min-width: 0; }
.day-title { font-size: 14px; font-weight: 900; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-muscles { font-size: 12px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-duration {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.day-duration svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* ================================================================
   SCREEN: Nutrition Dashboard (Apple Liquid Glass)
   ================================================================ */

.caloric-ring-wrap {
  position: relative;
  width: 195px;
  height: 195px;
}
.caloric-ring-svg {
  width: 195px;
  height: 195px;
  transform: rotate(-90deg);
}
.ring-track { fill: none; stroke: rgba(15, 23, 42, 0.08); stroke-width: 14; }
.ring-fill  { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease-spring); }
.ring-fill.protein { stroke: var(--rose-vibrant); }
.ring-fill.carb    { stroke: var(--amber-vibrant); }
.ring-fill.fat     { stroke: var(--cyan-vibrant); }

.caloric-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.caloric-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.caloric-unit { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-top: 4px; }

.caloric-legend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-right: 18px;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.legend-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.legend-val { font-size: 14px; font-weight: 900; color: var(--text-primary); margin-right: 4px; }

/* Macro Grid */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.macro-box {
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
  position: relative;
  overflow: hidden;
}
.macro-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
}
.macro-box.protein { border-color: rgba(244, 63, 94, 0.40); }
.macro-box.protein::before { background: var(--rose-vibrant); box-shadow: 0 2px 10px var(--rose-vibrant); }
.macro-box.carb { border-color: rgba(245, 158, 11, 0.40); }
.macro-box.carb::before { background: var(--amber-vibrant); box-shadow: 0 2px 10px var(--amber-vibrant); }
.macro-box.fat { border-color: rgba(6, 182, 212, 0.40); }
.macro-box.fat::before { background: var(--cyan-vibrant); box-shadow: 0 2px 10px var(--cyan-vibrant); }

.macro-icon { font-size: 22px; margin-bottom: 4px; }
.macro-grams {
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.macro-box.protein .macro-grams { color: var(--rose-deep); }
.macro-box.carb    .macro-grams { color: var(--amber-deep); }
.macro-box.fat     .macro-grams { color: var(--cyan-deep); }
.macro-label { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-top: 4px; }
.macro-pct   { font-size: 11px; font-weight: 700; color: var(--text-dimmed); margin-top: 2px; }

/* TDEE Strip */
.tdee-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.tdee-cell {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-md);
  padding: 13px 8px;
  text-align: center;
  box-shadow: var(--shadow-glass-btn);
}
.tdee-val { font-size: 17px; font-weight: 900; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.tdee-lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 3px; }

/* Hydration */
.hydration-track {
  height: 10px;
  background: rgba(6, 182, 212, 0.14);
  border-radius: var(--r-capsule);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.hydration-fill {
  height: 100%;
  border-radius: var(--r-capsule);
  background: linear-gradient(90deg, #06B6D4, #38BDF8);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.50);
  transition: width 0.6s var(--ease-spring);
}
.hydration-controls { display: flex; gap: 8px; }
.hydration-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--r-capsule);
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  transition: all var(--t-fast);
}
.hydration-btn:active { transform: scale(0.96); background: rgba(6, 182, 212, 0.25); }

/* Meal Timeline */
.meal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  backdrop-filter: var(--blur-liquid-card);
  box-shadow: var(--shadow-liquid-card);
}
.meal-time {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--emerald-deep);
  min-width: 50px;
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.meal-info { flex: 1; min-width: 0; }
.meal-name { font-size: 14px; font-weight: 900; color: var(--text-primary); }
.meal-macros { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   SCREEN: AI Coach Intake (Apple Liquid Glass)
   ================================================================ */

.intake-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.40);
  box-shadow: var(--shadow-glass-btn);
  margin-bottom: 14px;
}
.intake-status-left { display: flex; align-items: center; gap: 12px; }
.intake-status-icon { font-size: 24px; }
.intake-status-title { font-size: 14.5px; font-weight: 900; color: var(--text-primary); }
.intake-status-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.intake-ready-badge {
  font-size: 12px;
  font-weight: 900;
  color: var(--emerald-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 5px 14px;
  border-radius: var(--r-capsule);
  box-shadow: var(--shadow-glass-btn);
}

.bio-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 4px;
}
.bio-row::-webkit-scrollbar { display: none; }
.bio-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--lg-border-rim);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-glass-btn);
}
.bio-val { font-size: 16px; font-weight: 900; color: var(--text-primary); }
.bio-lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

/* Chat Bubbles */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.chat-bubble {
  max-width: 88%;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow-liquid-card);
  position: relative;
}
.chat-bubble.coach {
  align-self: flex-start;
  background: var(--lg-bg-glass-card);
  border: 1px solid var(--lg-border-subtle);
  border-top: 1.5px solid var(--lg-border-top);
  color: var(--text-primary);
  border-top-right-radius: 4px;
  backdrop-filter: var(--blur-liquid-card);
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  border-top-left-radius: 4px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.chat-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.chat-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

/* ================================================================
   BOTTOM SHEET DRAWER (Apple Glass)
   ================================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--lg-bg-scrim);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.drawer {
  width: 100%;
  max-width: var(--app-max-w);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--blur-liquid-heavy);
  -webkit-backdrop-filter: var(--blur-liquid-heavy);
  border-top: 1.5px solid var(--lg-border-top);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  padding: 16px 22px 44px;
  box-shadow: 0 -28px 72px rgba(15, 23, 42, 0.18);
  animation: drawerUp 0.3s var(--ease-spring) forwards;
}
@keyframes drawerUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.drawer-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--r-capsule);
  background: rgba(15, 23, 42, 0.20);
  margin: 0 auto 18px;
}
.drawer-title { font-size: 17px; font-weight: 900; color: var(--text-primary); margin-bottom: 16px; }

.swap-exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--lg-border-rim);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  transition: all var(--t-fast);
}
.swap-exercise-row:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-1px); }
.swap-exercise-row:active { transform: scale(0.98); }
.swap-exr-name { font-size: 14.5px; font-weight: 900; color: var(--text-primary); }
.swap-exr-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.swap-exr-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-deep);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 16px;
}

/* ================================================================
   TOAST NOTIFICATION (Apple Liquid Glass)
   ================================================================ */
.toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  max-width: calc(var(--app-max-w) - 32px);
  width: 90%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--lg-border-top);
  border-radius: var(--r-capsule);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: var(--blur-liquid-heavy);
  -webkit-backdrop-filter: var(--blur-liquid-heavy);
  transition: transform 0.25s var(--ease-spring), opacity 0.25s;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast.success { border-color: rgba(16, 185, 129, 0.50); }
.toast.warning { border-color: rgba(245, 158, 11, 0.50); }
.toast.error   { border-color: rgba(244, 63, 94, 0.50); }

/* ================================================================
   AI LOADING ANIMATION
   ================================================================ */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--lg-border-rim);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-glass-btn);
  margin-bottom: 14px;
}
.ai-loading-dots {
  display: flex;
  gap: 6px;
}
.ai-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-vibrant);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--cyan-vibrant); }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--violet-vibrant); }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1.18); opacity: 1; }
}
.ai-loading-text { font-size: 14px; font-weight: 800; color: var(--text-secondary); }

/* ================================================================
   MISC UTILITIES
   ================================================================ */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-8  { display: flex; align-items: center; gap: 8px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.text-emerald { color: var(--emerald-deep); }
.text-cyan    { color: var(--cyan-deep); }
.text-amber   { color: var(--amber-deep); }
.text-rose    { color: var(--rose-deep); }
.text-muted   { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-center { text-align: center; }
