/* ==========================================================================
   TREINO PRO - DESIGN SYSTEM & MOBILE FIRST STYLES
   Otimizado para Samsung Galaxy S25+ e Smartphones Modernos
   ========================================================================== */

:root {
  --bg-main: #080b11;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-surface: #0f172a;
  --bg-metric: rgba(2, 6, 23, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);

  --accent-primary: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-subtle: rgba(16, 185, 129, 0.1);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--accent-glow);

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #172554 0%, #080b11 60%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* App Container (Galaxy S25+ optimized constraint) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 12px 16px 120px 16px;
  position: relative;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.text-accent {
  color: var(--accent-primary) !important;
}

/* Header & Brand */
.app-header {
  padding-top: max(env(safe-area-inset-top), 8px);
  margin-bottom: 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Mode Switcher (Casa vs Viagem) */
.mode-toggle-wrapper {
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 12px;
}

.mode-indicator-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  z-index: 1;
}

.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.mode-btn.active {
  color: #000000;
}

#btn-mode-viagem.active {
  color: #000000;
}

/* Workout Tabs (A, B, C, Diretrizes) */
.tabs-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.tab-btn-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.tab-btn-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
}

.tab-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 15px var(--accent-glow);
}

.tab-btn.active .tab-btn-sub {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Hero Workout Info Card */
.workout-hero-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.workout-tag-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-glow);
  display: inline-block;
}

.progress-ring-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Exercise Cards */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.exercise-number-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.muscle-pill {
  font-size: 0.65rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.exercise-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.btn-video-preview {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 58px;
}

.btn-video-preview:active {
  transform: scale(0.95);
  background: rgba(239, 68, 68, 0.2);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-box {
  background: var(--bg-metric);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Notes Box */
.notes-box {
  background: rgba(245, 158, 11, 0.07);
  border-left: 3px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

/* Set Tracker */
.set-tracker-container {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 12px;
}

.set-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-metric);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.set-bubble:active {
  transform: scale(0.9);
}

.set-bubble.completed {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000000;
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.05);
}

/* Guidelines Styles */
.guideline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(14px);
}

.guideline-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guideline-tip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

/* Elastic Resistance Reference Table */
.elastic-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 8px;
}

.elastic-ref-table th, .elastic-ref-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.elastic-ref-table th {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.elastic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* Bottom Bar & Floating Rest Timer Button */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px max(env(safe-area-inset-bottom, 12px), 12px) 16px;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  z-index: 40;
}

.bottom-nav-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-floating-timer {
  flex: 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-floating-timer.active-indicator {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-reset-action {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rest Timer Drawer / Bottom Sheet */
.timer-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.timer-drawer-sheet {
  background: #0d1322;
  border-top: 1px solid var(--border-focus);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 18px 20px max(env(safe-area-inset-bottom, 24px), 24px) 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.timer-drawer-overlay.open .timer-drawer-sheet {
  transform: translateY(0);
}

.drawer-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 16px auto;
}

.timer-presets-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.timer-preset-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timer-preset-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Circular Timer Gauge */
.timer-gauge-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.timer-gauge-progress {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
}

.timer-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-countdown-display {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.timer-status-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

.timer-actions-row {
  display: flex;
  gap: 12px;
}

.btn-timer-ctrl {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-timer-primary {
  background: var(--accent-primary);
  color: #000000;
}

.btn-timer-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* Video Modal (YouTube Shorts 9:16 Format) */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.video-modal-content {
  width: 100%;
  max-width: 400px;
  background: #090d16;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.video-modal-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #0f172a;
}

.video-player-aspect-wrapper {
  position: relative;
  width: 100%;
  /* YouTube Shorts Vertical 9:16 Aspect Ratio */
  padding-top: 150%;
  background: #000000;
}

.video-player-aspect-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border-top: 1px solid var(--border-subtle);
}

/* Visual Execution Guide Modal (3-Phase Diagram) */
.guide-modal-content {
  width: 96%;
  max-width: 720px;
  background: #080b11;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.guide-image-wrapper {
  position: relative;
  width: 100%;
  background: #080b11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.guide-image-wrapper img.zoomed {
  width: 190%;
  max-width: none;
  cursor: zoom-out;
}

.guide-image-wrapper img.is-gif {
  width: 240px;
  max-width: 78%;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  margin: 14px auto;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.guide-image-wrapper img.is-gif.zoomed {
  width: 340px;
  max-width: 94%;
}

.guide-modal-notes {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adaptation-alert-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #fde68a;
  line-height: 1.4;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Atomic Utilities for Clean Independent Rendering */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.mb-1 { margin-bottom: 4px; }
.mb-1\.5 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mr-1 { margin-right: 4px; }
.mr-1\.5 { margin-right: 6px; }

.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }

.text-2xl { font-size: 1.5rem; line-height: 1.2; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-sm { font-size: 0.875rem; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1.3; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.text-\[10px\] { font-size: 10px; line-height: 1.2; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.italic { font-style: italic; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

.text-white { color: #ffffff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-emerald-400 { color: #34d399; }
.text-amber-400 { color: #fbbf24; }
.text-cyan-400 { color: #22d3ee; }
.text-red-500 { color: #ef4444; }

.bg-emerald-400 { background-color: #34d399; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }

.w-2 { width: 8px; }
.h-2 { height: 8px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.col-span-2 { grid-column: span 2 / span 2; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

/* Interactive Load Metric Box */
.metric-box-interactive {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.metric-box-interactive:hover, .metric-box-interactive:active {
  border-color: var(--accent-primary);
  background: rgba(15, 23, 42, 0.9);
}

.btn-edit-load-trigger {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--accent-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-glow);
}

.custom-load-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.quick-weight-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-weight-btn:active {
  transform: scale(0.94);
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.quick-band-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-band-btn:active {
  transform: scale(0.95);
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Big Load Preview Card */
.load-value-preview-card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  margin-bottom: 16px;
}

.load-preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.load-preview-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
}

/* Horizontal Stepper Row (Fits Galaxy S25+ width perfectly) */
.steppers-horizontal-row {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-bottom: 16px;
}

.stepper-pill-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 2px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.stepper-pill-btn:active {
  transform: scale(0.92);
}

.stepper-pill-btn.btn-minus {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.stepper-pill-btn.btn-minus:active {
  background: rgba(239, 68, 68, 0.25);
}

.stepper-pill-btn.btn-plus {
  background: var(--accent-subtle);
  border-color: var(--accent-glow);
  color: var(--accent-primary);
}

.stepper-pill-btn.btn-plus:active {
  background: var(--accent-primary);
  color: #000000;
}

/* Gear Button on Exercise Card */
.btn-gear-edit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 38px;
}

.btn-gear-edit:active {
  transform: scale(0.92);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

/* Edit Exercise Form Elements */
.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn-save-edit-ex {
  flex: 2;
  background: var(--accent-primary);
  color: #000000;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-save-edit-ex:active {
  transform: scale(0.97);
}

.btn-restore-edit-ex {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Toast Notification */
.sync-toast {
  position: fixed;
  top: max(env(safe-area-inset-top, 16px), 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-glow);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  max-width: 90vw;
}

.sync-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Backup & Sync Buttons */
.btn-backup-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-backup-action i {
  font-size: 1.25rem;
}

.btn-backup-action:active {
  transform: scale(0.96);
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.btn-import-option-tile {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.btn-import-option-tile:active {
  transform: scale(0.98);
  background: rgba(56, 189, 248, 0.1);
}





