:root {
  --bg-0: #0f172a;
  --bg-1: #1e293b;
  --bg-2: #0b1427;
  --line: rgba(245, 158, 11, 0.3);
  --text: #e2e8f0;
  --muted: #cbd5e1;
  --neon-cyan: #38bdf8;
  --neon-pink: #f59e0b;
  --neon-green: #67e8f9;
  --card: rgba(15, 23, 42, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.26), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(56, 189, 248, 0.22), transparent 32%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  color: var(--text);
}

h1,
h2,
h3,
h4,
strong,
button {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
}

#app {
  min-height: 100dvh;
}

.app-shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0.9rem 5.8rem;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.12;
}

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.12), inset 0 0 12px rgba(56, 189, 248, 0.05);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0.55rem;
  z-index: 3;
}

.top-nav-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.top-nav-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.top-nav-link:hover {
  color: #e2e8f0;
}

.top-nav-link.active {
  color: #fde68a;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.backend-brand-space {
  padding: 0.35rem 0.15rem 0.9rem;
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
}

.backend-brand-space.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.backend-wordmark {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.lang-btn.active {
  color: #fde68a;
}

.lang-sep {
  color: rgba(203, 213, 225, 0.55);
  font-size: 0.7rem;
}

.brand-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px var(--neon-cyan);
}

.brand-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.top-dot-live-badge {
  position: absolute;
  left: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 0.08rem 0.34rem;
  border-radius: 0.35rem;
  border: 0;
  background: rgba(2, 6, 23, 0.88);
  white-space: nowrap;
  pointer-events: none;
  font-size: var(--card-fs-sm);
  text-shadow: none;
  animation: none;
}

.brand-dot.is-historic {
  background: #f59e0b;
  box-shadow: none;
}

.user-label {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-label-no-clip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
  overflow: visible;
  max-width: none;
}

.user-topline {
  align-items: center;
}

.user-topline .user-label-main {
  color: #38bdf8;
  text-shadow: none;
  animation: none;
}

.user-topline .user-label-main.is-historic {
  color: #f59e0b;
}

.user-label-main {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.user-label-bmi-text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.user-label-logdate {
  font-size: 0.78rem;
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.user-label-logdate.is-today {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.68), 0 0 18px rgba(56, 189, 248, 0.5), 0 0 26px rgba(56, 189, 248, 0.34);
  animation: topDatePulse 1.8s ease-in-out infinite;
}

.user-label-logdate.is-historic {
  color: #f59e0b;
}

@keyframes topDatePulse {
  0%,
  100% {
    text-shadow: 0 0 9px rgba(56, 189, 248, 0.56), 0 0 16px rgba(56, 189, 248, 0.42), 0 0 24px rgba(56, 189, 248, 0.28);
  }
  50% {
    text-shadow: 0 0 13px rgba(56, 189, 248, 0.86), 0 0 24px rgba(56, 189, 248, 0.64), 0 0 34px rgba(56, 189, 248, 0.44);
  }
}

.user-label-bmi-value {
  color: #fde68a;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  text-shadow: 0 0 8px rgba(253, 230, 138, 0.5), 0 0 16px rgba(245, 158, 11, 0.35);
  animation: bmiPulse 2.2s ease-in-out infinite;
}

.user-label-bmi-value.is-historic {
  color: #f59e0b;
  text-shadow: none;
  animation: none;
}

.bmi-trend-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-label-bmi-btn {
  display: inline-block;
  vertical-align: middle;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: inherit;
}

.bmi-trend-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 12;
  width: min(92vw, 640px);
  padding: 0.48rem;
  border-radius: 0.88rem;
  border: 1px solid #22d3ee;
  background: #030712;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 18px rgba(34, 211, 238, 0.42), 0 0 28px rgba(37, 99, 235, 0.28);
}

@media (max-width: 767px) {
  .bmi-trend-popover {
    width: min(94vw, 420px);
  }
}


.bmi-trend-svg {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0.55rem;
  background: #030712;
  display: block;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.22));
}

.bmi-trend-wrap {
  position: relative;
}

.bmi-trend-title {
  margin: 0 0 0.3rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
}

.bmi-zone-hover-badge {
  position: absolute;
  transform: translate(-50%, -72%);
  padding: 0.08rem 0.34rem;
  border-radius: 0.35rem;
  border: 0;
  background: rgba(2, 6, 23, 0.88);
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.8rem;
}

.bmi-zone-line {
  vector-effect: non-scaling-stroke;
}

