:root {
  --bg-obsidian: #07090e;
  --bg-surface: #0f131c;
  --bg-elevated: #161c28;
  --bg-card: rgba(20, 26, 38, 0.82);
  --bg-card-hover: rgba(28, 36, 52, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(243, 230, 142, 0.34);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* PALETA AMARELO CLARO SUAVE / PASTEL (#F3E68E / #EAD87A) */
  --accent-volt: #f3e68e;
  --accent-volt-dim: rgba(243, 230, 142, 0.13);
  --accent-emerald: #ead87a;
  --accent-emerald-dim: rgba(234, 216, 122, 0.14);
  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.14);
  --accent-amber: #e5cf6b;
  --accent-amber-dim: rgba(229, 207, 107, 0.15);
  --accent-purple: #a855f7;
  --accent-purple-dim: rgba(168, 85, 247, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-dim: rgba(244, 63, 94, 0.15);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 14px 34px -10px rgba(0, 0, 0, 0.65);
  --shadow-glow-volt: 0 0 18px rgba(243, 230, 142, 0.16);
}

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

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 185, 94, 0.06), transparent 34%),
    radial-gradient(circle at 88% 15%, rgba(217, 155, 56, 0.05), transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(214, 169, 74, 0.04), transparent 40%),
    var(--bg-obsidian);
  overflow-x: hidden;
}

/* APP SHELL: Barra lateral mais larga (325px) para nunca quebrar linha */
.app-shell {
  display: grid;
  grid-template-columns: 325px 1fr;
  min-height: 100vh;
}

/* SIDEBAR NAVIGATION (PC) */
.sidebar {
  background: rgba(12, 16, 24, 0.94);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3e68e 0%, #dfc965 100%);
  color: #05070a;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-glow-volt);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-volt);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0px !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  white-space: nowrap;
}

.nav-btn .nav-label,
.nav-btn span:not(.nav-icon):not(.nav-badge):not(.nav-sub-branch) {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0px !important;
  display: inline-block;
}

.nav-btn.nav-sub-btn {
  height: 38px;
  padding-left: 44px !important;
  margin-top: -4px;
  margin-bottom: 2px;
  position: relative;
}

.nav-sub-branch {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--accent-volt);
  opacity: 0.85;
  flex-shrink: 0;
  margin-right: -4px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(243, 230, 142, 0.18) 0%, rgba(243, 230, 142, 0.03) 100%);
  border-color: rgba(243, 230, 142, 0.4);
  color: var(--accent-volt);
  box-shadow: inset 3px 0 0 var(--accent-volt);
}

.nav-btn .nav-icon {
  font-size: 1.05rem !important;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn.active .nav-badge {
  background: var(--accent-volt);
  color: #07090e;
  font-weight: 800;
}

.sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sync-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.28);
  color: #fde047;
  white-space: nowrap;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-volt);
  box-shadow: 0 0 10px var(--accent-volt);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* MAIN WORKSPACE */
.main-content {
  padding: 28px 32px 110px;
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* TOP COMMAND BAR: Sem quebra de linha no Desktop para manter o mini calendário sempre alinhado */
.top-command-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

.day-context-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.live-date-badge {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-volt-dim);
  border: 1px solid rgba(255, 208, 0, 0.38);
  color: var(--accent-volt);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-greeting {
  min-width: 0;
  flex: 1;
}

.day-greeting h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-greeting p {
  color: var(--text-secondary);
  font-size: 0.83rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DAY OF WEEK SIMULATOR / SWITCHER (SEMPRE NA MESMA LINHA) */
.weekday-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 10, 15, 0.78);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  white-space: nowrap;
}

