/* ==========================================================================
   DESIGN SYSTEM & HSL STYLE VARIABLES
   ========================================================================== */
:root {
  --bg-body: #050811;            /* Solid pitch dark */
  --bg-app: #0c101b;             /* Solid deep slate */
  --bg-card: #151c2c;            /* Solid dark card */
  --bg-card-hover: #1e273d;      /* Solid dark hover */
  --bg-input: #1b2436;           /* Solid input */
  --bg-input-focus: #26334c;     /* Solid focus input */
  
  --color-primary: #10b981;      /* Electric Cyan-Blue */
  --color-primary-rgb: 16, 185, 129;
  --color-success: #10b981;      /* Emerald Green */
  --color-success-rgb: 16, 185, 129;
  --color-warning: #f59e0b;      /* Amber Yellow */
  --color-danger: #f43f5e;       /* Neon Rose Red */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.06); /* Thin solid border line */
  --border-focus: rgba(16, 185, 129, 0.55);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --shadow-lg: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 10px 15px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.22);
  --glass-blur: none;
}

/* ==========================================================================
   RESET & LAYOUT SETUP
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html, body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

/* Ambient glow bubbles in background */
.bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(0,0,0,0) 70%);
  top: 10%;
  left: 15%;
  animation: float-glow-1 25s infinite alternate ease-in-out;
}
.bg-glow-2 {
  background: radial-gradient(circle, #7c3aed 0%, rgba(0,0,0,0) 70%);
  bottom: 15%;
  right: 15%;
  animation: float-glow-2 20s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.15); }
}
@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -45px) scale(1.15); }
}

/* ==========================================================================
   MOBILE-FIRST SHELL CONTROLLER
   ========================================================================== */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.phone-shell {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

/* Desktop Preview Frame */
@media (min-width: 479px) {
  .phone-shell {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    height: 90vh;
    max-height: 840px;
    width: 410px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.05);
  }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
  padding: 16px 20px 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-light);
  z-index: 10;
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top, 16px);
}
.header-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00f2fe 100%);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-smooth);
  cursor: pointer;
}
.profile-avatar:hover {
  box-shadow: 0 0 15px var(--color-primary);
  transform: scale(1.05);
}
.header-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  cursor: default;
}
.logo-accent {
  background: linear-gradient(135deg, #d4fc34 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.logo-light {
  color: var(--text-main);
  font-weight: 300 !important;
  opacity: 0.95;
  margin-left: 1px;
}
.app-logo-icon {
  transition: transform var(--transition-smooth);
}
.logo-outer-ring {
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-logo:hover .logo-outer-ring {
  transform: rotate(180deg);
}
.logo-inner-dumbbell {
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-logo:hover .logo-inner-dumbbell {
  transform: scale(1.1) rotate(-5deg);
}
.header-logo:hover .app-logo-icon {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}
.active-timer-widget {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.active-timer-widget:hover {
  background: rgba(16, 185, 129, 0.2);
}
.active-timer-widget i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   VIEW CONTROLLER
   ========================================================================== */
.views-wrapper {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.app-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 20px calc(80px + env(safe-area-inset-bottom, 0px)) 20px; /* space for absolute navbar + safe area */
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.99) translateY(4px);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none; /* Hide default firefox scrollbars */
  will-change: transform, opacity;
}
.app-view::-webkit-scrollbar {
  display: none;
}

.app-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  z-index: 5;
}

.phone-shell.mini-workout-active .app-view {
  padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px));
}

.view-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.95rem;
  margin-top: 4px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-main) 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  background-color: var(--bg-app);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  width: 20%;
  height: 100%;
  transition: color var(--transition-smooth);
}
.nav-item i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform var(--transition-smooth);
}
.nav-item.active {
  color: var(--color-primary);
}
.nav-item.active i {
  stroke-width: 2.5;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.3));
}

/* ==========================================================================
   CARDS & COMMON PREMIUM UI ELEMENTS
   ========================================================================== */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.action-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.action-card:active {
  transform: translateY(0);
}
.action-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.action-card-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.action-card-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
  transition: background-color 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.action-card-icon i {
  width: 18px;
  height: 18px;
}

/* Premium Shiny Start Workout Card */
.start-empty-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(0, 242, 254, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 4px 25px rgba(0, 242, 254, 0.03), inset 0 0 15px rgba(16, 185, 129, 0.03);
  position: relative;
  overflow: hidden;
}
.start-empty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 242, 254, 0.08), transparent);
  transform: skewX(-25deg);
  transition: transform 0.6s ease;
}
.start-empty-card:hover::before {
  transform: translate(250%, 0) skewX(-25deg);
}
.start-empty-card .action-card-icon {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00f2fe 100%);
  color: white;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  border: none;
}
.start-empty-card:hover .action-card-icon {
  transform: scale(1.05);
}