.bmi-zone-line.zone-red {
  animation: bmiZonePulseRed 2.8s ease-in-out infinite;
}

.bmi-zone-line.zone-orange {
  animation: bmiZonePulseOrange 2.8s ease-in-out infinite;
}

.bmi-zone-line.zone-green {
  animation: bmiZonePulseGreen 2.8s ease-in-out infinite;
}

.bmi-zone-cutoff-line {
  animation: bmiZoneCutoffPulse 2.8s ease-in-out infinite;
}

@keyframes bmiZonePulseRed {
  0%,
  100% {
    stroke: #ef4444;
    stroke-opacity: 0.38;
  }
  50% {
    stroke: #ff6b6b;
    stroke-opacity: 0.72;
  }
}

@keyframes bmiZonePulseOrange {
  0%,
  100% {
    stroke: #f59e0b;
    stroke-opacity: 0.34;
  }
  50% {
    stroke: #fbbf24;
    stroke-opacity: 0.62;
  }
}

@keyframes bmiZonePulseGreen {
  0%,
  100% {
    stroke: #39ff88;
    stroke-opacity: 0.42;
  }
  50% {
    stroke: #7dffb6;
    stroke-opacity: 0.84;
  }
}

@keyframes bmiZoneCutoffPulse {
  0%,
  100% {
    stroke: #ffffff;
    stroke-opacity: 0.72;
  }
  50% {
    stroke: #000000;
    stroke-opacity: 0.88;
  }
}

@keyframes bmiPulse {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(253, 230, 138, 0.45), 0 0 14px rgba(245, 158, 11, 0.3);
  }
  50% {
    text-shadow: 0 0 10px rgba(253, 230, 138, 0.65), 0 0 20px rgba(245, 158, 11, 0.45);
  }
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1;
}

.wordmark {
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.03em;
  color: #fde68a;
}

.brand-gap {
  margin-left: 0.2em;
}

.brand-ai {
  font-size: 0.58em;
  vertical-align: baseline;
  opacity: 0.9;
  margin-left: 0.08em;
  letter-spacing: 0.02em;
}

.neon-btn,
.ghost-btn,
.bottom-nav button {
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.neon-btn {
  border-color: rgba(109, 255, 139, 0.6);
  background: rgba(109, 255, 139, 0.08);
  box-shadow: 0 0 14px rgba(109, 255, 139, 0.22);
}

.content {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  --card-fs-sm: 0.82rem;
  --card-fs-md: 0.94rem;
  --card-fs-lg: 1.08rem;
}

.content.landing-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content.profile-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-side-col {
  display: grid;
  gap: 1rem;
}

.form-group-block {
  display: grid;
  gap: 0.58rem;
  padding-top: 0.2rem;
}

.form-group-block h4 {
  margin: 0.2rem 0 0.2rem;
  font-size: 1rem;
  color: #fef3c7;
}

.coach-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.coach-mini-card {
  border: 1px solid rgba(85, 242, 255, 0.28);
  background: rgba(85, 242, 255, 0.06);
  color: var(--text);
  border-radius: 0.6rem;
  padding: 0.42rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.coach-mini-card img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 0;
}

.coach-mini-card span {
  font-size: 0.82rem;
}

.coach-mini-card.active {
  border-color: rgba(245, 158, 11, 0.88);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 14px rgba(245, 158, 11, 0.25);
}

.coach-mini-grid.has-active-coach .coach-mini-card:not(.active) {
  opacity: 0.5;
  filter: saturate(0.6) brightness(0.78);
}

.coach-change-note {
  margin-top: 0.55rem;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.6rem;
  padding: 0.6rem 0.65rem;
}

.coach-change-note.active {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(127, 29, 29, 0.55);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.34), 0 0 14px rgba(239, 68, 68, 0.2);
}

.coach-change-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coach-change-check {
  margin-top: 0.55rem;
}

.content.landing-content .section-hero {
  order: 1;
}

.content.landing-content .section-coaches {
  order: 2;
}

.content.landing-content .section-login {
  order: 3;
}

.content.landing-content .section-hero,
.content.landing-content .section-login {
  width: 100%;
}

.coming-soon {
  width: 100%;
  padding: 1.2rem;
}

.coming-soon-inline {
  width: 100%;
}

.coming-soon h3,
.coming-soon-inline h3 {
  margin: 0 0 0.4rem;
  font-size: var(--card-fs-lg);
  color: #fde68a;
}

.coming-label {
  color: #67e8f9;
  margin-right: 0.2em;
}

.coming-brand {
  color: #fde68a;
}