.weekday-chip {
  padding: 8px 11px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.weekday-chip:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.weekday-chip.active {
  background: var(--accent-volt);
  color: #06080c;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(255, 208, 0, 0.38);
}

.weekday-chip.d3-day::after {
  content: '☀️';
  font-size: 0.65rem;
  margin-left: 3px;
}

/* VIEW PANELS */
.view-section {
  display: none;
  animation: fadeInView 0.28s ease-out;
}

.view-section.active {
  display: block;
}

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

/* HERO BENTO GRID (OPENING PAGE) */
.hero-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-card.hero-workout-spotlight {
  background:
    radial-gradient(circle at 90% 10%, rgba(226, 185, 94, 0.13), transparent 55%),
    linear-gradient(145deg, rgba(22, 29, 42, 0.96) 0%, rgba(12, 16, 24, 0.98) 100%);
  border-color: rgba(226, 185, 94, 0.28);
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow-volt {
  background: var(--accent-volt-dim);
  color: var(--accent-volt);
  border: 1px solid rgba(255, 208, 0, 0.35);
}

.eyebrow-cyan {
  background: var(--accent-cyan-dim);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.eyebrow-emerald {
  background: var(--accent-emerald-dim);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.eyebrow-amber {
  background: var(--accent-amber-dim);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hero-workout-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-workout-focus {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.cta-primary-volt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f3e68e 0%, #dfc965 100%);
  color: #05070a;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-glow-volt);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta-primary-volt:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* SCORE RING CARD */
.score-ring-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.ring-svg-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}

.ring-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-score-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-volt);
  line-height: 1;
}

.ring-score-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.score-kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.kpi-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HYDRATION TRACKER CARD */
.hydro-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.hydro-Current {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #38bdf8;
}

.hydro-target {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hydro-tank {
  height: 18px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.hydro-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 55%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.hydro-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hydro-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.09);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hydro-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

.hydro-btn.reset-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

/* NEXT WINDOW / NOW RADAR + RULES ROW */
.dashboard-mid-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.now-window-card {
  background: linear-gradient(135deg, rgba(226, 185, 94, 0.09) 0%, rgba(15, 19, 28, 0.95) 100%);
  border: 1px solid rgba(226, 185, 94, 0.28);
}

.now-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.now-time-tag {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-volt);
  background: rgba(255, 208, 0, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
}

.protocol-alerts-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-banner {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rule-banner.hepatic {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.07);
}

.rule-banner.d3-alert {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

.rule-banner.weekend-alert {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.1);
}

/* SECTION HEADERS */
.section-header-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title-group p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 3px;
}

/* WORKOUT TABS & EXERCISE CARDS */
.workout-tabs-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.workout-tab-btn {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.workout-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.workout-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.18) 0%, rgba(20, 26, 38, 0.95) 100%);
  border-color: var(--accent-volt);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-volt);
}

.wt-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-volt);
  text-transform: uppercase;
  white-space: nowrap;
}

.wt-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
}

.wt-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.workout-focus-banner {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 208, 0, 0.13) 0%, rgba(20, 26, 38, 0.88) 100%);
  border: 1px solid rgba(255, 208, 0, 0.32);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.exercise-card.completed {
  border-color: rgba(255, 208, 0, 0.5);
  background: linear-gradient(145deg, rgba(255, 208, 0, 0.08) 0%, rgba(16, 21, 30, 0.92) 100%);
}

.exercise-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

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

.exercise-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-volt-dim);
  border: 1px solid rgba(255, 208, 0, 0.38);
  color: var(--accent-volt);
  font-family: var(--font-mono);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.exercise-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
}

.exercise-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-badge {
  padding: 6px 12px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.spec-badge.timer-trigger {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spec-badge.timer-trigger:hover {
  background: rgba(6, 182, 212, 0.25);
  transform: scale(1.03);
}

.coach-note-box {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.09);
  border-left: 3px solid var(--accent-volt);
  color: #fef08a;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.set-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.65);
  border: 1px solid var(--border-subtle);
}

.set-row-card.set-done {
  background: rgba(255, 208, 0, 0.13);
  border-color: rgba(255, 208, 0, 0.48);
}

.set-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 54px;
}

.set-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.set-input {
  width: 66px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 19, 28, 0.9);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.set-input:focus {
  outline: none;
  border-color: var(--accent-volt);
}

.set-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.set-check-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.set-row-card.set-done .set-check-btn {
  background: var(--accent-volt);
  border-color: var(--accent-volt);
  color: #07090e;
}

/* NUTRITION & SUPPLEMENTATION TIMELINE */
.protocol-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.mode-toggle-group {
  display: flex;
  gap: 8px;
}

.mode-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn.active {
  background: var(--accent-volt);
  color: #05070b;
  border-color: var(--accent-volt);
}

.timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 150px 1.35fr 1fr auto;
  gap: 20px;
  align-items: start;
  transition: all 0.2s ease;
}

.meal-card.meal-done {
  border-color: rgba(255, 208, 0, 0.48);
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.08) 0%, rgba(16, 21, 30, 0.92) 100%);
}

.meal-card.meal-skipped-weekend {
  opacity: 0.55;
  border-style: dashed;
}

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

.meal-clock {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-volt);
}