/* Buttons */
.btn-text-icon {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition-smooth);
}
.btn-text-icon:hover {
  background: rgba(16, 185, 129, 0.1);
}
.btn-text-icon i { width: 14px; height: 14px; }

.btn-icon-only {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 9px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}
.btn-icon-only:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon-only-flat {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}
.btn-icon-only-flat:hover {
  color: var(--text-main);
  background-color: var(--border-light);
}

.btn-close-modal, .btn-close {
  background: none !important;
  border: none !important;
  color: var(--text-muted) !important;
  padding: 6px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--transition-smooth) !important;
  box-shadow: none !important;
}
.btn-close-modal:hover, .btn-close:hover {
  color: var(--text-main) !important;
  background-color: var(--border-light) !important;
}
.btn-close-modal i, .btn-close i {
  width: 18px;
  height: 18px;
}

.btn-primary-outline {
  background: transparent;
  border: 1.5px dashed rgba(16, 185, 129, 0.4);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 11px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}
.btn-primary-outline:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--color-primary);
}

.btn-success {
  background: var(--color-success);
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-success:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-smooth);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--color-danger);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 11px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}
.btn-danger-outline:hover {
  background: rgba(244, 63, 94, 0.08);
  border-color: var(--color-danger);
}

.btn-danger {
  background: var(--color-danger);
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}
.btn-danger:hover { filter: brightness(1.08); }

.btn-full-width { width: 100%; }

/* Form inputs & search */
.search-container {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-container input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px 10px 38px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}
.search-container input:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.select-dropdown {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-smooth);
}
.select-dropdown:focus { border-color: var(--color-primary); }

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hidden { display: none !important; }

.empty-state-text {
  text-align: center;
  color: var(--text-dark);
  font-size: 0.85rem;
  padding: 30px 10px;
}

/* ==========================================================================
   TEMPLATES & WORKOUT LISTS
   ========================================================================== */
.templates-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.template-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.template-card:active { transform: translateY(0); }

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.template-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}
.template-card-actions {
  display: flex;
  gap: 6px;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}
.template-card:hover .template-card-actions {
  opacity: 1;
}
.btn-card-action {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-dark);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}
.btn-card-action:hover {
  color: var(--text-main);
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.btn-card-action i { width: 13px; height: 13px; }

.template-card-exercises {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.template-exercise-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.template-card:hover .template-exercise-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.template-exercise-tag.more {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--color-primary);
}
.template-card-notes {
  font-size: 0.74rem;
  color: var(--text-dark);
  font-style: italic;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 6px;
}

/* ==========================================================================
   ACTIVE WORKOUT SHEET (SLIDE-UP PANEL)
   ========================================================================== */
.workout-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.workout-panel.open {
  transform: translateY(0);
}
.workout-panel.minimized {
  transform: translateY(100%);
}

.panel-header-bar {
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.panel-drag-handle {
  width: 36px;
  height: 4px;
  background-color: var(--text-dark);
  border-radius: 2px;
  opacity: 0.6;
}

.panel-header {
  padding: 0 20px 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.panel-title-container h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
}
#workout-panel-timer {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.workout-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}
.workout-content::-webkit-scrollbar { display: none; }

.workout-meta {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#input-workout-name {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-main);
  outline: none;
  width: 100%;
}
#input-workout-name:focus {
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}
#input-workout-notes {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: all var(--transition-smooth);
}
#input-workout-notes:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-input-focus);
}

.active-exercises-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.active-exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
}

.active-exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.active-exercise-title-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.active-exercise-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-main);
}
.active-exercise-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   DELUXE SET LOGGER GRID (MOBILE ALIGNED)
   ========================================================================== */
.set-table {
  width: 100%;
  border-collapse: collapse;
}

.set-table-header {
  display: grid;
  grid-template-columns: 32px 1fr 65px 65px 40px 30px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  text-align: center;
}

.set-table-row {
  display: grid;
  grid-template-columns: 32px 1fr 65px 65px 40px 30px;
  align-items: center;
  padding: 8px 0; /* Increased from 5px 0 for better mobile tap targets */
  font-size: 0.82rem;
  text-align: center;
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.set-table-row.completed {
  background-color: rgba(16, 185, 129, 0.07);
  border-left: 2px solid var(--color-success);
}

.set-index {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.8rem;
}
.set-table-row.completed .set-index {
  color: var(--color-success);
}

/* Color-Coded Set Type Tags */
.set-type-tag {
  background: var(--bg-input);
  color: var(--text-muted);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  width: 28px; /* Increased from 24px */
  height: 28px; /* Increased from 24px */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem; /* Increased from 0.72rem */
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}
.set-type-tag.W { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); border-color: rgba(245, 158, 11, 0.2); }
.set-type-tag.D { background: rgba(124, 58, 237, 0.12); color: #a78bfa; border-color: rgba(124, 58, 237, 0.2); }
.set-type-tag.F { background: rgba(244, 63, 94, 0.12); color: var(--color-danger); border-color: rgba(244, 63, 94, 0.2); }
.set-table-row.completed .set-type-tag {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dark);
  border-color: transparent;
  pointer-events: none;
}