.coming-soon p,
.coming-soon-inline p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: var(--card-fs-md);
}

.coming-soon .form-note,
.coming-soon-inline .form-note {
  margin-top: 1.2rem;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.55rem;
}

.signup-form input {
  border: 1px solid rgba(85, 242, 255, 0.33);
  background: rgba(7, 11, 28, 0.82);
  color: var(--text);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  font-size: var(--card-fs-md);
}

.signup-form input:focus {
  outline: none;
  border-color: rgba(255, 60, 165, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 60, 165, 0.2);
}

.signup-form .neon-btn {
  min-width: 150px;
}

.hero {
  padding: 1.1rem;
}

.hero-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.hero-brand strong {
  font-size: 1.1rem;
}

.hero-wordmark {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.hero-eyebrow {
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-size: 0.77rem;
  margin: 0;
}

.hero h3 {
  margin: 0.95rem 0 1rem;
  font-size: clamp(1.28rem, 4.2vw, 1.9rem);
  line-height: 1.1;
}

.onboarding-hero {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.onboarding-coach-preview {
  display: grid;
  gap: 0.35rem;
}

.onboarding-coach-preview .avatar {
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
}

.onboarding-coach-name {
  margin: 0;
  font-size: 0.9rem;
  color: #fef3c7;
}

.hero-subline {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.bullet-list {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  display: inline-flex;
  border: 1px solid rgba(255, 60, 165, 0.5);
  background: rgba(255, 60, 165, 0.08);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.8rem;
}

.stats-grid {
  display: grid;
  gap: 0.65rem;
}

.content.status-content {
  grid-template-columns: 1fr;
}

.content.planner-content {
  grid-template-columns: 1fr;
}

.planner-card {
  width: 100%;
}

.log-meals-card {
  width: 100%;
}

.meal-panels {
  display: grid;
  gap: 0.62rem;
}

.meal-panels-floating {
  width: 100%;
}

.meal-panel {
  border: 1px solid rgba(85, 242, 255, 0.24);
  border-radius: 0.7rem;
  background: rgba(4, 12, 30, 0.62);
  overflow: visible;
  position: relative;
  z-index: 0;
}

.meal-panel.is-historic {
  border-color: rgba(245, 158, 11, 0.42);
}

.meal-panel-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.72rem 0.68rem;
  color: #f8fafc;
  font-family: "Rajdhani", sans-serif;
  font-size: var(--card-fs-lg);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.42);
}

.meal-panel-summary::-webkit-details-marker {
  display: none;
}

.meal-panel-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  min-width: 0;
}

.meal-panel-head-right {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #9fd9e7;
  font-size: 0.84rem;
  white-space: nowrap;
}

.meal-panel-icon {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.36);
}

.meal-panel-icon.is-historic {
  color: #f59e0b;
  text-shadow: none;
}

.meal-panel.is-historic .meal-panel-head-right {
  color: #f59e0b;
}

.meal-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.meal-share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  color: #f59e0b;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.meal-share-chip.is-historic {
  border: 0;
  background: transparent;
  color: #fde68a;
}

.meal-share-hover-badge {
  position: absolute;
  right: -0.18rem;
  top: 1.15rem;
  z-index: 40;
  padding: 0.12rem 0.4rem;
  border-radius: 0.38rem;
  border: 0;
  background: rgba(16, 10, 2, 0.95);
  color: #f59e0b;
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.75rem;
  text-shadow: none;
  animation: none;
}

.meal-panel-chevron {
  transition: transform 0.2s ease;
}

.meal-panel[open] .meal-panel-chevron {
  transform: rotate(180deg);
}

.meal-panel-body {
  padding: 0.55rem 0.62rem 0.68rem;
}

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

.meal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.meal-table th,
.meal-table td {
  padding: 0.36rem 0.42rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(85, 242, 255, 0.14);
  color: #dbe6f2;
  text-align: left;
}

.meal-table th {
  color: #9fd9e7;
  font-weight: 700;
}

.meal-table-sum td {
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
  font-weight: 700;
}

.planner-head {
  align-items: center;
}

.planner-head h3 {
  text-transform: capitalize;
}

.planner-month-btn {
  min-width: 42px;
  min-height: 42px;
  border-radius: 0.65rem;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.85);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.9));
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.planner-month-btn:not(:disabled) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.9)) !important;
  border-color: rgba(245, 158, 11, 0.92) !important;
  color: #ffffff !important;
}

