@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121217;
  --bg-card: rgba(20, 20, 27, 0.65);
  --border-color: rgba(255, 255, 255, 0.07);
  
  --pink-neon: #ff2a75;
  --pink-glow: rgba(255, 42, 117, 0.35);
  --pink-hover: #e01b5f;
  --pink-subtle: rgba(255, 42, 117, 0.1);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --font-family: 'Outfit', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-neon) var(--bg-secondary);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--pink-neon);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pink-hover);
}

/* ============================================
   APP SHELL LAYOUT
   ============================================ */
#app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
aside.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.sidebar-header i {
  color: var(--pink-neon);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--pink-neon));
}

.sidebar-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #ff2a75);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.profile-img-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pink-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  box-shadow: 0 0 10px var(--pink-glow);
  flex-shrink: 0;
}

.profile-img-container i {
  color: var(--pink-neon);
  font-size: 1.2rem;
}

.profile-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 140px;
}

.profile-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

nav.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.15rem;
  transition: var(--transition-smooth);
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
  color: #fff;
  background: var(--pink-subtle);
  border-color: rgba(255, 42, 117, 0.25);
  box-shadow: inset 0 0 12px rgba(255, 42, 117, 0.05);
}

.nav-item.active i {
  color: var(--pink-neon);
  filter: drop-shadow(0 0 5px var(--pink-neon));
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* ============================================
   MOBILE NAV BAR (Bottom)
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  gap: 2px;
  transition: var(--transition-smooth);
  flex: 1;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.mobile-nav-item i {
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.mobile-nav-item.active {
  color: var(--pink-neon);
}

.mobile-nav-item.active i {
  filter: drop-shadow(0 0 4px var(--pink-neon));
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Screen wrapper */
.screen {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.screen.active {
  display: block;
}

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

/* ============================================
   HEADER UI ELEMENTS
   ============================================ */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.screen-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.screen-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.header-badge {
  background: var(--pink-subtle);
  border: 1px solid rgba(255, 42, 117, 0.2);
  color: var(--pink-neon);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ============================================
   CARDS & GLASSMORPHISM
   ============================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 42, 117, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 42, 117, 0.02);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============================================
   KPI WIDGETS
   ============================================ */
.kpi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 42, 117, 0.25);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--pink-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-neon);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.kpi-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-info h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2px;
}

.kpi-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   CHECKLIST STYLING
   ============================================ */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.01);
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.checklist-item.checked .checkbox-custom {
  border-color: var(--pink-neon);
  background: var(--pink-neon);
  color: #fff;
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-text {
  font-weight: 500;
  font-size: 0.95rem;
  flex: 1;
  transition: var(--transition-smooth);
}

.checklist-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.checklist-tag.treino { background: var(--pink-subtle); color: var(--pink-neon); }
.checklist-tag.cardio { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.checklist-tag.dieta { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* ============================================
   SUB TABS (Treinos/Dieta)
   ============================================ */
.sub-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
  background: var(--pink-neon);
  border-color: var(--pink-neon);
  color: #fff;
  box-shadow: 0 0 12px var(--pink-glow);
}

/* ============================================
   EXERCISES LAYOUT
   ============================================ */
.exercise-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 50px 1.5fr 1fr 1fr 2fr;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.exercise-card:hover {
  border-color: rgba(255, 42, 117, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.exe-id {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink-neon);
}

.exe-name h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.exe-name p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exe-series, .exe-reps {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.exe-obs {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--pink-subtle);
  padding-left: 12px;
}

/* ============================================
   EXERCISE CARD INTERACTIVE (Checkbox de feito)
   ============================================ */
.exercise-card-interactive {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 50px 1.5fr 1fr 1fr 2fr auto;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.exercise-card-interactive:hover {
  border-color: rgba(255, 42, 117, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.exercise-card-interactive.done {
  opacity: 0.5;
  border-color: rgba(16, 185, 129, 0.3);
}

.exercise-card-interactive .exe-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.exercise-card-interactive.done .exe-check {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

/* ============================================
   WORKOUT PROGRESS BAR
   ============================================ */
.workout-progress-bar {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-neon), #ec4899);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BOTÃO FINALIZAR TREINO
   ============================================ */
.btn-finalize {
  width: 100%;
  padding: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.btn-finalize:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

.btn-finalize:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-finalize.finalized {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  box-shadow: none;
}

/* ============================================
   BUTTONS PRIMARY & SECONDARY
   ============================================ */
.btn-primary {
  background: var(--pink-neon);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px var(--pink-glow);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 42, 117, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ============================================
   ACTIVE TRAINING PANEL (Modal/Overlay)
   ============================================ */
.active-workout-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 40px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.active-workout-panel.active {
  display: flex;
}

.active-workout-content {
  width: 100%;
  max-width: 800px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.active-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.active-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.active-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

/* Exercise Stepper */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-exe-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pink-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.active-exe-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.active-exe-badge {
  background: var(--pink-neon);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-exe-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.active-exe-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 10px;
}

.active-exe-obs {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pink-neon);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.log-sets-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.log-sets-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 8px;
}

.log-sets-table td {
  padding: 8px 0;
}

.log-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: 70px;
  font-family: var(--font-family);
  font-weight: 600;
  text-align: center;
}

.log-input:focus {
  outline: none;
  border-color: var(--pink-neon);
}

/* ============================================
   CIRCULAR TIMER
   ============================================ */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.timer-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.03);
  border-top-color: var(--pink-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.2s ease;
}

.timer-circle.active {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 42, 117, 0.1); }
  100% { transform: scale(1.03); box-shadow: 0 0 25px rgba(255, 42, 117, 0.4); }
}

.timer-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   MEAL TIMELINE
   ============================================ */
.meal-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.meal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.meal-card:hover {
  border-color: rgba(255, 42, 117, 0.2);
}

.meal-left {
  background: linear-gradient(135deg, rgba(255, 42, 117, 0.05), rgba(255, 42, 117, 0.02));
  padding: 24px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meal-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-neon);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meal-title h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 8px;
}

.meal-right {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meal-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.meal-item i {
  color: var(--pink-neon);
  margin-top: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.meal-qty {
  font-weight: 700;
  color: #fff;
}

.meal-substitute {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.meal-notes {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   WATER TRACKER WIDGET
   ============================================ */
.water-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.water-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.water-left i {
  font-size: 2rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.water-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.water-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.water-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.water-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.water-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* ============================================
   FOODS QUERY DATABASE TAB
   ============================================ */
.search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--pink-neon);
  box-shadow: 0 0 10px rgba(255, 42, 117, 0.15);
}

.select-custom {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.select-custom:focus {
  outline: none;
  border-color: var(--pink-neon);
}

.foods-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.food-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.food-item-card:hover {
  border-color: rgba(255, 42, 117, 0.2);
  transform: translateY(-2px);
}

.food-header {
  margin-bottom: 10px;
}

.food-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.food-header span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.food-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.macro-box p {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.macro-box h5 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.food-calc-area {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 10px;
}

.food-calc-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.8rem;
  text-align: center;
}

.food-calc-result {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-neon);
  min-width: 60px;
  text-align: right;
}

/* ============================================
   EVOLUTION TAB / CHART
   ============================================ */
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
  margin-top: 16px;
}

/* ============================================
   BODY PERIMETER MAP
   ============================================ */
.body-map-wrapper {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.body-map-silhouette {
  width: 160px;
  height: 320px;
  position: relative;
  flex-shrink: 0;
}

/* Simple Silhouette using SVG background */
.silhouette {
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200" fill="none" stroke="%23ff2a75" stroke-width="1.5" stroke-linecap="round"><path d="M50 15c4 0 7-3 7-7s-3-7-7-7-7 3-7 7 3 7 7 7zm-5 40c0-10-8-12-8-20 0-4 3-8 8-8s8 4 8 8c0 8-8 10-8 20zm5-25c15 0 25 3 25 15v45c0 5-5 5-5 10v45c0 5 3 10 3 20 0 12-4 15-7 15s-5-5-5-15v-45h-12v45c0 10-2 15-5 15s-7-3-7-15c0-10 3-15 3-20v-45c0-5-5-5-5-10V45c0-12 10-15 25-15z"/></svg>') no-repeat center center;
  opacity: 0.15;
}

.body-hotspot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--pink-neon);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px var(--pink-neon);
  transition: var(--transition-smooth);
}

.body-hotspot:hover {
  transform: scale(1.4);
  box-shadow: 0 0 15px #fff;
}

/* Spot locations relative to silhouette box (160x320) */
#spot-pescoco { top: 12%; left: 47%; }
#spot-ombros { top: 18%; left: 35%; }
#spot-torax { top: 25%; left: 47%; }
#spot-cintura { top: 38%; left: 47%; }
#spot-abdome { top: 44%; left: 47%; }
#spot-quadril { top: 52%; left: 47%; }
#spot-braco-r { top: 28%; left: 20%; }
#spot-braco-l { top: 28%; left: 74%; }
#spot-coxa-r { top: 62%; left: 36%; }
#spot-coxa-l { top: 62%; left: 58%; }
#spot-pant-r { top: 80%; left: 36%; }
#spot-pant-l { top: 80%; left: 58%; }

.body-map-data {
  flex: 1;
  min-width: 250px;
}

.measure-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: none;
}

.measure-detail-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.measure-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.measure-detail-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-neon);
}

.measure-detail-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.measure-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.measure-box p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.measure-box h5 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 4px;
}

.measure-diff {
  grid-column: span 2;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.measure-diff span.highlight {
  color: var(--pink-neon);
}

/* ============================================
   HISTORY / EVALUATION TABLE
   ============================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  border-bottom: 2px solid var(--border-color);
  padding: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

/* History rows com borda de status */
.history-row-done {
  border-left: 3px solid #10b981;
}

.history-row-partial {
  border-left: 3px solid #f59e0b;
}

/* Percentage badges */
.percentage-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.percentage-badge.full {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.percentage-badge.partial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.percentage-badge.low {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ============================================
   REPORT / RELATÓRIO SECTION
   ============================================ */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.report-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.report-kpi:hover {
  border-color: rgba(255, 42, 117, 0.2);
}

.report-kpi .big-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pink-neon);
  line-height: 1;
}

.report-kpi p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================
   MODAL / DIALOG / FORM
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-header i {
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.modal-header i:hover { color: #fff; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--pink-neon);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ============================================
   RESPONSIVE: TABLETS (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
  aside.sidebar {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  main.main-content {
    margin-left: 0;
    padding: 20px;
    padding-bottom: 84px;
  }

  /* Screen header empilhado */
  .screen-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Badge alinhado à esquerda */
  .header-badge {
    align-self: flex-start;
    width: fit-content;
  }

  /* Screen title menor */
  .screen-title h2 {
    font-size: 1.5rem;
  }

  /* Glass card padding reduzido */
  .glass-card {
    padding: 20px;
  }

  /* Grids empilhados */
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* KPI container: 2 colunas */
  .kpi-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Exercise card: coluna única empilhada */
  .exercise-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  
  .exe-obs {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0;
    padding-top: 8px;
    margin-top: 4px;
  }

  /* Exercise card interactive: coluna única empilhada */
  .exercise-card-interactive {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .exercise-card-interactive .exe-check {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  /* Meal card: coluna única */
  .meal-card {
    grid-template-columns: 1fr;
  }
  
  .meal-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
  }
  
  .meal-right {
    padding: 20px;
  }

  /* Active workout panel */
  .active-workout-panel {
    padding: 16px;
  }

  .active-workout-content {
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
  }

  .active-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Timer menor */
  .timer-circle {
    width: 120px;
    height: 120px;
    font-size: 1.8rem;
  }

  /* Botões touch-friendly */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 12px 20px;
  }

  /* Sub tabs: scroll horizontal suave com botões touch */
  .sub-tabs {
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    min-height: 44px;
    padding: 10px 16px;
    scroll-snap-align: start;
  }

  /* Search container empilhado */
  .search-container {
    flex-direction: column;
  }

  .select-custom {
    padding: 12px 16px;
  }

  /* Foods list coluna única */
  .foods-list {
    grid-template-columns: 1fr;
  }

  /* Food macros: padding reduzido */
  .food-macros {
    padding: 6px;
  }

  /* Body map wrapper empilhado */
  .body-map-wrapper {
    flex-direction: column;
  }

  .body-map-data {
    min-width: unset;
    width: 100%;
  }

  /* Measure detail values: 2 colunas no tablet */
  .measure-detail-values {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Tabela compacta */
  .custom-table th {
    padding: 8px;
    font-size: 0.75rem;
  }

  .custom-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }

  /* Modal content full-width */
  .modal-content {
    max-width: 100%;
    margin: 0 16px;
  }

  /* Report KPI grid */
  .report-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .report-kpi .big-number {
    font-size: 1.8rem;
  }
}

/* ============================================
   RESPONSIVE: CELULARES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  main.main-content {
    padding: 16px;
    padding-bottom: 80px;
  }

  /* Screen title */
  .screen-title h2 {
    font-size: 1.3rem;
  }

  .screen-title p {
    font-size: 0.85rem;
  }

  /* Header badge */
  .header-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Glass card padding reduzido */
  .glass-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  /* KPI container: 2 colunas */
  .kpi-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 14px;
    gap: 10px;
  }

  .kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .kpi-info h4 {
    font-size: 1.15rem;
  }

  .kpi-info p {
    font-size: 0.7rem;
  }

  /* Exercise card compact */
  .exercise-card {
    padding: 14px;
    gap: 6px;
  }

  .exe-id {
    font-size: 0.95rem;
  }

  .exe-name h4 {
    font-size: 0.95rem;
  }

  .exe-series, .exe-reps {
    font-size: 0.82rem;
  }

  /* Exercise card interactive compact */
  .exercise-card-interactive {
    padding: 14px;
    gap: 6px;
  }

  /* Sub tabs touch-friendly */
  .sub-tabs {
    gap: 6px;
    margin-bottom: 16px;
  }

  .tab-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Buttons touch min-height */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* Active workout panel */
  .active-workout-panel {
    padding: 12px;
  }

  .active-workout-content {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .active-header h3 {
    font-size: 1.15rem;
  }

  /* Timer menor */
  .timer-circle {
    width: 110px;
    height: 110px;
    font-size: 1.6rem;
    border-width: 5px;
  }

  .timer-container {
    padding: 16px;
  }

  /* Log inputs */
  .log-input {
    width: 60px;
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  /* Meal card compact */
  .meal-left {
    padding: 12px 16px;
  }

  .meal-right {
    padding: 16px;
  }

  .meal-title h3 {
    font-size: 1rem;
  }

  .meal-item {
    font-size: 0.88rem;
  }

  /* Search input */
  .search-input {
    padding: 12px 16px 12px 44px;
    font-size: 0.9rem;
  }

  /* Food macros padding reduzido */
  .food-macros {
    padding: 4px;
    gap: 2px;
  }

  .macro-box p {
    font-size: 0.6rem;
  }

  .macro-box h5 {
    font-size: 0.72rem;
  }

  /* Body map */
  .body-map-silhouette {
    width: 130px;
    height: 260px;
  }

  /* Measure detail values: 2 colunas */
  .measure-detail-values {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .measure-box {
    padding: 8px;
  }

  .measure-box h5 {
    font-size: 1rem;
  }

  /* Tabela compacta para celular */
  .custom-table th {
    padding: 6px;
    font-size: 0.7rem;
  }

  .custom-table td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }

  /* Modal */
  .modal {
    padding: 12px;
  }

  .modal-content {
    padding: 20px;
    margin: 0;
    border-radius: var(--radius-md);
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  /* Water tracker compact */
  .water-tracker {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .water-right {
    width: 100%;
    justify-content: flex-end;
  }

  /* Checklist compact */
  .checklist-item {
    padding: 12px;
    gap: 12px;
  }

  .checklist-text {
    font-size: 0.88rem;
  }

  /* Workout progress bar */
  .workout-progress-bar {
    padding: 14px;
    margin-top: 16px;
  }

  /* Btn finalize compact */
  .btn-finalize {
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Report KPI compact */
  .report-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .report-kpi {
    padding: 14px;
  }

  .report-kpi .big-number {
    font-size: 1.6rem;
  }

  .report-kpi p {
    font-size: 0.72rem;
  }

  /* Percentage badge */
  .percentage-badge {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  /* Chart container */
  .chart-container {
    height: 200px;
  }
}

/* ============================================
   RESPONSIVE: CELULARES PEQUENOS (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
  main.main-content {
    padding: 12px;
    padding-bottom: 76px;
  }

  /* Título ainda menor */
  .screen-title h2 {
    font-size: 1.15rem;
  }

  /* Glass card super-compact */
  .glass-card {
    padding: 12px;
    margin-bottom: 12px;
  }

  /* KPI container: 1 coluna */
  .kpi-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Measure detail values: 1 coluna */
  .measure-detail-values {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .measure-diff {
    grid-column: span 1;
  }

  /* Report KPI: 1 coluna */
  .report-kpi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Tab buttons menores */
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    min-height: 44px;
  }

  /* Tabela super-compacta */
  .custom-table th {
    padding: 4px;
    font-size: 0.65rem;
  }

  .custom-table td {
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  /* Modal sem margem lateral */
  .modal-content {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius-sm);
  }

  /* Timer mínimo */
  .timer-circle {
    width: 100px;
    height: 100px;
    font-size: 1.4rem;
    border-width: 4px;
  }

  /* Active panel */
  .active-workout-panel {
    padding: 8px;
  }

  .active-workout-content {
    padding: 12px;
  }

  .active-header h3 {
    font-size: 1rem;
  }

  /* Body map menor */
  .body-map-silhouette {
    width: 110px;
    height: 220px;
  }
}

/* ============================================
   ADDITIONAL COMPONENT STYLES
   ============================================ */

/* Workout Info Card */
.workout-info-card {
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.workout-info-card > div {
  flex: 1;
  min-width: 140px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

/* Skinfolds Grid */
.skinfolds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.9rem;
}

.skinfold-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.skinfold-item span {
  color: var(--text-secondary);
}

.skinfold-item.highlight-item {
  background: var(--pink-subtle);
  border-radius: 4px;
  border-bottom: none;
  grid-column: 1 / -1;
}

.skinfold-item.highlight-item span,
.skinfold-item.highlight-item strong {
  color: var(--pink-neon);
  font-weight: 700;
}

/* Plate Card */
.plate-card {
  position: sticky;
  top: 20px;
}

.plate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.plate-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.plate-totals {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.plate-totals h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.plate-totals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.plate-totals-grid span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.plate-totals-grid h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.plate-totals-grid div:first-child h3 {
  color: var(--pink-neon);
}

/* Active Workout Footer */
.active-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}


.mobile-nav-item span {
  font-size: 0.6rem;
  line-height: 1;
}

@media (max-width: 480px) {
  .workout-info-card {
    padding: 12px;
    gap: 12px;
  }
  
  .skinfolds-grid {
    grid-template-columns: 1fr;
    font-size: 0.82rem;
  }
  
  .plate-totals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .plate-card {
    position: static;
  }
}