.set-previous {
  color: var(--text-dark);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

/* Pill Input Boxes with No Spinners */
.set-input-cell {
  display: flex;
  justify-content: center;
}
.set-input-cell input {
  width: 58px; /* Increased from 52px */
  height: 32px; /* Increased from 25px */
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  outline: none;
  font-size: 0.92rem; /* Increased from 0.85rem */
  transition: all var(--transition-smooth);
}
.set-input-cell input:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-input-focus);
}
/* Disable chrome/safari inputs spinners */
.set-input-cell input::-webkit-outer-spin-button,
.set-input-cell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Disable firefox inputs spinners */
.set-input-cell input[type=number] {
  -moz-appearance: textfield;
}

.set-table-row.completed input {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
  pointer-events: none;
}

/* Deluxe Circular Complete Checkbox */
.set-checkmark {
  width: 26px; /* Increased from 22px */
  height: 26px; /* Increased from 22px */
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  color: transparent;
  transition: all var(--transition-spring);
}
.set-checkmark:hover { border-color: var(--color-success); }
.set-checkmark i {
  width: 14px; /* Increased from 12px */
  height: 14px; /* Increased from 12px */
  stroke-width: 3;
}
.set-table-row.completed .set-checkmark {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.btn-delete-set {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  transition: color var(--transition-smooth);
}
.btn-delete-set:hover { color: var(--color-danger); }
.btn-delete-set i { width: 14px; height: 14px; }

.btn-add-set {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}
.btn-add-set:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.btn-add-set i { width: 13px; height: 13px; }

.workout-control-buttons {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.workout-action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   MINI WORKOUT HUB FLOATER
   ========================================================================== */
.mini-workout-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
  border: 1px solid var(--color-primary);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(16, 185, 129, 0.1);
  animation: slide-up-fade var(--transition-smooth);
}

.mini-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-icon {
  color: var(--color-primary);
  animation: pulse-glow 1.5s infinite alternate ease-in-out;
}
@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 1px var(--color-primary)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 6px var(--color-primary)); }
}

.mini-details { display: flex; flex-direction: column; }
.mini-title { font-weight: 600; font-size: 0.82rem; }
.mini-timer { font-size: 0.72rem; color: var(--color-primary); }

.btn-mini-restore {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-smooth);
}
.btn-mini-restore:hover {
  background: var(--color-primary);
  color: white;
}

/* ==========================================================================
   REST TIMER MODAL
   ========================================================================== */
.rest-timer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.95);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rest-timer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  width: 82%;
  max-width: 290px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.rest-timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
}

.rest-timer-circle-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 16px auto;
}
.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 5px;
}
.timer-circle-fg {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.rest-timer-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}
#rest-countdown-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.rest-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.rest-timer-adjusters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.btn-adjust {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-smooth);
}
.btn-adjust:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-adjust.skip {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--color-danger);
}
.btn-adjust.skip:hover {
  background: var(--color-danger);
  color: white;
}

/* ==========================================================================
   MODAL / POPUP DRAWERS (MOBILE NATIVE ALIGNMENT)
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.95);
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Mobile default: slide-up drawer */
}

.modal-content {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

/* Slide Up Drawer */
.modal-content.drawer {
  width: 100%;
  max-height: 85%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: none;
  animation: slide-drawer-up var(--transition-smooth);
}

@keyframes slide-drawer-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Standard Centered Modals */
.modal-overlay:has(.modal-content.standard) {
  align-items: center;
}
.modal-content.standard {
  width: 88%;
  max-width: 340px;
  max-height: 80%;
  border-radius: 16px;
  animation: pop-modal var(--transition-smooth);
}
.modal-content.standard.admin-detail {
  max-width: 550px;
  width: 95%;
  max-height: 85vh;
}

@keyframes pop-modal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.modal-search-bar { padding: 12px 18px 0 18px; }

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 18px 18px 18px;
  scrollbar-width: none;
}
.modal-list::-webkit-scrollbar { display: none; }

.modal-footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) 18px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ==========================================================================
   SCROLLABLE FILTER CHIPS & EXERCISE LISTS
   ========================================================================== */
.category-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 20px 10px 20px;
  scrollbar-width: none;
  flex-shrink: 0;
}
.category-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.filter-chip:hover { color: var(--text-main); }
.filter-chip.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.exercises-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.exercises-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.exercise-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.exercise-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}
.exercise-item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  padding-right: 12px;
}
.exercise-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.3;
}
.exercise-item-muscle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.exercise-item-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--transition-smooth);
}
.exercise-item.selected .exercise-item-checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ==========================================================================
   HISTORY LIST VIEW
   ========================================================================== */
