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

/* Global dark scrollbars */
* { scrollbar-color: #2a2a2a #0a0a0a; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: #0a0a0a; }
*::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

:root {
  /* Backgrounds */
  --bg:               #0a0a0a;
  --surface:          #1a1a1a;
  --surface-2:        #222222;
  --surface-hover:    #161616;
  --border:           #2a2a2a;
  --border-hi:        #3a3a3a;
  --border-subtle:    #2a2a2a;

  /* Primary — Gold */
  --accent:           #f0a500;
  --accent-hover:     #e09600;
  --accent-gradient:  linear-gradient(135deg, #f0a500, #ff4d00);
  --accent-dim:       rgba(240, 165, 0, 0.12);
  --accent-glow:      0 0 24px rgba(240, 165, 0, 0.4);

  /* Secondary accents */
  --accent-secondary: #ff2e63;
  --accent-tertiary:  #a37d00;
  --accent-blue:      #4cc9f0;

  /* Text */
  --text:             #ffffff;
  --text-soft:        #f0f0f0;
  --text-muted:       #b0b0b0;
  --text-subtle:      #888888;

  /* Status */
  --success:          #4caf50;
  --warning:          #ff9500;
  --danger:           #ff2e63;
  --red:              #ff2e63;

  --radius:           10px;

  /* Z-index scale — use these instead of bare numbers */
  --z-dropdown:       100;
  --z-plan-overlay:   1000;
  --z-workout:        1100;
  --z-modal:          1200;
  --z-timer:          1500;
  --z-checkin:        2000;
  --z-toast:          9999;
}

/* ===== BASE ===== */
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.modal-open, html.modal-open {
  overflow: hidden !important;
  overscroll-behavior-y: none !important;
}

/* Subtle noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== HEADER ===== */
header {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
}

.logo span { color: var(--accent); }

.logo-img { height: 34px; width: auto; display: block; }
.header-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 2px; line-height: 1; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.2s;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.header-auth-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.header-auth-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.35), 0 0 6px rgba(192, 57, 43, 0.2);
}

/* ===== MAIN ===== */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== STEP INDICATOR ===== */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  box-shadow: var(--accent-glow);
  transform: scale(1.1);
}

.step.completed .step-circle {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

.step span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.step.active span  { color: var(--accent); }
.step.completed span { color: var(--text-soft); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 16px;
  margin-bottom: 28px;
  min-width: 80px;
  max-width: 140px;
}

/* ===== FORM STEPS ===== */
.form-step { display: none; }

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

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.05;
}

.subtitle {
  color: var(--text-soft);
  margin-bottom: 36px;
  font-size: 0.88rem;
  font-weight: 400;
}

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full-width { grid-column: 1 / -1; }

label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

input[type="text"],
input[type="number"],
select,
textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: var(--surface-2); color: var(--text); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input.input-error, select.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.15) !important;
}

textarea { resize: vertical; }

/* Custom select arrow */
select {
  background-image: 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='%2352525c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===== RADIO / CHECKBOX CARDS ===== */
.radio-group, .checkbox-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-group-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.radio-card, .checkbox-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-soft);
  transition: all 0.18s;
  user-select: none;
}

.radio-card:hover, .checkbox-card:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--surface-2);
}

.radio-card input, .checkbox-card input { display: none; }

.radio-card:has(input:checked),
.checkbox-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.7);
  transform: scale(1.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* ===== BUTTONS ===== */
.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.35), 0 0 6px rgba(192, 57, 43, 0.2);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hi); color: var(--text); }

/* ===== LOADING ===== */
.loading-container {
  text-align: center;
  padding: 100px 20px;
}

.progress-ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 36px;
}

.progress-ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.progress-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 5;
}

.progress-ring-fill {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.loading-container h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  animation: breathe 2.5s ease-in-out infinite;
}

.loading-container p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ===== RESULT ===== */
.result-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.result-header h2 { font-size: 2rem; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.result-actions .btn-primary,
.result-actions .btn-secondary {
  padding: 9px 18px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.plan-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  line-height: 1.85;
  font-size: 0.92rem;
  color: var(--text);
}

.plan-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 2px;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.1;
  border-bottom: 2px solid #00f5a0;
  padding-bottom: 14px;
}

.plan-content h2 {
  font-size: 1.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 36px 0 16px;
  letter-spacing: 1.5px;
}

.plan-content h2:first-child { margin-top: 0; }

.plan-content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.plan-content ul, .plan-content ol { padding-left: 20px; margin: 10px 0; }
.plan-content li { margin-bottom: 6px; }
.plan-content strong { color: var(--text); font-weight: 600; }
.plan-content p { margin: 10px 0; }

.disclaimer {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== EMAIL FORM ===== */
.email-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.btn-sm {
  padding: 9px 18px !important;
  font-size: 0.8rem !important;
}

.email-success {
  margin-bottom: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.3px;
}

/* ===== LANG SWITCH BANNER ===== */
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.lang-banner button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
  line-height: 1;
}
.lang-banner button:hover { color: var(--text); }

/* ===== ERROR BOX ===== */
.error-box {
  background: var(--surface);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  width: 100%;
  color: var(--red);
  font-size: 0.87rem;
  font-weight: 500;
  margin-top: 16px;
}

.error-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}
.error-box button:hover { color: var(--text); }

.hidden { display: none !important; }

/* ===== FOOTER ===== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; align-items: flex-start; }
  h2 { font-size: 2rem; }
  .plan-content { padding: 24px; }
  main { padding: 32px 16px 60px; }
  header { padding: 0 20px; }
}

/* ===== PRINT ===== */
@media print {
  .no-print, header, footer, .result-header .btn-primary,
  .result-header .btn-secondary, #steps-indicator,
  .steps-indicator, .error-box, #email-form,
  #email-success { display: none !important; }

  body { background: white; color: black; font-size: 11pt; }
  body::before { display: none; }

  main { max-width: 100%; padding: 0; margin: 0; }
  #step-result { display: block !important; }

  .plan-content {
    border: none; padding: 0; box-shadow: none;
    background: white; color: black;
  }

  .plan-content h2 { color: #00f5a0; page-break-after: avoid; }
  .plan-content h3 { color: #444; }
  h2, h3 { page-break-after: avoid; }
  ul, ol, p { page-break-inside: avoid; }

  @page { margin: 2cm; }
}

/* ===== TYPEFORM PROGRESS BAR ===== */
.progress-bar-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 100;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  width: 0%;
}

/* ===== TYPEFORM SCREEN ===== */
.form-step.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 64px - 80px); /* viewport minus header minus tf-nav */
  padding: 24px 0 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  animation: tfSlideIn 0.22s ease;
}
#step-result.active {
  max-width: 960px;
  min-height: unset;
}
@keyframes tfSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== STEP COUNTER ===== */
.step-counter {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== QUESTION TITLE ===== */
.question-title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
}
.question-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 14px;
  margin-bottom: 28px;
}

/* ===== INPUT HINT (cm / kg) ===== */
.input-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.input-unit-wrap {
  position: relative;
  display: block;
  max-width: 200px;
}

.slider-wrap {
  max-width: 360px;
}

.input-compact {
  max-width: 200px;
}
.input-unit-wrap input {
  padding-right: 52px;
  width: 100%;
}
.input-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  font-family: 'Manrope', sans-serif;
}

/* ===== TYPEFORM BOTTOM NAV ===== */
.tf-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 99;
}
.tf-nav .btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 18px;
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
}
.tf-nav .btn-back:hover { border-color: var(--border-hi); color: var(--text); }
.tf-nav .btn-next {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  min-width: 140px;
  transition: opacity 0.15s;
}
.tf-nav .btn-next:disabled { opacity: 0.4; cursor: default; }

/* ===== LANDING PAGE ===== */

.landing-hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 24px; position: relative; z-index: 1; }

.landing-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 12vw, 96px); letter-spacing: 3px; line-height: 1.05; color: var(--text); margin-bottom: 24px; }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.landing-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

.landing-subline { font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--text-soft); max-width: 540px; line-height: 1.65; margin-bottom: 40px; }

.btn-hero { display: inline-block; text-decoration: none; padding: 16px 48px !important; font-size: 1.05rem !important; letter-spacing: 1px !important; border-radius: 12px !important; }

.landing-trust { margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.5px; }

.landing-section { max-width: 960px; margin: 0 auto; padding: 80px 24px; position: relative; z-index: 1; }

.landing-section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(28px, 5vw, 48px); letter-spacing: 2px; text-align: center; margin-bottom: 56px; color: var(--text); }

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

.landing-step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px 24px; transition: border-color 0.3s ease; }
.landing-step.step-highlight { border-color: var(--accent); }