.planner-month-btn:hover:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 0 18px rgba(245, 158, 11, 0.44), 0 0 28px rgba(249, 115, 22, 0.32);
  transform: translateY(-1px);
}

.planner-month-btn:disabled {
  border-color: rgba(148, 163, 184, 0.26);
  background: transparent;
  color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
  cursor: default;
}

.planner-month-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
}

.planner-days-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.44rem;
}

.planner-days-grid-wrap {
  position: relative;
}

.planner-day-cell {
  min-height: 40px;
  border: 1px solid rgba(85, 242, 255, 0.26);
  background: rgba(7, 11, 28, 0.76);
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  color: #e2e8f0;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
}

.planner-day-cell.disabled {
  opacity: 0.42;
}

.planner-day-cell.active-log {
  border-color: rgba(56, 189, 248, 0.92);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.36), 0 0 14px rgba(56, 189, 248, 0.45);
}

.planner-day-cell.has-log {
  border-color: rgba(56, 189, 248, 0.92);
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 0 12px rgba(56, 189, 248, 0.6), 0 0 20px rgba(56, 189, 248, 0.28);
  cursor: pointer;
}

.planner-day-cell.has-log.disabled {
  opacity: 0.62;
}

.planner-day-cell.outside {
  border-style: dashed;
  color: rgba(148, 163, 184, 0.45);
}

.planner-hover-card {
  position: absolute;
  transform: translateX(-50%);
  z-index: 30;
  width: min(90vw, 300px);
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(2, 6, 23, 0.96);
  border-radius: 0.75rem;
  padding: 0.55rem;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.24), 0 0 16px rgba(56, 189, 248, 0.22);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.planner-hover-card.is-closing {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.planner-hover-card.is-entering {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  animation: plannerHoverFadeIn 180ms ease forwards;
}

@keyframes plannerHoverFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.planner-hover-date {
  margin: 0 0 0.45rem;
  color: #f8fafc;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
}

.planner-hover-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem;
}

.planner-hover-load-wrap {
  margin-top: 0.72rem;
  display: flex;
  justify-content: flex-end;
}

.planner-hover-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(22, 163, 74, 0.16);
  color: #e2e8f0;
  padding: 0.34rem 0.58rem;
}

.planner-load-icon {
  font-size: 0.92rem;
  width: 0.92rem;
  height: 0.92rem;
  line-height: 1;
  display: inline-block;
  fill: currentColor;
}

.planner-load-icon.spinning {
  animation: coach-refresh-spin 0.9s linear infinite;
}

.planner-mini-metric {
  position: relative;
  border: 1px solid rgba(85, 242, 255, 0.22);
  border-radius: 0.55rem;
  background: rgba(10, 20, 45, 0.52);
  padding: 0.36rem 0.4rem;
}

.planner-mini-label {
  color: #e2e8f0;
  font-size: 0.76rem;
  margin-bottom: 0.18rem;
}

.planner-mini-track {
  height: 0.52rem;
}

.planner-mini-track .status-fill {
  transition: none;
}

.status-live-wrap {
  width: 100%;
  padding: 0;
}

.status-live-wrap.is-today .status-card {
  border-color: rgba(85, 242, 255, 0.24);
  box-shadow: none;
}

.status-live-wrap.is-today .status-label,
.status-live-wrap.is-today .status-value {
  color: #f8fafc;
  text-shadow: none;
}