.history-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 15px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  transition: all var(--transition-smooth);
  position: relative;
}
.history-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.history-card-title-box h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.history-card-date {
  font-size: 0.76rem;
  color: var(--text-dark);
}

.history-card-stats {
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}
.history-stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.history-stat-item i { width: 12px; height: 12px; }

.history-card-exercises {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.history-exercise-name {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   ANALYTICS & METRICS
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.metric-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}
#stat-streak { color: var(--color-warning); }

.chart-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chart-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
}

.prs-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-row {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pr-row-name {
  font-weight: 600;
  font-size: 0.85rem;
}
.pr-row-date {
  font-size: 0.7rem;
  color: var(--text-dark);
  margin-top: 1px;
}
.pr-row-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 3px;
}
.pr-row-value i {
  color: var(--color-warning);
  width: 14px;
  height: 14px;
  fill: var(--color-warning);
}

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.settings-group {
  margin-bottom: 22px;
}
.settings-group h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.settings-group-description {
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.settings-row {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.settings-row.clickable {
  cursor: pointer;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}
.settings-row.clickable:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}
.settings-row.clickable:active {
  transform: scale(0.995);
}
.settings-row-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-smooth);
}
.settings-row.clickable:hover .settings-row-icon {
  color: var(--color-primary);
}
.settings-row.clickable.danger {
  border-color: rgba(244, 63, 94, 0.15);
}
.settings-row.clickable.danger:hover {
  background: rgba(244, 63, 94, 0.06);
  border-color: var(--color-danger);
}
.settings-row.clickable.danger .settings-label {
  color: #fda4af;
}
.settings-row.clickable.danger:hover .settings-row-icon {
  color: var(--color-danger);
}
.settings-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-switch-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-smooth);
}
.toggle-btn.active {
  background-color: var(--color-primary);
  color: white;
}

.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--text-dark);
}

/* ==========================================================================
   DELUXE BARBELL PLATE CALCULATOR VISUALS
   ========================================================================== */
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calc-row label {
  font-weight: 500;
  font-size: 0.85rem;
}
.calc-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2px;
}
.calc-input-wrapper input {
  width: 52px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  outline: none;
}
.btn-step-val {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-main);
  width: 25px;
  height: 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.plates-result-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.plates-result-container h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.plates-visual-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 80px;
  padding: 4px;
  border-radius: 8px;
  background-color: rgba(3, 5, 10, 0.4);
  overflow-x: auto;
  border: 1px dashed rgba(255, 255, 255, 0.04);
}

.plate-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 3px;
  color: white;
  flex-shrink: 0;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.4);
}