.landing-step-num { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--accent); opacity: 0.7; line-height: 1; margin-bottom: 8px; }

.landing-step-icon { font-size: 2rem; margin-bottom: 12px; }

.landing-step h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 1px; color: var(--text); margin-bottom: 8px; }

.landing-step p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }

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

.landing-feature-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 32px 24px; transition: border-color 0.2s; }

.landing-feature-card:hover { border-color: var(--accent); }

.lf-icon { font-size: 2rem; margin-bottom: 16px; }

.landing-feature-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 1px; color: var(--text); margin-bottom: 8px; }

.landing-feature-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }

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

.landing-testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }

.landing-testimonial blockquote { font-size: 1rem; line-height: 1.75; color: var(--text); font-style: italic; margin-bottom: 20px; }

.landing-testimonial cite { font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; font-style: normal; display: block; }

.landing-cta-section { text-align: center; background: var(--surface); border-top: 1px solid var(--border); padding: 80px 24px; position: relative; z-index: 1; }

.landing-cta-section h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 6vw, 64px); letter-spacing: 3px; margin-bottom: 12px; color: var(--text); }

.landing-cta-section p { color: var(--text-soft); margin-bottom: 32px; font-size: 1rem; }
.landing-footer-link { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.landing-footer-link:hover { color: var(--accent); }

.landing-credibility { max-width: 960px; margin: 0 auto; padding: 80px 24px; position: relative; z-index: 1; }

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

.credibility-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px 24px; }

.credibility-icon { font-size: 2rem; margin-bottom: 16px; }

.credibility-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 1px; color: var(--text); margin-bottom: 10px; }

.credibility-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }

@media (max-width: 768px) {
  .landing-steps,
  .landing-features { grid-template-columns: 1fr; }
  .landing-testimonials { grid-template-columns: 1fr; }
  .credibility-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .landing-section { padding: 56px 16px; }
  .btn-hero { padding: 14px 32px !important; font-size: 1rem !important; }
}

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: var(--z-checkin); display: flex; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(4px); overscroll-behavior-y: contain;
}
.auth-modal-overlay.hidden { display: none; }
.auth-modal {
  background: #1f1f1f; border: 1px solid #2a2a2a; border-radius: 16px;
  padding: 40px 36px; width: 100%; max-width: 400px; position: relative;
}
.auth-modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: #555; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.auth-modal-close:hover { color: #ccc; }
.auth-modal-logo { margin-bottom: 20px; }
.auth-modal-logo a .logo-img { height: 44px; }
.auth-modal-logo a .header-brand { font-size: 2rem; }
.auth-modal-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; color: #f0f0f0; }
.auth-modal-benefits {
  list-style: none; padding: 0; margin: 0 0 24px 0;
  font-size: 0.85rem; display: flex; flex-direction: column; gap: 6px;
}
.auth-modal-benefits li { color: #aaa; }
.auth-tabs { display: flex; margin-bottom: 20px; background: #272727; border-radius: 8px; padding: 4px; }
.auth-tab {
  flex: 1; background: none; border: none; color: #666; padding: 8px;
  border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.auth-tab.active { background: #00f5a0; color: #111; }
.auth-input {
  width: 100%; box-sizing: border-box; background: #272727; border: 1px solid #333;
  color: #f0f0f0; padding: 12px 14px; border-radius: 8px; font-size: 0.95rem;
  margin-bottom: 12px; outline: none; transition: border-color 0.2s;
}
.auth-input:focus { border-color: #00f5a0; }
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #272727 inset; -webkit-text-fill-color: #f0f0f0; transition: background-color 5000s ease-in-out 0s; }
.auth-submit-btn {
  width: 100%; background: #00f5a0; color: #111; border: none; padding: 14px;
  border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer;
  margin-top: 4px; transition: background 0.2s;
}
.auth-submit-btn:hover { background: #00d98d; }
.auth-submit-btn:disabled { background: #555; cursor: not-allowed; }
.auth-error { color: #ff4444; font-size: 0.85rem; margin-top: 10px; text-align: center; }
.auth-error.hidden { display: none; }
.auth-success-view { text-align: center; }
.auth-success-view.hidden { display: none; }
.auth-success-icon {
  width: 56px; height: 56px; background: rgba(0,245,160,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #00f5a0; margin: 0 auto 20px;
}
.auth-success-view h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: #f0f0f0; }
.auth-success-view p { color: #888; font-size: 0.9rem; margin-bottom: 24px; }
.auth-dashboard-btn {
  display: inline-block; background: #00f5a0; color: #111; text-decoration: none;
  padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
}

/* Date selector (birth date step) */
.input-compact:has(.date-selector) { max-width: 420px; }
.date-selector { display: flex; gap: 10px; width: 100%; }
.date-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.date-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #555;
}
.date-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: #1f1f1f; border: 1px solid #2a2a2a; color: #555;
  font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 500;
  padding: 14px 36px 14px 16px; border-radius: 10px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: 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='%23555' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.date-select:focus {
  outline: none; border-color: #444; box-shadow: none; color: #f0f0f0;
}
.date-select.has-value { color: #f0f0f0; }
.date-select option { background: #181818; color: #f0f0f0; }

/* ===== DASHBOARD ===== */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid var(--surface);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.dash-header .logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 2px; }
.dash-header .logo span { color: var(--accent); }
.dash-header .user-row { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--text-muted); }
.dash-header .user-email { color: var(--text-soft); }
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.avatar-btn:hover { background: rgba(240,165,0,0.28); border-color: var(--accent-hover); }
.avatar-wrap { position: relative; }
.avatar-menu {
  position: absolute; right: 0; top: 42px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; min-width: 190px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 200; overflow: hidden;
}
.avatar-menu.hidden { display: none; }
#avatar-email-label {
  font-size: 0.9rem; color: var(--text-soft); font-weight: 600; padding: 10px 14px;
  display: block; border-bottom: 1px solid var(--surface-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-menu button {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text-soft); padding: 10px 14px; cursor: pointer;
  font-size: 0.85rem; font-family: 'Manrope', sans-serif; transition: background 0.15s;
}
.avatar-menu button:hover { background: var(--surface-2); }

.dash-main { max-width: 860px; margin: 0 auto; padding: 28px 24px 60px; }

.dash-greeting-row {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px;
}
.dash-greeting-text {
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem;
  letter-spacing: 1px; color: var(--text); line-height: 1.1;
}
.dash-date-text { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; }
.btn-new-plan {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 9px 18px; border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
  white-space: nowrap; flex-shrink: 0; font-family: 'Manrope', sans-serif;
}
.btn-new-plan:hover { border-color: var(--accent); color: var(--accent); }

.dash-section-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 14px;
}

.today-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.today-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
}
.today-card--rest::before { background: var(--border); }
.today-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.today-name-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px;
}
.today-name-row .today-workout-name { margin-bottom: 0; flex: 1; }
.today-card-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase;
}
.today-phase-badge {
  font-size: 0.68rem; font-weight: 700; color: var(--accent-tertiary-text);
  background: var(--accent-tertiary-dim); border: 1px solid var(--accent-tertiary-border);
  padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px;
}
.today-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.today-bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.today-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
  border-radius: 3px; transition: width 0.6s ease;
}
.today-bar-pct {
  font-size: 0.7rem; color: var(--warning); font-weight: 700; white-space: nowrap; min-width: 34px; text-align: right;
}
.today-workout-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.75rem;
  letter-spacing: 1px; color: var(--text); line-height: 1.1; margin-bottom: 4px;
}
.today-workout-name.rest-label { color: var(--text-muted); }
.today-workout-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; }
.btn-start-today {
  background: linear-gradient(135deg, var(--accent) 0%, #00c97a 100%);
  border: none; color: #111; padding: 12px 32px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 800; cursor: pointer; letter-spacing: 0.3px;
  font-family: 'Manrope', sans-serif; display: inline-flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 20px rgba(0,245,160,0.3);
  transition: box-shadow 0.2s, transform 0.1s;
}
.btn-start-today:hover { box-shadow: 0 6px 28px rgba(0,245,160,0.5); transform: translateY(-1px); }
.btn-start-today:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(0,245,160,0.2); }
.today-card-actions { margin-top: 14px; }
.btn-start-today:hover { box-shadow: 0 4px 18px rgba(0,245,160,0.4); }
.btn-start-today:active { box-shadow: none; }
.today-rest-next {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--surface-2);
}
.today-rest-next strong { color: var(--text-soft); }
.btn-open-plan {
  width: 100%; background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s, color 0.2s, background 0.2s; margin-top: 16px;
}
.btn-open-plan:hover { border-color: var(--accent); color: var(--accent); }
.today-card-loading {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 24px; margin-bottom: 20px; color: var(--border);
  font-size: 0.85rem; animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.today-no-plan {
  background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
  padding: 40px 24px; margin-bottom: 20px; text-align: center;
}
.today-no-plan p { color: var(--border-hi); margin-bottom: 20px; font-size: 0.95rem; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
  background-size: 200% 100%;
}
.stat-card:first-child::before { background-position: 0% 0%; }
.stat-card:last-child::before  { background-position: 100% 0%; }
.stat-card-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 8px;
}
.stat-card-number { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--text); line-height: 1; letter-spacing: 1px; }
.stat-pct { font-size: 1.6rem; color: var(--text-soft); font-family: 'Bebas Neue', sans-serif; }
.stat-card-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat-mini-chart { margin-top: 14px; display: block; }
.stat-progress-mini { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.stat-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-tertiary)); border-radius: 2px; transition: width 0.6s ease; }
.stat-card-hint { font-size: 0.68rem; color: var(--text-muted); margin-top: 6px; }