.status-live-wrap.is-historic .status-card {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.status-live-wrap.is-historic .status-label,
.status-live-wrap.is-historic .status-value {
  color: var(--muted);
  text-shadow: none;
}

.status-live-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.status-card {
  border: 1px solid rgba(85, 242, 255, 0.24);
  background: rgba(10, 20, 45, 0.46);
  border-radius: 0.72rem;
  padding: 0.7rem 0.7rem 0.75rem;
}

.status-row {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.metric-hover-badge {
  position: absolute;
  right: 0.1rem;
  top: 1.2rem;
  z-index: 1;
  transform: translateY(0);
  padding: 0.08rem 0.34rem;
  border-radius: 0.35rem;
  border: 0;
  background: rgba(2, 6, 23, 0.88);
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.8rem;
}

.planner-mini-metric .metric-hover-badge {
  top: 0.95rem;
  right: 0.32rem;
}

.status-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.status-label {
  color: #f8fafc;
  font-size: 1.03rem;
}

.status-value {
  font-size: 1.24rem;
  color: #f8fafc;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(148, 163, 184, 0.22);
}

.status-track {
  height: 1.02rem;
  background: rgba(226, 232, 240, 0.22);
  border-radius: 0.55rem;
  overflow: hidden;
}

.status-fill {
  display: block;
  height: 100%;
  border-radius: 0.55rem;
  transition: width 0.95s ease-out;
}

.status-fill.cyan {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.status-fill.yellow {
  background: linear-gradient(90deg, #eab308, #facc15);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.32);
}

.status-fill.green {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.28);
}

.status-fill.red {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.34);
}

.coach-feed-wrap {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.75rem;
}

.coach-feed-toolbar {
  padding: 0.45rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.coach-feed-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.coach-push-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0rem;
}

.coach-push-toggle-btn {
  border: 0;
  background: transparent;
  color: #9fd9e7;
  padding: 0;
  min-width: 0;
  min-height: 0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.coach-push-toggle-btn:hover:not(:disabled) {
  color: #fde68a;
}

.coach-push-toggle-btn.active {
  color: #fde68a;
}

.coach-push-toggle-btn.active .bell-outline path {
  filter: drop-shadow(0 0 6px rgba(253, 230, 138, 0.5));
}

.coach-push-toggle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.coach-push-state-btn {
  border: 0;
  background: transparent;
  min-height: 34px;
  min-width: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.coach-push-state-btn.active {
  box-shadow: none;
}

.coach-push-state-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: none;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.coach-push-state-btn.active .coach-push-state-dot {
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.75), 0 0 16px rgba(56, 189, 248, 0.42);
}

.bell-outline {
  width: 20px;
  height: 20px;
  display: unset;
  place-items: center;
}

.bell-outline svg {
  width: 20px;
  height: 20px;
  display: block;
}

.bell-outline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coach-push-toggle-btn:hover:not(:disabled) .bell-outline path {
  filter: drop-shadow(0 0 6px rgba(253, 230, 138, 0.45));
}

.bell-outline.spinning {
  animation: coach-refresh-spin 0.9s linear infinite;
}

.coach-feed-refresh-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(85, 242, 255, 0.42);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #9fd9e7;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.coach-feed-refresh-btn:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.85);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.24);
}

.coach-feed-refresh-btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.refresh-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.refresh-icon.spinning {
  animation: coach-refresh-spin 0.9s linear infinite;
}

@keyframes coach-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.coach-feed-head {
  align-items: center;
}

.coach-feed-count {
  color: #9fd9e7;
  font-size: 0.9rem;
}

.coach-feed-grid {
  display: grid;
  gap: 0.8rem;
}

.coach-feed-card {
  border: 1px solid rgba(85, 242, 255, 0.24);
  background: rgba(10, 20, 45, 0.46);
  border-radius: 0.72rem;
  padding: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.coach-feed-card.unread {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.26), 0 0 14px rgba(245, 158, 11, 0.24);
}

.coach-feed-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.coach-feed-card-head strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.coach-feed-badge {
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.coach-feed-badge.is-unread {
  color: #111827;
  background: #facc15;
}

.coach-feed-badge.is-read {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.8);
}

.coach-feed-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.coach-feed-avatar-wrap {
  border: 1px solid rgba(85, 242, 255, 0.24);
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.45rem;
  display: grid;
  place-items: center;
}

.coach-feed-avatar {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.coach-feed-message {
  border: 1px solid rgba(85, 242, 255, 0.24);
  border-radius: 0.55rem;
  background: rgba(2, 6, 23, 0.66);
  padding: 1rem 2rem;
  color: #e2e8f0;
  overflow-wrap: anywhere;
  font-size: var(--card-fs-sm);
  line-height: 200%;
}

.coach-feed-message p {
  margin: 0.35rem 0;
  font-size: var(--card-fs-sm);
}

.coach-feed-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.coach-feed-actions .ghost-btn,
.coach-feed-actions .danger-btn {
  padding: 0.35rem 0.65rem;
}

.stat-card {
  padding: 0.8rem 0.85rem;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-head strong {
  font-size: 1.1rem;
}

.progress-track {
  margin-top: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(85, 242, 255, 0.13);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 15px rgba(255, 60, 165, 0.4);
}

.stat-target {
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.messages,
.coach-grid {
  padding: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.section-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.section-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-subtext {
  margin: 0.55rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 76ch;
}

.auth-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.62rem;
}

.form-hint {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.wizard-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.wizard-actions .neon-btn,
.wizard-actions .ghost-btn,
.wizard-spacer {
  min-height: 52px;
  min-width: 160px;
  padding: 0.72rem 1.5rem;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}

.wizard-spacer {
  display: block;
  visibility: hidden;
}

.auth-form label {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-form input,
.auth-form select {
  border: 1px solid rgba(85, 242, 255, 0.33);
  background: rgba(7, 11, 28, 0.82);
  color: var(--text);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(255, 60, 165, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 60, 165, 0.2);
}

.auth-form input.field-invalid,
.auth-form select.field-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.24);
}

.app-shell input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(85, 242, 255, 0.45);
  border-radius: 0.3rem;
  background: rgba(7, 11, 28, 0.9);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.app-shell input[type="checkbox"]::after {
  content: "";
  width: 11px;
  height: 7px;
  border-left: 3px solid #fff7c2;
  border-bottom: 3px solid #fff7c2;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transform-origin: left;
  transition: transform 0.14s ease;
}

.app-shell input[type="checkbox"]:hover {
  border-color: rgba(245, 158, 11, 0.82);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.app-shell input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 0 14px rgba(56, 189, 248, 0.22);
}

.app-shell input[type="checkbox"]:checked {
  border-color: rgba(245, 158, 11, 0.95);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.98), rgba(217, 119, 6, 0.98));
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.app-shell input[type="checkbox"]:checked::after {
  transform: translateY(-1px) translateX(-4px) rotate(-45deg) scale(1);
}

.app-shell input[type="checkbox"]:active {
  transform: scale(0.96);
}

.inline-field {
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 0.75rem;
}

.alert {
  margin: 0.7rem 0 0;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.alert.error {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.94);
  color: #fde68a;
  font-weight: 500;
}

.alert.success {
  border-color: rgba(109, 255, 139, 0.6);
  background: rgba(109, 255, 139, 0.12);
}

.mt {
  margin-top: 0.6rem;
}

.plain-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.84rem;
  display: block;
  justify-self: end;
  align-self: flex-end;
  text-align: right;
  width: fit-content;
}

.plain-link:hover {
  color: var(--text);
  text-decoration: none;
}

.plain-link.mt {
  margin-top: 1rem;
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
}

.plain-link-left {
  justify-self: start;
  align-self: flex-start;
  text-align: left;
}

.content.registration-content {
  grid-template-columns: 1fr;
}

.registration-wrap {
  width: 100%;
  padding: 1rem;
}

.registration-scroll {
  position: relative;
  margin-top: 0.75rem;
  max-height: min(72vh, 860px);
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: rgba(245, 158, 11, 0.8) rgba(15, 23, 42, 0.45);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 25%,
    #000 75%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 25%,
    #000 75%,
    transparent 100%
  );
  border-radius: 0.7rem;
  transition: box-shadow 0.65s ease, border-color 0.65s ease, background-color 0.65s ease;
}

.registration-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.82);
  border-radius: 999px;
  transition: background-color 0.65s ease, box-shadow 0.65s ease;
}

