*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.payment-wall-active .bottom-item[data-nav-view="dashboard"],
body.payment-wall-active .bottom-item[data-nav-view="clients"],
body.payment-wall-active .bottom-item[data-nav-view="exercises"],
body.payment-wall-active .bottom-item[data-nav-view="coach-profile"],
body.payment-wall-active .btn-float {
  display: none !important;
}

/* ── Exercise Library Styles ── */
.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.exercise-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.ex-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ex-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 8px;
}

.ex-lock-overlay span {
  font-size: 11px;
  font-weight: 800;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
}

.ex-tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  color: white;
  letter-spacing: 0.05em;
}

.ex-tier-badge.basic {
  background: #64748b;
}

.ex-tier-badge.pro {
  background: var(--primary);
}

.ex-info {
  padding: 16px;
}

.ex-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ex-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.ex-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.exercise-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Custom Dialog override for Preview */
.nc-dialog-modal p {
  text-align: left !important;
}

@media (max-width: 640px) {
  .exercises-grid {
    grid-template-columns: 1fr;
  }

  .exercise-filters {
    flex-direction: column;
  }

  #exercise-filter-category {
    max-width: 100% !important;
    width: 100%;
  }
}

/* â”€â”€ Landing Ã‰lite Style â”€â”€ */
.elite-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero {
  min-height: 85vh;
  padding: 140px 24px 80px;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.landing-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
  color: var(--accent) !important;
}

.landing-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 580px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.landing-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-landing-secondary {
  background: white;
  border: 2px solid var(--border);
  padding: 18px 42px;
  border-radius: var(--radius);
  font-weight: 800;
  color: var(--text);
  transition: var(--transition);
}

.btn-landing-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .landing-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .elite-badge {
    margin: 0 auto 24px;
  }

  .landing-title {
    font-size: 38px;
    line-height: 1.1;
    text-align: center;
  }

  .landing-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
  }

  .landing-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }

  .btn-landing-primary,
  .btn-landing-secondary {
    width: 100%;
    padding: 16px 24px;
    text-align: center;
    justify-content: center;
  }
}

:root {
  /* Ivory Emerald - Clean Light Theme Premium */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --accent: #0f172a;
  /* Navy para contraste premium */
  --accent-glow: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Superficies Ivory */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-light: #f1f5f9;

  /* Bordes y Texto Navy/Emerald */
  --border: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.05);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-on-dark: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(12px);
}