/* realistic plate sizes */
.plate-45 { width: 12px; height: 66px; background: #ef4444; border-left: 2.5px solid #fca5a5; }
.plate-35 { width: 11px; height: 60px; background: #3b82f6; border-left: 2.5px solid #93c5fd; }
.plate-25 { width: 10px; height: 53px; background: #eab308; border-left: 2.5px solid #fde047; }
.plate-10 { width: 9px;  height: 42px; background: #10b981; border-left: 2px solid #6ee7b7; }
.plate-5  { width: 7px;  height: 33px; background: #6b7280; border-left: 2px solid #d1d5db; }
.plate-2_5{ width: 6px;  height: 25px; background: #d97706; border-left: 2.5px solid #fcd34d; }

.plate-25kg { width: 12px; height: 66px; background: #ef4444; border-left: 2.5px solid #fca5a5; }
.plate-20kg { width: 11px; height: 60px; background: #3b82f6; border-left: 2.5px solid #93c5fd; }
.plate-15kg { width: 10px; height: 53px; background: #eab308; border-left: 2.5px solid #fde047; }
.plate-10kg { width: 9px;  height: 42px; background: #10b981; border-left: 2px solid #6ee7b7; }
.plate-5kg  { width: 7px;  height: 33px; background: #6b7280; border-left: 2px solid #d1d5db; }
.plate-2_5kg{ width: 6px;  height: 25px; background: #6b7280; border-left: 2.5px solid #d1d5db; }
.plate-1_25kg{ width: 5px; height: 20px; background: #6b7280; border-left: 2px solid #d1d5db; }

.barbell-shaft {
  width: 32px;
  height: 5px;
  background: linear-gradient(to bottom, #d1d5db, #6b7280);
  border-radius: 1.5px;
  flex-shrink: 0;
}
.barbell-collar {
  width: 5px;
  height: 16px;
  background: #4b5563;
  border-radius: 1px;
  flex-shrink: 0;
}

.plates-info-badge {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.plates-info-badge strong { color: var(--color-warning); }

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   WORKOUT ACTIVITY CALENDAR
   ========================================================================== */
.activity-calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}
.activity-calendar-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.activity-calendar-card .card-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-main);
}
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-dark);
}
.legend-cell {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.activity-grid-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.activity-grid-wrapper::-webkit-scrollbar {
  display: none;
}
.activity-grid {
  display: grid;
  grid-template-rows: repeat(7, 9px);
  grid-auto-flow: column;
  gap: 3px;
  justify-content: start;
}
.activity-cell {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-smooth);
}
.activity-cell.level-0 {
  background-color: rgba(255, 255, 255, 0.04);
}
.activity-cell.level-1 {
  background-color: rgba(0, 242, 254, 0.15);
}
.activity-cell.level-2 {
  background-color: rgba(0, 242, 254, 0.45);
}
.activity-cell.level-3 {
  background-color: rgba(0, 242, 254, 0.85);
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.5);
}

.legend-cell.level-0 { background-color: rgba(255, 255, 255, 0.04); }
.legend-cell.level-1 { background-color: rgba(0, 242, 254, 0.15); }
.legend-cell.level-2 { background-color: rgba(0, 242, 254, 0.45); }
.legend-cell.level-3 { background-color: rgba(0, 242, 254, 0.85); box-shadow: 0 0 4px rgba(0, 242, 254, 0.4); }

.activity-stats-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: left;
}

/* ==========================================================================
   STATS CONSISTENCY GRID MONTH LABELS
   ========================================================================== */
.activity-grid-months {
  display: grid;
  grid-template-columns: repeat(18, 9px);
  gap: 3px;
  margin-bottom: 6px;
  font-size: 0.65rem;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  height: 12px;
}
.month-label {
  grid-column-start: span 3;
  white-space: nowrap;
}

/* ==========================================================================
   SETTINGS PROFILE CARD
   ========================================================================== */
.settings-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.profile-card-avatar {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00f2fe 100%);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.profile-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}
.profile-card-tier {
  font-size: 0.76rem;
  color: var(--color-primary);
  font-weight: 600;
}
.settings-row-action {
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-row-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dark);
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}
.settings-row.clickable:hover .settings-row-chevron {
  color: var(--text-main);
  transform: translateX(2px);
}

/* ==========================================================================
   EXERCISE PR DETAILS & MODAL CONTENT
   ========================================================================== */
.pr-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.pr-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  transition: all var(--transition-smooth);
}
.pr-detail-card:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}
.pr-card-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.pr-card-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
}
.exercise-detail-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.exercise-detail-section {
  margin-bottom: 20px;
}
.exercise-detail-section h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.instruction-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.detail-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
}
.detail-history-date {
  font-weight: 600;
  color: var(--text-main);
}
.detail-history-performance {
  color: var(--text-muted);
}

/* ==========================================================================
   EXERCISE LIST CATEGORY BADGES
   ========================================================================== */
.exercise-cat-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.exercise-cat-tag.barbell { background: rgba(239, 68, 68, 0.08); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.15); }
.exercise-cat-tag.dumbbell { background: rgba(16, 185, 129, 0.08); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.15); }
.exercise-cat-tag.machine { background: rgba(16, 185, 129, 0.08); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.15); }
.exercise-cat-tag.bodyweight { background: rgba(124, 58, 237, 0.08); color: #c084fc; border: 1px solid rgba(124, 58, 237, 0.15); }
.exercise-cat-tag.cardio { background: rgba(245, 158, 11, 0.08); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.15); }
.exercise-cat-tag.other { background: rgba(107, 114, 128, 0.08); color: #d1d5db; border: 1px solid rgba(107, 114, 128, 0.15); }

/* ==========================================================================
   HISTORY GROUPING & BADGES
   ========================================================================== */
.history-month-header {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
  margin-top: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
}
.history-month-header:first-of-type {
  margin-top: 4px;
}
.primary-muscle-badge {
  font-size: 0.65rem;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.primary-muscle-badge.chest { background: rgba(16, 185, 129, 0.12); color: #a7f3d0; }
.primary-muscle-badge.back { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.primary-muscle-badge.legs { background: rgba(124, 58, 237, 0.12); color: #c084fc; }
.primary-muscle-badge.shoulders { background: rgba(245, 158, 11, 0.12); color: #fde047; }
.primary-muscle-badge.arms { background: rgba(236, 72, 153, 0.12); color: #fbcfe8; }
.primary-muscle-badge.core { background: rgba(13, 148, 136, 0.12); color: #99f6e4; }

/* ==========================================================================
   TEMPLATE EDITOR SET TABLE MODULAR STYLING
   ========================================================================== */
.sets-tbody-editor {
  display: flex;
  flex-direction: column;
}
.set-table-editor-header {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 40px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  text-align: center;
}
.sets-tbody-editor .set-table-row {
  grid-template-columns: 44px 1fr 1fr 40px !important;
  gap: 8px;
  padding: 6px 0;
  border: none;
  background-color: transparent !important;
}
.sets-tbody-editor .set-table-row input {
  width: 100%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinning {
  animation: spin 1s linear infinite !important;
}

/* Template editor summary bar */
.template-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 16px;
  min-height: 38px;
}

/* Active exercise actions and ordering buttons */
.active-exercise-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.active-exercise-actions button[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

/* Modal footer split layout when delete button is active */
.modal-footer {
  display: flex;
  gap: 12px;
}
.modal-footer .btn-danger-outline:not(.hidden) {
  flex: 1;
  width: auto;
}
.modal-footer .btn-danger-outline:not(.hidden) + .btn-success {
  flex: 2;
  width: auto;
}

/* Template Name and Notes text inputs */
#input-template-name,
#input-template-notes {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-smooth);
}
#input-template-name:focus,
#input-template-notes:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-input-focus);
}
#input-template-name::placeholder,
#input-template-notes::placeholder {
  color: var(--text-dark);
}

/* Ensure exercise selector stacks above template editor overlay */
#modal-exercise-selector {
  z-index: 160;
}

/* Create exercise modal must stack above the selector drawer */
#modal-create-exercise {
  z-index: 300;
}

/* Start Section enhancements */
.start-header-group {
  margin-bottom: 18px;
}
.start-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -6px;
  font-weight: 500;
}
.template-card-subtitle {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
  font-family: var(--font-body);
}
.template-card-muscle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 8px;
}

/* Home view top banner styling */
.home-banner {
  display: flex;
  align-items: center;
  background: rgba(212, 252, 52, 0.08);
  border: 1px solid rgba(212, 252, 52, 0.2);
  padding: 10px 14px;
  border-radius: 14px;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease;
}
.banner-icon-bg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 252, 52, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.banner-text {
  flex-grow: 1;
}
.banner-text h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.banner-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-banner-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-banner-action-btn {
  background: #d4fc34;
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-banner-action-btn:hover {
  transform: scale(1.03);
}

/* Home Greeting Hero Card */
.home-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 252, 52, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05; /* Faded metallic watermark texture, 100% readable text */
  pointer-events: none;
  z-index: 1;
}
.hero-card-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%) brightness(0.95) contrast(1.1);
}
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2; /* Stacks text and avatar safely above watermark */
}
.greeting-text-container h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}
.greeting-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  max-width: 85%;
  line-height: 1.4;
}
.profile-glow-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d4fc34;
  box-shadow: 0 0 15px rgba(212, 252, 52, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  background: rgba(212, 252, 52, 0.1);
  color: #d4fc34;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.profile-glow-avatar:hover {
  transform: scale(1.05);
}
.profile-glow-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Performance Pod Grid */
.home-performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.perf-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 155px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Streak circular SVG progression widget */
.streak-pod {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.streak-svg-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.streak-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.streak-ring-svg circle {
  fill: none;
  stroke-width: 6;
}
.streak-ring-svg .ring-bg {
  stroke: rgba(255, 255, 255, 0.03);
}
.streak-ring-svg .ring-fg {
  stroke: url(#streak-ring-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.streak-value-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.streak-count-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.streak-count-label {
  font-size: 0.52rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 1px;
}
.streak-badge-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 700;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.streak-badge-row i {
  animation: flamePulse 1.5s infinite alternate;
}

@keyframes flamePulse {
  0% { transform: scale(0.9); opacity: 0.8; filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3)); }
  100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); }
}