.registration-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
}

.registration-scroll.is-scrolling {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.36), 0 0 18px rgba(245, 158, 11, 0.26), 0 0 24px rgba(56, 189, 248, 0.2);
  background-color: rgba(15, 23, 42, 0.08);
  scrollbar-color: #fde68a rgba(15, 23, 42, 0.45);
}

.registration-scroll.is-scrolling::-webkit-scrollbar-thumb {
  background: #fde68a;
  box-shadow: 0 0 12px rgba(253, 230, 138, 0.45);
}

.registration-scroll-inner {
  padding: 30vh 1.4rem 3.8rem 1.4rem;
  display: grid;
  gap: 0.95rem;
}

.registration-legal-text {
  margin: 0;
  color: var(--muted);
  font-size: 2.5rem;
  line-height: 1.55;
}

.registration-brand-row {
  --registration-brand-size: clamp(2rem, 4.8vw, 3.6rem);
  margin: 0 0 20vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.registration-wordmark {
  margin: 0;
  text-align: left;
  font-size: var(--registration-brand-size);
}

.registration-claim {
  margin: 0;
  text-align: left;
  color: #fde68a;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.05em;
  font-size: var(--registration-brand-size);
  line-height: 1;
}

.registration-form-end {
  margin-top: 0.35rem;
  margin-bottom: 0;
  padding-top: 0.55rem;
}

.registration-login-layout {
  margin-top: 2rem;
}

.registration-login-spacer {
  display: none;
}

.registration-form-card {
  border: 1px solid rgba(85, 242, 255, 0.26);
  background: rgba(8, 18, 42, 0.52);
  border-radius: 0.88rem;
  padding: 0.85rem 0.9rem 1rem;
  box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.08), 0 0 14px rgba(245, 158, 11, 0.14);
}

