/* ==========================================================================
   BOLT RUNNING APP - DESIGN SYSTEM (FIGMA EXACT REPLICA: LIGHT THEME)
   Colores: Blanco puro (#ffffff), Fondo (#f8f9fa), Verde Lima Eléctrico (#ccff00 / #b8ff00), Texto Negro (#000000)
   ========================================================================== */

:root {
  --bg-app: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f5;
  --bg-subtle: #f3f4f6;

  --bolt-black: #0d0f12;
  --bolt-gray-dark: #1f242d;
  --bolt-gray: #6b7280;
  --bolt-gray-light: #9ca3af;
  --bolt-border: #e5e7eb;
  --bolt-border-strong: #d1d5db;

  /* Accent: Figma Bolt Electric Lime */
  --bolt-lime: #ccff00;
  --bolt-lime-hover: #bbf000;
  --bolt-lime-dim: rgba(204, 255, 0, 0.25);
  --bolt-lime-border: rgba(184, 255, 0, 0.6);

  --font-family: -apple-system, BlinkMacSystemFont, "Outfit", "Inter", "Helvetica Neue", sans-serif;

  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lime: 0 6px 20px rgba(204, 255, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--bolt-black);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Frame */
.mobile-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 95px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

@media (min-width: 480px) {
  body {
    padding: 24px 0;
    background-color: #e9ecef;
  }
  .mobile-viewport {
    border-radius: 40px;
    border: 1px solid var(--bolt-border);
    overflow: hidden;
  }
}

/* ZarpaFit Header Navigation */
.bolt-top-header {
  padding: env(safe-area-inset-top, 16px) 22px 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.bolt-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.bolt-menu-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--bolt-black);
  border-radius: 2px;
}

.bolt-brand-logo {
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  color: var(--bolt-black);
  display: flex;
  align-items: center;
  gap: 2px;
}

.bolt-brand-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--bolt-lime);
  border-radius: 50%;
  margin-bottom: -6px;
}

.bolt-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--bolt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bolt-black);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Content Container */
.bolt-content {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* History Hero Section (Figma: 46,00 Kilometer) */
.history-hero-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

.history-hero-box .label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bolt-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-hero-box .big-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.history-hero-box .big-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--bolt-black);
  line-height: 1;
  letter-spacing: -1.5px;
}

.history-hero-box .unit {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bolt-gray);
}

/* 3 Stats Row in Figma (Runs, Avg Pace, Time) */
.history-stats-pill-row {
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}

.history-stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-stat-col .val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bolt-black);
}

.history-stat-col .lbl {
  font-size: 0.72rem;
  color: var(--bolt-gray);
  font-weight: 600;
}

/* Activities List (Figma: Your Last 3 Activities) */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-headline h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bolt-black);
  letter-spacing: -0.3px;
}

.section-headline .link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bolt-black);
  text-decoration: none;
  cursor: pointer;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-card {
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.activity-card:hover {
  border-color: var(--bolt-border-strong);
  transform: translateY(-1px);
}

.activity-card.highlight {
  border: 2px solid var(--bolt-black);
  background: #fafafa;
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bolt-lime-dim);
  border: 1px solid var(--bolt-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bolt-black);
  flex-shrink: 0;
}

.activity-meta .title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--bolt-black);
}

.activity-meta .sub {
  font-size: 0.75rem;
  color: var(--bolt-gray);
  margin-top: 2px;
}

.activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.activity-distance {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--bolt-black);
  letter-spacing: -0.5px;
}

.activity-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bolt-gray);
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* Big Action Card: START SESSION (Figma Controller Card) */
.start-session-banner {
  background: var(--bolt-black);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: var(--shadow-float);
  margin-top: 4px;
}

.start-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.start-banner-text .tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bolt-lime);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-banner-text .title {
  font-size: 1.1rem;
  font-weight: 800;
}

.start-banner-text .desc {
  font-size: 0.8rem;
  color: #9ca3af;
}

.btn-start-bolt {
  background: var(--bolt-lime);
  color: var(--bolt-black);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-lime);
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-start-bolt:hover {
  background-color: var(--bolt-lime-hover);
  transform: scale(1.03);
}

/* Running Programs Grid (Figma: Eliud Kipchoge 42KM, 10KM...) */
.programs-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.programs-scroll-row::-webkit-scrollbar {
  display: none;
}