/* Weekly Activity Pod */
.activity-pod {
  align-items: flex-start;
  justify-content: space-between;
}
.perf-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.perf-header i {
  color: #10b981;
}
.sessions-stat-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0;
}
.sessions-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.sessions-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.weekly-dots-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}
.week-dot {
  flex-grow: 1;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.week-dot span {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dark);
}
.week-dot.active {
  background: rgba(212, 252, 52, 0.08);
  border-color: rgba(212, 252, 52, 0.25);
  box-shadow: 0 0 8px rgba(212, 252, 52, 0.1);
}
.week-dot.active span {
  color: #d4fc34;
}

/* Carbon-Style Launch Workout Button */
.home-launch-session-card {
  position: relative;
  background: linear-gradient(135deg, #1b2436 0%, #0d121c 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 1px;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.home-launch-session-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 252, 52, 0.3) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.launch-inner {
  background: #111827;
  padding: 20px 24px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-launch-session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 252, 52, 0.1);
}
.home-launch-session-card:hover .launch-arrow {
  transform: translateX(4px);
  color: #d4fc34;
}
.launch-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 252, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.launch-radar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(212, 252, 52, 0.4);
  animation: radarPulse 2s infinite linear;
}
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.launch-play-icon {
  width: 14px;
  height: 14px;
  color: #d4fc34;
  fill: #d4fc34;
  transform: translateX(1px);
}
.launch-text {
  flex-grow: 1;
}
.launch-text h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.launch-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.launch-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Quick Action Hub (Sleek Glass Capsules) */
.home-quick-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hub-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hub-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.hub-item:active {
  transform: translateY(0);
}
.hub-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.hub-item:hover .hub-icon-wrapper {
  transform: scale(1.05);
}
.weight-icon { color: #d4fc34; }
.exercises-icon { color: #10b981; }
.history-icon { color: #10b981; }
.stats-icon { color: #a855f7; }

.hub-text h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}
.hub-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Weekly Muscle Focus Progress Grid */
.focus-pod {
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  border-radius: 24px;
  padding: 20px;
}
.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.home-section-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}
.badge-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.muscle-progress-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.focus-progress-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.focus-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
}
.focus-progress-muscle {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.focus-progress-muscle i {
  color: #d4fc34;
}
.focus-progress-count {
  color: var(--text-muted);
}
.focus-progress-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.focus-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #d4fc34 0%, #10b981 100%);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(212, 252, 52, 0.3);
}

/* Protocol Schedule Timeline Cards */
.schedule-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.schedule-day-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}
.schedule-day-label {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}
.schedule-day-label.active {
  border-color: rgba(212, 252, 52, 0.3);
  background: rgba(212, 252, 52, 0.08);
  box-shadow: 0 0 8px rgba(212, 252, 52, 0.15);
}
.schedule-day-name {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
}
.schedule-day-label.active .schedule-day-name {
  color: #d4fc34;
}
.schedule-day-status-text {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-top: 1px;
}
.schedule-day-label.active .schedule-day-status-text {
  color: #d4fc34;
}
.schedule-day-content {
  flex-grow: 1;
}
.schedule-day-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.schedule-day-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.schedule-day-exercises-list {
  font-size: 0.72rem;
  color: var(--text-dark);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.schedule-recovery-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-schedule-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 252, 52, 0.1);
  border: 1px solid rgba(212, 252, 52, 0.2);
  color: #d4fc34;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  z-index: 3;
}
.btn-schedule-play:hover {
  background: #d4fc34;
  color: #000;
  border-color: #d4fc34;
  transform: scale(1.05);
}