.week-strip-section { margin-bottom: 24px; }
.week-strip { display: flex; gap: 6px; margin-bottom: 10px; }
.week-pill {
  flex: 1; text-align: center; padding: 0 4px; border-radius: 10px;
  font-size: 0.68rem; font-weight: 700; background: var(--surface);
  border: 1px solid var(--border-hi); color: var(--text-muted); min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 44px; box-sizing: border-box; text-transform: uppercase;
}
.week-pill-date {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  line-height: 1;
}
.week-pill--launch {
  border-color: rgba(240, 165, 0, 0.4) !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
}
.week-pill--launch .week-pill-date {
  color: rgba(240, 165, 0, 0.6);
}
.week-pill--today { border-color: rgba(240,165,0,0.5); border-style: solid; color: var(--accent); background: transparent; }
.week-pill--work { border-color: rgba(240,165,0,0.35); border-style: dashed; color: var(--text-muted); background: transparent; }
.week-pill--today-rest { border-color: var(--border); color: var(--border-hi); }
.week-pill--done { border-color: rgba(240,165,0,0.35); background: var(--accent-dim); color: var(--accent); }
.week-pill--rest { color: var(--text-muted); }
.week-check { font-size: 0.62rem; height: 12px; line-height: 12px; }
.week-strip-footer { display: flex; align-items: center; gap: 8px; }
.week-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: inline-block; }
.badge--complete { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(240,165,0,0.3); }
.badge--progress { background: rgba(240,165,0,0.08); color: var(--accent-tertiary); border: 1px solid rgba(163,125,0,0.35); }
.badge--pending  { background: var(--surface); color: var(--border-hi); border: 1px solid var(--border); }

.challenges-section { margin-bottom: 36px; }
.challenges-placeholder {
  background: var(--bg); border: 1px dashed var(--border); border-radius: 14px;
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
}
.challenge-icon { font-size: 1.3rem; flex-shrink: 0; opacity: 0.35; }
.challenge-title { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.challenge-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

.plan-grid { display: grid; gap: 14px; }
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; cursor: pointer; transition: border-color 0.2s, transform 0.15s; position: relative;
}
.plan-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.plan-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.plan-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.plan-card-type {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-tertiary-text); background: var(--accent-tertiary-dim);
  border: 1px solid var(--accent-tertiary-border);
  padding: 3px 10px; border-radius: 20px; flex-shrink: 0; margin-left: 12px;
}
.plan-card-date { font-size: 0.78rem; color: var(--text-muted); }
.btn-delete-plan {
  position: absolute; bottom: 14px; right: 14px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--border-hi);
  cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-delete-plan:hover { background: rgba(255,68,68,0.12); color: var(--red); border-color: var(--red); }

.btn-cta {
  background: var(--accent); color: #111; border: none; padding: 14px 28px;
  border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-cta:hover { box-shadow: 0 4px 18px rgba(0,245,160,0.4); }
.empty-state { text-align: center; padding: 40px 24px; color: var(--border-hi); }
.empty-state p { margin-bottom: 20px; font-size: 0.95rem; }
.loading-state { text-align: center; padding: 40px 24px; color: var(--border); font-size: 0.85rem; }

.dash-supplements-link {
  font-size: 0.82rem; color: var(--text-muted); text-decoration: none; font-weight: 600;
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 7px;
  transition: color 0.2s, border-color 0.2s;
}
.dash-supplements-link:hover { color: var(--accent); border-color: var(--accent); }

.dash-sub-btn {
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}

.delete-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  z-index: var(--z-checkin); display: flex; align-items: center; justify-content: center;
  overscroll-behavior-y: contain;
}
.delete-modal.hidden { display: none; }
.delete-modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 28px; max-width: 340px; width: 90%; text-align: center;
}
.delete-modal-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.delete-modal-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 28px; }
.delete-modal-actions { display: flex; gap: 10px; }
.btn-modal-cancel {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
  padding: 12px; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  font-family: 'Manrope', sans-serif; outline: none; transition: border-color 0.2s;
}
.btn-modal-cancel:hover { border-color: var(--border-hi); }
.btn-modal-confirm {
  flex: 1; background: transparent; border: 1px solid var(--red); color: var(--red);
  padding: 12px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 700;
  transition: background 0.2s; font-family: 'Manrope', sans-serif; outline: none;
}
.btn-modal-confirm:hover { background: rgba(255,46,99,0.08); }