/* â”€â”€ Bottom Nav (App Feel) â”€â”€ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  gap: 4px;
  transition: var(--transition);
}

.bottom-item.active {
  color: var(--primary);
}

.bottom-icon {
  font-size: 20px;
}

.bottom-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* BotÃ³n flotante 'Nuevo' */
.btn-float {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  z-index: 999;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-float:hover {
  transform: scale(1.1) rotate(90deg);
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .bottom-nav {
    display: flex !important;
  }

  .btn-float {
    display: flex !important;
  }

  /* Ocultar elementos de la APP según la pantalla activa en body (Máxima compatibilidad) */
  body.is-screen-landing .bottom-nav,
  body.is-screen-landing .btn-float,
  body.is-screen-admin .bottom-nav,
  body.is-screen-admin .btn-float,
  body.is-screen-client .bottom-nav,
  body.is-screen-client .btn-float {
    display: none !important;
  }
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* â”€â”€ Glassmorphism Utility â”€â”€ */
.glass {
  background: var(--surface-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.btn-glass-light {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-glass-light:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* â”€â”€ Screens â”€â”€ */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

/* â”€â”€ Login â”€â”€ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top left, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-brand {
  text-align: center;
  color: white;
  margin-bottom: 32px;
  z-index: 1;
}

.brand-icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(135, 169, 34, 0.4));
}

.login-brand h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.login-card h2 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
}

/* El Navbar se define en el bloque maestro de LANDING PAGE (lÃ­nea 919) para evitar colisiones */

/* â”€â”€ Section Nav â”€â”€ */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: white;
  padding: 12px;
  position: sticky;
  top: 85px;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.snav-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.snav-btn:hover {
  background: var(--bg);
  color: var(--primary);
}

.snav-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

/* â”€â”€ Navbar â”€â”€ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  background: var(--surface-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Avatar circular en navbar */
.nav-avatar {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E8B57, #3CB371);
  color: white;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Mobile navbar â€” Variante B */
@media (max-width: 640px) {
  .navbar {
    padding: 0 16px;
    height: 54px;
  }

  .nav-brand {
    font-size: 15px;
  }

  .nav-user {
    display: none;
  }

  .nav-avatar {
    display: flex;
  }
}

/* â”€â”€ Layout â”€â”€ */
.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 260px;
  background: transparent;
  padding: 24px 16px;
  flex-shrink: 0;
}

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

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.side-item:hover {
  background: var(--surface);
  color: var(--primary);
  transform: translateX(4px);
}

.side-item.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--bg);
  position: relative;
  transition: padding 0.3s;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 16px 100px 16px;
  }
}

/* â”€â”€ Views â”€â”€ */
.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.page-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

/* â”€â”€ Cards â”€â”€ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* â”€â”€ Stats â”€â”€ */
/* â”€â”€ Stats cards admin (clases originales â€” no tocar) â”€â”€ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-icon {
  font-size: 32px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* â”€â”€ Dashboard nuevo â”€â”€ */
.dash-welcome {
  margin-bottom: 20px;
  animation: fadeInUp 0.4s ease both;
}

.dash-welcome-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F3D26;
}

.dash-welcome-sub {
  font-size: 13px;
  color: #5A7A68;
  margin-top: 3px;
}

.stats-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card-new {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card-new:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}

.stat-card-new.s-clients::before {
  background: linear-gradient(90deg, #114232, #87A922);
}

.stat-card-new.s-plans::before {
  background: linear-gradient(90deg, #8E44AD, #F39C12);
}

.stat-card-new.s-date::before {
  background: linear-gradient(90deg, #1A6CB5, #2E8B57);
}

.stat-icon-new {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.stat-card-new:hover .stat-icon-new {
  transform: scale(1.1) rotate(5deg);
}

.stat-num-new {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.stat-label-new {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* SecciÃ³n dashboard */
.dash-section {
  background: white;
  border-radius: 16px;
  border: 1px solid #E8F2EC;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 92, 58, 0.06);
  animation: fadeInUp 0.4s ease 0.1s both;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #F0F5F2;
  background: #FAFCFA;
}

.dash-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F3D26;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-section-link {
  font-size: 12px;
  font-weight: 600;
  color: #1A5C3A;
  background: #EAF5EE;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.dash-section-link:hover {
  background: #D4EDDA;
}

/* Filas de clientes recientes */
.client-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #F8FAF8;
  cursor: pointer;
  transition: background 0.15s;
  animation: fadeInUp 0.35s ease both;
}

.client-row:last-child {
  border-bottom: none;
}

.client-row:hover {
  background: #F4FAF6;
}

.cr-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1A5C3A, #3CB371);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(26, 92, 58, 0.18);
}

.cr-info {
  flex: 1;
  min-width: 0;
}

.cr-name {
  font-size: 14px;
  font-weight: 700;
  color: #0F3D26;
}

.cr-badge {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.cr-badge.active {
  background: #D4EDDA;
  color: #0F3D26;
}

.cr-badge.noplan {
  background: #FEF3CD;
  color: #92400E;
}

.cr-arrow {
  color: #C8DDD1;
  font-size: 18px;
  margin-left: 2px;
}

/* Mobile dashboard â€” grid 2+1 */
@media (max-width: 640px) {
  .stats-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* fecha ocupa ancho completo */
  .stat-card-new.s-date {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
  }

  .stat-card-new.s-date .stat-icon-new {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .stat-card-new.s-date .stat-num-new {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .stat-card-new.s-date .stat-label-new {
    margin-top: 0;
  }

  /* dos cards superiores mÃ¡s compactas */
  .stat-card-new.s-clients,
  .stat-card-new.s-plans {
    padding: 14px 12px;
  }

  .stat-card-new.s-clients .stat-icon-new,
  .stat-card-new.s-plans .stat-icon-new {
    width: 34px;
    height: 34px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .stat-card-new.s-clients .stat-num-new,
  .stat-card-new.s-plans .stat-num-new {
    font-size: 26px;
  }

  .stat-card-new.s-clients .stat-label-new,
  .stat-card-new.s-plans .stat-label-new {
    font-size: 9px;
  }

  .dash-welcome-title {
    font-size: 18px;
  }

  .client-row {
    padding: 10px 14px;
  }
}

/* â”€â”€ Clients grid â”€â”€ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* â”€â”€ Buscador de clientes â”€â”€ */
.clients-search {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #C8DDD1;
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  color: #1A2E24;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235A7A68' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.clients-search:focus {
  border-color: #2E8B57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Contador pill */
.client-count-pill {
  background: #F0F5F2;
  color: #5A7A68;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #E8F2EC;
}

/* â”€â”€ Nueva client card â€” Variante C: Avatar centrado â”€â”€ */
@keyframes ccFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc {
  background: white;
  border-radius: 18px;
  border: 1px solid #E8F2EC;
  overflow: hidden;
  cursor: pointer;
  padding: 22px 16px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 92, 58, 0.06);
  animation: ccFadeUp 0.4s ease both;
}

.cc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 92, 58, 0.14);
  border-color: #2E8B57;
}

/* Avatar centrado con anillo */
.cc-avatar-wrap-c {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.cc-avatar-c {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A5C3A, #3CB371);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 800;
  border: 3px solid white;
  outline: 2.5px solid #D4EDDA;
  box-shadow: 0 4px 14px rgba(26, 92, 58, 0.2);
  overflow: hidden;
}

.cc-name-c {
  font-size: 15px;
  font-weight: 800;
  color: #0F3D26;
  margin-bottom: 3px;
  line-height: 1.2;
}

.cc-email-c {
  font-size: 11px;
  color: #9BBCAA;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* status badge centrado */
.cc-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.cc-status.active {
  background: #D4EDDA;
  color: #0F3D26;
}

.cc-status.noplan {
  background: #FEF3CD;
  color: #92400E;
}

/* tags centrados */
.cc-tags-c {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 22px;
}

/* divider */
.cc-divider-c {
  height: 1px;
  background: #F0F5F2;
  margin: 0 -16px 14px;
}

/* actions */
.cc-actions-c {
  display: flex;
  gap: 8px;
}

.cc-btn-primary {
  flex: 1;
  padding: 9px;
  background: #EAF5EE;
  color: #1A5C3A;
  border: 1.5px solid #C8DDD1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s;
}

.cc-btn-primary:hover {
  background: #D4EDDA;
  border-color: #2E8B57;
}

.cc-btn-danger {
  padding: 9px 13px;
  background: #FDEDEC;
  color: #C0392B;
  border: 1.5px solid #F5C6C2;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cc-btn-danger:hover {
  background: #C0392B;
  color: white;
  border-color: #C0392B;
}

/* tags reutilizables */
.cc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.cc-tag {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.cc-tag-green {
  background: #D4EDDA;
  color: #0F3D26;
}

.cc-tag-purple {
  background: #F0E8FE;
  color: #5B2C8C;
}

.cc-tag-fire {
  background: #FEF3CD;
  color: #92400E;
}

.cc-tag-gray {
  background: #F0F5F2;
  color: #5A7A68;
}

/* mobile â€” 2 columnas */
@media (max-width: 640px) {
  .clients-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cc {
    padding: 16px 12px 12px;
  }

  .cc-avatar-c {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .cc-name-c {
    font-size: 13px;
  }

  .cc-email-c {
    font-size: 10px;
  }

  .cc-btn-primary {
    font-size: 11px;
    padding: 7px;
  }
}

/* â”€â”€ Mini client list â”€â”€ */
.client-list-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.client-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.client-mini-item:hover {
  border-color: var(--primary-light);
  background: #D4EDDA;
}

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

.client-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.client-mini-name {
  font-weight: 600;
  font-size: 14px;
}

.client-mini-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* â”€â”€ Forms â”€â”€ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.14);
}

.form-group input[readonly] {
  background: var(--surface2);
  color: var(--text-muted);
}

textarea {
  resize: vertical;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}



/* â”€â”€ Buttons â”€â”€ */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(17, 66, 50, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 66, 50, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #A9DFBF);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(135, 169, 34, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(135, 169, 34, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #FF4E4E, #E74C3C);
  color: white;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

/* ─── Portal Tabs (cliente) — pill slider ─── */
.portal-tabs {
  display: flex;
  background: #f1f5f9 !important;
  padding: 6px;
  border-radius: 20px;
  position: relative;
  isolation: isolate;
  gap: 2px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.portal-pill-slider {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  background: var(--primary);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  opacity: 0;
}

.portal-tabs .tab-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-weight: 800;
}

.portal-tabs .tab-btn:hover:not(.active) {
  color: var(--accent);
}

.portal-tabs .tab-btn.active {
  color: white;
}

.ptab-icon {
  font-size: 15px;
  line-height: 1;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ptab-label {
  font-size: 9px;
  font-weight: 800;
  transition: color 0.22s ease;
}

.portal-tabs .tab-btn.active .ptab-label {
  color: white;
}

/* Desktop: Ã­cono + texto en lÃ­nea */
@media (min-width: 641px) {
  .portal-tabs .tab-btn {
    flex-direction: row;
    gap: 6px;
    padding: 9px 18px;
  }

  .ptab-icon {
    font-size: 15px;
  }

  .ptab-label {
    font-size: 13px;
  }
}

/* ─── Detail Tabs (coach vista cliente) ─── pill slider ─── */
.detail-tabs {
  display: flex;
  background: #f1f5f9 !important;
  padding: 6px;
  border-radius: 20px;
  position: relative;
  isolation: isolate;
  gap: 2px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

/* Pill deslizante */
.detail-pill-slider {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  background: var(--primary);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  opacity: 0;
}

.detail-tabs .tab-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-weight: 800;
}

.detail-tabs .tab-btn:hover:not(.active) {
  color: var(--accent);
}

.detail-tabs .tab-btn.active {
  color: white;
}

.dtab-icon {
  font-size: 15px;
  line-height: 1;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dtab-label {
  font-size: 11px;
  font-weight: 800;
  transition: color 0.22s ease;
}

/* Desktop: icono + texto en línea horizontal */
@media (min-width: 641px) {

  .portal-tabs .tab-btn,
  .detail-tabs .tab-btn {
    flex-direction: row;
    gap: 8px;
    padding: 12px 24px;
  }

  .ptab-label,
  .dtab-label {
    font-size: 13.5px;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* â”€â”€ Alerts â”€â”€ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.alert.hidden {
  display: none;
}

.alert-error {
  background: #FDEDEC;
  color: var(--danger);
  border: 1px solid #F5B7B1;
}

.alert-success {
  background: #EAFAF1;
  color: var(--accent);
  border: 1px solid #A9DFBF;
}

/* â”€â”€ Plan builder â”€â”€ */
.plan-day {
  margin-bottom: 20px;
}

.plan-day-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  padding: 8px 14px;
  background: #D4EDDA;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.plan-meal {
  margin-bottom: 10px;
}

.plan-meal label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.plan-meal textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}

.plan-meal textarea:focus {
  border-color: var(--primary-light);
  outline: none;
}

/* â”€â”€ Plan display â”€â”€ */
.plan-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.plan-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-header .plan-date {
  opacity: 0.8;
  font-size: 12px;
}

.macros-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.macro-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}

.plan-table-wrap {
  overflow-x: auto;
}

.plan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 92, 58, 0.08);
  min-width: 700px;
  border: 1px solid #E8F2EC;
}

.plan-table th {
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.plan-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #F0F5F2;
  vertical-align: top;
  font-size: 13px;
  color: #2D4A3E;
  line-height: 1.5;
}

.plan-table tr:nth-child(even) td {
  background: #F9FBF9;
}

.plan-table tr:hover td {
  background: #F0F9F4;
}

.meal-label {
  font-weight: 800;
  color: #1A5C3A;
  white-space: nowrap;
  background: #F4FAF6 !important;
  width: 120px;
}

.meal-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meal-item {
  position: relative;
  padding-left: 14px;
}

.meal-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3CB371;
  font-weight: bold;
}

.meal-item {
  color: var(--text);
}

.meal-macro {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 4px;
  font-style: italic;
}

.no-plan {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-plan-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* â”€â”€ Client portal â”€â”€ */
.client-portal {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.portal-tabs {
  margin-bottom: 20px;
}

.macros-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.macro-item {
  text-align: center;
}

.macro-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.macro-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* â”€â”€ Utilities â”€â”€ */
.text-muted {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LANDING PAGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â”€â”€â”€ Elite Landing Nav (MASTER FUSION) â”€â”€â”€ */
.landing-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  background: rgba(10, 40, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 12px 32px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.landing-nav-brand {
  font-size: 21px;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.brand-icon-mini {
  font-size: 24px;
}

.landing-nav-brand .text-primary {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.landing-nav-center {
  display: flex;
  gap: 24px;
  align-items: center;
}

.landing-nav-center .snav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-nav-center .snav-btn:hover,
.landing-nav-center .snav-btn.active {
  color: white;
}

.landing-nav-center .snav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.landing-nav-center .snav-btn.active::after {
  width: 100%;
}

.landing-nav-right {
  display: flex;
  gap: 14px;
}

#btn-landing-login {
  background: rgba(255, 255, 255, 0.05);
  color: white !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

#btn-landing-login:hover {
  background: white;
  color: #0A281E !important;
}

#btn-landing-join {
  background: var(--primary);
  color: white !important;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

#btn-landing-join:hover {
  background: #34d399;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .landing-nav-center {
    display: none;
  }
}

.landing-hero {
  min-height: 90vh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.landing-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--accent) !important;
}

.landing-subtitle {
  font-size: 20px;
  max-width: 650px;
  margin: 0 auto 48px;
  color: var(--text-muted) !important;
  line-height: 1.6;
}

.btn-landing-primary {
  background: var(--primary);
  color: white;
  padding: 18px 42px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-landing-primary:hover {
  transform: translateY(-4px);
  background: var(--primary-dark);
}

.landing-section {
  padding: 100px 0;
  background: white;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.landing-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.landing-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #C8DDD1;
  box-shadow: 0 2px 12px rgba(26, 92, 58, 0.06);
  transition: 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 92, 58, 0.12);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1A5C3A;
  margin-bottom: 10px;
}

.feature-card p {
  color: #5A7A68;
  font-size: 14px;
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1A5C3A;
  margin-bottom: 10px;
}

.step-card p {
  color: #5A7A68;
  font-size: 14px;
  line-height: 1.7;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid #C8DDD1;
  text-align: center;
  position: relative;
  transition: 0.2s;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 92, 58, 0.12);
}

.plan-card-featured {
  border-color: #2E8B57;
  box-shadow: 0 8px 32px rgba(46, 139, 87, 0.2);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #1A5C3A;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 42px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 600;
  color: #6b7280;
}

.plan-price .period {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #2D4A3E;
  border-bottom: 1px solid #EAF5EE;
}

.btn-outline-plan {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  width: 100%;
}

.btn-outline-plan:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.landing-cta-section {
  background: var(--primary);
  color: white;
  padding: 100px 40px;
  border-radius: var(--radius-lg);
  margin: 40px;
  text-align: center;
}

.landing-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px;
  text-align: center;
  font-size: 13px;
}

/* â”€â”€â”€ Modales â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.2s;
}

.modal-close:hover {
  background: var(--bg);
}

.modal-body {
  padding: 24px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.admin-request-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-request-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
}

.admin-request-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-request-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.admin-request-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-request-message {
  font-size: 13px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 4px;
}

.admin-request-date {
  font-size: 11px;
  color: var(--text-light);
}

.admin-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-coach-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-coach-info {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.admin-coach-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.admin-coach-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-coach-specialty {
  font-size: 12px;
  color: var(--primary);
  margin-top: 2px;
}

.admin-coach-stats {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.admin-coach-actions {
  display: flex;
  gap: 8px;
}

/* â”€â”€â”€ Progress / Measurements â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.progress-charts {
  margin-top: 8px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.chart-card {
  background: #fff;
  border: 1px solid #C8DDD1;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(26, 92, 58, 0.05);
  /* fix overflow */
  min-width: 0;
  overflow: hidden;
  /* anim initial state */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.chart-card.chart-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-card h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1A5C3A;
}

.chart-card .chart-latest {
  font-size: 22px;
  font-weight: 700;
  color: #2E8B57;
  margin-bottom: 2px;
}

.chart-card .chart-change {
  font-size: 12px;
  margin-bottom: 12px;
}

.chart-change.up {
  color: #e74c3c;
}

.chart-change.down {
  color: #27ae60;
}

.chart-change.neutral {
  color: #888;
}

.chart-canvas-wrap {
  position: relative;
  height: 160px;
  /* fix overflow mobile */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.chart-canvas-wrap canvas {
  max-width: 100% !important;
}

.measurement-form {
  background: #F4FAF6;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #C8DDD1;
}

.meas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.meas-grid .form-group {
  margin-bottom: 0;
}

.progress-empty {
  text-align: center;
  padding: 40px 20px;
  color: #5A7A68;
}

.progress-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.progress-empty p {
  font-size: 14px;
  line-height: 1.6;
}

/* fix charts-grid en mobile */
@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    width: 100%;
    max-width: 100%;
  }
}

/* â”€â”€â”€ Range Select â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.range-select {
  appearance: none;
  -webkit-appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232E8B57' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid #2E8B57;
  border-radius: 8px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1A5C3A;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 150px;
  font-family: inherit;
}

.range-select:focus {
  outline: none;
  border-color: #1A5C3A;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.range-select:hover {
  border-color: #1A5C3A;
}

/* â”€â”€â”€ Meal Configurator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.meal-configurator {
  background: #F4FAF6;
  border: 1px solid #C8DDD1;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ─── Misc UI ─── */

.meal-configurator .btn-outline {
  color: var(--primary) !important;
  border-color: var(--primary-light) !important;
  background: white !important;
}

.meal-configurator .btn-outline:hover {
  background: #D4EDDA !important;
}

.meal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meal-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #C8DDD1;
  border-radius: 8px;
  padding: 8px 10px;
}

.meal-drag-handle {
  color: #aaa;
  cursor: grab;
  font-size: 14px;
  padding: 0 4px;
}

.meal-name-input {
  flex: 1;
  border: 1px solid #C8DDD1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #1A2E24;
  background: white;
}

.meal-name-input:focus {
  outline: none;
  border-color: #2E8B57;
}

/* â”€â”€â”€ Workout Plan â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.workout-header {
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.workout-day-view {
  margin-bottom: 20px;
}

.workout-day-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 14px;
  background: #D4EDDA;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-left: 3px solid var(--primary);
}

.workout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: white;
  border: 1px solid #E8F2EC;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.workout-table th {
  background: #F4FAF6;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  color: #5A7A68;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E8F2EC;
}

.workout-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F0F5F2;
  vertical-align: middle;
  color: #2D4A3E;
}

.workout-table tr:last-child td {
  border-bottom: none;
}

.workout-table tr:hover td {
  background: #F9FDFB;
}

/* Workout Cell Styles */
.w-idx {
  color: #9BBCAA;
  font-weight: 700;
  width: 30px;
}

.w-name {
  font-size: 14px;
  color: #0F3D26;
}

.w-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  min-width: 40px;
  text-align: center;
}

.w-pill.s {
  background: #E8F4FF;
  color: #1A5BA8;
}

/* Series: Blue */
.w-pill.r {
  background: #FEF3CD;
  color: #92400E;
}

/* Reps: Gold */
.w-pill.w {
  background: #F0E8FE;
  color: #5B2C8C;
}

/* Weight: Purple */

.w-notes {
  font-size: 11px;
  color: #5A7A68;
  line-height: 1.4;
  font-style: italic;
}

.workout-day-card {
  background: #F4FAF6;
  border: 1px solid #C8DDD1;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}

.workout-day-header {
  margin-bottom: 12px;
}

.workout-day-name {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #2E8B57;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: white;
  font-family: inherit;
}

.workout-day-name:focus {
  outline: none;
  border-color: var(--primary);
}

.exercise-row {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.exercise-row:focus-within {
  z-index: 100;
}

.exercise-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  border: 1px solid #C8DDD1;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.exercise-fields input {
  padding: 6px 10px;
  border: 1px solid #C8DDD1;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: white;
  flex: 1;
  min-width: 120px;
}

.exercise-fields input:focus {
  outline: none;
  border-color: #2E8B57;
}

.ex-name {
  flex: 2 !important;
  min-width: 160px !important;
}

/* â”€â”€â”€ Side nav icon/label â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.side-icon {
  font-size: 18px;
  line-height: 1;
}

.side-label {
  font-size: 13px;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   RESPONSIVE MOBILE
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
@media (max-width: 768px) {

  /* ─── Tablas Responsivas ─── */
  .plan-table {
    min-width: 600px;
    /* Mantiene scroll pero suave */
  }

  .workout-table,
  .workout-table thead,
  .workout-table tbody,
  .workout-table th,
  .workout-table td,
  .workout-table tr {
    display: block;
  }

  .workout-table thead {
    display: none;
  }

  .workout-table tr {
    margin-bottom: 16px;
    border: 1px solid #E8F2EC;
    border-radius: 12px;
    padding: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .workout-table td {
    border: none;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F0F5F2;
  }

  .workout-table td:last-child {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .workout-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7A9B8A;
    letter-spacing: 0.03em;
  }

  .w-idx {
    display: none !important;
  }

  .w-name {
    display: block !important;
    font-size: 16px !important;
    margin-bottom: 10px;
    border-bottom: 2px solid #F4FAF6 !important;
    padding-bottom: 8px !important;
  }

  .w-name::before {
    display: none !important;
  }

  .w-pill {
    min-width: 70px;
    padding: 6px 12px;
  }

  .w-notes {
    padding-top: 8px !important;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .macros-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .macros-row .form-group {
    min-width: 0;
  }

  .macros-row .form-group input {
    min-width: 0;
    width: 100%;
  }

  .macros-display {
    grid-template-columns: 1fr 1fr;
  }

  .main-content {
    padding: 16px;
  }

  /* ─── Landing Navbar (Mobile Refined) ─── */
  .landing-nav {
    position: fixed;
    top: 12px;
    width: 94%;
    padding: 8px 14px;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }

  .landing-nav-brand {
    font-size: 15px;
    gap: 6px;
  }

  .brand-icon-mini {
    font-size: 18px;
  }

  .landing-nav-right {
    gap: 6px;
  }

  #btn-landing-login,
  #btn-landing-join {
    padding: 7px 12px;
    font-size: 11px;
    border-radius: 10px;
  }

  /* ─── Landing Hero Content ─── */
  .landing-hero-content {
    width: 100%;
    text-align: center;
  }

  .landing-section-title {
    font-size: 26px;
    padding: 0 10px;
  }

  .landing-cta-group {
    justify-content: center;
    width: 100%;
  }

  .landing-hero-visual {
    display: none;
  }

  .landing-container {
    padding: 0 16px;
  }

  .landing-section {
    padding: 48px 0;
  }

  .landing-section-title {
    font-size: 22px;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .landing-cta-section {
    padding: 48px 16px;
    text-align: center;
  }

  .landing-footer {
    padding: 20px 16px;
  }

  .modal-box {
    max-width: 100% !important;
  }

  /* â”€â”€ Sidebar: bottom nav en mobile â”€â”€ */
  .layout {
    flex-direction: column;
  }

  .main-content {
    padding: 16px 14px 80px;
  }

  .client-portal {
    padding: 12px 12px 80px;
  }

  /* ─── Bottom Nav: Obsidian Floating Island ─── */
  .bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 16px !important;
    left: 14px !important;
    right: 14px !important;
    height: 64px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    /* Obsidian Glass */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 0 8px !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #94a3b8;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 10px 10px;
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px var(--primary);
  }

  .bottom-item.active {
    color: var(--primary);
  }

  .bottom-item.active::before {
    transform: scaleX(1);
  }

  .bottom-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-item.active .bottom-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
  }

  .bottom-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
  }

  .bottom-item.active .bottom-label {
    opacity: 1;
  }

  /* Ajustar botón flotante para la isla */
  .btn-float {
    bottom: 92px;
    right: 18px;
    background: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    z-index: 9998;
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-float:active {
    transform: scale(0.9) rotate(90deg);
  }

  .sidebar {
    display: none !important;
    /* Ocultar sidebar viejo en mobile */
  }

  .main-content {
    padding: 16px 14px 72px;
  }

  .client-portal {
    padding: 12px 12px 72px;
  }

  /* â”€â”€ Tabs: scroll horizontal â”€â”€ */
  .portal-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

  .portal-tabs .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 10px 12px;
  }

  .detail-tabs .tab-btn {
    padding: 7px 10px 6px;
  }

  .dtab-label {
    font-size: 10px;
  }

  /* â”€â”€ Tablas: scroll horizontal â”€â”€ */
  .plan-table-wrap {
    overflow-x: auto;
  }

  .plan-table {
    min-width: 600px;
  }

  .workout-day-view {
    overflow-x: auto;
  }

  .workout-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
  }

  /* â”€â”€ Misc â”€â”€ */
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .admin-request-card {
    flex-direction: column;
  }

  .admin-coach-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-request-actions,
  .admin-coach-actions {
    width: 100%;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANIMATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Keyframes â”€â”€ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.90);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGreen {

  0%,
  100% {
    box-shadow: 0 3px 10px rgba(26, 92, 58, 0.35);
  }

  50% {
    box-shadow: 0 3px 10px rgba(26, 92, 58, 0.35), 0 0 0 7px rgba(46, 139, 87, 0.14);
  }
}

@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* â”€â”€ 1. FadeInUp â€” cards de clientes â”€â”€ */
.anim-fadeinup {
  animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* â”€â”€ 2. Count-up â€” stat cards (solo necesita CSS base) â”€â”€ */
.stat-num {
  transition: color 0.3s ease;
}

/* â”€â”€ 3. ScaleIn â€” modales â”€â”€ */
.anim-scalein {
  animation: scaleIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* â”€â”€ 4. Pulse â€” botÃ³n guardar â”€â”€ */
.btn-pulse {
  animation: pulseGreen 2.2s ease-in-out infinite;
}

/* â”€â”€ 5. Skeleton loader â”€â”€ */
.skeleton {
  background: linear-gradient(90deg, #e8f2ec 25%, #c8e6d0 50%, #e8f2ec 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
  display: block;
}

.skeleton-line {
  height: 13px;
  margin-bottom: 8px;
}

.skeleton-line.short {
  width: 38%;
}

.skeleton-line.medium {
  width: 62%;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* â”€â”€ 6. Scroll reveal â€” landing â”€â”€ */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACCORDION FEATURE CARDS â€” Landing
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.accordion-cards {
  display: flex;
  gap: 10px;
  height: 420px;
  margin-top: 48px;
}

.ac-card {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 58px;
  background: var(--ac-bg);
  background-size: cover !important;
  background-position: center !important;
}

/* shrink all siblings when any card is hovered */
.accordion-cards:hover .ac-card {
  flex: 0.42;
}

/* expand the hovered card */
.accordion-cards .ac-card:hover {
  flex: 4;
}

/* dark green tint overlay â€” keeps branding + makes text readable */
.ac-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(6, 32, 22, 0.88) 0%,
      rgba(10, 48, 32, 0.55) 45%,
      rgba(15, 61, 38, 0.30) 100%);
  z-index: 1;
  border-radius: 20px;
  transition: background 0.4s ease;
}

.ac-card:hover .ac-img-overlay {
  background: linear-gradient(to top,
      rgba(6, 32, 22, 0.78) 0%,
      rgba(10, 48, 32, 0.35) 45%,
      rgba(15, 61, 38, 0.12) 100%);
}

/* â”€â”€ Icon â€” centered by default, moves top-left on hover â”€â”€ */
.ac-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  font-size: 44px;
  z-index: 4;
  transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.45s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.ac-card:hover .ac-icon {
  top: 28px;
  left: 24px;
  transform: translate(0, 0);
  font-size: 34px;
}

/* â”€â”€ Title pill â€” always visible centered, changes on hover â”€â”€ */
.ac-label-wrap {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px;
  pointer-events: none;
}

.ac-label {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.35s ease,
    color 0.35s ease,
    font-size 0.35s ease,
    padding 0.35s ease,
    border-radius 0.35s ease;
}

.ac-card:hover .ac-label {
  background: rgba(255, 255, 255, 0.96);
  color: #0F3D26;
  font-size: 17px;
  padding: 10px 22px;
  border-radius: 14px;
}

/* â”€â”€ Description â€” hidden, fades in on hover â”€â”€ */
.ac-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  max-width: 300px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.ac-card:hover .ac-desc {
  opacity: 1;
  transform: translateY(0);
}

/* â”€â”€ Mobile: grid 2 columnas + drawer â”€â”€ */
@media (max-width: 768px) {
  .accordion-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto;
  }

  .ac-card {
    flex: none !important;
    height: 140px;
    border-radius: 16px;
    min-width: unset;
    transition: transform 0.15s ease;
  }

  .accordion-cards:hover .ac-card {
    flex: none !important;
  }

  .accordion-cards .ac-card:hover {
    flex: none !important;
  }

  .ac-card:active {
    transform: scale(0.97);
  }

  /* Ã­cono arriba izquierda siempre */
  .ac-icon {
    top: 12px;
    left: 12px;
    transform: none;
    font-size: 26px;
    transition: none;
  }

  .ac-card:hover .ac-icon {
    top: 12px;
    left: 12px;
    transform: none;
    font-size: 26px;
  }

  /* label abajo izquierda siempre visible */
  .ac-label-wrap {
    bottom: 10px;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
    align-items: flex-start;
    padding: 0 10px;
  }

  .ac-card:hover .ac-label-wrap {
    bottom: 10px;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
    align-items: flex-start;
  }

  .ac-label {
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: normal;
    line-height: 1.3;
    display: inline-block;
  }

  .ac-card:hover .ac-label {
    background: rgba(0, 0, 0, 0.62);
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
  }

  /* descripciÃ³n oculta â€” la muestra el drawer */
  .ac-desc {
    display: none;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FEATURE DRAWER â€” Mobile
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.feat-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9000;
  transition: background 0.3s ease;
}

.feat-drawer-overlay.open {
  display: block;
  background: rgba(0, 0, 0, 0.52);
}

.feat-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9001;
  overflow: hidden;
  max-height: 85vh;
}

.feat-drawer.open {
  transform: translateY(0);
}

/* handle bar */
.feat-drawer-handle {
  width: 40px;
  height: 4px;
  background: #C8DDD1;
  border-radius: 4px;
  margin: 12px auto 0;
}

.feat-drawer-photo {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  margin-left: 16px;
  margin-right: 16px;
}

.feat-drawer-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 32, 22, 0.75) 0%, rgba(6, 32, 22, 0.15) 60%, transparent 100%);
}

.feat-drawer-icon {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.feat-drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feat-drawer-body {
  padding: 16px 20px 32px;
}

.feat-drawer-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F3D26;
  margin-bottom: 10px;
}

.feat-drawer-desc {
  font-size: 14px;
  color: #5A7A68;
  line-height: 1.7;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION NAV â€” Landing (Variante A)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.section-nav {
  position: sticky;
  top: 64px;
  z-index: 99;
  background: white;
  border-bottom: 1.5px solid #D4EDDA;
  box-shadow: 0 2px 12px rgba(26, 92, 58, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.snav-btn {
  background: transparent;
  color: #2D4A3E;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.snav-btn:hover {
  background: #EAF5EE;
  color: #1A5C3A;
}

.snav-btn.active {
  background: #1A5C3A;
  color: white;
}

/* Mobile: ocultar section-nav completamente */
@media (max-width: 640px) {
  .section-nav {
    display: none;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COACH PROFILE â€” RediseÃ±o estilo WhatsApp/LinkedIn
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Animaciones portada â”€â”€ */
@keyframes ppFloat1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: .65
  }

  50% {
    transform: translateY(-20px) rotate(12deg);
    opacity: 1
  }
}

@keyframes ppFloat2 {

  0%,
  100% {
    transform: translateY(0);
    opacity: .55
  }

  50% {
    transform: translateY(-16px) rotate(-8deg);
    opacity: .95
  }
}

@keyframes ppFloat3 {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: .6
  }

  50% {
    transform: translateY(-24px) scale(1.1);
    opacity: 1
  }
}

@keyframes ppFloat4 {

  0%,
  100% {
    transform: translateY(0) rotate(3deg);
    opacity: .5
  }

  50% {
    transform: translateY(-14px) rotate(-10deg);
    opacity: .9
  }
}

@keyframes ppFloat5 {

  0%,
  100% {
    transform: translateY(0);
    opacity: .45
  }

  50% {
    transform: translateY(-18px) rotate(6deg);
    opacity: .85
  }
}

@keyframes ppFloat6 {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
    opacity: .5
  }

  50% {
    transform: translateY(-22px) rotate(8deg);
    opacity: 1
  }
}

/* â”€â”€ Portada â”€â”€ */
/* â”€â”€ Contenedor centrado de todo el perfil â”€â”€ */
.profile-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card superior: portada + avatar juntos con bordes redondeados */
.profile-top-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #062016 0%, #1A5C3A 50%, #2E8B57 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  /* dentro del card, sin radius propio */
}

.profile-particle {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.pp1 {
  font-size: 36px;
  top: 16px;
  left: 40px;
  animation: ppFloat1 3.2s ease-in-out infinite;
}

.pp2 {
  font-size: 32px;
  top: 12px;
  right: 60px;
  animation: ppFloat2 2.8s ease-in-out infinite 0.4s;
}

.pp3 {
  font-size: 28px;
  bottom: 20px;
  left: 80px;
  animation: ppFloat3 3.6s ease-in-out infinite 0.8s;
}

.pp4 {
  font-size: 26px;
  bottom: 16px;
  right: 100px;
  animation: ppFloat4 3.0s ease-in-out infinite 1.2s;
}

.pp5 {
  font-size: 22px;
  top: 38px;
  left: 44%;
  animation: ppFloat5 4.0s ease-in-out infinite 0.6s;
}

.pp6 {
  font-size: 24px;
  bottom: 28px;
  right: 28px;
  animation: ppFloat6 3.4s ease-in-out infinite 1.0s;
}

.profile-cover-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.profile-cover-logo {
  font-size: 40px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
  display: block;
  margin-bottom: 6px;
}

.profile-cover-title {
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.profile-cover-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

/* â”€â”€ Avatar row â”€â”€ */
.profile-avatar-row {
  background: var(--surface);
  padding: 0 24px 20px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  margin-top: -44px;
  position: relative;
  flex-shrink: 0;
  background: transparent !important;
  line-height: 0;
}

.profile-avatar-wrap>* {
  background: transparent;
}

#coach-photo-display {
  background: transparent !important;
  display: block;
  width: fit-content;
  line-height: 0;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  z-index: 10;
}

.profile-avatar-edit:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  color: var(--primary-dark);
}

.profile-avatar-info {
  padding-bottom: 6px;
  flex: 1;
  min-width: 0;
}

.profile-avatar-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F3D26;
}