/* ==========================================================================
   ADMIN PORTAL & CUSTOM ROUTINE BUILDER STYLES
   ========================================================================== */
.admin-client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.admin-client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.admin-client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #d4fc34, #10b981);
  opacity: 0.8;
}
.admin-client-email {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  word-break: break-all;
}
.admin-client-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.admin-client-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-client-meta-label {
  font-size: 0.65rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-client-meta-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-client-actions {
  display: flex;
  margin-top: 4px;
}
.admin-client-actions .btn-admin-view-profile {
  width: 100%;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.admin-client-actions .btn-admin-view-profile:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
}

/* Admin exercise item inside assigning builder */
.admin-builder-exercise-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-builder-exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-builder-exercise-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.btn-admin-remove-exercise {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth);
}
.btn-admin-remove-exercise:hover {
  background: rgba(239, 68, 68, 0.1);
}

.admin-builder-sets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-builder-set-row {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 24px;
  align-items: center;
  gap: 8px;
}
.admin-builder-set-number {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}
.admin-builder-set-input {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  color: var(--text-main) !important;
  font-size: 0.8rem !important;
  padding: 4px 8px !important;
  text-align: center;
  width: 100%;
}
.btn-admin-remove-set {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-admin-remove-set:hover {
  color: var(--color-danger);
}
.btn-admin-add-set {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.btn-admin-add-set:hover {
  text-decoration: underline;
}

.admin-portal-link-card {
  margin-top: 15px;
  background: linear-gradient(135deg, rgba(212, 252, 52, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.admin-portal-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}
.admin-portal-link-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-portal-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.admin-portal-link-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}
.admin-portal-link-text p {
  font-size: 0.72rem;
  color: var(--text-dark);
  margin: 0;
}

/* Admin Client banned overlays and tabs styling */
.admin-client-card.banned {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.02) !important;
}
.admin-client-card.banned::before {
  background: var(--color-danger) !important;
}
.admin-client-card.banned .admin-client-email {
  color: var(--text-dark) !important;
  text-decoration: line-through;
}

.admin-detail-tab-content.hidden {
  display: none !important;
}

/* Admin client history workout report logs styling */
.admin-client-log-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-client-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.admin-client-log-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  margin: 0;
}
.admin-client-log-date {
  font-size: 0.72rem;
  color: var(--text-dark);
}
.admin-client-log-exercises {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-client-log-ex-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.admin-client-log-ex-name {
  color: var(--text-muted);
  font-weight: 500;
}
.admin-client-log-ex-sets {
  color: var(--text-dark);
  font-size: 0.72rem;
}

/* --- SPLASH SCREEN SYSTEM --- */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #060907;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  height: 100%;
  padding: 50px 30px 115px 30px; /* Lifted bottom to prevent safe-area cutoff on mobile */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.splash-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.18; /* Softer background silhouette for luxury look */
  pointer-events: none;
}

.splash-bodybuilder {
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: splash-zoom 10s infinite alternate linear;
}

@keyframes splash-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.splash-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, #060907 85%);
}

