/* Modern Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #edeef1;
  --bg-input: #f0f1f4;
  --text-primary: #1a1d2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.10);
  --accent-glow: rgba(245, 158, 11, 0.18);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.10);
  --warning: #f97316;
  --danger: #ef4444;
  --info: #3b82f6;
  --pink: #ec4899;
  --purple: #8b5cf6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(80px + var(--safe-bottom));
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }

/* ===== HEADER ===== */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 3px 12px var(--accent-glow);
}
.brand-icon i { width: 18px; height: 18px; }

/* ===== TABS ===== */
.tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.35s ease forwards;
  padding: 20px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  z-index: 100;
}

.bottom-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 25%;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item i { width: 22px; height: 22px; transition: var(--transition); }

.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px var(--accent-glow));
}
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 22px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

/* ===== TYPOGRAPHY ===== */
h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }

p.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== CARDS ===== */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

/* ===== METRICS GRID ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.metric-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card.steps .metric-icon-box { background: var(--accent-light); color: var(--accent); }

.metric-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.metric-value { font-size: 22px; font-weight: 800; }
.metric-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

.metric-bar-bg {
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.metric-card.steps .metric-bar-fill { background: linear-gradient(90deg, var(--accent), #fbbf24); }

/* ===== BUTTONS ===== */
.dashboard-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition);
}
.dashboard-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.3); }
.dashboard-btn:active { transform: translateY(1px); }
.dashboard-btn:disabled { background: var(--bg-tertiary); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }

.dashboard-btn.btn-completed {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
  box-shadow: none;
}

.dashboard-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: 10px;
}
.dashboard-btn-secondary:hover { background: var(--bg-tertiary); }

/* ===== TODAY WORKOUT PREVIEW ===== */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.preview-header h4 { font-size: 16px; font-weight: 700; }
.preview-header p { font-size: 12px; color: var(--text-secondary); }

.preview-badge {
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.preview-progress-bar {
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.preview-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34d399);
  transition: width 0.4s ease;
}

.preview-ex-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.preview-ex-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-primary);
}
.preview-ex-item.done { opacity: 0.55; }

.preview-ex-check { display: flex; color: var(--text-muted); }
.preview-ex-item.done .preview-ex-check { color: var(--success); }

.preview-ex-info h5 { font-size: 13px; font-weight: 600; }
.preview-ex-info p { font-size: 11px; color: var(--text-secondary); }

/* ===== STRETCHING WIDGET ===== */
.stretching-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(139,92,246,0.04));
}
.stretching-info { display: flex; gap: 12px; align-items: center; }
.stretching-icon {
  background: rgba(139,92,246,0.08);
  color: var(--purple);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stretching-text h4 { font-size: 14px; font-weight: 700; }
.stretching-text p { font-size: 11px; color: var(--text-secondary); }

/* ===== CUSTOM CHECKBOX ===== */
.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  cursor: pointer;
  margin-top: 2px;
}
.custom-checkbox input { opacity: 0; width: 0; height: 0; }
.checkmark {
  position: absolute;
  top: 0; left: 0;
  height: 22px; width: 22px;
  background: var(--bg-tertiary);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 7px;
  transition: var(--transition);
}
.custom-checkbox input:checked + .checkmark {
  background: var(--success);
  border-color: var(--success);
}
.checkmark:after {
  content: ""; position: absolute; display: none;
}
.custom-checkbox input:checked + .checkmark:after { display: block; }
.custom-checkbox .checkmark:after {
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ===== PUSH-UP CHALLENGE ===== */
.pushup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
}

.pushups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 380px) {
  .pushups-grid { grid-template-columns: repeat(4, 1fr); }
}

.pushup-day-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1.5px solid rgba(0,0,0,0.05);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.pushup-day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.pushup-day-card.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-md);
}
.pushup-day-card.completed {
  background: var(--success-light);
  border-color: rgba(16,185,129,0.25);
}

.day-number {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  position: absolute;
  top: 4px;
  left: 7px;
}
.day-reps { font-size: 18px; font-weight: 800; }
.pushup-day-card.completed .day-reps { color: var(--success); }
.pushup-day-card.current .day-reps { color: var(--accent); }

.day-check { color: var(--success); position: absolute; bottom: 4px; right: 6px; }
.day-check i { width: 12px; height: 12px; }

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal.active { opacity: 1; pointer-events: all; }

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}
.modal.active .modal-content { transform: translateY(0); }

.modal-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-actions-stacked { display: flex; flex-direction: column; gap: 10px; }