.program-card-figma {
  min-width: 170px;
  height: 220px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: var(--bolt-black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  cursor: pointer;
}

.program-card-figma img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.program-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.program-card-content .name {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.program-card-content .km-badge {
  background: var(--bolt-lime);
  color: var(--bolt-black);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-top: 4px;
}

/* ==========================================================================
   ACTIVE RUNNING SCREEN (FIGMA ROW 3: CLEAN WHITE / MAP TRACKER)
   ========================================================================== */
.workout-view-modal {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.workout-view-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.workout-header-white {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--bolt-border);
}

.workout-header-white .title-center {
  text-align: center;
}

.workout-header-white .title-center .main {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bolt-black);
}

.workout-header-white .title-center .sub {
  font-size: 0.75rem;
  color: var(--bolt-gray);
}

/* Floating Audio Prompt Banner */
.voice-cue-pill-white {
  margin: 12px 20px 0 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--bolt-black);
  font-weight: 600;
}

.voice-cue-pill-white .left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cadence-mini-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--bolt-black);
  color: var(--bolt-lime);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  animation: cadencePulse 0.35s infinite alternate ease-in-out;
}

@keyframes cadencePulse {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* Coach Personality Selector (Fase 3) */
.coach-personality-selector {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-coach-option {
  flex: 1;
  padding: 8px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bolt-border);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bolt-black);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-coach-option:hover {
  background: #f3f4f6;
}

.btn-coach-option.active {
  background: var(--bolt-lime);
  border-color: var(--bolt-lime);
  color: var(--bolt-black);
  box-shadow: 0 2px 6px rgba(204, 255, 0, 0.4);
}

/* Giant Digital Center (Figma: 00,00 Clean Black on White) */
.workout-main-white {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 14px 20px;
  gap: 4px;
}

.workout-stage-badge {
  background: var(--bolt-lime);
  color: var(--bolt-black);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.workout-stage-badge.walk {
  background: #e5e7eb;
  color: var(--bolt-gray-dark);
}

.workout-digits-giant {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--bolt-black);
  letter-spacing: -2.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}

.workout-next-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bolt-gray);
}

/* Blocks Segmented Pills (Figma clean line) */
.workout-segmented-bar {
  display: flex;
  gap: 5px;
  width: 100%;
  max-width: 280px;
  height: 6px;
  margin: 12px 0;
}

.segment-pill {
  flex: 1;
  border-radius: 3px;
  background: #e5e7eb;
}

.segment-pill.done {
  background: var(--bolt-black);
  opacity: 0.3;
}

.segment-pill.active {
  background: var(--bolt-lime);
  box-shadow: 0 0 8px rgba(204, 255, 0, 0.8);
}

/* 3-Column Metrics (Figma: Pace 0'00", Duration 00:00, Calories / Heart) */
.workout-metrics-white-strip {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 16px 20px;
  border-top: 1px solid var(--bolt-border);
  border-bottom: 1px solid var(--bolt-border);
  background: #fafafa;
}

.metric-col-white {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.metric-col-white .num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--bolt-black);
  font-variant-numeric: tabular-nums;
}

.metric-col-white .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bolt-gray);
  text-transform: uppercase;
}

/* ==========================================================================
   FASE 2: LIVE GPS MAP & TELEMETRY (LEAFLET BOLT THEME)
   ========================================================================== */
.workout-map-card {
  margin: 14px 20px 8px 20px;
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fafafa;
  border-bottom: 1px solid var(--bolt-border);
}

.map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bolt-black);
}

.gps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background-color 0.3s;
}

.gps-dot.active {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: gpsPulseDot 1.8s infinite ease-in-out;
}

.gps-dot.warning {
  background: #eab308;
}

@keyframes gpsPulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.map-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-map-tool {
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bolt-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-map-tool:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.btn-map-tool.active {
  background: var(--bolt-lime);
  border-color: var(--bolt-lime);
  color: var(--bolt-black);
}

.live-run-map {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  z-index: 10;
}

/* Custom Leaflet Runner Marker */
.leaflet-runner-marker {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaflet-runner-marker .marker-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.45);
  animation: runnerPulseRing 1.8s infinite ease-out;
}

.leaflet-runner-marker .marker-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bolt-lime);
  border: 2.5px solid #0d0f12;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

@keyframes runnerPulseRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.leaflet-control-attribution {
  font-size: 8px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  padding: 1px 4px !important;
  border-radius: 3px;
}