.splash-badge-container {
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

.splash-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 0.68rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.splash-brand {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.splash-logo-symbol {
  animation: splash-pulse 2s infinite ease-in-out;
}

@keyframes splash-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45)); }
}

.rotating-circle {
  transform-origin: center;
  animation: spin-clockwise 6s infinite linear;
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: white;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.splash-title-highlight {
  color: var(--color-primary);
  background: linear-gradient(135deg, #d4fc34 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-dark);
  margin: 0;
}

.splash-footer {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.splash-loader-container {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.splash-loader-bar {
  width: 100%;
  height: 100%;
}

.splash-loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4fc34 0%, #10b981 100%);
  border-radius: 10px;
  box-shadow: 0 0 8px #10b981;
  transition: width 0.4s ease-out;
}

.splash-status {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.splash-credits {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0.85;
}

.credits-label {
  font-size: 0.6rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.credits-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

/* --- AI WORKOUT COACH STYLES --- */
.ai-coach-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
  transition: all var(--transition-smooth);
}

.ai-coach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
  border-color: var(--color-primary) !important;
}

/* Recovery Options Cards */
.recovery-option-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.recovery-option-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.recovery-option-card.active {
  background: rgba(16, 185, 129, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.recovery-option-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recovery-option-card.active .recovery-option-icon {
  background: rgba(16, 185, 129, 0.15);
}

.recovery-option-info h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.recovery-option-info p {
  font-size: 0.72rem;
  color: var(--text-dark);
  margin: 0;
}

/* Progressive Overload Suggestion Badges */
.overload-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.overload-badge {
  background: rgba(212, 252, 52, 0.08);
  border: 1px solid rgba(212, 252, 52, 0.3);
  color: #d4fc34;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.5px;
  animation: pulse-border 2s infinite ease-in-out;
  transition: all var(--transition-smooth);
}

.overload-badge:hover {
  background: rgba(212, 252, 52, 0.15);
  border-color: #d4fc34;
  transform: translateY(-0.5px);
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(212, 252, 52, 0.2); }
  70% { box-shadow: 0 0 0 5px rgba(212, 252, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 252, 52, 0); }
}

/* AI coach suggestions lists styling */
.ai-suggested-ex-card {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-suggested-ex-info h5 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.ai-suggested-ex-info span {
  font-size: 0.68rem;
  color: var(--text-dark);
}

.ai-suggested-ex-sets {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Premium Workout Templates UI Revamp */

.template-exercises-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 10px 0;
  border-left: 2px solid rgba(255, 255, 255, 0.04);
  padding-left: 14px;
  margin-left: 4px;
}

.template-exercise-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.template-card:hover .template-exercise-row {
  color: var(--text-main);
}

.template-exercise-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.template-exercise-meta {
  font-size: 0.72rem;
  color: var(--text-dark);
  font-weight: 600;
  font-family: var(--font-body);
}

.template-card:hover .template-exercise-meta {
  color: var(--color-primary);
}

.template-exercise-row.more {
  font-size: 0.76rem;
  font-weight: 700;
}

/* Premium Notes Callout block */
.template-card-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid var(--color-primary);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
  font-style: normal;
  line-height: 1.4;
  font-family: var(--font-body);
}

/* Premium Rounded Muscle Badges */
.primary-muscle-badge {
  font-size: 0.6rem;
  border-radius: 12px !important;
  padding: 3px 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Action Cards Layout Enhancements */
.action-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.start-empty-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.06) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.04), inset 0 0 15px rgba(0, 242, 254, 0.02) !important;
}

.start-empty-card:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
  border-color: rgba(0, 242, 254, 0.55) !important;
  box-shadow: 0 8px 32px rgba(0, 242, 254, 0.15) !important;
}

.ai-coach-card {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(212, 252, 52, 0.02) 100%) !important;
  border: 1px dashed rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.03) !important;
}

.ai-coach-card .action-card-content h3 {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-coach-card .ai-sparkles-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.ai-coach-card .action-card-icon {
  background: rgba(16, 185, 129, 0.14);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
  border: none;
}

.ai-coach-card:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(212, 252, 52, 0.04) 100%) !important;
  border-style: solid !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15) !important;
}

.ai-coach-card:hover .action-card-icon {
  transform: scale(1.06) rotate(15deg);
  background: var(--color-primary);
  color: var(--bg-dark);
}

/* Template Cards Glassmorphic Overhaul */
.template-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.template-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 15px rgba(16, 185, 129, 0.03);
}