.plan-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: var(--z-plan-overlay);
  display: flex; flex-direction: column; overflow: hidden;
}
.plan-overlay.hidden { display: none; }
.plan-overlay-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--bg); z-index: 10;
}
.plan-overlay-title { font-weight: 700; font-size: 1rem; }
.plan-overlay-actions { display: flex; gap: 10px; }
.btn-overlay-close { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 20px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-overlay-close:hover { border-color: var(--accent); color: var(--accent); }
.btn-overlay-print { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: color 0.2s, border-color 0.2s; }
.btn-overlay-print:hover { border-color: var(--accent); color: var(--accent); }
.btn-overlay-workout { background: var(--accent); border: none; color: #111; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 700; font-family: 'Manrope', sans-serif; transition: background 0.2s; }
.btn-overlay-workout:hover { box-shadow: 0 4px 18px rgba(0,245,160,0.4); }
.plan-overlay-body { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; }
.plan-overlay-body-inner { padding: 40px 32px; max-width: 860px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.plan-content { line-height: 1.8; }
.plan-content h1 { color: var(--text); }
.plan-content h2 { color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.plan-content h3 { color: var(--text-soft); }
.plan-content hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.plan-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.plan-content th, .plan-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 0.9rem; }
.plan-content th { background: var(--surface-2); color: var(--accent); font-weight: 700; }
.plan-content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; }

.workout-overlay { position: fixed; inset: 0; background: var(--bg); z-index: var(--z-workout); display: flex; flex-direction: column; overflow: hidden; }
.workout-overlay.hidden { display: none; }
.wo-header { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 20px 32px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--bg); z-index: 10; }
.wo-back { position: absolute; right: 20px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 20px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.wo-back:hover { border-color: var(--accent); color: var(--accent); }
.wo-title-text { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 1.3rem; color: var(--text); letter-spacing: 0.3px; pointer-events: none; white-space: nowrap; }
.wo-content-area { display: flex; flex: 1; overflow-y: auto; padding-left: 74px; overscroll-behavior-y: contain; }
.wo-sidebar {
  position: fixed; top: 65px; left: 0; width: 74px; height: calc(100vh - 65px);
  display: flex; flex-direction: column; gap: 6px; padding: 12px 8px;
  overflow: hidden; z-index: 5; background: var(--bg);
}
.wo-sidebar-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  gap: 4px; min-height: 52px; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.wo-sidebar-day.open  { border: 1px dashed var(--accent-tertiary-border); color: var(--accent-tertiary-text); background: transparent; }
.wo-sidebar-day.today { border: 1px solid var(--accent-tertiary-border); color: var(--accent-tertiary-text); background: transparent; }
.wo-sidebar-day.done  { border: 1px solid var(--accent-tertiary-border); color: var(--accent-tertiary-text); background: var(--accent-tertiary-dim); }
.wo-sidebar-day.active { box-shadow: 0 0 0 2px var(--accent-tertiary-text); }
.wo-sidebar-day:hover:not(.active) { opacity: 0.8; }
.wo-sidebar-check { font-size: 0.6rem; }
.wo-phase-chip-wrap { position: relative; margin-bottom: 4px; }
.wo-phase-chip {
  width: 100%; background: var(--accent-tertiary-dim); border: 1px solid var(--accent-tertiary-border);
  color: var(--accent-tertiary-text); padding: 6px 4px; border-radius: 8px;
  font-size: 0.65rem; font-weight: 700; cursor: pointer;
  font-family: 'Manrope', sans-serif; transition: background 0.2s;
}
.wo-phase-chip:hover { background: var(--accent-tertiary-dim); opacity: 0.8; }
.wo-phase-chip.single { cursor: default; pointer-events: none; }
.wo-phase-menu {
  position: absolute; left: calc(100% + 8px); top: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  min-width: 130px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.5); overflow: hidden;
}
.wo-phase-menu.hidden { display: none; }
.wo-phase-menu-item {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text-soft); padding: 10px 14px; cursor: pointer;
  font-size: 0.85rem; font-family: 'Manrope', sans-serif; transition: background 0.15s;
}
.wo-phase-menu-item:hover { background: var(--surface-2); }
.wo-phase-menu-item.active { color: var(--accent); }
.wo-body { flex: 1; overflow: visible; padding: 20px; max-width: 680px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.wo-day-header { margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.wo-day-header-top { display: flex; justify-content: space-between; align-items: center; }
.wo-day-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; color: var(--text); display: block; }
.wo-day-muscles { font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.wo-complete-day-btn { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; font-family: 'Manrope', sans-serif; white-space: nowrap; flex-shrink: 0; }
.wo-complete-day-btn:hover { border-color: var(--accent); color: var(--accent); }
.wo-exercise { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; transition: border-color 0.2s; }
.wo-exercise.wo-exercise-done { border-color: var(--accent); background: var(--surface); }
.wo-ex-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.wo-ex-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.wo-ex-meta { font-size: 0.78rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.wo-ex-rating-badge { font-size: 14px; opacity: 0.85; flex-shrink: 0; }
.wo-feedback-prompt {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid rgba(0, 245, 160, 0.12);
  border-radius: 8px;
  text-align: center;
}
.wo-feedback-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.wo-feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.wo-feedback-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.wo-feedback-btn:hover {
  background: var(--surface-hover);
}
#timer-feedback-slot:not(:empty) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.wo-ex-notes { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 12px; line-height: 1.5; }
.wo-sets { display: flex; flex-direction: column; gap: 8px; }
.wo-set { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 8px; padding: 10px 12px; transition: background 0.2s; }
.wo-set.wo-set-done { background: var(--surface-2); }
.wo-set-num { font-size: 0.82rem; color: var(--text-soft); width: 52px; flex-shrink: 0; }
.wo-weight { width: 72px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); padding: 6px 10px; border-radius: 6px; font-size: 0.88rem; text-align: right; font-family: 'Manrope', sans-serif; }
.wo-weight::placeholder { color: var(--text-soft); }
.wo-weight:focus { outline: none; border-color: var(--accent); }
.wo-check { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: transparent; cursor: pointer; font-size: 1rem; font-weight: 700; transition: all 0.15s; margin-left: auto; flex-shrink: 0; }
.wo-check.done { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wo-check:hover:not(.done) { border-color: var(--accent); }

.timer-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center; z-index: var(--z-timer);
  overscroll-behavior-y: contain;
}
.timer-modal.hidden { display: none; }
.timer-modal-inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 32px; display: flex; flex-direction: column;
  align-items: center; gap: 24px; min-width: 240px;
}
.timer-select-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-align: center; margin: 0 0 12px; }
.timer-select-btns { display: flex; gap: 10px; }
.timer-select-btns button {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
  padding: 10px 20px; border-radius: 8px; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; font-family: 'Manrope', sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.timer-select-btns button:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.timer-select-btns button.timer-btn-plan {
  border-color: var(--accent); color: var(--accent);
}
.timer-select-btns button.timer-btn-plan:hover { background: var(--accent); color: #111; }
.timer-ring-wrap { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.timer-ring { width: 160px; height: 160px; position: absolute; top: 0; left: 0; }
.timer-ring-bg  { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.timer-ring-fg  {
  fill: none; stroke: var(--accent); stroke-width: 8;
  stroke-dasharray: 327; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 0.9s linear;
}
.timer-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: var(--text); letter-spacing: 2px; z-index: 1; line-height: 1; }
.timer-running.hidden { display: none; }
.timer-skip {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 22px; border-radius: 7px; cursor: pointer;
  font-size: 0.82rem; font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.timer-skip:hover { border-color: var(--accent); color: var(--accent); }
.wo-weight-wrap { display: flex; flex-direction: column; gap: 2px; }
.wo-weight-hint { font-size: 0.68rem; color: var(--border-hi); text-align: right; }
.wo-week-complete-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 20; animation: overlay-in 0.25s ease; }
.wo-week-complete-box { background: var(--bg); border: 1px solid var(--accent); border-radius: 16px; padding: 36px 32px; max-width: 360px; width: 90%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.wo-week-complete-emoji { font-size: 3rem; line-height: 1; }
.wo-week-complete-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--text); letter-spacing: 1px; }
.wo-week-complete-sub { font-size: 0.88rem; color: var(--text-soft); line-height: 1.6; max-width: 280px; }
.wo-week-complete-btn { margin-top: 8px; background: var(--accent); border: none; color: #111; padding: 10px 28px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 700; font-family: 'Manrope', sans-serif; transition: background 0.15s; }
.wo-week-complete-btn:hover { background: var(--accent-hover); }
.wo-day-streak-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 24px; width: 100%; box-sizing: border-box; }
.wo-day-streak-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.wo-day-streak-label { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.wo-phase-toast { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--accent-dim); border: 1px solid var(--accent); color: var(--text-soft); padding: 12px 18px; border-radius: 10px; display: flex; align-items: center; gap: 14px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 10; animation: toast-in 0.3s ease; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.wo-toast-btn { background: var(--accent); border: none; color: #111; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; font-weight: 700; font-family: 'Manrope', sans-serif; }

/* ===== LOGIN PAGE ===== */
.login-page-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; box-sizing: border-box; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 400px; }
.login-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 2px; color: var(--text); margin-bottom: 32px; display: block; text-decoration: none; }
.login-logo span { color: var(--accent); }
.login-card a .logo-img { height: 44px; }
.login-card a .header-brand { font-size: 2rem; }
.login-card > a { margin-bottom: 20px; justify-content: center; gap: 0; }
.login-card a .logo-img { margin-right: 4px; }
.login-tabs { display: flex; background: var(--surface-2); border-radius: 8px; padding: 4px; margin-bottom: 24px; }
.login-tab { flex: 1; background: none; border: none; color: var(--text-muted); padding: 10px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.login-tab.active { background: var(--accent); color: #111; }
.login-input { width: 100%; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 14px 16px; border-radius: 8px; font-size: 1rem; margin-bottom: 12px; outline: none; transition: border-color 0.2s; font-family: inherit; }
.login-input:focus { border-color: var(--accent); }
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; -webkit-text-fill-color: var(--text); transition: background-color 5000s ease-in-out 0s; }
.login-btn { width: 100%; background: linear-gradient(to right, #FFB800, #C0392B); color: #111; border: none; padding: 14px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 4px; transition: background 0.2s; font-family: inherit; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 0 14px rgba(255, 184, 0, 0.35), 0 0 6px rgba(192, 57, 43, 0.2); }
.login-btn:disabled { background: var(--border-hi); cursor: not-allowed; }
.login-error { color: var(--red); font-size: 0.85rem; margin-top: 12px; text-align: center; display: none; }
.login-back { display: block; text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.login-back:hover { color: var(--text-soft); }

/* ===== PAYWALL MODAL ===== */
.paywall-price-box { background: var(--surface-2); border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: left; }
.paywall-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.paywall-price-sub { font-size: 0.9rem; color: var(--text-soft); font-weight: 400; }
.paywall-features { list-style: none; padding: 0; margin: 12px 0 0; color: var(--text-soft); font-size: 0.9rem; line-height: 2; }
.paywall-cancel-btn { margin-top: 12px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.paywall-cancel-btn:hover { color: var(--text-soft); }

/* ===== HEADER SUB BUTTON ===== */
.header-sub-btn {
  background: var(--accent); color: #000; font-weight: 700;
  border: none; border-radius: 8px; padding: 8px 16px;
  font-size: 0.82rem; cursor: pointer; font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}
.header-sub-btn:hover { filter: brightness(1.1); }

/* ===== CHECK-IN BANNER ===== */
.checkin-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 46, 99, 0.06);
  border: 1px solid rgba(255, 46, 99, 0.2);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 20px;
}
.checkin-banner-text { display: flex; align-items: center; gap: 14px; }
.checkin-banner-icon { font-size: 1.5rem; }
.checkin-banner-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.checkin-banner-sub { font-size: 0.82rem; color: var(--text-soft); margin-top: 2px; }
.checkin-banner-btn {
  background: transparent; color: var(--accent-secondary); font-weight: 700;
  border: 1px solid var(--accent-secondary); border-radius: 10px; padding: 10px 18px;
  font-size: 0.85rem; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: 'Manrope', sans-serif; transition: background 0.15s;
}
.checkin-banner-btn:hover { background: rgba(255, 46, 99, 0.1); }

/* ===== PRE-LAUNCH BANNER ===== */
.prelaunch-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(240,165,0,0.07), rgba(255,77,0,0.04));
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: 14px;
  margin-bottom: 20px;
}
.prelaunch-banner.hidden { display: none; }
.prelaunch-banner-icon { font-size: 1rem; flex-shrink: 0; }
.prelaunch-banner-text {
  flex: 1;
  font-size: 0.84rem;
  color: var(--text-soft);
}
.prelaunch-banner-text strong { color: var(--accent); }
.prelaunch-banner-badge {
  background: rgba(240,165,0,0.65);
  border: 1px solid rgba(240,165,0,0.9);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Pre-launch locked sections */
.section-prelaunch-locked {
  position: relative;
}
.section-prelaunch-locked > *:not(.prelaunch-lock-chip) {
  opacity: 0.28;
  filter: grayscale(0.4);
  pointer-events: none;
}
.prelaunch-lock-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(255, 46, 99, 0.65);
  border: 1px solid rgba(255, 46, 99, 0.9);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.7rem;
  color: #ffffff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* ===== CHECK-IN MODAL ===== */
.checkin-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; overscroll-behavior-y: contain;
}
.checkin-modal-box {
  background: var(--surface); border-radius: 20px;
  padding: 32px; width: 100%; max-width: 420px;
  border: 1px solid var(--border);
}
.checkin-modal-title {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  margin: 0 0 24px;
}
.checkin-field { margin-bottom: 20px; }
.checkin-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.checkin-input {
  width: 100%; background: var(--surface-2); border: 2px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-size: 1rem; font-family: 'Manrope', sans-serif;
  box-sizing: border-box; outline: none;
  -moz-appearance: textfield;
}
.checkin-input::-webkit-inner-spin-button,
.checkin-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.checkin-input:focus { border-color: var(--accent-secondary); outline: none; box-shadow: 0 0 0 3px rgba(255,46,99,0.15); }
.checkin-textarea {
  width: 100%; background: var(--surface-2); border: 2px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-size: 0.9rem; font-family: 'Manrope', sans-serif;
  resize: vertical; min-height: 72px; box-sizing: border-box; outline: none;
}
.checkin-textarea:focus { border-color: var(--accent-secondary); outline: none; box-shadow: 0 0 0 3px rgba(255,46,99,0.15); }
.checkin-mood-row { display: flex; gap: 10px; }
.mood-btn {
  flex: 1; font-size: 1.6rem; background: var(--surface-2);
  border: 2px solid transparent; border-radius: 12px; padding: 8px 4px;
  cursor: pointer; transition: border-color 0.15s, transform 0.1s;
}
.mood-btn:hover { border-color: var(--accent-secondary); transform: scale(1.1); }
.mood-btn--active { border-color: var(--accent-secondary); background: rgba(255,46,99,0.1); }
.checkin-modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-checkin-submit {
  flex: 1; background: var(--accent-secondary); color: #fff; font-weight: 700;
  border: none; border-radius: 12px; padding: 14px; outline: none;
  font-size: 0.95rem; cursor: pointer; font-family: 'Manrope', sans-serif;
}
.btn-checkin-submit:hover { filter: brightness(1.1); }
.btn-checkin-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-checkin-cancel {
  flex: 0 0 auto; background: transparent; color: var(--text-soft);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.btn-checkin-cancel:hover { border-color: var(--text-soft); color: var(--text); }

/* Check-in redesign — new fields */
.checkin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkin-adherence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.checkin-adherence-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.checkin-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkin-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.checkin-notes-toggle {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-hi);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}
.checkin-notes-toggle:hover {
  border-color: var(--accent-secondary);
  color: var(--text-soft);
}

/* Loading spinner */
.checkin-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success screen */
.checkin-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 auto 14px;
}
.checkin-success-week {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  letter-spacing: .06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.checkin-success-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  text-align: center;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.checkin-success-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.checkin-stat {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.checkin-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.checkin-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: .04em;
}

/* ===== PERSONAL RECORDS ===== */
.pr-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid #f5c518;
  border-radius: 12px; padding: 12px 20px;
  font-size: 0.9rem; font-weight: 700; color: #f5c518;
  z-index: 300; white-space: nowrap;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.pr-list { display: flex; flex-direction: column; gap: 10px; }
.pr-row { display: flex; justify-content: space-between; align-items: center; }
.pr-name { font-size: 0.88rem; color: var(--text-soft); }
.pr-weight { font-size: 0.95rem; font-weight: 700; color: #f5c518; }

/* ===== PROGRESS CHARTS ===== */
.progress-section { margin-bottom: 40px; }
.progress-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .progress-side-grid { grid-template-columns: 1fr; } }
.progress-chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; position: relative; overflow: hidden;
}
.progress-chart-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
  background-size: 200% 100%;
}
.progress-chart-card:first-child::after { background-position: 0% 0%; }
.progress-chart-card:last-child::after  { background-position: 100% 0%; }
.progress-chart-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 12px;
}
.weight-chart-stats {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 10px; flex-wrap: wrap;
}
.weight-chart-stats .wcs-arrow { color: var(--text-muted); }
.weight-chart-stats .wcs-delta { font-weight: 700; margin-left: 4px; }
.weight-chart-stats .wcs-down { color: var(--accent); }
.weight-chart-stats .wcs-up   { color: var(--accent-secondary); }
.weight-chart-placeholder, .pr-empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px; text-align: center;
}
.weight-placeholder-icon { font-size: 1.6rem; margin-bottom: 8px; }
.weight-placeholder-text { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.weight-placeholder-sub { font-size: 0.8rem; color: var(--text-soft); margin-top: 4px; max-width: 220px; }

/* ===== DASHBOARD REDESIGN — neue Sektionen ===== */

/* Streak Badge (Header) */
.streak-badge { display:flex; align-items:center; gap:5px; background:rgba(0,245,160,0.08); border:1px solid rgba(0,245,160,0.25); border-radius:20px; padding:5px 14px; font-weight:700; color:var(--accent); cursor:default; }
.streak-fire { font-size:1.05rem; line-height:1; }
.streak-count { font-family:'Bebas Neue',sans-serif; font-size:1.3rem; line-height:1; letter-spacing:1px; }
.streak-label { font-size:0.65rem; color:var(--text-muted); font-weight:600; }

/* Daily Overview Card */
.daily-overview-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:24px 28px; margin-bottom:20px; display:flex; align-items:flex-start; gap:32px; position:relative; overflow:hidden; }
.daily-overview-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--accent),var(--accent-tertiary)); }
.daily-overview--no-plan > *:not(.daily-overview-overlay) { opacity:0.18; pointer-events:none; user-select:none; }
.daily-overview-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:10; border-radius:16px; backdrop-filter:blur(2px); background:rgba(13,13,13,0.55); }
.daily-overview-overlay-inner { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:24px; }
.daily-overview-overlay-icon { font-size:2rem; line-height:1; }
.daily-overview-overlay-title { font-size:1rem; font-weight:700; color:var(--text); }
.daily-overview-overlay-sub { font-size:0.82rem; color:var(--text-soft); max-width:260px; line-height:1.5; }
.daily-overview-overlay-btn { margin-top:6px; padding:9px 20px; font-size:0.82rem; }
.daily-overview-left { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.calorie-ring-wrap { position:relative; width:164px; height:164px; }
.calorie-ring { width:100%; height:100%; transform:rotate(-90deg); display:block; }
.ring-track { fill:none; stroke:#252525; stroke-width:12; }
.ring-fill { fill:none; stroke-width:12; stroke-linecap:round; }
.ring-fill--main    { stroke:url(#calGrad); }
.ring-fill--protein { stroke:var(--accent); }
.ring-fill--carbs   { stroke:var(--accent-tertiary); }
.ring-fill--fat     { stroke:var(--accent-secondary); }
.calorie-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; pointer-events:none; }
.calorie-ring-num { font-family:'Bebas Neue',sans-serif; font-size:2.6rem; color:var(--text); line-height:1; letter-spacing:1px; }
.calorie-ring-label { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--text-muted); margin-top:2px; }
.calorie-ring-goal { font-size:0.72rem; color:var(--text-muted); margin-top:3px; font-weight:600; }
.macro-rings-row { display:flex; gap:20px; margin-top:18px; justify-content:center; }
.macro-ring-item { display:flex; flex-direction:column; align-items:center; gap:4px; }
.macro-ring { width:56px; height:56px; transform:rotate(-90deg); display:block; }
.macro-ring .ring-track { stroke-width:7; }
.macro-ring .ring-fill  { stroke-width:7; }
.macro-ring-label { font-size:0.58rem; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-muted); line-height:1; }
.macro-ring-val { font-size:0.8rem; font-weight:700; color:var(--text); line-height:1; }
.calorie-breakdown { flex:1; display:flex; flex-direction:column; justify-content:center; gap:14px; padding:0 4px; }
.calorie-summary-total { font-family:'Bebas Neue',sans-serif; font-size:2rem; color:var(--accent); letter-spacing:1px; line-height:1; margin-bottom:2px; }
.calorie-summary-label { font-size:0.65rem; text-transform:uppercase; letter-spacing:2px; color:var(--text-muted); }
.calorie-summary-goal { font-size:0.78rem; color:var(--text-muted); margin-top:6px; font-weight:600; }
.calorie-summary-bar-wrap { height:6px; background:var(--border); border-radius:3px; overflow:hidden; margin-top:10px; }
.cal-bar-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--accent),var(--accent-tertiary)); }
.breakdown-rows { display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.breakdown-row { display:flex; align-items:center; gap:12px; }
.breakdown-label { font-size:0.72rem; color:var(--text-muted); font-weight:600; min-width:100px; }
.breakdown-bar-wrap { flex:1; height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.breakdown-bar { height:100%; border-radius:3px; }
.breakdown-bar--pro  { background:var(--accent); }
.breakdown-bar--carb { background:var(--accent-tertiary); }
.breakdown-bar--fat  { background:var(--accent-secondary); }
.breakdown-val { font-size:0.8rem; font-weight:700; color:var(--text); min-width:70px; text-align:right; }
.water-tracker { display:flex; flex-direction:column; gap:8px; border-left:1px solid var(--border); padding-left:28px; min-width:130px; }
.water-tracker-title { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:1.8px; color:var(--text-muted); }
.water-glasses { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.water-glass { width:28px; height:34px; border-radius:4px 4px 6px 6px; border:1.5px solid var(--border); background:transparent; cursor:pointer; transition:all 0.15s; position:relative; overflow:hidden; }
.water-glass.filled { border-color:#3ab7f5; }
.water-glass.filled::after { content:''; position:absolute; bottom:0; left:0; right:0; height:75%; background:rgba(58,183,245,0.35); border-radius:0 0 4px 4px; }
.water-glass:hover { border-color:#3ab7f5; transform:scale(1.08); }
.water-total { font-size:0.82rem; font-weight:700; color:var(--text-soft); }
.water-total-num { color:#3ab7f5; }
.water-hint { font-size:0.62rem; color:var(--text-muted); }
@keyframes water-glow { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 18px rgba(58,183,245,0.6)} }
.water-complete-glow { animation:water-glow 1.2s ease; }
.water-modal { position:fixed; inset:0; background:rgba(0,0,0,0.75); display:flex; align-items:center; justify-content:center; z-index:200; padding:20px; }
.water-modal-box { background:var(--surface); border-radius:20px; padding:36px 32px; width:100%; max-width:360px; border:1px solid var(--border); text-align:center; }
.water-modal-icon { font-size:2.8rem; margin-bottom:16px; }
.water-modal-title { font-size:1.25rem; font-weight:800; color:var(--text); margin-bottom:6px; }
.water-modal-sub { font-size:0.88rem; color:var(--text-soft); margin-bottom:24px; }
.water-modal-streak { background:var(--surface-2); border:1px solid var(--border); border-radius:14px; padding:18px 24px; margin-bottom:24px; }
.water-modal-streak-num { font-size:2.4rem; font-weight:800; color:var(--accent-blue); line-height:1; }
.water-modal-streak-label { font-size:0.78rem; color:var(--text-soft); margin-top:4px; text-transform:uppercase; letter-spacing:0.06em; }
.btn-water-modal-close { width:100%; background:var(--accent-blue); color:#000; border:none; border-radius:12px; padding:13px; font-size:0.95rem; font-weight:700; cursor:pointer; font-family:'Manrope',sans-serif; transition:opacity 0.15s; }
.btn-water-modal-close:hover { opacity:0.85; }

/* Plan Created Modal */
.plan-created-modal { position:fixed; inset:0; background:rgba(0,0,0,0.75); display:flex; align-items:center; justify-content:center; z-index:200; padding:20px; }
.plan-created-modal-box { background:var(--surface); border-radius:20px; padding:36px 32px; width:100%; max-width:360px; border:1px solid var(--border); text-align:center; }
.plan-created-icon { font-size:2rem; margin-bottom:10px; }
.plan-created-title { font-size:1.15rem; font-weight:700; color:var(--text); margin-bottom:8px; }
.plan-created-sub { font-size:0.85rem; color:var(--text-soft); margin-bottom:24px; line-height:1.5; }
.plan-created-sub strong, .plan-created-sub span { color:var(--text); font-weight:600; }
.plan-created-actions { display:flex; gap:10px; margin-bottom:14px; }
.plan-created-actions .btn-modal-cancel { flex:1; }
.plan-created-actions .btn-modal-confirm { flex:2; }
.plan-created-countdown { font-size:0.75rem; color:var(--text-soft); }
.plan-created-countdown span { color:var(--accent); }

/* Fortschritt Ring */
.fortschritt-section { margin-bottom:24px; }
.plans-section { margin-bottom:28px; }
.fortschritt-ring-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:32px 24px; display:flex; align-items:center; gap:40px; position:relative; overflow:hidden; box-shadow:inset 4px 0 0 0 var(--accent); }
.fortschritt-ring-card::before { content:''; position:absolute; top:0; left:4px; right:0; height:1px; background:linear-gradient(90deg,rgba(0,245,160,0.3),transparent); }
.fortschritt-ring-wrap { position:relative; width:160px; height:160px; flex-shrink:0; }
.fortschritt-ring { width:100%; height:100%; transform:rotate(-90deg); display:block; }
.fortschritt-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; pointer-events:none; }
.fortschritt-ring-pct { font-family:'Bebas Neue',sans-serif; font-size:3.4rem; color:var(--accent); line-height:1; letter-spacing:1px; }
.fortschritt-ring-pct-label { font-size:0.55rem; font-weight:700; letter-spacing:2px; color:var(--text-muted); text-transform:uppercase; margin-top:1px; }
.fortschritt-ring-details { display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:start; flex:1; }
.fortschritt-ring-left { display:flex; flex-direction:column; gap:6px; }
.fortschritt-ring-right { display:flex; flex-direction:column; gap:10px; padding-left:24px; border-left:1px solid var(--border); }
.fortschritt-ring-main { font-family:'Bebas Neue',sans-serif; font-size:2.6rem; line-height:1; color:var(--text); letter-spacing:1px; }
.fortschritt-ring-main span { color:var(--text-muted); font-size:1.6rem; }
.fortschritt-ring-sub { font-size:0.8rem; color:var(--text-muted); font-weight:600; }
.fortschritt-ring-phase { display:inline-block; background:rgba(123,97,255,0.12); border:1px solid rgba(123,97,255,0.25); border-radius:20px; padding:4px 12px; font-size:0.7rem; font-weight:700; color:var(--accent-tertiary); text-transform:uppercase; letter-spacing:1px; width:fit-content; }
.fortschritt-milestone-label { font-size:0.58rem; font-weight:700; text-transform:uppercase; letter-spacing:1.8px; color:var(--text-muted); }
.fortschritt-milestone-list { display:flex; flex-direction:column; gap:8px; }
.fortschritt-milestone-item { display:flex; align-items:flex-start; gap:10px; }
.fortschritt-milestone-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:4px; background:var(--border); border:2px solid #3a3a3a; }
.fortschritt-milestone-dot--next { background:var(--accent); border-color:var(--accent); box-shadow:0 0 8px rgba(0,245,160,0.5); }
.fortschritt-milestone-week { font-size:0.8rem; font-weight:700; color:var(--text-soft); }
.fortschritt-milestone-desc { font-size:0.68rem; color:var(--text-muted); margin-top:1px; }
.fort-total-span { color:var(--text-muted); font-size:1.6rem; font-family:'Bebas Neue',sans-serif; }

/* Stats 2×2 */
.stats-section { margin-bottom:32px; }
.stats-grid-2x2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.stats-grid-2x2 .progress-chart-card::after { display:none !important; }
.stats-grid-2x2 .progress-chart-card { position:relative; overflow:hidden; }
.stats-grid-2x2 .progress-chart-card::before { content:''; position:absolute; top:0; left:4px; right:0; height:1px; }

/* Streak Stat Card */
.streak-stat-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px 20px; position:relative; overflow:hidden; box-shadow:inset 4px 0 0 0 var(--accent); display:flex; flex-direction:column; gap:12px; }
.streak-stat-card::before { content:''; position:absolute; top:0; left:4px; right:0; height:1px; background:linear-gradient(90deg,rgba(0,245,160,0.3),transparent); }
.streak-stat-row { display:flex; align-items:center; gap:12px; }
.streak-stat-icon { font-size:1.6rem; line-height:1; flex-shrink:0; }
.streak-stat-num { font-family:'Bebas Neue',sans-serif; font-size:2.4rem; line-height:1; color:var(--accent); letter-spacing:1px; }
.streak-stat-num--water { color:#3ab7f5; }
.streak-stat-label { font-size:0.68rem; color:var(--text-muted); font-weight:600; margin-top:1px; }
.streak-stat-divider { height:1px; background:var(--border); }

/* Goal Weight Card */
.goal-weight-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px 20px; position:relative; overflow:hidden; box-shadow:inset 4px 0 0 0 var(--accent-tertiary); }
.goal-weight-card::before { content:''; position:absolute; top:0; left:4px; right:0; height:1px; background:linear-gradient(90deg,rgba(123,97,255,0.3),transparent); }
.goal-weight-nums { display:flex; align-items:baseline; gap:6px; margin:6px 0 4px; }
.goal-weight-current { font-family:'Bebas Neue',sans-serif; font-size:2.6rem; color:var(--text); line-height:1; letter-spacing:1px; }
.goal-weight-unit { font-size:0.9rem; color:var(--text-muted); font-weight:600; }
.goal-weight-target { font-size:0.78rem; color:var(--text-muted); font-weight:600; }
.goal-weight-delta { font-size:0.8rem; font-weight:700; color:var(--accent); margin-bottom:10px; }
.goal-weight-bar-track { height:4px; background:var(--border); border-radius:2px; overflow:hidden; margin-top:8px; }
.goal-weight-bar-fill { height:100%; border-radius:2px; background:linear-gradient(90deg,var(--accent-secondary),var(--accent)); }
.fortschritt-ring-bar-label { display:flex; justify-content:space-between; font-size:0.65rem; color:var(--text-muted); font-weight:600; }

/* Win of Day */
.win-of-day-card { background:linear-gradient(var(--surface),var(--surface)) padding-box, linear-gradient(135deg,var(--accent),var(--accent-tertiary)) border-box; border:1px solid transparent; border-radius:14px; padding:16px 20px; display:flex; align-items:flex-start; gap:14px; margin-bottom:24px; }
.win-of-day-icon { font-size:1.4rem; flex-shrink:0; margin-top:1px; }
.win-of-day-title { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:var(--text-muted); margin-bottom:5px; }
.win-of-day-text { font-size:0.85rem; color:var(--text-soft); line-height:1.55; }
.loading-coach-tip { max-width:520px; width:100%; margin:56px auto 0; }
.loading-coach-tip .win-of-day-text { transition: opacity 0.4s ease; text-align:center; }
.loading-coach-tip .win-of-day-title { text-align:center; }

/* Achievements */
.achievements-section { margin-bottom:36px; }
.achievements-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.achievement-badge { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:16px 8px; border-radius:14px; border:1px solid var(--border); transition:transform 0.15s; }
.achievement-badge--earned { background:var(--accent-dim); border-color:rgba(240,165,0,0.35); box-shadow:0 0 20px rgba(240,165,0,0.18),inset 0 0 12px rgba(240,165,0,0.05); }
.achievement-badge--earned.achievement-badge--mint { background:rgba(240,165,0,0.08); border-color:rgba(240,165,0,0.35); box-shadow:0 0 20px rgba(240,165,0,0.2),inset 0 0 12px rgba(240,165,0,0.06); }
.achievement-badge--earned.achievement-badge--gold { background:var(--accent-dim); border-color:rgba(240,165,0,0.35); box-shadow:0 0 20px rgba(240,165,0,0.2),inset 0 0 12px rgba(240,165,0,0.06); }
.achievement-badge--earned.achievement-badge--purple { background:rgba(163,125,0,0.12); border-color:rgba(163,125,0,0.4); box-shadow:0 0 20px rgba(163,125,0,0.2),inset 0 0 12px rgba(163,125,0,0.06); }
.achievement-badge--locked { background:rgba(255,255,255,0.02); border-color:rgba(255,255,255,0.06); opacity:0.45; filter:grayscale(1); }
.achievement-icon { font-size:1.8rem; line-height:1; }
.achievement-name { font-size:0.72rem; font-weight:700; color:var(--text-soft); line-height:1.2; }
.achievement-desc { font-size:0.62rem; color:var(--text-muted); line-height:1.3; }

/* Plan Cards v2 — 3-slot grid */
.plan-grid-v2 { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.plan-slot { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:12px; position:relative; overflow:hidden; transition:border-color 0.2s, transform 0.15s; }
.plan-slot::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:14px 14px 0 0; }
.plan-slot--training::before { background:linear-gradient(90deg,var(--accent),#00c97a); }
.plan-slot--nutrition::before { background:linear-gradient(90deg,var(--accent-tertiary),var(--accent-secondary)); }
.plan-slot--supps::before { background:linear-gradient(90deg,var(--accent-gold),#ff6b00); }
.plan-slot--recovery::before { background:linear-gradient(90deg,var(--accent-blue),#4361ee); }
.plan-slot:hover { transform:translateY(-2px); }
.plan-slot--training:hover { border-color:var(--accent); }
.plan-slot--nutrition:hover { border-color:var(--accent-tertiary); }
.plan-slot--supps:hover { border-color:var(--accent-gold); }
.plan-slot--recovery:hover { border-color:var(--accent-blue); }
.plan-slot-icon { font-size:1.6rem; line-height:1; }
.plan-slot-label { font-size:0.6rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--text-muted); margin-bottom:2px; }
.plan-slot-title { font-size:0.95rem; font-weight:700; color:var(--text); line-height:1.25; }
.plan-slot-meta { font-size:0.78rem; color:var(--text-muted); }
.plan-slot-btn { margin-top:auto; padding:9px 0; border-radius:8px; border:1px solid var(--border); background:transparent; color:var(--text-soft); font-size:0.82rem; font-weight:600; cursor:pointer; transition:background 0.15s,border-color 0.15s,color 0.15s; text-align:center; display:block; width:100%; }
.plan-slot--training .plan-slot-btn:hover { border-color:var(--accent); color:var(--accent); background:rgba(0,245,160,0.06); }
.plan-slot--nutrition .plan-slot-btn:hover { border-color:var(--accent-tertiary); color:var(--accent-tertiary); background:rgba(123,97,255,0.06); }
.plan-slot--supps .plan-slot-btn:hover { border-color:var(--accent-gold); color:var(--accent-gold); background:var(--accent-gold-dim); }
.plan-slot--recovery .plan-slot-btn:hover { border-color:var(--accent-blue); color:var(--accent-blue); background:rgba(76,201,240,0.06); }
.plan-slot--empty .plan-slot-title { color:var(--text-muted); font-style:italic; font-size:0.85rem; font-weight:400; }
.plan-slot--empty .plan-slot-btn { border-style:dashed; }
.plan-slot-del { position:absolute; top:12px; right:12px; width:22px; height:22px; border-radius:50%; background:var(--surface-2); border:1px solid var(--border); color:var(--text-muted); font-size:0.7rem; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.15s; }
.plan-slot:hover .plan-slot-del { opacity:1; }

/* Mobile */
@media (max-width:640px) {
  .daily-overview-card { flex-direction:column; align-items:stretch; gap:20px; padding:20px; }
  .calorie-ring-wrap { width:140px; height:140px; margin:0 auto; }
  .water-tracker { border-left:none; border-top:1px solid var(--border); padding-left:0; padding-top:16px; }
  .calorie-breakdown { display:none; }
  .stats-grid-2x2 { grid-template-columns:1fr; }
  .fortschritt-ring-card { flex-direction:column; align-items:center; gap:20px; }
  .fortschritt-ring-details { grid-template-columns:1fr; }
  .fortschritt-ring-right { border-left:none; padding-left:0; border-top:1px solid var(--border); padding-top:12px; }
  .achievements-grid { grid-template-columns:repeat(3,1fr); }
  .plan-grid-v2 { grid-template-columns:1fr; }
}

/* ===== WEEK-CLOSE MODAL ===== */
.week-close-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
  overscroll-behavior-y: contain;
}
.week-close-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.8);
}
.week-close-card {
  position: relative;
  background: var(--surface); border-radius: 20px;
  padding: 32px; width: 100%; max-width: 420px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.week-close-header {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  margin: 0 0 24px; line-height: 1.3;
}
.week-close-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 28px;
}
.week-close-stat {
  background: var(--surface-2); border-radius: 14px;
  padding: 20px 16px; text-align: center;
  border: 1px solid var(--border);
}
.week-close-stat-num {
  display: block; font-size: 2rem; font-weight: 900;
  color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.week-close-stat-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-soft); text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wc-btn {
  width: 100%; margin-top: 8px;
}
.week-close-card .checkin-loading-spinner {
  border-top-color: var(--accent);
}
.week-close-card .mood-btn:hover { border-color: var(--accent); }
.week-close-card .mood-btn--active { border-color: var(--accent); background: rgba(0,245,160,0.1); }
.wc-loading-text {
  text-align: center; color: var(--text-soft);
  font-size: 0.9rem; margin-top: 16px; margin-bottom: 0;
}
.wc-feedback-text {
  color: var(--text); font-size: 0.95rem; line-height: 1.7;
  margin: 0 0 28px; background: var(--surface-2);
  border-radius: 12px; padding: 16px;
  border: 1px solid var(--border);
}
.phase-banner {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  background: var(--accent-primary);
  color: #000;
}
.phase-banner.phase-banner--failed {
  background: #c0392b;
  color: #fff;
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.phase-header__label {
  font-weight: 600;
  color: var(--text-primary);
}

.phase-header__days {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ===== TRAINING SECTION RENDERER (ts-*) ===== */
.ts-section { display: flex; flex-direction: column; gap: 12px; }

.ts-phase-banner {
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ts-pb-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.ts-pb-name  { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.ts-pb-sub   { font-size: 0.72rem; color: #888; margin-top: 2px; }
.ts-pb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ts-pb-dots  { display: flex; gap: 5px; }
.ts-pb-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.ts-pb-dot--done    { background: var(--accent); }
.ts-pb-dot--current { background: #1a1a1a; border: 2px solid var(--accent); box-shadow: 0 0 4px var(--accent); }
.ts-pb-dot--pending { background: transparent; border: 1px dashed #333; }
.ts-pb-week  { font-size: 0.68rem; color: #888; }

.ts-summary-block { border: 1px solid #222; border-radius: 12px; overflow: hidden; }
.ts-summary-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; cursor: pointer; background: #161616;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #777; user-select: none;
}
.ts-summary-trigger:hover { background: #1a1a1a; }
.ts-summary-chevron { transition: transform 0.2s; color: #666; }
.ts-summary-open .ts-summary-chevron { transform: rotate(180deg); }
.ts-summary-body {
  display: none; padding: 14px 16px;
  font-size: 0.8rem; line-height: 1.65; color: var(--text-muted);
  border-top: 1px solid var(--border); background: var(--bg);
}
.ts-summary-open .ts-summary-body { display: block; }

.ts-week-strip { display: flex; gap: 6px; }
.ts-pill {
  flex: 1; text-align: center; padding: 9px 4px;
  border-radius: 8px; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.ts-pill--active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.ts-pill--rest   { color: #2a2a2a; border-color: #1e1e1e; cursor: default; }
.ts-pill:not(.ts-pill--rest):not(.ts-pill--active):hover { border-color: #555; color: #aaa; }

.ts-day-card {
  background: #1a1a1a; border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
  animation: tsFadeIn 0.18s ease;
}
.ts-day-card--hidden { display: none; }
@keyframes tsFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ts-day-header {
  padding: 16px 20px; border-bottom: 1px solid #222;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ts-day-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.ts-day-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.ts-day-goal  { font-size: 0.72rem; color: #888; margin-top: 3px; }
.ts-day-dur   { font-size: 0.72rem; color: var(--text-muted); background: var(--bg); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); white-space: nowrap; }

.ts-ex {
  display: flex; align-items: center;
  padding: 11px 20px; border-bottom: 1px solid #1e1e1e;
  gap: 14px; transition: background 0.1s;
}
.ts-ex:last-of-type { border-bottom: none; }
.ts-ex:hover { background: #1f1f1f; }
.ts-ex-num  { font-size: 0.68rem; font-weight: 700; color: #555; width: 18px; flex-shrink: 0; }
.ts-ex-body { flex: 1; min-width: 0; }
.ts-ex-name { font-size: 0.84rem; font-weight: 600; color: #e8e8e8; margin-bottom: 2px; }
.ts-ex-note { font-size: 0.71rem; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ex-right { text-align: right; flex-shrink: 0; }
.ts-ex-sets  { font-size: 0.88rem; font-weight: 700; color: #7fb3ff; }
.ts-ex-pause { font-size: 0.68rem; color: var(--accent-gold); margin-top: 2px; }

.ts-prog-footer {
  padding: 11px 20px; border-top: 1px solid #1e1e1e;
  background: #161616; display: flex; align-items: flex-start; gap: 10px;
}
.ts-prog-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.ts-prog-text { font-size: 0.74rem; color: #888; line-height: 1.5; }

.ts-next-phase {
  background: #161616; border: 1px solid #222;
  border-radius: 12px; padding: 16px 18px;
}
.ts-next-phase-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.ts-next-phase-text  { font-size: 0.8rem; color: #999; line-height: 1.6; }
.ts-np-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ts-np-tag   { font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: #222; color: #777; white-space: nowrap; }
.ts-np-tag--active { background: var(--accent-dim); color: var(--accent); }
.ts-np-dates { font-size: 0.75rem; color: #888; }

/* Vorschau nächste Phase batch */
.ts-phase-preview {
  background: #141414; border: 1px solid #252525;
  border-radius: 14px; padding: 16px 18px;
}
.ts-pp-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #555; margin-bottom: 12px; }
.ts-pp-rows  { display: flex; flex-direction: column; gap: 0; }
.ts-pp-row   { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.ts-pp-tag   { font-size: 0.6rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: #222; color: #666; white-space: nowrap; flex-shrink: 0; }
.ts-pp-tag--active { background: var(--accent-dim); color: var(--accent); }
.ts-pp-tag--done   { background: #1a1a1a; color: #444; }
.ts-pp-dates { font-size: 0.72rem; color: #777; white-space: nowrap; }
.ts-pp-divider { height: 1px; background: #1e1e1e; margin: 0; }

/* Summary weight row */
.ts-summary-weight-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #222; }
.ts-sw-item  { display: flex; flex-direction: column; gap: 2px; }
.ts-sw-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #555; }
.ts-sw-val   { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.ts-sw-val--goal { color: var(--accent); }

.ts-checkin { background: var(--bg); border: 1px dashed var(--border); border-radius: 12px; padding: 16px 18px; }
.ts-checkin-title { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.ts-checkin-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ts-checkin-list li { font-size: 0.75rem; color: #999; display: flex; gap: 8px; align-items: flex-start; }
.ts-checkin-list li::before { content: "□"; color: #555; font-size: 0.85rem; flex-shrink: 0; }

.ts-motivation {
  text-align: center; font-size: 0.82rem; font-style: italic;
  color: #888; padding: 16px 20px; border: 1px dashed #222;
  border-radius: 12px; line-height: 1.6;
}

.ts-plan-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ts-fallback { /* fallback if parsing fails */ }

/* ── Profile Page ─────────────────────────────────────────────────────── */
.profile-main {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header card */
.profile-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 16px 0 0 16px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-weights {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

/* Section cards */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.profile-fields {
  display: flex;
  flex-direction: column;
}

.profile-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-field:last-child { border-bottom: none; }

.field-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.field-value {
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
}

.field-input {
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Manrope', sans-serif;
  padding: 0 10px;
  height: 36px;
  flex: 1;
  min-width: 0;
  max-width: 55%;
  text-align: right;
  box-sizing: border-box;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 245, 160, 0.04);
}

input[type="date"].field-input {
  line-height: 36px;
  padding: 0 8px;
}

input[type="date"].field-input::-webkit-calendar-picker-indicator {
  filter: invert(0.4);
  cursor: pointer;
}

.profile-edit-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.btn-edit {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.775rem;
  font-weight: 500;
  padding: 5px 14px;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}

.btn-edit:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-save {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--bg);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 20px;
  font-family: 'Manrope', sans-serif;
  transition: background 0.15s;
}

.btn-save:hover { background: var(--accent-hover); }

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 8px 16px;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.15s;
}

.btn-cancel:hover { border-color: var(--border-hi); }

.btn-outline-small {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.825rem;
  padding: 6px 14px;
  text-decoration: none;
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline-small:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.link-mint { color: var(--accent); text-decoration: none; }
.link-mint:hover { text-decoration: underline; }