/* Bottom Running Controls (Figma Controller: Pause Lime, Stop, Skip) */
.workout-controls-white {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px 20px 30px 20px;
  margin-top: auto;
}

.btn-ctrl-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--bolt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bolt-black);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-ctrl-lime-giant {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--bolt-lime);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bolt-black);
  cursor: pointer;
  box-shadow: var(--shadow-lime);
  transition: transform 0.15s;
}

.btn-ctrl-lime-giant:active {
  transform: scale(0.92);
}

/* ==========================================================================
   PROGRAMS / 52 WEEKS SCHEDULE SCREEN (FIGMA ROW 2: DAYS 1-7)
   ========================================================================== */
.schedule-days-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-schedule-card {
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}

.day-schedule-card:hover {
  border-color: var(--bolt-black);
}

.day-schedule-card.current {
  border: 2px solid var(--bolt-black);
  background: #fdfdfd;
}

.day-num-badge {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--bolt-lime);
  -webkit-text-stroke: 1px var(--bolt-black);
  text-shadow: 1px 1px 0 var(--bolt-black);
  width: 38px;
}

.day-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 0 12px;
}

.day-details .day-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bolt-black);
}

.day-details .day-sub {
  font-size: 0.78rem;
  color: var(--bolt-gray);
}

/* ==========================================================================
   BOTTOM iOS NAVIGATION BAR (FIGMA CLEAN WHITE)
   ========================================================================== */
.bolt-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bolt-border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 18px 0;
  z-index: 100;
}

.tab-btn-bolt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--bolt-gray);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 2px;
}

.tab-btn-bolt svg {
  width: 22px;
  height: 22px;
  stroke: var(--bolt-gray);
  fill: none;
  transition: stroke 0.2s;
}

.tab-btn-bolt.active {
  color: var(--bolt-black);
}

.tab-btn-bolt.active svg {
  stroke: var(--bolt-black);
}

.tab-btn-bolt.active .dot-active {
  width: 4px;
  height: 4px;
  background: var(--bolt-lime);
  border-radius: 50%;
}

/* ==========================================
   FIGMA BOLT STYLE LOGIN SCREEN
   ========================================== */
.auth-gate {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-inner {
  width: 100%;
  max-width: 420px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 28px) 24px;
  box-sizing: border-box;
  margin: auto;
}

.auth-hero-card {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 26px;
  overflow: hidden;
  margin: 18px 0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
}

.auth-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-hero-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
}

.bolt-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bolt-lime);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.live-dot-green {
  width: 7px;
  height: 7px;
  background: var(--bolt-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--bolt-lime);
}

.auth-gate-title {
  font-size: 1.7rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--bolt-black);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-gate-desc {
  font-size: 0.88rem;
  color: var(--bolt-gray);
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
  padding: 0 10px;
}

.auth-gate-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn-auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  border-radius: 27px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-auth-primary:active {
  transform: scale(0.98);
}

.btn-auth-primary.btn-google {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: var(--bolt-black);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.btn-auth-primary.btn-google:hover {
  background: #f8fafc;
  border-color: var(--bolt-black);
}

.btn-auth-primary.btn-apple {
  background: var(--bolt-black);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-auth-primary.btn-apple:hover {
  background: #1e293b;
}

.auth-legal-note {
  font-size: 0.72rem;
  color: var(--bolt-gray);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
}

.auth-error-msg {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  font-size: 0.76rem;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.3;
}

/* ==========================================
   USER PROFILE BOTTOM SHEET MODAL
   ========================================== */
.auth-sheet-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 6000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.auth-sheet-overlay.open {
  display: flex;
}

.auth-sheet-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px 34px 22px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin-bottom: 0;
}

.auth-sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 10px;
  margin: 0 auto 16px auto;
}

.user-profile-header {
  text-align: center;
  padding: 8px 0 16px 0;
}

.profile-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bolt-black);
  color: var(--bolt-lime);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  overflow: hidden;
  border: 2px solid var(--bolt-border);
}

.profile-big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-badge-synced {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 8px;
}

.user-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-subtle);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--bolt-border);
  margin-top: 14px;
}

.user-profile-stats .p-stat {
  text-align: center;
}

.user-profile-stats .p-stat .v {
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
  color: var(--bolt-black);
}

.user-profile-stats .p-stat .l {
  font-size: 0.7rem;
  color: var(--bolt-gray);
  text-transform: uppercase;
  font-weight: 700;
}