.profile-avatar-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-avatar-specialty {
  display: inline-block;
  margin-top: 7px;
  background: #D4EDDA;
  color: #0F3D26;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* â”€â”€ Secciones grid â”€â”€ */
.profile-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stats row top */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.profile-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-section {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-section-full {
  grid-column: 1 / -1;
}

.profile-section-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
}

.profile-section-icon {
  font-size: 18px;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.profile-section-body {
  padding: 18px;
}

.profile-photo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
}

.profile-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* â”€â”€ Mobile: stack vertical estilo WhatsApp â”€â”€ */
@media (max-width: 768px) {
  .profile-cover {
    height: 160px;
  }

  .profile-cover-center {
    margin-top: -15px;
  }

  .pp1 {
    font-size: 22px;
    left: 12px;
    top: 10px;
  }

  .pp2 {
    font-size: 20px;
    right: 12px;
    top: 8px;
  }

  .pp3 {
    font-size: 18px;
    left: 16px;
    bottom: 12px;
  }

  .pp4 {
    font-size: 18px;
    right: 20px;
    bottom: 10px;
  }

  .pp5 {
    display: none;
  }

  .pp6 {
    display: none;
  }

  .profile-cover-logo {
    font-size: 28px;
  }

  .profile-cover-title {
    font-size: 14px;
  }

  .profile-cover-sub {
    font-size: 10px;
  }

  .profile-avatar-row {
    padding: 0 16px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar-wrap {
    margin-top: -38px;
  }

  .profile-avatar-info {
    padding-bottom: 0;
  }

  .profile-avatar-name {
    font-size: 17px;
  }

  /* mobile: ocultar card de foto (ya estÃ¡ en el avatar row) */
  .profile-photo-card {
    display: none;
  }

  .profile-container {
    padding: 14px 14px 24px;
    gap: 12px;
  }

  .profile-top-card {
    border-radius: 14px;
  }

  .profile-sections-grid {
    gap: 12px;
  }

  .profile-stats-row {
    gap: 8px;
  }

  .profile-stat-num {
    font-size: 15px;
  }

  .profile-stat-box {
    padding: 12px 8px;
  }

  .profile-section-full {
    grid-column: 1;
  }

  .profile-creds-grid {
    grid-template-columns: 1fr;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CUSTOM DIALOG SYSTEM
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Overlay â”€â”€ */
.nc-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  padding: 20px;
  animation: ncFadeIn 0.2s ease both;
}

.nc-dialog-overlay.hidden {
  display: none;
}

@keyframes ncFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* â”€â”€ Desktop modal â”€â”€ */
.nc-dialog-modal {
  background: white;
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: ncScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ncScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nc-dialog-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.nc-dialog-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F3D26;
  text-align: center;
  margin-bottom: 6px;
}

.nc-dialog-sub {
  font-size: 13px;
  color: #5A7A68;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.55;
}

.nc-dialog-sub.danger {
  color: #C0392B;
  font-weight: 600;
}

/* input motivo */
.nc-dialog-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #C8DDD1;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #F4FAF6;
  color: #1A2E24;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.nc-dialog-input:focus {
  border-color: #2E8B57;
}

/* â”€â”€ Toggle pill â”€â”€ */
.nc-dialog-toggle-wrap {
  margin-bottom: 4px;
}

.nc-toggle-fieldset {
  background: white;
  box-shadow: 0 0 1.2rem 0 rgba(26, 92, 58, 0.1);
  border-radius: 5rem;
  padding: 0.75rem 0.9rem;
  border: none;
  width: 100%;
}

.nc-toggle-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #D4EDDA;
  border-radius: 5rem;
  position: relative;
  isolation: isolate;
  padding-inline: 0.35rem;
}

.nc-toggle-box::before {
  content: "";
  border-radius: 5rem;
  border: 3.5px solid white;
  background: #1A5C3A;
  position: absolute;
  inset: 0;
  width: calc(50% + 0.35rem);
  margin-block: -5px;
  z-index: -1;
  transition: transform 0.22s cubic-bezier(0.66, -0.33, 0.33, 1.33),
    background 0.2s ease;
}

.nc-toggle-box.no-selected::before {
  transform: translateX(calc(100% - 0.7rem));
  background: #C0392B;
}

.nc-toggle-opt {
  text-align: center;
  padding: 0.7rem 1.2rem;
  position: relative;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0F3D26;
  cursor: pointer;
  transition: color 0.18s;
  font-family: inherit;
}

.nc-toggle-opt.nc-active-yes,
.nc-toggle-opt.nc-active-no {
  color: white;
}

.nc-toggle-input {
  cursor: pointer;
  position: absolute;
  inset: 0;
  border-radius: 5rem;
  appearance: none;
  margin: 0;
  padding: 0;
}

/* â”€â”€ BotÃ³n de acciÃ³n â”€â”€ */
.nc-dialog-btn {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nc-dialog-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nc-btn-yes {
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  box-shadow: 0 3px 10px rgba(26, 92, 58, 0.3);
}

.nc-btn-cancel {
  background: linear-gradient(135deg, #C0392B, #E74C3C);
  color: white;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
}

.nc-btn-ok {
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  box-shadow: 0 3px 10px rgba(26, 92, 58, 0.3);
}

/* â”€â”€ Mobile bottom sheet â”€â”€ */
.nc-bottom-sheet {
  display: none;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 0 20px 32px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100001;
  animation: ncSlideUp 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ncSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.nc-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #C8DDD1;
  margin: 12px auto 18px;
}

/* â”€â”€ Responsive: mostrar sheet en mobile â”€â”€ */
@media (max-width: 640px) {
  .nc-dialog-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .nc-dialog-modal {
    display: none;
  }

  .nc-bottom-sheet {
    display: block;
  }

  .nc-toggle-opt {
    font-size: 12px;
    padding: 0.6rem 0.8rem;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MI COACH â€” Vista del cliente
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.my-coach-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.my-coach-cover {
  height: 100px;
  background: linear-gradient(135deg, #062016 0%, #1A5C3A 55%, #2E8B57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-coach-cover-txt {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.my-coach-avatar-row {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.my-coach-avatar-wrap {
  margin-top: -32px;
  line-height: 0;
  background: transparent;
}

.my-coach-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F3D26;
  margin-top: 10px;
  text-align: center;
}

.my-coach-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  text-align: center;
}

.my-coach-specialty {
  background: #D4EDDA;
  color: #0F3D26;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.my-coach-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.my-coach-section {
  padding: 14px 20px;
}

.my-coach-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.my-coach-bio {
  font-size: 13px;
  color: #2D4A3E;
  line-height: 1.7;
}

.my-coach-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid #F0F5F2;
}

.my-coach-contact-item:last-child {
  border-bottom: none;
}

.my-coach-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #D4EDDA;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.my-coach-contact-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.my-coach-contact-val {
  font-size: 13px;
  font-weight: 600;
  color: #1A2E24;
  margin-top: 2px;
}

/* desktop: card un poco mÃ¡s ancha */
@media (min-width: 769px) {
  .my-coach-card {
    max-width: 700px;
  }

  .my-coach-cover {
    height: 140px;
  }

  .my-coach-cover-txt {
    font-size: 15px;
  }

  .my-coach-avatar-wrap {
    margin-top: -40px;
  }

  .my-coach-name {
    font-size: 20px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MI COACH â€” Client portal tab
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.my-coach-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Portada */
.my-coach-cover {
  height: 120px;
  background: linear-gradient(135deg, #062016 0%, #1A5C3A 50%, #2E8B57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar row */
.my-coach-avatar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 16px;
}

.my-coach-avatar-wrap {
  margin-top: -36px;
  line-height: 0;
  background: transparent;
}

.my-coach-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F3D26;
  margin-top: 10px;
  text-align: center;
}

.my-coach-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  text-align: center;
}

.my-coach-specialty {
  display: inline-block;
  margin-top: 8px;
  background: #D4EDDA;
  color: #0F3D26;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Secciones */
.my-coach-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.my-coach-section {
  padding: 14px 20px;
}

.my-coach-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.my-coach-bio {
  font-size: 13px;
  color: #2D4A3E;
  line-height: 1.7;
}

/* Contacto */
.my-coach-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 0.5px solid #F0F5F2;
}

.my-coach-contact-item:last-child {
  border-bottom: none;
}

.my-coach-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #D4EDDA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.my-coach-contact-label {
  font-size: 10px;
  font-weight: 700;
  color: #9BBCAA;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.my-coach-contact-val {
  font-size: 13px;
  font-weight: 600;
  color: #1A2E24;
  margin-top: 2px;
}

/* Desktop: mÃ¡s ancho y grid en secciones */
@media (min-width: 769px) {
  .my-coach-cover {
    height: 160px;
  }

  .my-coach-avatar-wrap {
    margin-top: -44px;
  }

  .my-coach-name {
    font-size: 20px;
  }
}

/* â”€â”€ Coach stats card â”€â”€ */
.profile-section-label-sm {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.coach-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coach-stat-item {
  background: var(--surface2);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
}

.coach-stat-icon {
  font-size: 20px;
}

.coach-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #1A5C3A;
  line-height: 1;
}

.coach-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROGRESS TABLE â€” Sortable, filterable, paginada
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.pt-table-wrap {
  margin-top: 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid #E8F2EC;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 92, 58, 0.06);
}

.pt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #E8F2EC;
  background: #F8FCF9;
}

.pt-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F3D26;
}