.meal-window-tag {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.food-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.food-item-block {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.food-primary-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.food-subs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.sub-option-chip {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-option-chip.selected {
  background: rgba(255, 208, 0, 0.16);
  border-color: rgba(255, 208, 0, 0.48);
  color: var(--accent-volt);
  font-weight: 600;
}

/* SUPPLEMENT HIERARCHY BADGES (PALETA AMARELO / ÂMBAR / CORAL) */
.supp-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supp-item-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.7);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.supp-item-card.supp-taken {
  border-color: rgba(255, 208, 0, 0.5);
  background: rgba(255, 208, 0, 0.12);
}

.supp-tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tier-jatem {
  background: rgba(255, 208, 0, 0.18);
  color: #fde047;
  border: 1px solid rgba(255, 208, 0, 0.4);
}

.tier-indisp {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.38);
}

.tier-comp {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.supp-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.supp-note {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.meal-check-big {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.meal-card.meal-done .meal-check-big {
  background: var(--accent-volt);
  border-color: var(--accent-volt);
  color: #07090e;
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.4);
}

/* FLOATING REST TIMER BAR */
.rest-timer-bar {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 90;
  background: rgba(12, 16, 24, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent-volt);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  min-width: 320px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow-volt);
  display: none;
}

.rest-timer-bar.active {
  display: block;
  animation: fadeInView 0.2s ease-out;
}

.timer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timer-countdown {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-volt);
}

.timer-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.timer-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.timer-btn.stop {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

/* HEALTH, MEASUREMENTS & HORIZONTAL HIGH-DENSITY GRIDS */
.health-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  align-items: stretch;
}

.health-panels-grid > .bento-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.health-panels-grid .biomarker-list {
  grid-template-columns: 1fr;
  flex: 1;
  align-content: start;
}

.horizontal-fields-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

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

.horizontal-fields-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.biomarker-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.biomarker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.65);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.18s ease;
  min-width: 0;
}

.biomarker-row > div:first-child {
  min-width: 0;
}

.biomarker-row:hover {
  border-color: rgba(243, 230, 142, 0.28);
}

.biomarker-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.biomarker-ref {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.2;
}

.biomarker-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.biomarker-input {
  width: 72px;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 19, 28, 0.95);
  color: var(--accent-volt);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.biomarker-input:focus {
  outline: none;
  border-color: var(--accent-volt);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.25);
}

.biomarker-unit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 44px;
  white-space: nowrap;
}

.calculated-index-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(243, 230, 142, 0.1);
  border: 1px solid rgba(243, 230, 142, 0.32);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* VISUAL PROGRESS 9:16 WEBP & FEELING SELECT */
.feeling-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 19, 28, 0.96);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.feeling-select:focus {
  outline: none;
  border-color: var(--accent-volt);
}

.photo-preview-916 {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 2px dashed rgba(243, 230, 142, 0.4);
  background: rgba(8, 10, 15, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.photo-preview-916 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.visual-photo-card {
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visual-photo-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #05070a;
  overflow: hidden;
  position: relative;
}

.visual-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DIETA BUILDER CARDS & STRUCTURED EDITOR */
.diet-rule-card {
  background: rgba(9, 13, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diet-rule-card:hover {
  border-color: rgba(243, 230, 142, 0.35);
}

.diet-code-example {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--accent-volt);
  background: rgba(5, 7, 11, 0.9);
  border: 1px solid rgba(243, 230, 142, 0.22);
  border-radius: 9px;
  padding: 8px 10px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.diet-editor-textarea {
  width: 100%;
  min-height: 290px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 230, 142, 0.28);
  background: rgba(7, 10, 16, 0.95);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  resize: vertical;
}

.diet-editor-textarea:focus {
  outline: none;
  border-color: var(--accent-volt);
  box-shadow: 0 0 0 3px rgba(243, 230, 142, 0.14);
}

/* AUTH LOGIN / REGISTER / RESET OVERLAY */
body.auth-locked .app-shell,
body.auth-locked .mobile-bottom-nav,
body.auth-locked .rest-timer-bar {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 20% 20%, rgba(243, 230, 142, 0.1), transparent 40%),
    rgba(6, 8, 13, 0.96);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.auth-overlay.active {
  display: flex;
}

.auth-overlay.hidden {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(16, 21, 31, 0.96);
  border: 1px solid rgba(243, 230, 142, 0.3);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(8, 10, 15, 0.8);
  padding: 5px;
  border-radius: 12px;
  margin: 18px 0;
}

.auth-tab-btn {
  padding: 9px 6px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: var(--accent-volt);
  color: #06080c;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 18, 0.95);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-volt);
}

/* MOBILE BOTTOM NAVIGATION */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.mob-nav-btn.active {
  color: var(--accent-volt);
  background: rgba(255, 208, 0, 0.12);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1180px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .dashboard-mid-grid {
    grid-template-columns: 1fr;
  }
  .health-panels-grid {
    grid-template-columns: 1fr;
  }
  .meal-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .workout-tabs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .biomarker-list,
  .horizontal-fields-grid-3,
  .horizontal-fields-grid-2 {
    grid-template-columns: 1fr;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .mobile-bottom-nav {
    display: grid;
  }
  .main-content {
    padding: 16px 14px 110px;
  }
  .top-command-bar {
    flex-wrap: wrap;
    padding: 14px;
  }
  .day-greeting h1,
  .day-greeting p {
    white-space: normal;
  }
  .weekday-selector {
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
  }
  .rest-timer-bar {
    left: 14px;
    right: 14px;
    bottom: 78px;
    min-width: unset;
  }
}