.modal-btn-green {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-btn-red {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* ===== WORKOUTS ===== */
.workout-day-tabs {
  display: flex;
  justify-content: space-between;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
}

.workout-day-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.workout-day-tab.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--accent-glow); }
.workout-day-tab.today { color: var(--accent); }
.workout-day-tab.active.today { color: #fff; }

.today-dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  bottom: 3px;
}
.workout-day-tab.active .today-dot { background: #fff; }

.workout-header-card {
  text-align: center;
  margin-bottom: 20px;
  padding: 18px 16px;
  background: linear-gradient(135deg, var(--accent-light), rgba(251,191,36,0.06));
  border-radius: var(--radius-md);
}
.workout-header-card h2 { font-size: 20px; margin-bottom: 2px; }
.workout-header-card p { color: var(--accent-hover); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.exercises-list { display: flex; flex-direction: column; gap: 14px; }

.exercise-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid var(--bg-tertiary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.exercise-card.completed { border-left-color: var(--success); opacity: 0.7; }

.exercise-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.exercise-meta h4 { font-size: 15px; font-weight: 700; line-height: 1.3; }

.exercise-tag {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  text-transform: uppercase;
}
.exercise-card.completed .exercise-tag { background: var(--success-light); color: var(--success); }

.exercise-details {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-left: 34px;
}

/* ===== RUNNING STAGE BOX ===== */
.running-stage-box {
  margin-top: 12px;
  margin-left: 34px;
  background: var(--bg-primary);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 12px;
}
.running-stage-select-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.running-stage-select-group label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.running-stage-select-group select {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.05);
  font-family: var(--font-main);
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 8px;
  outline: none;
}

.timer-launch-btn {
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 10px;
  width: 100%;
  padding: 10px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.timer-launch-btn:hover { background: var(--accent); color: #fff; }
.timer-launch-btn i { width: 14px; height: 14px; }

/* ===== NUTRITION INPUT CARDS ===== */
.nutrition-item-card { margin-bottom: 16px; }
.nutrition-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.nutrition-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.nutrition-item-title i { width: 18px; height: 18px; }
.title-steps i { color: var(--accent); }
.title-protein i { color: var(--pink); }

.nutrition-item-value { font-size: 14px; font-weight: 700; }

.gauge-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gauge-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.input-row input {
  flex: 1;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

/* ===== RULES CONTAINER ===== */
.rules-container { display: flex; flex-direction: column; gap: 10px; }
.rule-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-primary);
  padding: 12px 14px;
  border-radius: 10px;
}
.rule-icon { color: var(--accent); display: flex; margin-top: 2px; }
.rule-text h5 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.rule-text p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

/* ===== SETTINGS ===== */
.settings-group { display: flex; flex-direction: column; gap: 14px; }
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.setting-label { font-weight: 600; font-size: 14px; }
.setting-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.setting-input {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 14px;
  width: 80px;
  text-align: center;
  outline: none;
}
.setting-input:focus { border-color: var(--accent); }

.settings-btn-red {
  background: rgba(239,68,68,0.06);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.15);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: var(--transition);
}
.settings-btn-red:hover { background: var(--danger); color: #fff; }

.settings-btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: var(--transition);
}
.settings-btn-secondary:hover { background: var(--bg-tertiary); }

/* ===== TIMER MODAL ===== */
.timer-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.timer-modal.active { opacity: 1; pointer-events: all; }

.timer-screen-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.timer-screen-card.phase-run { border-color: rgba(16,185,129,0.3); box-shadow: 0 0 30px rgba(16,185,129,0.08); }
.timer-screen-card.phase-walk { border-color: rgba(245,158,11,0.3); box-shadow: 0 0 30px var(--accent-light); }
.timer-screen-card.phase-finish { border-color: rgba(139,92,246,0.3); box-shadow: 0 0 30px rgba(139,92,246,0.08); }

.timer-top-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.timer-stage-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

.timer-svg-box { position: relative; width: 200px; height: 200px; margin-bottom: 20px; }
.timer-svg-box svg { transform: rotate(-90deg); }

.timer-circle-bg { fill: none; stroke: var(--bg-tertiary); stroke-width: 8; }
.timer-circle-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}
.phase-run .timer-circle-progress { stroke: var(--success); }
.phase-walk .timer-circle-progress { stroke: var(--accent); }
.phase-finish .timer-circle-progress { stroke: var(--purple); }

.timer-text-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timer-display-time { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-phase-label { font-size: 13px; font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.phase-run .timer-phase-label { color: var(--success); }
.phase-walk .timer-phase-label { color: var(--accent); }
.phase-finish .timer-phase-label { color: var(--purple); }

.timer-repeat-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.timer-total-display { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.timer-actions { display: flex; gap: 12px; width: 100%; }
.timer-btn-primary {
  flex: 2;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.timer-btn-primary.paused { background: var(--success); }

.timer-btn-danger {
  flex: 1;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.timer-btn-danger:hover { background: var(--danger); color: #fff; }