.btn-signout {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: #fee2e2;
  border: none;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-signout:hover {
  background: #fecaca;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================================================
   FASE 4: HOME WORKOUTS & CONFIGURATOR (FUERZA & EN CASA)
   ========================================================================== */
.home-config-box {
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-config-header .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--bolt-gray);
}

.home-config-header .badge-time {
  background: var(--bolt-lime);
  color: var(--bolt-black);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.config-duration-selector {
  display: flex;
  gap: 8px;
}

.btn-time-opt {
  flex: 1;
  padding: 8px 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--bolt-border);
  background: #f9fafb;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bolt-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-time-opt:hover {
  background: #f3f4f6;
}

.btn-time-opt.active {
  background: var(--bolt-black);
  color: #ffffff;
  border-color: var(--bolt-black);
}

.config-mode-switch {
  display: flex;
  background: #f3f4f6;
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.btn-mode-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bolt-gray-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode-tab.active {
  background: #ffffff;
  color: var(--bolt-black);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plan-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.plan-status-strip .plan-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bolt-black);
  display: block;
}

.plan-status-strip .plan-state {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 700;
}

.btn-toggle-plan {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.equipment-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 4px 0;
  scrollbar-width: none;
}

.equipment-chips-row::-webkit-scrollbar {
  display: none;
}

.eq-chip {
  background: #f3f4f6;
  border: 1px solid var(--bolt-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bolt-black);
  white-space: nowrap;
}

.home-routines-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.home-routine-card {
  background: #ffffff;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.home-routine-card:hover {
  transform: translateY(-1px);
}

.home-routine-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.home-routine-card .title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bolt-black);
}

.home-routine-card .sub {
  font-size: 0.78rem;
  color: var(--bolt-gray);
  margin-top: 2px;
}

.home-routine-card .meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.home-routine-card .exercise-preview-list {
  background: #fafafa;
  border: 1px solid var(--bolt-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--bolt-gray-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-routine-card .action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.home-plans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.home-plan-card {
  background: #ffffff;
  border: 1.5px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.home-plan-card.active {
  border-color: var(--bolt-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-plan-card .badge {
  background: var(--bolt-lime);
  color: var(--bolt-black);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.exercise-tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  max-width: 340px;
  text-align: left;
  margin: 8px 0;
}

.exercise-tip-card .tip-label {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--bolt-gray);
  letter-spacing: 0.5px;
  display: block;
}

.exercise-tip-card p {
  font-size: 0.78rem;
  color: var(--bolt-black);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}

.eq-mini-badge {
  background: #f3f4f6;
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bolt-black);
}

/* ==========================================================================
   QUICK TOOLS STRIP (HISTORIAL, ESTIRAMIENTOS, MODO NOCHE)
   ========================================================================== */
.quick-tools-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.btn-quick-tool {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--bg-card);
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bolt-black);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-quick-tool svg {
  width: 16px;
  height: 16px;
  stroke: var(--bolt-black);
  flex-shrink: 0;
}

.btn-quick-tool:hover, .btn-quick-tool:active {
  background: var(--bg-subtle);
  border-color: var(--bolt-border-strong);
  transform: translateY(-1px);
}

/* ==========================================================================
   POST-WORKOUT BUTTONS: GPX & STRETCHING
   ========================================================================== */
.btn-gpx-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 12px;
  background: #f3f4f6;
  border: 1px solid var(--bolt-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bolt-black);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gpx-export:hover {
  background: #e5e7eb;
}

.btn-stretch-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 12px;
  background: var(--bolt-black);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bolt-lime);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-stretch-post:hover {
  opacity: 0.9;
}

/* ==========================================================================
   HISTORY MODAL & SESSION CARDS
   ========================================================================== */
.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.history-item-card {
  background: var(--bg-card);
  border: 1px solid var(--bolt-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--bolt-black);
}

.history-item-date {
  font-size: 0.72rem;
  color: var(--bolt-gray);
  font-weight: 600;
}

.history-item-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.history-metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.history-metric-box .val {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--bolt-black);
}

.history-metric-box .lbl {
  font-size: 0.65rem;
  color: var(--bolt-gray);
  font-weight: 700;
  text-transform: uppercase;
}

.history-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-sport-run {
  background: rgba(204, 255, 0, 0.25);
  color: #274800;
  border: 1px solid rgba(184, 255, 0, 0.7);
}