.pt-filter {
  padding: 7px 12px 7px 30px;
  border: 1.5px solid #C8DDD1;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%235A7A68' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 9px center;
  outline: none;
  min-width: 160px;
  color: #1A2E24;
  transition: border-color 0.2s;
}

.pt-filter:focus {
  border-color: #2E8B57;
}

/* Table */
.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pt-table thead tr {
  background: #1A5C3A;
}

.pt-th {
  padding: 10px 14px;
  color: white;
  font-weight: 700;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}

.pt-th.sortable {
  cursor: pointer;
}

.pt-th.sortable:hover {
  background: #0F3D26;
}

.pt-table tbody tr {
  border-bottom: 1px solid #F0F5F2;
  transition: background 0.12s;
}

.pt-table tbody tr:hover {
  background: #F4FAF6;
}

.pt-table tbody tr:last-child {
  border-bottom: none;
}

.pt-table tbody td {
  padding: 9px 14px;
  color: #1A2E24;
}

/* Caret */
.ptcaret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.4;
}

.ptcaret-up {
  border-bottom: 7px solid white;
  opacity: 1;
}

.ptcaret-down {
  border-top: 7px solid white;
  opacity: 1;
}

/* Badges */
.ptbadge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ptbadge-green {
  background: #D4EDDA;
  color: #0F3D26;
}