.registration-ack {
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
}

.registration-ack span {
  font-size: 1.28rem;
  line-height: 1.25;
  color: #f8fafc;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.registration-form-end .neon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.registration-tail-space {
  height: 50vh;
}

.claim-top {
  color: #fde68a;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.top-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #fde68a;
  white-space: nowrap;
  min-width: 3rem;
  justify-content: flex-end;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.top-feedback.loading {
  text-shadow: 0 0 10px rgba(253, 230, 138, 0.35);
}

.top-feedback.ok {
  text-shadow: 0 0 10px rgba(253, 230, 138, 0.45);
}

.top-feedback-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.top-feedback-icon.spinning {
  animation: coach-refresh-spin 0.75s linear infinite;
}

.ghost-btn {
  border-color: rgba(85, 242, 255, 0.45);
  background: rgba(85, 242, 255, 0.08);
}

.danger-btn {
  border: 1px solid rgba(239, 68, 68, 0.65);
  background: rgba(127, 29, 29, 0.35);
  color: #fde68a;
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.danger-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.chat-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  padding: 0.65rem;
  border: 1px solid rgba(109, 255, 139, 0.25);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
}

.chat-item h4 {
  margin: 0;
  font-size: 1rem;
}

.chat-item p {
  margin: 0.28rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-item span {
  font-size: 0.74rem;
  color: #75ffa0;
}

.avatar-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.coach-card {
  display: grid;
  gap: 0.5rem;
  border: 1px solid rgba(85, 242, 255, 0.28);
  background: rgba(85, 242, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  isolation: isolate;
  will-change: transform, box-shadow;
}

.coach-card:hover,
.coach-card.active {
  border-color: rgba(245, 158, 11, 0.88);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 18px rgba(245, 158, 11, 0.28);
}

.coach-card.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 0 16px rgba(239, 68, 68, 0.25);
}

.avatar-grid.has-active-coach .coach-card:not(.active) {
  opacity: 0.46;
  filter: saturate(0.58) brightness(0.72);
}

.avatar-grid.has-active-coach .coach-card:not(.active):hover {
  opacity: 0.72;
  filter: saturate(0.82) brightness(0.9);
}

.coach-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    rgba(245, 158, 11, 0) 0deg,
    rgba(245, 158, 11, 0.45) 110deg,
    rgba(56, 189, 248, 0.32) 200deg,
    rgba(245, 158, 11, 0) 310deg
  );
  filter: blur(14px);
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.coach-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -48%;
  width: 42%;
  background: linear-gradient(
    105deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(245, 158, 11, 0.2) 45%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(56, 189, 248, 0.18) 58%,
    rgba(56, 189, 248, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.coach-card > * {
  position: relative;
  z-index: 1;
}

.coach-card:hover,
.coach-card.active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.45), 0 0 22px rgba(245, 158, 11, 0.34), 0 0 44px rgba(56, 189, 248, 0.2);
  animation: coach-card-pop 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

.coach-card:hover::after,
.coach-card.active::after {
  opacity: 1;
  animation: card-energy-spin 3.2s linear infinite;
}

.coach-card:hover::before,
.coach-card.active::before {
  opacity: 1;
  animation: coach-card-sweep 1.15s ease-out 1;
}

.coach-card:hover .avatar,
.coach-card.active .avatar {
  filter: saturate(1.08) contrast(1.05);
}

.coach-card.active {
  animation: coach-card-pop 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 1, coach-card-pulse 1.8s ease-in-out 620ms infinite;
}

.coach-card strong {
  font-size: 1rem;
}

.coach-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.role-tag {
  display: inline-flex;
  width: fit-content;
  color: #9fd9e7;
  font-size: 0.65rem;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.coach-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coach-line strong {
  color: #fef3c7;
  font-size: 0.82rem;
}

.coach-motto {
  margin: 0.1rem 0 0;
  color: #d8f6ff;
  border-left: 3px solid rgba(103, 232, 249, 0.6);
  padding-left: 0.52rem;
  font-style: italic;
  font-size: 0.83rem;
}

.coach-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.2s ease;
}

.coach-card:hover .coach-details,
.coach-card.active .coach-details {
  max-height: 220px;
  opacity: 1;
}

@keyframes card-energy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes coach-card-pop {
  0% {
    transform: translateY(0) scale(0.96);
  }
  45% {
    transform: translateY(-4px) scale(1.05);
  }
  100% {
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes coach-card-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.42), 0 0 20px rgba(245, 158, 11, 0.3), 0 0 38px rgba(56, 189, 248, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.56), 0 0 28px rgba(245, 158, 11, 0.42), 0 0 54px rgba(56, 189, 248, 0.28);
  }
}

@keyframes coach-card-sweep {
  0% {
    left: -48%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 118%;
    opacity: 0;
  }
}

.avatar {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.coach-grid .avatar {
  max-width: none;
  height: auto;
}

.coach-title-row,
.coach-line,
.coach-motto {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.coach-motto {
  margin-bottom: 0.85rem;
}

.bottom-nav {
  position: fixed;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.5rem;
  z-index: 4;
}

.bottom-nav-wrap {
  display: contents;
}

.bottom-nav.slim {
  grid-template-columns: 1fr;
  padding: 0.3rem 0.5rem;
  position: static;
  margin-top: 3.4rem;
}

.footer-plain {
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  border-radius: 0;
  padding-top: 0.7rem;
}

.impressum-link-text {
  justify-self: end;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.05rem 0.1rem;
}

.impressum-link-text:hover {
  text-decoration: underline;
}

.footer-auth-links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.login-layout {
  display: block;
}

.login-form-wrap {
  width: 100%;
}

.login-cta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.4rem 0.2rem 0 0.2rem;
  max-width: none;
  width: 100%;
}

.login-side {
  margin-bottom: 1.2rem;
}

.bottom-nav button {
  border-color: rgba(85, 242, 255, 0.3);
  background: rgba(13, 21, 53, 0.7);
  color: var(--muted);
}

.bottom-nav button.active {
  color: #fff7c2;
  border-color: rgba(245, 158, 11, 0.85);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 0 16px rgba(245, 158, 11, 0.25);
}

.loading-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.neon-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(85, 242, 255, 0.2);
  border-top-color: var(--neon-cyan);
  animation: spin 0.9s linear infinite;
}

/* Main-card typography normalization: max 3 sizes (sm/md/lg). */
.form-hint,
.auth-form label,
.plain-link,
.section-head span,
.coach-mini-card span,
.coach-change-note p,
.meal-table th,
.meal-table td,
.meal-share-hover-badge,
.planner-mini-label,
.metric-hover-badge,
.coach-feed-count,
.coach-feed-badge,
.alert,
.impressum-link-text,
.status-label,
.status-value {
  font-size: var(--card-fs-sm);
}

.hero-subline,
.bullet-list,
.meal-panel-summary,
.meal-panel-head-right,
.section-subtext,
.auth-form input,
.auth-form select,
.planner-day-cell,
.planner-hover-date,
.coach-feed-card-head strong,
.stat-head span,
.login-cta {
  font-size: var(--card-fs-md);
}

.section-head h3,
.form-group-block h4,
.stat-head strong {
  font-size: var(--card-fs-lg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .coach-feed-body {
    grid-template-columns: minmax(130px, 190px) 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content.onboarding-content .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    position: static;
    margin-top: 6.25rem;
  }

  .bottom-nav.slim {
    width: 100%;
    margin: 3.4rem auto 0;
  }
}

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

  .signup-form .neon-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 980px) {
  .content {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .content.status-content {
    grid-template-columns: 1fr;
  }

  .content.registration-content {
    grid-template-columns: 1fr;
  }

  .registration-scroll-inner {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .registration-login-spacer {
    display: block;
    min-height: 1px;
  }

  .hero,
  .stats-grid,
  .messages {
    grid-column: 1;
  }

  .coach-grid {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 5.5rem;
  }

  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content.onboarding-content .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content.landing-content {
    grid-template-columns: 1fr;
  }

  .content.landing-content .hero,
  .content.landing-content .messages,
  .content.landing-content .coach-grid {
    grid-column: 1;
    position: static;
    top: auto;
  }

  .content.onboarding-content {
    grid-template-columns: 1fr;
  }

  .content.onboarding-content .hero,
  .content.onboarding-content .messages {
    grid-column: 1;
  }

  .content.profile-content {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .content.profile-content .profile-main-col {
    grid-column: 1;
  }

  .content.profile-content .profile-side-col {
    grid-column: 2;
    position: sticky;
    top: 5.5rem;
  }

  .login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: start;
  }

  .login-side {
    grid-column: 1;
    padding-top: 0.2rem;
    margin-bottom: 0;
  }

  .login-cta {
    max-width: 34ch;
  }

  .login-form-wrap {
    grid-column: 2;
  }
}