.badge-sport-home {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pain-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.pain-green {
  background: #dcfce7;
  color: #166534;
}

.pain-yellow {
  background: #fef9c3;
  color: #854d0e;
}

.pain-red {
  background: #fee2e2;
  color: #991b1b;
}

.btn-gpx-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bolt-black);
  color: var(--bolt-lime);
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-gpx-mini:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   BOLT DARK THEME (OLED PURE BLACK #000000 + ELECTRIC LIME #CCFF00)
   ========================================================================== */
body.dark-theme {
  --bg-app: #000000;
  --bg-card: #111317;
  --bg-card-hover: #191c22;
  --bg-subtle: #16181e;
  --bolt-black: #f8f9fa;
  --bolt-gray-dark: #e5e7eb;
  --bolt-gray: #9ca3af;
  --bolt-gray-light: #6b7280;
  --bolt-border: #22262f;
  --bolt-border-strong: #374151;
  background-color: #000000;
  color: #f8f9fa;
}

body.dark-theme .mobile-container {
  background-color: #000000;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.95);
}

body.dark-theme .bolt-top-bar {
  background-color: rgba(0, 0, 0, 0.88);
  border-bottom-color: #22262f;
}

body.dark-theme .bolt-tab-bar {
  background-color: rgba(0, 0, 0, 0.95);
  border-top-color: #22262f;
}

body.dark-theme .tab-btn-bolt svg {
  stroke: #9ca3af;
}

body.dark-theme .tab-btn-bolt.active svg {
  stroke: var(--bolt-lime);
}

body.dark-theme .bolt-card,
body.dark-theme .home-config-box,
body.dark-theme .home-routine-card,
body.dark-theme .home-plan-card,
body.dark-theme .card-phase,
body.dark-theme .settings-group,
body.dark-theme .history-item-card,
body.dark-theme .activity-card {
  background-color: #111317 !important;
  border-color: #22262f !important;
  color: #f8f9fa;
}

body.dark-theme .bolt-brand-logo {
  color: #ffffff;
}

body.dark-theme .streak-fire-pill,
body.dark-theme .btn-filter-chip,
body.dark-theme .btn-quick-tool,
body.dark-theme .eq-chip {
  background-color: #16181e;
  border-color: #2b303c;
  color: #f8f9fa;
}

body.dark-theme .btn-quick-tool svg {
  stroke: #f8f9fa;
}

body.dark-theme .workout-view-modal {
  background-color: #000000;
}

body.dark-theme .workout-header-white {
  background-color: #000000;
  border-bottom-color: #22262f;
  color: #ffffff;
}

body.dark-theme .workout-header-white button,
body.dark-theme .workout-header-white .main {
  color: #ffffff;
}

body.dark-theme .voice-cue-pill-white {
  background-color: #16181e;
  border-color: #2b303c;
  color: #f8f9fa;
}

body.dark-theme .voice-cue-pill-white svg {
  stroke: var(--bolt-lime);
}

body.dark-theme .workout-main-white,
body.dark-theme .workout-digits-giant {
  color: #ffffff;
}

body.dark-theme .workout-metrics-white-strip,
body.dark-theme .history-item-metrics {
  background-color: #111317;
  border-color: #22262f;
}

body.dark-theme .metric-col-white .num,
body.dark-theme .history-metric-box .val {
  color: #ffffff;
}

body.dark-theme .workout-controls-white {
  background-color: #000000;
  border-top-color: #22262f;
}

body.dark-theme .btn-ctrl-round {
  background-color: #16181e;
  border-color: #2b303c;
  color: #ffffff;
}

body.dark-theme .exercise-tip-card {
  background-color: #16181e;
  border-color: #2b303c;
  color: #f8f9fa;
}

body.dark-theme .exercise-tip-card p {
  color: #f8f9fa;
}

body.dark-theme .post-modal-content,
body.dark-theme .auth-sheet-card {
  background-color: #111317;
  color: #ffffff;
  border: 1px solid #22262f;
}

body.dark-theme .auth-gate {
  background-color: #000000;
}

body.dark-theme .btn-gpx-export {
  background-color: #16181e;
  border-color: #2b303c;
  color: #f8f9fa;
}

body.dark-theme .btn-stretch-post {
  background-color: var(--bolt-lime);
  color: #000000;
}

body.dark-theme .badge-sport-run {
  background: rgba(204, 255, 0, 0.2);
  color: var(--bolt-lime);
  border-color: rgba(204, 255, 0, 0.5);
}

body.dark-theme .badge-sport-home {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.4);
}