.ptbadge-red {
  background: #FDEDEC;
  color: #922B21;
}

.ptbadge-blue {
  background: #EAF2FE;
  color: #1A4A8A;
}

.ptbadge-purple {
  background: #F3E8FE;
  color: #5B2C8C;
}

.ptbadge-teal {
  background: #E6F7EE;
  color: #0B5C35;
}

.ptbadge-gray {
  background: #F0F5F2;
  color: #5A7A68;
}

/* Delete button */
.ptbtn-del {
  background: #FDEDEC;
  color: #C0392B;
  border: none;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.ptbtn-del:hover {
  background: #C0392B;
  color: white;
}

/* Footer */
.pt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #E8F2EC;
  background: #F8FCF9;
  flex-wrap: wrap;
  gap: 8px;
}

.pt-info {
  font-size: 11px;
  color: #5A7A68;
}

.pt-btns {
  display: flex;
  gap: 4px;
}

.ptpbtn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid #C8DDD1;
  background: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #1A5C3A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ptpbtn:hover {
  background: #EAF5EE;
  border-color: #2E8B57;
}

.ptpbtn.active {
  background: #1A5C3A;
  color: white;
  border-color: #1A5C3A;
}

.ptpbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RANGE PILL TOGGLE â€” Selector de rango animado
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.range-pill-wrap {
  display: inline-flex;
  background: #D4EDDA;
  border-radius: 5rem;
  padding: 4px 5px;
  gap: 2px;
  box-shadow: 0 0 0 1.5px #C8DDD1;
  position: relative;
  align-items: center;
}

.range-pill-btn {
  position: relative;
  background: transparent;
  color: #2D4A3E;
  border: none;
  border-radius: 5rem;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
  transition: color 0.22s ease;
  outline: none;
}

.range-pill-btn.active {
  color: white;
}

/* â”€â”€ Macros en Plan (Ivory Style) â”€â”€ */
.macros-pills {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.macro-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.macro-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.mp-icon {
  font-size: 16px;
}

.mp-val {
  color: var(--primary);
  font-size: 15px;
  font-weight: 850;
}

.mp-unit {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

/* â”€â”€ Macros en Perfil Cliente (Modern Grid) â”€â”€ */
#client-macros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.macro-card-mini {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.macro-card-mini:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.mcm-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #FEF2F2;
  color: #EF4444;
}

.mcm-val {
  font-size: 18px;
  font-weight: 850;
  color: var(--text);
  line-height: 1.2;
}

.mcm-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* sliding background â€” real div controlled by JS */
.rp-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 5rem;
  background: #1A5C3A;
  box-shadow: 0 2px 8px rgba(26, 92, 58, 0.3);
  transition: left 0.28s cubic-bezier(0.66, -0.33, 0.33, 1.33),
    width 0.28s cubic-bezier(0.66, -0.33, 0.33, 1.33);
  pointer-events: none;
  z-index: 1;
}

/* mobile: grid simple sin animaciÃ³n */
@media (max-width: 600px) {
  .range-pill-wrap {
    flex-wrap: wrap;
    border-radius: 14px;
    max-width: 100%;
    gap: 4px;
  }

  .rp-slider {
    display: none;
  }

  .range-pill-btn {
    flex: 1 1 auto;
    text-align: center;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    color: #2D4A3E;
  }

  .range-pill-btn.active {
    background: #1A5C3A;
    color: white;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MEAL CONFIGURATOR â€” RediseÃ±o plan builder
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes mealSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meal-configurator {
  padding: 4px 0;
}

/* Header secciÃ³n */
.meal-config-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F4FAF6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #E8F2EC;
}

.meal-config-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.meal-config-info {
  flex: 1;
}

.meal-config-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F3D26;
}

.meal-config-sub {
  font-size: 11px;
  color: #5A7A68;
  margin-top: 2px;
}

.meal-count-badge {
  background: #1A5C3A;
  color: white;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meal-count-badge.bump {
  transform: scale(1.3);
}

/* Lista de comidas */
.meal-list-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meal-item-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #C8DDD1;
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.meal-item-new:focus-within {
  border-color: #2E8B57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.meal-handle {
  color: #C8DDD1;
  font-size: 16px;
  cursor: grab;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 2px;
  user-select: none;
}

.meal-handle:active {
  cursor: grabbing;
}

.meal-input-new {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #1A2E24;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}

.meal-input-new::placeholder {
  color: #C8DDD1;
  font-weight: 400;
}

.meal-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FDEDEC;
  color: #C0392B;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.meal-del-btn:hover {
  background: #C0392B;
  color: white;
}

/* Botones de acciÃ³n */
.meal-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-add-meal-new {
  flex: 1;
  padding: 10px 14px;
  border: 2px dashed #C8DDD1;
  border-radius: 12px;
  background: transparent;
  color: #1A5C3A;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-meal-new:hover {
  border-color: #2E8B57;
  background: #EAF5EE;
}

.btn-reset-meal {
  padding: 10px 16px;
  border: 1.5px solid #C8DDD1;
  border-radius: 12px;
  background: white;
  color: #5A7A68;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.btn-reset-meal:hover {
  border-color: #5A7A68;
  color: #1A2E24;
}

/* BotÃ³n continuar */
.btn-continue-plan {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(26, 92, 58, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-continue-plan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 92, 58, 0.35);
}

.btn-continue-plan:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn-continue-days {
  opacity: 0.75;
  font-size: 12px;
  font-weight: 600;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN NAVBAR â€” Mobile variante B: dos filas
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.admin-badge-nav {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 8px;
  letter-spacing: 0.04em;
}


/* ─── Navbar Admin (ELITE) ─── */
.navbar-admin {
  background: white !important;
  border-bottom: 1px solid var(--border-light);
  padding: 0 40px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-admin .nav-brand {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tag {
  background: var(--accent);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.btn-nav-premium {
  background: var(--primary);
  color: white !important;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-nav-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-nav-outline {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-nav-outline:hover {
  background: #f8fafc;
  color: var(--accent) !important;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .navbar-admin {
    padding: 0 16px;
    height: 65px;
  }

  .btn-nav-premium {
    padding: 8px 14px;
    font-size: 12px;
  }

  .btn-nav-outline {
    padding: 8px 14px;
    font-size: 12px;
  }

  .admin-tag {
    display: none;
  }
}

/* ─── Admin Tabs (ELITE SYSTEM) ─── */
.admin-tabs-wrap {
  margin: 35px 0;
  display: flex;
  justify-content: center;
}

.admin-pills {
  background: #f1f5f9;
  padding: 6px;
  border-radius: 20px;
  display: flex;
  position: relative;
  width: fit-content;
  min-width: 380px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-pill-slider {
  position: absolute;
  height: calc(100% - 12px);
  background: var(--primary);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  top: 6px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.admin-tab-btn {
  flex: 1;
  padding: 12px 28px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.admin-tab-btn.active {
  color: white;
}

.admin-tab-btn:not(.active):hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .admin-pills {
    min-width: 95%;
  }

  .admin-tab-btn {
    padding: 12px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .admin-tab-btn .p-text {
    display: none;
  }
}

/* Grid de Coaches */
.coach-grid-elite {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

/* Tarjeta Coach Elite */
.coach-card-elite {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;

}

.coach-card-elite:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ce-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ce-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.ce-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.ce-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ce-specialty {
  display: inline-block;
  padding: 3px 10px;
  background: #E0F2F1;
  color: #00796B;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ce-message {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.ce-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ce-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ce-stat .icon {
  font-style: normal;
  font-size: 14px;
}

.ce-actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.btn-ce {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ce-approve {
  background: var(--primary);
  color: white !important;
}

.btn-ce-approve:hover {
  background: #0ea171;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
  .membership-status-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }

  .m-status-right {
    max-width: 100%;
    width: 100%;
  }

  .upgrade-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .upgrade-card {
    padding: 24px;
  }

  .upgrade-card h4 {
    font-size: 18px;
  }

  .upgrade-card .price {
    font-size: 28px;
  }

  .membership-dashboard {
    padding: 10px;
  }
}

.btn-ce-warning {
  background: #FFF9E6;
  color: #D97706 !important;
  border: 1px solid #FEF3C7;
}

.btn-ce-warning:hover {
  background: #FEF3C7;
}

.btn-ce-danger {
  background: #FEF2F2;
  color: #DC2626 !important;
  border: 1px solid #FEE2E2;
}

.btn-ce-danger:hover {
  background: #FEE2E2;
}

@media (max-width: 640px) {
  .coach-grid-elite {
    grid-template-columns: 1fr;
  }

  .ce-actions {
    flex-direction: column;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CALCULADORA MIFFLIN-ST JEOR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Header */
.calc-header-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #062016, #1A5C3A);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.calc-header-icon-wrap {
  font-size: 30px;
  flex-shrink: 0;
}

.calc-header-title {
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.calc-header-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  margin-top: 3px;
}

/* Secciones */
.calc-section {
  margin-bottom: 18px;
}

.calc-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #5A7A68;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Pill toggle genÃ©rico */
.nc-pill-wrap {
  display: flex;
  width: 100%;
  position: relative;
  background: #D4EDDA;
  border-radius: 5rem;
  padding: 4px 5px;
  gap: 2px;
  box-shadow: 0 0 0 1.5px #C8DDD1;
}


.nc-pill-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 5rem;
  background: #1A5C3A;
  box-shadow: 0 2px 8px rgba(26, 92, 58, 0.3);
  transition: left 0.28s cubic-bezier(0.66, -0.33, 0.33, 1.33),
    width 0.28s cubic-bezier(0.66, -0.33, 0.33, 1.33),
    background 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.nc-pill-btn {
  flex: 1;
  padding: 9px 6px;
  border: none;
  border-radius: 5rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: #2D4A3E;
  z-index: 2;
  position: relative;
  text-align: center;
  line-height: 1.3;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nc-pill-btn.active {
  color: white;
}

/* Grid campos */
.calc-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

/* Stats fila */
.calc-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 14px;
}

.calc-stat {
  background: #F4FAF6;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #E8F2EC;
  text-align: center;
}

.calc-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #1A5C3A;
  line-height: 1;
}

.calc-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #9BBCAA;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Kcal box */
.calc-kcal-box {
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}

.calc-kcal-num {
  font-size: 48px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.calc-kcal-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-top: 4px;
}

.calc-kcal-hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  margin-top: 4px;
}

.calc-kcal-slider {
  width: 100%;
  margin-top: 12px;
  accent-color: #52D68A;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

/* Barra macros */
.calc-bar-wrap {
  margin-bottom: 16px;
}

.calc-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9BBCAA;
  margin-bottom: 6px;
  font-weight: 600;
}

.calc-bar {
  display: flex;
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
  gap: 2px;
}

.cb-p {
  background: #F59E0B;
  transition: flex 0.4s ease;
}

.cb-c {
  background: #3B82F6;
  transition: flex 0.4s ease;
}

.cb-g {
  background: #EF4444;
  transition: flex 0.4s ease;
}

/* Macros grid */
.calc-macros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.calc-macro {
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid transparent;
}

.mc-prot {
  background: #FEF3CD;
  border-color: #F0D080;
}

.mc-carbs {
  background: #E8F4FF;
  border-color: #7AB8F5;
}

.mc-fat {
  background: #FDEDEC;
  border-color: #F5C6C2;
}

.calc-macro-g {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.calc-macro-pct {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
  margin-top: 2px;
}

.calc-macro-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.mc-prot .calc-macro-g,
.mc-prot .calc-macro-name {
  color: #92400E;
}

.mc-carbs .calc-macro-g,
.mc-carbs .calc-macro-name {
  color: #1A5BA8;
}

.mc-fat .calc-macro-g,
.mc-fat .calc-macro-name {
  color: #C0392B;
}

/* Nota */
.calc-nota {
  background: #F4FAF6;
  border: 1px solid #E8F2EC;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  color: #5A7A68;
  line-height: 1.6;
  margin-top: 12px;
}

.calc-results {
  margin-top: 20px;
  border-top: 1px solid #E8F2EC;
  padding-top: 20px;
}

.calc-results.hidden {
  display: none;
}

.btn-full {
  width: 100%;
  margin-top: 4px;
}

/* â”€â”€ Notas del coach en portal del cliente â”€â”€ */
.coach-notes-block {
  margin: 16px 0;
  background: linear-gradient(135deg, #F4FAF6, #EAF5EE);
  border: 1.5px solid #C8DDD1;
  border-left: 4px solid #1A5C3A;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}

.coach-notes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(26, 92, 58, 0.06);
  border-bottom: 1px solid #D4EDDA;
}

.coach-notes-icon {
  font-size: 16px;
}

.coach-notes-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F3D26;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coach-notes-body {
  padding: 14px 16px;
  font-size: 13px;
  color: #2D4A3E;
  line-height: 1.7;
}

/* â”€â”€ Actividad pill mobile â€” 2+3 wrap â”€â”€ */
@media (max-width: 640px) {
  .nc-pill-wrap-5 {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 5px;
    gap: 4px;
  }

  .nc-pill-wrap-5 .nc-pill-slider {
    display: none;
  }

  .nc-pill-wrap-5 .nc-pill-btn {
    flex: 0 0 calc(50% - 4px);
    border-radius: 12px;
    padding: 9px 6px;
    font-size: 11px;
    background: transparent;
    color: #2D4A3E;
    transition: background 0.2s, color 0.2s;
  }

  .nc-pill-wrap-5 .nc-pill-btn:last-child {
    flex: 0 0 100%;
  }

  .nc-pill-wrap-5 .nc-pill-btn.active {
    background: #1A5C3A;
    color: white;
    box-shadow: 0 2px 8px rgba(26, 92, 58, 0.3);
  }

  .nc-pill-wrap-5 .nc-pill-btn:not(.active):hover {
    background: rgba(26, 92, 58, 0.08);
  }
}

/* â”€â”€ Calculadora â€” pasos detallados â”€â”€ */
.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.calc-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F4FAF6;
  border: 1px solid #E8F2EC;
  border-left: 3px solid #1A5C3A;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1A2E24;
  line-height: 1.6;
  animation: fadeInUp 0.3s ease both;
}

.calc-step strong {
  color: #1A5C3A;
}

.calc-step-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* â”€â”€ Learn more link â”€â”€ */
.calc-learn-more {
  margin-top: 14px;
  padding: 12px 16px;
  background: #F4FAF6;
  border: 1px solid #E8F2EC;
  border-radius: 12px;
  font-size: 12px;
  color: #5A7A68;
  line-height: 1.6;
  text-align: center;
}

.calc-learn-link {
  color: #1A5C3A;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid #3CB371;
}

/* ==========================================================================
   MEMBERSHIP DASHBOARD STYLES
   ========================================================================== */

.membership-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.membership-dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.emerald-gradient {
  background: linear-gradient(135deg, #064E3B 0%, #10B981 100%);
}

.membership-status-card {
  padding: 32px;
  border-radius: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.m-status-left {
  flex: 1;
}

.m-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  display: block;
  margin-bottom: 4px;
}

.m-status-left h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.m-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.m-status-right {
  flex: 1;
  max-width: 400px;
}

.m-limit-box {
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 16px;
}

.m-limit-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.m-progress-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.m-progress-fill {
  height: 100%;
  background: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.upgrade-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 2px solid #F3F4F6;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.upgrade-card:hover {
  transform: translateY(-8px);
  border-color: #10B981;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.upgrade-card.featured {
  border-color: #10B981;
  background: #F0FDF4;
}

.upgrade-card.selected-plan {
  border: 3px solid #10B981 !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2) !important;
  transform: translateY(-8px);
}

.selected-plan-badge {
  background: #10B981;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.card-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #10B981;
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.upgrade-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111827;
}

.upgrade-card .price {
  font-size: 36px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 24px;
}

.upgrade-card .price span {
  font-size: 16px;
  color: #6B7280;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex: 1;
}

.feature-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li i {
  color: #10B981;
}

.paypal-container {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .membership-status-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .m-status-right {
    max-width: 100%;
    width: 100%;
  }
}

/* --- Workout Hub Enhancements --- */
.ex-autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white !important;
  border: 1px solid #C8DDD1;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.ex-autocomplete-results.hidden {
  display: none !important;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  text-align: left;
}

.autocomplete-item:hover {
  background: #f4faf6;
}

.autocomplete-item strong {
  display: block;
  font-size: 13px;
  color: #1A5C3A;
}

.autocomplete-item small {
  font-size: 11px;
  color: #666;
}

.btn-play-sm {
  background: #F4FAF6;
  border: 1.5px solid #C8DDD1;
  color: #1A5C3A;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-play-sm:hover {
  background: #1A5C3A;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(26, 92, 58, 0.2);
}

.workout-exercises {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   BIOMETRICS PRO 2.0 (INTELLIGENT DASHBOARD)
   ========================================================================== */

.bio-pro-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.bio-inputs-panel,
.bio-live-panel {
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.bio-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Live Cards Styling */
.live-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.live-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bmi-card {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border-left: 4px solid #10b981;
}

.target-card {
  background: linear-gradient(135deg, #064E3B, #065F46);
  color: white;
  border: none;
}

.target-card .lc-title {
  color: rgba(255, 255, 255, 0.8);
}

.target-card .lc-icon {
  background: rgba(255, 255, 255, 0.15);
}

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

.lc-icon {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lc-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  flex: 1;
}

.lc-val {
  font-size: 32px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1;
}

.lc-val-sm {
  font-size: 24px;
  font-weight: 850;
  color: #1e293b;
}

.lc-val-sm small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
}

.lc-target-val {
  font-size: 36px;
  font-weight: 900;
  color: white;
}

.lc-target-val small {
  font-size: 14px;
  opacity: 0.8;
}

.lc-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
}

.live-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Macro Bars in Dashboard */
.live-macro-bars {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lmb-item {
  display: grid;
  grid-template-columns: 60px 1fr 45px;
  align-items: center;
  gap: 12px;
}

.lmb-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.lmb-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.lmb-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lmb-bar.p {
  background: #F97316;
}

/* Naranja Prot */
.lmb-bar.c {
  background: #3B82F6;
}

/* Azul Carbs */
.lmb-bar.g {
  background: #EF4444;
}

/* Rojo Grasa */

.lmb-val {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.btn-apply-suggested {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply-suggested:hover {
  background: white;
  color: #064E3B;
}

.bio-final-macros {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}

.btn-full {
  width: 100%;
}

.macros-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.macros-row .form-group {
  margin-bottom: 0;
}

.macros-row input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
}

@media (max-width: 1024px) {
  .bio-pro-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bio-live-panel {
    order: -1;
  }

  .bio-inputs-panel,
  .bio-live-panel {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .macros-row {
    gap: 10px;
  }

  .lc-target-val {
    font-size: 28px;
  }
}

/* --- Client Profile: Obsidian Emerald Edition --- */
.client-anthro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.anthro-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.anthro-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.anthro-val {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
}

.anthro-val small {
  font-size: 10px;
  opacity: 0.6;
}

.macros-display {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.macro-card-mini {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mcm-icon {
  width: 36px;
  height: 36px;
  background: #FEF2F2;
  color: #EF4444;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mcm-val {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.mcm-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .client-anthro-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Dashboard Quick Actions --- */
.cr-quick-actions {
  display: flex;
  gap: 8px;
  margin-right: 12px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.client-row:hover .cr-quick-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* En móvil las dejamos visibles para que sean útiles sin hover */
@media (max-width: 768px) {
  .cr-quick-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-left: auto;
    margin-right: 0;
  }

  .cr-badge {
    display: none;
  }
}

.qa-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qa-btn:hover {
  background: #ecfdf5;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   FINAL OVERRIDE: MOBILE FLOATING ISLAND NAVIGATION
   ========================================================================== */
@media (max-width: 768px) {
  body #screen-coach .bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    width: calc(100% - 40px) !important;
    height: 64px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 100px !important;
    z-index: 900 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 0 15px !important;
    margin: 0 !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  body #screen-coach .bottom-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    gap: 2px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    position: relative !important;
  }

  body #screen-coach .bottom-item.active {
    color: #10b981 !important;
    /* Emerald */
  }

  body #screen-coach .bottom-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 30% !important;
    right: 30% !important;
    height: 3px !important;
    background: #10b981 !important;
    border-radius: 0 0 10px 10px !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
  }

  body #screen-coach .bottom-item.active::before {
    transform: scaleX(1) !important;
  }

  body #screen-coach .bottom-icon {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }

  body #screen-coach .bottom-label {
    font-size: 8.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  /* Ajustar botón flotante para que no tape la isla */
  body #screen-coach .btn-float {
    bottom: 100px !important;
    right: 24px !important;
    z-index: 899 !important;
  }
}



/* -- Intelligent Password Strength System -- */
.pw-strength-meter {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px 0;
  overflow: hidden;
  position: relative;
}

.pw-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.4s ease, background 0.4s ease;
}

.pw-strength-bar.weak {
  width: 33%;
  background: #ef4444;
}

.pw-strength-bar.medium {
  width: 66%;
  background: #f59e0b;
}

.pw-strength-bar.strong {
  width: 100%;
  background: #10b981;
}

.pw-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pw-req-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  transition: var(--transition);
}

.pw-req-item i {
  font-size: 12px;
  color: #cbd5e1;
}

.pw-req-item.met {
  color: #10b981;
  font-weight: 600;
}

.pw-req-item.met i {
  color: #10b981;
}

.pw-req-item.not-met {
  color: #ef4444;
}

/* Tooltip animation for password info */
.pw-info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 10px;
  cursor: help;
  margin-left: 4px;
  transition: var(--transition);
}

.pw-info-tip:hover {
  background: var(--accent);
  color: white;
}

/* Password Visibility Toggle */
.pw-group {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-group input {
  padding-right: 40px !important;
}

.pw-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
  font-size: 14px;
}

.pw-toggle-btn:hover {
  color: var(--primary);
}

/* -- SVG Icon Modernization -- */
.side-icon svg,
.stat-icon-new svg,
.lc-icon svg,
.dtab-icon svg,
.stat-icon svg {
  vertical-align: middle;
  display: inline-block;
}

.side-item .side-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(46, 139, 87, 0.08);
  border-radius: 10px;
  color: var(--primary);
  margin-right: 14px;
  transition: all 0.3s ease;
}

.side-item.active .side-icon {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.side-item:hover .side-icon {
  background: rgba(46, 139, 87, 0.15);
  transform: scale(1.05);
}

.stat-icon-new,
.lc-icon,
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtab-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.lmb-label svg {
  color: var(--text-muted);
  opacity: 0.8;
}


/* Payment Wall Infallible Restriction (Global Reinforcement) */
body.payment-wall-active .sidebar,
body.payment-wall-active .bottom-nav,
body.payment-wall-active .btn-float,
body.payment-wall-active .nav-right .nav-user,
body.payment-wall-active #nav-coach-avatar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.payment-wall-active .layout {
  grid-template-columns: 1fr !important;
}

body.payment-wall-active .main-content {
  margin-left: 0 !important;
  padding-bottom: 20px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX (Telegram Style)
═══════════════════════════════════════════════════════════════════════════ */
.nc-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 16px;
  color: white;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.lightbox-back {
  background: none;
  border: none;
  color: white;
  padding: 8px;
  margin-right: 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-weight: 600;
  font-size: 16px;
}

.lightbox-sub {
  font-size: 12px;
  opacity: 0.7;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nc-lightbox.open .lightbox-content img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 0;
  }

  .lightbox-content img {
    border-radius: 0;
  }
}

/* --- Mercado Pago Integration --- */
.mp-container {
  margin-top: 10px;
}

.btn-mp {
  background: linear-gradient(135deg, #009EE3 0%, #007EB5 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 158, 227, 0.15);
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

.btn-mp:hover {
  background: linear-gradient(135deg, #00B1FF 0%, #008ECB 100%) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 158, 227, 0.3);
}

.btn-mp:active {
  transform: translateY(0);
}

.btn-mp svg {
  stroke-width: 2.2px;
}

/* === Modernized Ivory Emerald Finance Panel UI Styles === */
.fin-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .fin-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .fin-grid-new {
    grid-template-columns: 1fr;
  }
}

.fin-card-new {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.fin-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}

.fin-card-label {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.fin-card-value {
  color: #1e1b4b;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.fin-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
}

/* Tab Switcher */
.fin-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.fin-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fin-tab-btn:hover {
  color: #1e1b4b;
}

.fin-tab-btn.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

/* Scrollbar Customization */
.fin-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.fin-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.fin-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.fin-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- Mobile Options Customizations & Bottom Sheet Menu 'Más' --- */
@media (max-width: 640px) {
  #btn-logout-coach {
    display: none !important;
  }
  body.payment-wall-active #btn-logout-coach {
    display: inline-flex !important;
  }
}

.more-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.more-menu-overlay.open {
  display: block;
  opacity: 1;
}

.more-menu-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  font-family: 'Outfit', sans-serif;
}

.more-menu-overlay.open .more-menu-sheet {
  transform: translateY(0);
}

.more-menu-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  margin: 0 auto 16px;
}

.more-menu-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}

.more-menu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.more-menu-item:active {
  background: #cbd5e1;
  transform: scale(0.98);
}

.more-menu-item .more-menu-icon {
  font-size: 18px;
}

.more-menu-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.more-menu-item.logout-item {
  color: #ef4444;
  background: #fef2f2;
}

.more-menu-item.logout-item:active {
  background: #fee2e2;
}

@media (max-width: 768px) {
  .finances-layout-row-1,
  .finances-layout-row-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Admin Panel Mobile Fixes */
  .navbar-admin {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 60px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
  .navbar-admin .nav-brand {
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  .navbar-admin .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #btn-switch-to-coach {
    font-size: 11px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
  #btn-switch-to-coach svg {
    width: 14px;
    height: 14px;
  }
  #btn-logout-admin {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
  
  /* Fix admin tabs on mobile */
  .admin-tabs-wrap {
    margin-bottom: 20px !important;
  }
  .admin-pills {
    justify-content: center !important;
    gap: 4px !important;
  }
  .admin-tab-btn {
    justify-content: center !important;
    padding: 10px 8px !important;
    flex: 1 !important;
  }
  .admin-tab-btn .p-text {
    display: inline-block !important;
    font-size: 11px !important;
    margin-left: 6px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING CARDS v2 — Premium Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Billing Toggle ── */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.billing-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #5A7A68;
  transition: color 0.2s;
}

.billing-toggle-label.active {
  color: #0F3D26;
}

.billing-toggle-btn {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #D4EDDA;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.billing-toggle-btn[aria-checked="true"] {
  background: #1A5C3A;
}

.billing-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-toggle-btn[aria-checked="true"] .billing-toggle-thumb {
  transform: translateX(24px);
}

.billing-save-badge {
  background: linear-gradient(135deg, #D4A017, #E8B84B);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}

/* ── Grid ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ── Base Card ── */
.plan-card {
  background: white;
  border: 1.5px solid #E2EBE8;
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(26,92,58,0.05);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,92,58,0.10);
}

/* ── Card Header ── */
.plan-card-header {
  margin-bottom: 20px;
}

.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.plan-icon-basic {
  background: #F0F5F2;
  color: #5A7A68;
}

.plan-icon-pro {
  background: rgba(255,255,255,0.2);
  color: white;
}

.plan-icon-premium {
  background: rgba(212,160,23,0.15);
  color: #D4A017;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: #0F3D26;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 12px;
  color: #8AA898;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Price ── */
.plan-price-wrap {
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

.plan-currency {
  font-size: 20px;
  font-weight: 700;
  color: #1A5C3A;
  margin-bottom: 4px;
}

.plan-amount {
  font-size: 44px;
  font-weight: 800;
  color: #0F3D26;
  letter-spacing: -0.04em;
  transition: all 0.3s ease;
}

.plan-period {
  font-size: 14px;
  color: #8AA898;
  font-weight: 500;
  margin-bottom: 6px;
  margin-left: 2px;
}

.plan-annual-note {
  font-size: 12px;
  color: #5A7A68;
  font-weight: 600;
  margin-top: 6px;
}

/* ── Divider ── */
.plan-divider {
  height: 1px;
  background: #F0F5F2;
  margin: 0 0 20px 0;
}

/* ── Features ── */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #2D4A3E;
  font-weight: 500;
  line-height: 1.45;
}

.plan-feature.pf-disabled {
  color: #AABBB5;
  text-decoration: line-through;
  text-decoration-color: #D4E4DE;
}

.pf-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pf-check {
  background: #D4EDDA;
  color: #1A5C3A;
}

.pf-cross {
  background: #F5F5F5;
  color: #AABBB5;
}

/* ── CTA Buttons ── */
.plan-cta {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  border: none;
}

.plan-cta-outline {
  background: transparent;
  border: 1.5px solid #C8DDD1;
  color: #1A5C3A;
}

.plan-cta-outline:hover {
  background: #EAF5EE;
  border-color: #1A5C3A;
}

.plan-cta-featured {
  background: linear-gradient(135deg, #1A5C3A 0%, #2E8B57 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(26,92,58,0.3);
}

.plan-cta-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,92,58,0.4);
}

.plan-cta-premium {
  background: linear-gradient(135deg, #D4A017 0%, #E8C547 100%);
  color: #1a0f00;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(212,160,23,0.25);
}

.plan-cta-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212,160,23,0.35);
}

/* ── "MÁS POPULAR" Badge ── */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1A5C3A, #2E8B57);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,92,58,0.3);
}

/* ── Featured Card (Pro) ── */
.plan-card-featured {
  background: linear-gradient(160deg, #062016 0%, #1A5C3A 100%);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(26,92,58,0.25);
}

.plan-card-featured:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(26,92,58,0.3);
}

.plan-card-featured .plan-name,
.plan-card-featured .plan-amount,
.plan-card-featured .plan-currency {
  color: white;
}

.plan-card-featured .plan-desc,
.plan-card-featured .plan-period,
.plan-card-featured .plan-annual-note {
  color: rgba(255,255,255,0.6);
}

.plan-card-featured .plan-divider {
  background: rgba(255,255,255,0.1);
}

.plan-card-featured .plan-feature {
  color: rgba(255,255,255,0.9);
}

.plan-card-featured .plan-feature.pf-disabled {
  color: rgba(255,255,255,0.3);
  text-decoration-color: rgba(255,255,255,0.15);
}

.plan-card-featured .pf-check {
  background: rgba(255,255,255,0.15);
  color: #7DEFA7;
}

.plan-card-featured .pf-cross {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.25);
}

/* ── Premium Card ── */
.plan-card-premium {
  background: linear-gradient(160deg, #1a0f00 0%, #3D2200 100%);
  border-color: rgba(212,160,23,0.3);
  box-shadow: 0 12px 40px rgba(212,160,23,0.1);
}

.plan-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(212,160,23,0.18);
}

.plan-card-premium .plan-name,
.plan-card-premium .plan-amount,
.plan-card-premium .plan-currency-premium {
  color: #D4A017;
}

.plan-card-premium .plan-desc,
.plan-card-premium .plan-period-premium,
.plan-card-premium .plan-annual-note-premium {
  color: rgba(212,160,23,0.6);
}

.plan-card-premium .plan-divider-premium {
  background: rgba(212,160,23,0.15);
}

.plan-card-premium .plan-feature-premium {
  color: rgba(255,255,255,0.85);
}

.pf-check-premium {
  background: rgba(212,160,23,0.15) !important;
  color: #D4A017 !important;
}

/* ── Coming Soon Tag ── */
.coming-soon-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(212,160,23,0.2);
  color: #D4A017;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .plan-card-featured {
    order: -1;
  }

  .billing-toggle-wrap {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 24px 20px 20px;
  }

  .plan-amount {
    font-size: 36px;
  }

  .billing-save-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MÓDULO VALORACIÓN FOTOGRÁFICA  v1.1  — Mobile-First
══════════════════════════════════════════════════════════════ */

/* ── Tab wrapper ──────────────────────────────────────────── */
#tab-photos {
  padding: 4px 0;
}

/* ── Header ───────────────────────────────────────────────── */
.photos-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.photos-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary, #0F3D26);
  line-height: 1.2;
}
.photos-header-sub {
  font-size: 11px;
  color: var(--text-muted, #8AA898);
  margin-top: 3px;
}
@media (max-width: 480px) {
  .photos-header { flex-direction: column; gap: 10px; }
  .photos-header .btn { width: 100%; justify-content: center; }
}

/* ── Toggle Vista ─────────────────────────────────────────── */
.photos-view-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #f1f5f4;
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  max-width: 280px;
}
.pvt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted, #8AA898);
  transition: all 0.18s;
  white-space: nowrap;
}
.pvt-btn.active {
  background: white;
  color: #1A5C3A;
  box-shadow: 0 2px 8px rgba(26,92,58,0.12);
}

/* ── Empty State ──────────────────────────────────────────── */
.photos-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--text-muted, #8AA898);
  text-align: center;
}
.photos-empty-state p { font-size: 14px; font-weight: 600; margin: 0; }
.photos-empty-state span { font-size: 12px; max-width: 220px; line-height: 1.5; }

/* ── Timeline list ────────────────────────────────────────── */
#photos-sessions-list { padding-bottom: 12px; }

/* ── Session Card ─────────────────────────────────────────── */
.photo-session-card {
  position: relative;
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  padding-left: 24px;
}
.photo-session-card::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, #1A5C3A55, #e2e8f000);
}
.photo-session-card:last-child::before { display: none; }

.ps-timeline-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1A5C3A;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #1A5C3A;
  flex-shrink: 0;
}

.ps-body {
  flex: 1;
  min-width: 0;
  background: white;
  border-radius: 14px;
  border: 1px solid #e8f0eb;
  box-shadow: 0 2px 10px rgba(26,92,58,0.07);
  overflow: hidden;
}

/* ── Session Header ───────────────────────────────────────── */
.ps-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 10px;
  border-bottom: 1px solid #f1f5f4;
  flex-wrap: wrap;
}
.ps-date { font-size: 10px; color: #8AA898; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 2px; }
.ps-label { font-size: 14px; font-weight: 800; color: #0F3D26; }
.ps-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ps-vis-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ps-vis-visible { background: #d1fae5; color: #065f46; }
.ps-vis-hidden  { background: #fef3c7; color: #92400e; }
.ps-actions { display: flex; gap: 4px; }
.ps-action-btn {
  width: 30px; height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: #64748b;
  flex-shrink: 0;
}
.ps-action-btn:hover { background: #f8fffe; border-color: #1A5C3A; color: #1A5C3A; }
.ps-action-danger:hover { background: #fff5f5; border-color: #ef4444; color: #ef4444; }

/* En mobile muy pequeño, ocultar badge visible (ocupa demasiado) */
@media (max-width: 380px) {
  .ps-vis-badge { display: none; }
  .ps-header { flex-wrap: nowrap; }
}

/* ── Photos Grid ──────────────────────────────────────────── */
.ps-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
}
@media (max-width: 500px) {
  .ps-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px 10px;
  }
}
.ps-photo-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  background: #f8fffe;
  border: 1px solid #e8f0eb;
}
.ps-photo-card:hover { transform: scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,0.13); }
.ps-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 6px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
}
.ps-photo-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: default;
  opacity: 0.5;
}
.ps-photo-empty:hover { transform: none; box-shadow: none; }
.ps-photo-empty .ps-photo-label { position: static; background: none; color: #8AA898; font-size: 9px; }

/* ── Notes ────────────────────────────────────────────────── */
.ps-notes {
  padding: 8px 14px 12px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px dashed #e8f0eb;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.5;
}

/* ── Upload Drop Zones ────────────────────────────────────── */
/* Las zonas de upload son generadas dinámicamente en JS,
   los estilos inline del modal se complementan aquí */
.pu-drop-zone {
  border: 2px dashed #c6dbd0;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fffe;
  text-align: center;
  padding: 10px 8px;
  min-height: 90px;
  aspect-ratio: auto; /* override el 3/4 en mobile — deja que el contenido defina la altura */
}
.pu-drop-zone:hover, .pu-drop-zone:active { border-color: #1A5C3A; background: #f0faf4; }
.pu-drop-zone.pu-drag { border-color: #1A5C3A; background: #e6f7ec; transform: scale(1.02); }
.pu-drop-icon { color: #8AA898; }
.pu-drop-label { font-size: 11px; font-weight: 700; color: #2D4A3E; }
.pu-drop-sub { font-size: 10px; color: #8AA898; }

/* ── Compare View ─────────────────────────────────────────── */
.compare-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 520px) {
  .compare-selectors {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compare-arrow { display: none; }
}
.compare-sel-group { min-width: 0; }
.compare-sel-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8AA898;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.compare-select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0F3D26;
  background: white;
  cursor: pointer;
}
.compare-arrow {
  font-size: 20px;
  color: #1A5C3A;
  font-weight: 800;
  text-align: center;
  padding-bottom: 8px;
}

/* ── Position Tabs ────────────────────────────────────────── */
.compare-pos-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.compare-pos-tabs::-webkit-scrollbar { display: none; }
.cpt-btn {
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: white;
  color: #64748b;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cpt-btn.active { background: #1A5C3A; color: white; border-color: #1A5C3A; }
.cpt-btn:hover:not(.active) { border-color: #1A5C3A; color: #1A5C3A; }

/* ── Compare Panels ───────────────────────────────────────── */
.compare-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 440px) {
  .compare-panels { grid-template-columns: 1fr; gap: 12px; }
}
.compare-panel {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8f0eb;
}
.compare-panel-label {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 7px 8px;
  background: #f1f5f4;
  color: #2D4A3E;
  text-transform: uppercase;
}
.compare-img-wrap {
  aspect-ratio: 3/4;
  background: #f8fffe;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.compare-placeholder {
  font-size: 12px;
  color: #8AA898;
  font-weight: 500;
  text-align: center;
  padding: 12px;
}

/* ── Modal responsive fixes ───────────────────────────────── */
#photo-upload-modal > div {
  box-sizing: border-box;
}
@media (max-width: 480px) {
  #photo-upload-modal {
    padding: 12px 8px;
    align-items: flex-end;        /* bottom-sheet feel */
  }
  #photo-upload-modal > div {
    border-radius: 20px 20px 12px 12px;
    padding: 24px 16px 20px;
    max-height: 95vh;
  }
}

/* ─── Weekly Check-ins Styling (Aesthetics Premium) ─── */
.checkins-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.checkin-card {
  border-radius: 16px;
  background: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(138, 168, 152, 0.06);
}

.checkin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 168, 152, 0.12);
}

.checkin-card-header {
  padding: 18px 20px;
  border-radius: 16px;
  transition: background 0.2s;
}

.checkin-card-header:hover {
  background: #F8FAF9;
}

.checkin-card-body {
  padding: 0 20px 20px;
}

.checkin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkin-status-badge.pending {
  background: #FEF3CD;
  color: #856404;
  border: 1px solid #FFEBAA;
}

.checkin-status-badge.reviewed {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

/* Escalas interactivas de checkin */
.scale-options {
  margin-top: 8px;
}

.scale-btn {
  flex: 1;
  height: 36px;
  border: 1.5px solid #E2E8F0;
  background: white;
  border-radius: 10px;
  color: #627D70;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-btn:hover {
  border-color: #8AA898;
  color: #2D4A3E;
  background: #F8FAFC;
}

.scale-btn.active {
  background: #1A5C3A;
  color: white;
  border-color: #1A5C3A;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(26, 92, 58, 0.2);
}

.scale-val-badge {
  background: #EAF5EE;
  color: #1A5C3A;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #C8DDD1;
}

/* Zonas de fotos de reporte */
.cip-drop-zone {
  aspect-ratio: 4/3;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #F8FAFC;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 12px;
}

.cip-drop-zone:hover {
  border-color: #1A5C3A;
  background-color: #F1F5F9;
  transform: scale(1.02);
}

.cip-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.cip-title {
  font-size: 13px;
  font-weight: 700;
  color: #2D4A3E;
}

.cip-sub {
  font-size: 11px;
  color: #627D70;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wobble {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

/* Selector horizontal de días de entreno */
.wday-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.wday-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.wday-tab-btn {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  background: white;
  color: #627D70;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.wday-tab-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.wday-tab-btn.active {
  background: #1A5C3A !important;
  color: white !important;
  border-color: #1A5C3A !important;
  box-shadow: 0 4px 12px rgba(26, 92, 58, 0.18);
}

/* --- Mobile optimization for cards and checkin forms --- */
@media (max-width: 640px) {
  .card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }
  
  .checkin-card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .checkin-card-header button {
    align-self: stretch !important;
  }

  .checkin-card-title {
    font-size: 16px !important;
  }

  .scale-item {
    padding: 12px 10px !important;
  }

  .scale-options {
    gap: 4px !important;
  }

  .scale-btn {
    height: 32px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
}

